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/1354306

Title:
  gpio shutdown trigger for ProLiant m400 cartridges

To manage notifications about this bug go to:
https://bugs.launchpad.net/systemd/+bug/1354306/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to