Automatically detect wakup keys
We should parse the wakeup keys out of /sys. For that we
- want to export the keys that are a wakeup-source as
wakeup-keys
similar to thekeys
attribute from the gpio-keys linux driver - use that attribute and a small helper to convert that attribute into
WAKEUP_KEYS=1
entries in a udev rule usingIMPORT{program}="gm-import-wakeup-keys" $attr{...}"
Edited by Guido Günther