&gt; Then again they also have a bit of theater in them. For example they accepted a patch to lock the computer if a HID devices was plugged in. But while the original patch did it on any device, they modified it so that it only happens on the device ids of known mouse wigglers used in police computer seizure kits.<p>There was a series of two patches: one to logind to add a mechanism to tell all active user sessions to lock, and one to the udev rules provided with systemd to add a policy that plugging in a known mouse wiggler causes all active user sessions to lock.<p>(It wouldn&#x27;t make any sense to lock the screen when inserting any HID device.)<p>Separately from that, logind also implements other policies for when to lock the screen, such as when closing a laptop lid without an external monitor connected.