Right, that wasn't intended to be an upstream patch submittal, just a
description of the problem.
My best guess at a "good" solution would be something like this:
SUBSYSTEM=="input", KERNEL=="event*", SUBSYSTEMS=="platform",
ATTRS{keys}=="116", TAG+="power-switch"
Which would obviously require some new support in gpio-keyboard-polled
to expose the ATTRS{keys}. But I don't know if it is safe to assume that
KEY_POWER is always a graceful powerdown request.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1347776
Title:
shutdown trigger on gpio_keys.X for armhf hardware
To manage notifications about this bug go to:
https://bugs.launchpad.net/systemd/+bug/1347776/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs