[Merge] lp:~manjo/ubuntu/trusty/systemd/HP-m800 into lp:ubuntu/trusty/systemd

Manoj Iyer manoj.iyer at canonical.com
Mon Jul 21 23:21:20 UTC 2014


Manoj Iyer has proposed merging lp:~manjo/ubuntu/trusty/systemd/HP-m800 into lp:ubuntu/trusty/systemd.

Requested reviews:
  Adam Conrad (adconrad)
  Ubuntu branches (ubuntu-branches)

For more details, see:
https://code.launchpad.net/~manjo/ubuntu/trusty/systemd/HP-m800/+merge/227649

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-switch.rules to initiate soft shutdown of the cartridge from ilo. 

Here is the udevadm output for /dev/input/event0 

ubuntu at c3n1:~$ sudo udevadm info  --query=all --name=/dev/input/event0 --attribute-walk

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/soc.3/gpio_keys.12/input/input0/event0':
    KERNEL=="event0"
    SUBSYSTEM=="input"
    DRIVER==""

  looking at parent device '/devices/soc.3/gpio_keys.12/input/input0':
    KERNELS=="input0"
    SUBSYSTEMS=="input"
    DRIVERS==""
    ATTRS{name}=="gpio_keys.12"
    ATTRS{phys}=="gpio-keys/input0"
    ATTRS{uniq}==""
    ATTRS{properties}=="0"

  looking at parent device '/devices/soc.3/gpio_keys.12':
    KERNELS=="gpio_keys.12"
    SUBSYSTEMS=="platform"
    DRIVERS=="gpio-keys"
    ATTRS{keys}=="116"
    ATTRS{switches}==""
    ATTRS{disabled_keys}==""
    ATTRS{disabled_switches}==""

  looking at parent device '/devices/soc.3':
    KERNELS=="soc.3"
    SUBSYSTEMS=="platform"
    DRIVERS==""

ubuntu at c3n1:~$ 

This patch was tested by me and verified to work on HP m800 cartridge at Canonical. 
-- 
https://code.launchpad.net/~manjo/ubuntu/trusty/systemd/HP-m800/+merge/227649
Your team Ubuntu branches is requested to review the proposed merge of lp:~manjo/ubuntu/trusty/systemd/HP-m800 into lp:ubuntu/trusty/systemd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 1056 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-reviews/attachments/20140721/8b53037c/attachment.diff>


More information about the Ubuntu-reviews mailing list