3 ms·
3 free beers if you manage to make this work with even a single specific machine Edit: This was a bad way of saying "Possible, but not easy - anybody got somet
by sally_glance 4y ago
3 free beers if you manage to make this work with even a single specific machine
Edit: This was a bad way of saying "Possible, but not easy - anybody got something?"
- adastra22 4y agoI've done this with automatic locking. The idea being to have Tomu fob on my keychain, which must be inserted into the device for the display machine to be unlocked. Pull out the Tomu (which can be done by just grabbing my keys and yanking) and the laptop instantly locks, and starts a timer to hibernate. It wasn't that complicated IIRC. This was a few years ago.
- sally_glance 4y agoThat's interesting - did you implement some kind of key exchange or just check for the device ID? And which OS? I might have exaggerated a bit, probably it's pretty easy to do in a "works on my machine" kind of way...
- adastra22 4y agoI used a simple challenge-response protocol. It asked the device to sign a message to authenticate itself. I then listened to udev announcements to lock the machine if the device was unplugged. It was more of a toy than a serious security device, and it would certainly need a lot more review before I recommend others to use it, but it was a fun exercise.
- inamberclad 4y agoPretty easy to register a HID device with dedicated keys for volume up / down and play / pause.
- ThrowawayTestr 4y agoAutohotkey and F24?
- Piskvorrr 4y agoHad this, on a generic Ubuntu Linux workstation. evrouter to watch for a specific HID device "keypress" and remap onto a hotkey, KDE Plasma to have that hotkey trigger a screen unlock script, another script to lock the workstation if the HID device goes missing from USB tree. Nothing special (or secure - the whole setup hinged on the specific device ID, and would have worked with any other device of the same type), but a bit hairy.