Merge lp://staging/~manjo/ubuntu/trusty/systemd/HP-m800 into lp://staging/ubuntu/trusty/systemd
Status: | Merged | ||||
---|---|---|---|---|---|
Merge reported by: | Martin Pitt | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp://staging/~manjo/ubuntu/trusty/systemd/HP-m800 | ||||
Merge into: | lp://staging/ubuntu/trusty/systemd | ||||
Diff against target: |
25 lines (+8/-0) 2 files modified
debian/changelog (+7/-0) src/login/70-power-switch.rules (+1/-0) |
||||
To merge this branch: | bzr merge lp://staging/~manjo/ubuntu/trusty/systemd/HP-m800 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pitt | Approve | ||
Adam Conrad | Pending | ||
Ubuntu branches | Pending | ||
Review via email: mp+227649@code.staging.launchpad.net |
Description of the change
HP ProLiant m800 Server Cartridge uses GPIO gpio_key.12 for power control (key=116). The proposed patch adds entry to logind's 70-power-
Here is the udevadm output for /dev/input/event0
ubuntu@c3n1:~$ sudo udevadm info --query=all --name=
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/
KERNEL=
SUBSYSTEM=
DRIVER==""
looking at parent device '/devices/
KERNELS=
SUBSYSTEMS=
DRIVERS==""
ATTRS{
ATTRS{
ATTRS{uniq}==""
ATTRS{
looking at parent device '/devices/
KERNELS=
SUBSYSTEMS=
DRIVERS=
ATTRS{
ATTRS{
ATTRS{
ATTRS{
looking at parent device '/devices/soc.3':
KERNELS=
SUBSYSTEMS=
DRIVERS==""
ubuntu@c3n1:~$
This patch was tested by me and verified to work on HP m800 cartridge at Canonical.
Requesting a review from Martin, who probably knows this bit better than I do. Is this safe to do, globally like this, or could it cause unintended weird consequences on other random platforms that happen to have something wired up to the same gpio?