View Single Post
Old 07-01-2018, 08:43 AM   #25
7hir7een
Reader of Books
7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.
 
7hir7een's Avatar
 
Posts: 249
Karma: 178096
Join Date: Oct 2012
Device: Kobo Libra Colour, Clara Colour, Libra 2, Elipsa
Sure thing

The first bit of code returns a file not found
Code:
[root@kindle root]# hexdump /dev/input/by-path/platform-gpiokey.0-event
hexdump: /dev/input/by-path/platform-gpiokey.0-event: No such file or directory
ETA: here's what I got from the corrected path

Spoiler:

[root@kindle root]# hexdump /dev/input/by-path/platform-gpio-keys-event
0000000 ced9 5b38 d24e 0009 0001 0068 0001 0000
0000010 ced9 5b38 d24e 0009 0000 0000 0000 0000
0000020 ced9 5b38 2663 000c 0001 0068 0000 0000
0000030 ced9 5b38 2663 000c 0000 0000 0000 0000

0000040 ceda 5b38 4ee3 0007 0001 006d 0001 0000
0000050 ceda 5b38 4ee3 0007 0000 0000 0000 0000
0000060 ceda 5b38 6ae0 0009 0001 006d 0000 0000
0000070 ceda 5b38 6ae0 0009 0000 0000 0000 0000

0000080 cedb 5b38 9069 000d 0001 0068 0001 0000
0000090 cedb 5b38 9069 000d 0000 0000 0000 0000
00000a0 cedc 5b38 66ba 0000 0001 0068 0000 0000
00000b0 cedc 5b38 66ba 0000 0000 0000 0000 0000

00000c0 cedc 5b38 a981 000a 0001 006d 0001 0000
00000d0 cedc 5b38 a981 000a 0000 0000 0000 0000
00000e0 cedc 5b38 a011 000c 0001 006d 0000 0000
00000f0 cedc 5b38 a011 000c 0000 0000 0000 0000

That's top, bottom, top, bottom (spaces inserted for legibility) -- with the device upright (buttons on right side)

---

Here are the other things you asked for if you still need them:
by-path
Spoiler:

[root@kindle root]# ls -lash /dev/input/by-path/
0 drwxr-xr-x 2 root root 120 Jun 30 23:14 .
0 drwxr-xr-x 3 root root 300 Jun 30 23:14 ..
0 lrwxrwxrwx 1 root root 9 Jun 30 23:14 platform-30370000.snvs:snvs-powerkey-event -> ../event0
0 lrwxrwxrwx 1 root root 9 Jun 30 23:14 platform-30a30000.i2c-event -> ../event6
0 lrwxrwxrwx 1 root root 9 Jun 30 23:14 platform-gpio-keys-event -> ../event5
0 lrwxrwxrwx 1 root root 9 Jun 30 23:14 platform-max77796-key-event -> ../event1

devices
Spoiler:

[root@kindle root]# cat /proc/bus/input/devices
I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="30370000.snvs:snvs-powerkey"
P: Phys=snvs-pwrkey/input0
S: Sysfs=/devices/platform/soc/30000000.aips-bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input0
U: Uniq=
H: Handlers=kbd event0 evbug
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="max77796-key"
P: Phys=max77796-key/input0
S: Sysfs=/devices/platform/3c.max77796/max77796-key/input/input1
U: Uniq=
H: Handlers=kbd event1 evbug
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="SX9310 Cap Touch"
P: Phys=
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=kbd event2 evbug
B: PROP=0
B: EV=3
B: KEY=81c

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="hall_sensor_disp"
P: Phys=
S: Sysfs=/devices/virtual/input/input3
U: Uniq=
H: Handlers=event3 evbug
B: PROP=0
B: EV=21
B: SW=1

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="hall_sensor_usb"
P: Phys=
S: Sysfs=/devices/virtual/input/input4
U: Uniq=
H: Handlers=event4 evbug
B: PROP=0
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="gpio-keys"
P: Phys=gpio-keys/input0
S: Sysfs=/devices/platform/gpio-keys/input/input5
U: Uniq=
H: Handlers=kbd event5 evbug
B: PROP=0
B: EV=3
B: KEY=2100 0 0 0

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="cyttsp5_mt"
P: Phys=1-0024/input0
S: Sysfs=/devices/platform/soc/30800000.aips-bus/30a30000.i2c/i2c-1/1-0024/input/input6
U: Uniq=
H: Handlers=event6 evbug
B: PROP=2
B: EV=f
B: KEY=6420 0 0 0 0 0 0 0 0 0 0
B: REL=0
B: ABS=6608000 0

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="max44009_als"
P: Phys=
S: Sysfs=/devices/virtual/input/input7
U: Uniq=
H: Handlers=event7 evbug
B: PROP=0
B: EV=9
B: ABS=100 0

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="max44009_als1"
P: Phys=
S: Sysfs=/devices/virtual/input/input8
U: Uniq=
H: Handlers=event8 evbug
B: PROP=0
B: EV=9
B: ABS=100 0

I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="bma2x2"
P: Phys=
S: Sysfs=/devices/virtual/input/input9
U: Uniq=
H: Handlers=event9 evbug
B: PROP=0
B: EV=9
B: ABS=100 7

I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="bma_interrupt"
P: Phys=
S: Sysfs=/devices/virtual/input/input10
U: Uniq=
H: Handlers=event10 evbug
B: PROP=0
B: EV=d
B: REL=3c6
B: ABS=3000000


---

Yes, the KOA2 retains the accelerometer. Switching between upright (buttons on right side) and reversed (buttons on left side):

Spoiler:

[root@kindle root]# lipc-get-prop -s com.lab126.winmgr accelerometer
U
[root@kindle root]# lipc-get-prop -s com.lab126.winmgr accelerometer
D


But that second bit
Spoiler:

[root@kindle root]# cat /proc/bus/input/devices | grep -e 'Handlers\\|EV=' | gre
p -B1 'EV=d'| grep -o 'event[0-9]'
[root@kindle root]#

Last edited by 7hir7een; 07-01-2018 at 09:07 AM. Reason: added platform-gpio-keys-event results; fixed typo; answer question in order
7hir7een is offline   Reply With Quote