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>
Tue, 14 Mar 2017 09:19:06 +0000 (10:19 +0100)
commit760bea4378325739bc9504a43e1e7f989a362724
tree12a7c950a78ba0bd7185a4adc4163bb39bad49a0
parentbde0db03cfe1d97248bb7caf7ace4d5f310e1133
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