Le 03/12/2014 16:48, Guillaume Gardet a écrit :
Le 02/10/2014 12:47, Dr. Werner Fink a écrit :
Hi,
just to be noted, that is not required to boot with openSUSE. Any nmodern Linux is enough, that is that there should be is the /sys file system and the filled /dev/input/ directory.
I'd like to know the output of
for n in /dev/input/event*; do udevadm info -a --name=$n done
then we might catch the input device for gpio-keys.8 and the power switch therein.
Here are the results (from ChromeOS):
I finally get openSUSE running again on my Chromebook ARM. I think you are looking for GPIO key 116 (/dev/input/event1). Note that my onboard keyboard is not working (except power switch). Here are the results (I have a USB keyboard connected): ******************************************************************************** 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/12c70000.i2c/i2c-1/1-0067/input/input0/event0': KERNEL=="event0" SUBSYSTEM=="input" DRIVER=="" looking at parent device '/devices/12c70000.i2c/i2c-1/1-0067/input/input0': KERNELS=="input0" SUBSYSTEMS=="input" DRIVERS=="" ATTRS{name}=="Cypress APA Trackpad (cyapa)" ATTRS{phys}=="i2c-1-0067/input0" ATTRS{uniq}=="" ATTRS{properties}=="5" looking at parent device '/devices/12c70000.i2c/i2c-1/1-0067': KERNELS=="1-0067" SUBSYSTEMS=="i2c" DRIVERS=="cyapa" ATTRS{name}=="cyapa" looking at parent device '/devices/12c70000.i2c/i2c-1': KERNELS=="i2c-1" SUBSYSTEMS=="i2c" DRIVERS=="" ATTRS{name}=="s3c2410-i2c" looking at parent device '/devices/12c70000.i2c': KERNELS=="12c70000.i2c" SUBSYSTEMS=="platform" DRIVERS=="s3c-i2c" ATTRS{driver_override}=="(null)" 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/gpio-keys/input/input1/event1': KERNEL=="event1" SUBSYSTEM=="input" DRIVER=="" looking at parent device '/devices/gpio-keys/input/input1': KERNELS=="input1" SUBSYSTEMS=="input" DRIVERS=="" ATTRS{name}=="gpio-keys" ATTRS{phys}=="gpio-keys/input0" ATTRS{uniq}=="" ATTRS{properties}=="0" looking at parent device '/devices/gpio-keys': KERNELS=="gpio-keys" SUBSYSTEMS=="platform" DRIVERS=="gpio-keys" ATTRS{keys}=="116" ATTRS{switches}=="0" ATTRS{driver_override}=="(null)" ATTRS{disabled_keys}=="" ATTRS{disabled_switches}=="" 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/12110000.usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.0/0003:045E:002B.0001/input/input2/event2': KERNEL=="event2" SUBSYSTEM=="input" DRIVER=="" looking at parent device '/devices/12110000.usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.0/0003:045E:002B.0001/input/input2': KERNELS=="input2" SUBSYSTEMS=="input" DRIVERS=="" ATTRS{name}=="Microsoft Internet Keyboard Pro" ATTRS{phys}=="usb-12110000.usb-1.3.1/input0" ATTRS{uniq}=="" ATTRS{properties}=="0" looking at parent device '/devices/12110000.usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.0/0003:045E:002B.0001': KERNELS=="0003:045E:002B.0001" SUBSYSTEMS=="hid" DRIVERS=="hid-generic" looking at parent device '/devices/12110000.usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.0': KERNELS=="1-1.3.1:1.0" SUBSYSTEMS=="usb" DRIVERS=="usbhid" ATTRS{bInterfaceClass}=="03" ATTRS{bInterfaceSubClass}=="01" ATTRS{bInterfaceProtocol}=="01" ATTRS{bNumEndpoints}=="01" ATTRS{supports_autosuspend}=="1" ATTRS{bAlternateSetting}==" 0" ATTRS{bInterfaceNumber}=="00" ATTRS{interface}=="Microsoft Internet Keyboard Pro" looking at parent device '/devices/12110000.usb/usb1/1-1/1-1.3/1-1.3.1': KERNELS=="1-1.3.1" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceProtocol}=="00" ATTRS{devpath}=="1.3.1" ATTRS{idVendor}=="045e" ATTRS{speed}=="1.5" ATTRS{bNumInterfaces}==" 2" ATTRS{bConfigurationValue}=="1" ATTRS{bMaxPacketSize0}=="8" ATTRS{busnum}=="1" ATTRS{devnum}=="5" ATTRS{configuration}=="Microsoft Internet Keyboard Pro" ATTRS{bMaxPower}=="100mA" ATTRS{authorized}=="1" ATTRS{bmAttributes}=="a0" ATTRS{bNumConfigurations}=="1" ATTRS{maxchild}=="0" ATTRS{bcdDevice}=="0114" ATTRS{avoid_reset_quirk}=="0" ATTRS{quirks}=="0x0" ATTRS{version}==" 1.10" ATTRS{urbnum}=="772" ATTRS{ltm_capable}=="no" ATTRS{removable}=="fixed" ATTRS{idProduct}=="002b" ATTRS{bDeviceClass}=="00" ATTRS{product}=="Microsoft Internet Keyboard Pro" looking at parent device '/devices/12110000.usb/usb1/1-1/1-1.3': KERNELS=="1-1.3" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceProtocol}=="00" ATTRS{devpath}=="1.3" ATTRS{idVendor}=="045e" ATTRS{speed}=="12" ATTRS{bNumInterfaces}==" 1" ATTRS{bConfigurationValue}=="1" ATTRS{bMaxPacketSize0}=="8" ATTRS{busnum}=="1" ATTRS{devnum}=="4" ATTRS{configuration}=="" ATTRS{bMaxPower}=="64mA" ATTRS{authorized}=="1" ATTRS{bmAttributes}=="a0" ATTRS{bNumConfigurations}=="1" ATTRS{maxchild}=="3" ATTRS{bcdDevice}=="0500" ATTRS{avoid_reset_quirk}=="0" ATTRS{quirks}=="0x0" ATTRS{version}==" 1.10" ATTRS{urbnum}=="26" ATTRS{ltm_capable}=="no" ATTRS{removable}=="unknown" ATTRS{idProduct}=="001c" ATTRS{bDeviceClass}=="09" looking at parent device '/devices/12110000.usb/usb1/1-1': KERNELS=="1-1" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceProtocol}=="01" ATTRS{devpath}=="1" ATTRS{idVendor}=="0409" ATTRS{speed}=="480" ATTRS{bNumInterfaces}==" 1" ATTRS{bConfigurationValue}=="1" ATTRS{bMaxPacketSize0}=="64" ATTRS{busnum}=="1" ATTRS{devnum}=="2" ATTRS{configuration}=="" ATTRS{bMaxPower}=="100mA" ATTRS{authorized}=="1" ATTRS{bmAttributes}=="e0" ATTRS{bNumConfigurations}=="1" ATTRS{maxchild}=="3" ATTRS{bcdDevice}=="0100" ATTRS{avoid_reset_quirk}=="0" ATTRS{quirks}=="0x0" ATTRS{version}==" 2.00" ATTRS{urbnum}=="46" ATTRS{ltm_capable}=="no" ATTRS{removable}=="unknown" ATTRS{idProduct}=="005a" ATTRS{bDeviceClass}=="09" looking at parent device '/devices/12110000.usb/usb1': KERNELS=="usb1" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceProtocol}=="00" ATTRS{devpath}=="0" ATTRS{idVendor}=="1d6b" ATTRS{speed}=="480" ATTRS{bNumInterfaces}==" 1" ATTRS{bConfigurationValue}=="1" ATTRS{bMaxPacketSize0}=="64" ATTRS{authorized_default}=="1" ATTRS{busnum}=="1" ATTRS{devnum}=="1" ATTRS{configuration}=="" ATTRS{bMaxPower}=="0mA" ATTRS{authorized}=="1" ATTRS{bmAttributes}=="e0" ATTRS{bNumConfigurations}=="1" ATTRS{maxchild}=="3" ATTRS{bcdDevice}=="0317" ATTRS{avoid_reset_quirk}=="0" ATTRS{quirks}=="0x0" ATTRS{serial}=="12110000.usb" ATTRS{version}==" 2.00" ATTRS{urbnum}=="26" ATTRS{ltm_capable}=="no" ATTRS{manufacturer}=="Linux 3.17.4-1-lpae ehci_hcd" ATTRS{removable}=="unknown" ATTRS{idProduct}=="0002" ATTRS{bDeviceClass}=="09" ATTRS{product}=="EHCI Host Controller" looking at parent device '/devices/12110000.usb': KERNELS=="12110000.usb" SUBSYSTEMS=="platform" DRIVERS=="exynos-ehci" ATTRS{companion}=="" ATTRS{driver_override}=="(null)" ATTRS{uframe_periodic_max}=="100" 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/12110000.usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.1/0003:045E:002B.0002/input/input3/event3': KERNEL=="event3" SUBSYSTEM=="input" DRIVER=="" looking at parent device '/devices/12110000.usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.1/0003:045E:002B.0002/input/input3': KERNELS=="input3" SUBSYSTEMS=="input" DRIVERS=="" ATTRS{name}=="Microsoft Internet Keyboard Pro" ATTRS{phys}=="usb-12110000.usb-1.3.1/input1" ATTRS{uniq}=="" ATTRS{properties}=="0" looking at parent device '/devices/12110000.usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.1/0003:045E:002B.0002': KERNELS=="0003:045E:002B.0002" SUBSYSTEMS=="hid" DRIVERS=="hid-generic" looking at parent device '/devices/12110000.usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.1': KERNELS=="1-1.3.1:1.1" SUBSYSTEMS=="usb" DRIVERS=="usbhid" ATTRS{bInterfaceClass}=="03" ATTRS{bInterfaceSubClass}=="00" ATTRS{bInterfaceProtocol}=="00" ATTRS{bNumEndpoints}=="01" ATTRS{supports_autosuspend}=="1" ATTRS{bAlternateSetting}==" 0" ATTRS{bInterfaceNumber}=="01" ATTRS{interface}=="Microsoft Internet Keyboard Pro" looking at parent device '/devices/12110000.usb/usb1/1-1/1-1.3/1-1.3.1': KERNELS=="1-1.3.1" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceProtocol}=="00" ATTRS{devpath}=="1.3.1" ATTRS{idVendor}=="045e" ATTRS{speed}=="1.5" ATTRS{bNumInterfaces}==" 2" ATTRS{bConfigurationValue}=="1" ATTRS{bMaxPacketSize0}=="8" ATTRS{busnum}=="1" ATTRS{devnum}=="5" ATTRS{configuration}=="Microsoft Internet Keyboard Pro" ATTRS{bMaxPower}=="100mA" ATTRS{authorized}=="1" ATTRS{bmAttributes}=="a0" ATTRS{bNumConfigurations}=="1" ATTRS{maxchild}=="0" ATTRS{bcdDevice}=="0114" ATTRS{avoid_reset_quirk}=="0" ATTRS{quirks}=="0x0" ATTRS{version}==" 1.10" ATTRS{urbnum}=="772" ATTRS{ltm_capable}=="no" ATTRS{removable}=="fixed" ATTRS{idProduct}=="002b" ATTRS{bDeviceClass}=="00" ATTRS{product}=="Microsoft Internet Keyboard Pro" looking at parent device '/devices/12110000.usb/usb1/1-1/1-1.3': KERNELS=="1-1.3" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceProtocol}=="00" ATTRS{devpath}=="1.3" ATTRS{idVendor}=="045e" ATTRS{speed}=="12" ATTRS{bNumInterfaces}==" 1" ATTRS{bConfigurationValue}=="1" ATTRS{bMaxPacketSize0}=="8" ATTRS{busnum}=="1" ATTRS{devnum}=="4" ATTRS{configuration}=="" ATTRS{bMaxPower}=="64mA" ATTRS{authorized}=="1" ATTRS{bmAttributes}=="a0" ATTRS{bNumConfigurations}=="1" ATTRS{maxchild}=="3" ATTRS{bcdDevice}=="0500" ATTRS{avoid_reset_quirk}=="0" ATTRS{quirks}=="0x0" ATTRS{version}==" 1.10" ATTRS{urbnum}=="26" ATTRS{ltm_capable}=="no" ATTRS{removable}=="unknown" ATTRS{idProduct}=="001c" ATTRS{bDeviceClass}=="09" looking at parent device '/devices/12110000.usb/usb1/1-1': KERNELS=="1-1" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceProtocol}=="01" ATTRS{devpath}=="1" ATTRS{idVendor}=="0409" ATTRS{speed}=="480" ATTRS{bNumInterfaces}==" 1" ATTRS{bConfigurationValue}=="1" ATTRS{bMaxPacketSize0}=="64" ATTRS{busnum}=="1" ATTRS{devnum}=="2" ATTRS{configuration}=="" ATTRS{bMaxPower}=="100mA" ATTRS{authorized}=="1" ATTRS{bmAttributes}=="e0" ATTRS{bNumConfigurations}=="1" ATTRS{maxchild}=="3" ATTRS{bcdDevice}=="0100" ATTRS{avoid_reset_quirk}=="0" ATTRS{quirks}=="0x0" ATTRS{version}==" 2.00" ATTRS{urbnum}=="46" ATTRS{ltm_capable}=="no" ATTRS{removable}=="unknown" ATTRS{idProduct}=="005a" ATTRS{bDeviceClass}=="09" looking at parent device '/devices/12110000.usb/usb1': KERNELS=="usb1" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceProtocol}=="00" ATTRS{devpath}=="0" ATTRS{idVendor}=="1d6b" ATTRS{speed}=="480" ATTRS{bNumInterfaces}==" 1" ATTRS{bConfigurationValue}=="1" ATTRS{bMaxPacketSize0}=="64" ATTRS{authorized_default}=="1" ATTRS{busnum}=="1" ATTRS{devnum}=="1" ATTRS{configuration}=="" ATTRS{bMaxPower}=="0mA" ATTRS{authorized}=="1" ATTRS{bmAttributes}=="e0" ATTRS{bNumConfigurations}=="1" ATTRS{maxchild}=="3" ATTRS{bcdDevice}=="0317" ATTRS{avoid_reset_quirk}=="0" ATTRS{quirks}=="0x0" ATTRS{serial}=="12110000.usb" ATTRS{version}==" 2.00" ATTRS{urbnum}=="26" ATTRS{ltm_capable}=="no" ATTRS{manufacturer}=="Linux 3.17.4-1-lpae ehci_hcd" ATTRS{removable}=="unknown" ATTRS{idProduct}=="0002" ATTRS{bDeviceClass}=="09" ATTRS{product}=="EHCI Host Controller" looking at parent device '/devices/12110000.usb': KERNELS=="12110000.usb" SUBSYSTEMS=="platform" DRIVERS=="exynos-ehci" ATTRS{companion}=="" ATTRS{driver_override}=="(null)" ATTRS{uframe_periodic_max}=="100" ******************************************************************************** Guillaume -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org