News for hackers. Stuff that matters.
Re:A dead man's switch for your computer? by kator on Thursday January 22, 2015 @07:36PM (#8932730)
I built a program that automatically locks my OSX machine when I get far enough away from it. It uses iBeacon ranging and I have the beacon in my pocket. Debated on sharing with others but I never managed to clean it up enough to be proud of sharing it.
Re:A dead man's switch for your computer? by icebraining on Thursday January 22, 2015 @08:27PM (#8932930)
There's a program for Linux that does the same, but using your phone (or other Bluetooth device) called blueproximity. It had a slight tendency for false positives, though - sometimes it locked the screen even with the device less than a meter away.
Re:A dead man's switch for your computer? by taltman1 on Friday January 23, 2015 @12:23AM (#8933524)
I used blueproximity successfully with my Linux laptop. I bought the smallest bluetooth headset I could find ($25), removed all extraneous parts, and carried it on my person (not my bag). It was so small that I didn't notice it. Effectively like two-factor authentication for unlocking my laptop.

It's unwise to use your phone for this purpose, because a phone and laptop might both be swiped if you're not holding on to both. This has happened to folks at cafes or on mass transit in the Bay Area.

Re:A dead man's switch for your computer? by lgeek on Friday January 23, 2015 @02:34AM (#8933804)
I've tried to use blueproximity at some point (mostly for convenience because I sometimes forget to lock my screen), but the range of BT devices is too large for comfort. I could be anywhere in my flat or in the medium-sized open plan office at work and the phone in my pocket would still be in range.
Re:A dead man's switch for your computer? by icebraining on Friday January 23, 2015 @06:52AM (#8934415)
Have you tried configuring it? It has a slider that you can adjust to set a minimum power level, so that if the device is too far away it locks anyway, even if it can still detect it.
Re:A dead man's switch for your computer? by Alupis on Friday January 23, 2015 @02:43AM (#8933823)
I had a laptop once that for some reason wouldn't use the battery even on a full charge. So, naturally, as soon as the power cord was pulled out, the laptop crashed.

Would make for a pretty good DMS; being deceiving with a battery attached and the OS reporting a full charge.

I wonder if there's a way to modify the mainboard (knife a lead or something) to be incapable of using the battery while still charging and the OS still being able to get reporting data.

Re:A dead man's switch for your computer? by cesarb on Friday January 23, 2015 @07:29AM (#8934508)
> I wonder if there's a way to modify the mainboard (knife a lead or something) to be incapable of using the battery while still charging and the OS still being able to get reporting data.

Why go the hardware route? The AC adapter state is reported to the operating system; for instance, KDE on my laptop plays a sound when a blackout cuts the power to the AC adapter. It should be simple to have something else monitor the power state and tell logind to lock all screens on AC power loss, or even force a shutdown if you're paranoid.

Not that it would help much; there are devices which can keep the AC power on while a computer is unplugged and transported, even for desktops (which have no internal battery). Nothing prevents these devices from also being used on laptops.

Re:A dead man's switch for your computer? by Plough_Jogger on Thursday January 22, 2015 @09:29PM (#8933103)
Carrying a beacon in your pocket seems like a really impractical solution if you own a smartphone.
Re:A dead man's switch for your computer? by stinos on Friday January 23, 2015 @05:56AM (#8934248)
Even then I would still consider it somewhat impractical as it means battery dead = computer locked. And depending on how it's programmed: forgot beacon/phone = computer locked.
Re:A dead man's switch for your computer? by k-mcgrady on Friday January 23, 2015 @08:08AM (#8934620)
Just a guess but it would surprise me if his phone isn't the beacon.
Re:A dead man's switch for your computer? by bigbugbag on Friday January 23, 2015 @04:04AM (#8933997)
For this to work as a dead man switch, it will have to trigger the lock the instant there's two of that signal. Otherwise one simply has to sniff bluetooth then copy your signal.
Re:A dead man's switch for your computer? by pjc50 on Friday January 23, 2015 @04:41AM (#8934066)
Bluetooth is cloning-resistant if done properly; communications are encrypted and devices authenticated.
Re:A dead man's switch for your computer? by kitd on Friday January 23, 2015 @07:26AM (#8934499)
Windows 7 + allows you to select a bluetooth device as the locking device for proximity detection.