chiark / gitweb /
logind: Listen to WMI hotkeys to catch SW_DOCK state/events
authorMartin Pitt <martin.pitt@ubuntu.com>
Tue, 1 Sep 2015 08:51:15 +0000 (10:51 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 29 Mar 2017 08:45:08 +0000 (10:45 +0200)
commit7c2c2d45c2a696046d857ca716e9f805af112cf8
tree91b0b026d1464b71e0e024ec17a5b40c6b2e9b26
parentf71a7dceade2ff13131acc352173ad841fe26363
logind: Listen to WMI hotkeys to catch SW_DOCK state/events

On Dell and HP laptops the dock state/events (SW_DOCK) come from the "{Dell,HP}
WMI hotkeys" input devices. Tag them as power-switch so that login actually
considers them. Use a general match in case this affects other vendors, too.

Thanks to Andreas Schultz for debugging this!

https://launchpad.net/bugs/1450009
src/login/70-power-switch.rules