Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No output when executing "cat /dev/input/eventXX"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Pearlseattle
Apprentice
Apprentice


Joined: 04 Oct 2007
Posts: 162
Location: Switzerland

PostPosted: Thu Apr 25, 2019 9:17 pm    Post subject: No output when executing "cat /dev/input/eventXX" Reply with quote

Hi

In the past, when I wanted to know which keyboard/mouse/clickpad/trackpoint/whatever was linked/represented by which "/dev/input/event" (respectively "/dev/input/mice" and "/dev/input/mouse0") I just used to probe (as "root"-user) all "/dev/input/*"-devices with...
Code:
cat /dev/input/event1
cat /dev/input/event2
cat /dev/input/event3
etc

...while moving/using the keyboard/mouse/clickpad/trackpoint until I got some garbage on screen (which meant that that eventX-device was linked to the HW that I was pushing/moving).

Now it does not work anymore (absolutely no output shown for all "/dev/input/*"-entries) :cry:
Any idea why, respectively how the old behaviour can be restored?

I kind of remember that long time back there were some news about some changes somewhere (In the kernel? Fyi I'm using on this notebook gentoo-sources-4.14.40) that (if I remember correctly) protected such sniffing of user input, but I'm not sure if that might be connected to my problem (which currently is that in the end I want to configure my xorg.conf to use specific "event"-devices for my HW, but I might have some other more "advanced/primitive" usecases where I really want to have a script listening on the output of such "event"-devices to react e.g. when pressing a dumb usb-button).

I am 100% sure that my HW is working fine because, as you see, I can type and I can use both my clickpad and trackpad => I therefore expected that some "cat /dev/input/event*" would show something but none of them do.

Thanks a lot!
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4258
Location: Dallas area

PostPosted: Thu Apr 25, 2019 10:06 pm    Post subject: Reply with quote

Code:
ls -la /dev/input/by-id/
total 0
drwxr-xr-x 2 root root 140 Apr 20 00:32 .
drwxr-xr-x 4 root root 240 Apr 20 00:32 ..
lrwxrwxrwx 1 root root   9 Apr 20 00:32 usb-Logitech_USB_Receiver-event-kbd -> ../event2
lrwxrwxrwx 1 root root   9 Apr 20 00:32 usb-Logitech_USB_Receiver-if01-event-mouse -> ../event3
lrwxrwxrwx 1 root root   9 Apr 20 00:32 usb-Logitech_USB_Receiver-if01-mouse -> ../mouse0
lrwxrwxrwx 1 root root   9 Apr 20 00:32 usb-MOSART_Semi._2.4G_Wireless_Mouse-event-mouse -> ../event4
lrwxrwxrwx 1 root root   9 Apr 20 00:32 usb-MOSART_Semi._2.4G_Wireless_Mouse-mouse -> ../mouse1

_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.1 (no-pie & modified) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Pearlseattle
Apprentice
Apprentice


Joined: 04 Oct 2007
Posts: 162
Location: Switzerland

PostPosted: Thu Apr 25, 2019 10:51 pm    Post subject: Reply with quote

Damn, I don't even have that "by-id" subdir :cry:
Code:
# ls -laR /dev/input/
/dev/input/:
total 0
drwxr-xr-x  3 root root     340 Apr 25 20:35 .
drwxr-xr-x 16 root root    3340 Apr 25 20:35 ..
drwxr-xr-x  2 root root      60 Apr 25 22:35 by-path
crw-rw----  1 root input 13, 64 Apr 25 22:35 event0
crw-rw----  1 root input 13, 65 Apr 25 22:35 event1
crw-rw----  1 root input 13, 74 Apr 25 20:35 event10
crw-rw----  1 root input 13, 66 Apr 25 22:35 event2
crw-rw----  1 root input 13, 67 Apr 25 22:35 event3
crw-rw----  1 root input 13, 68 Apr 25 22:35 event4
crw-rw----  1 root input 13, 69 Apr 25 22:35 event5
crw-rw----  1 root input 13, 70 Apr 25 20:35 event6
crw-rw----  1 root input 13, 71 Apr 25 22:35 event7
crw-rw----  1 root input 13, 72 Apr 25 20:35 event8
crw-rw----  1 root input 13, 73 Apr 25 20:35 event9
crw-rw----  1 root input 13, 63 Apr 25 22:35 mice
crw-rw----  1 root input 13, 32 Apr 25 22:35 mouse0
crw-rw----  1 root input 13, 33 Apr 25 20:35 mouse1

/dev/input/by-path:
total 0
drwxr-xr-x 2 root root  60 Apr 25 22:35 .
drwxr-xr-x 3 root root 340 Apr 25 20:35 ..
lrwxrwxrwx 1 root root   9 Apr 25 22:35 platform-thinkpad_acpi-event -> ../event7
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4258
Location: Dallas area

PostPosted: Thu Apr 25, 2019 10:56 pm    Post subject: Reply with quote

what does "dmesg|grep -i hid" show?

You could also do "udevadm info /dev/input/event#" and see what each event corresponds to, (# is event number)
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.1 (no-pie & modified) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Pearlseattle
Apprentice
Apprentice


Joined: 04 Oct 2007
Posts: 162
Location: Switzerland

PostPosted: Thu Apr 25, 2019 11:37 pm    Post subject: Reply with quote

Here they are:

Code:
# dmesg|grep -i hid
[    0.238792] hidraw: raw HID events driver (C) Jiri Kosina
[    4.011658] ish-hid {33AECD58-B679-4E54-9BD9-A04D34F0C226}: [hid-ish]: enum_devices_done OK, num_hid_devices=2
[    4.015258] hid-generic 001F:8086:22D8.0001: hidraw0: <UNKNOWN> HID v2.00 Device [hid-ishtp 8086:22D8] on
[    4.016735] hid-generic 001F:8086:22D8.0002: hidraw1: <UNKNOWN> HID v2.00 Device [hid-ishtp 8086:22D8] on



Code:
# for i in {1..12}; do udevadm info /dev/input/event$i; done
P: /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1/event1
N: input/event1
E: DEVNAME=/dev/input/event1
E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1/event1
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_PATH=acpi-PNP0C0E:00
E: ID_PATH_TAG=acpi-PNP0C0E_00
E: LIBINPUT_DEVICE_GROUP=19/0/3:PNP0C0E/button
E: MAJOR=13
E: MINOR=65
E: SUBSYSTEM=input
E: USEC_INITIALIZED=3297584

P: /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2
N: input/event2
E: DEVNAME=/dev/input/event2
E: DEVPATH=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_PATH=acpi-LNXPWRBN:00
E: ID_PATH_TAG=acpi-LNXPWRBN_00
E: LIBINPUT_DEVICE_GROUP=19/0/1:LNXPWRBN/button
E: MAJOR=13
E: MINOR=66
E: SUBSYSTEM=input
E: USEC_INITIALIZED=3293694

P: /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input3/event3
N: input/event3
E: DEVNAME=/dev/input/event3
E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input3/event3
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_PATH=acpi-LNXVIDEO:00
E: ID_PATH_TAG=acpi-LNXVIDEO_00
E: LIBINPUT_DEVICE_GROUP=19/0/6:LNXVIDEO/video
E: MAJOR=13
E: MINOR=67
E: SUBSYSTEM=input
E: USEC_INITIALIZED=3294508

P: /devices/platform/i8042/serio0/input/input4/event4
N: input/event4
E: DEVNAME=/dev/input/event4
E: DEVPATH=/devices/platform/i8042/serio0/input/input4/event4
E: ID_BUS=i8042
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: LIBINPUT_DEVICE_GROUP=11/1/1:isa0060/serio0
E: MAJOR=13
E: MINOR=68
E: SUBSYSTEM=input
E: USEC_INITIALIZED=3322597

P: /devices/platform/i8042/serio1/input/input6/event5
N: input/event5
E: DEVNAME=/dev/input/event5
E: DEVPATH=/devices/platform/i8042/serio1/input/input6/event5
E: EVDEV_ABS_00=1262:5679:44
E: EVDEV_ABS_01=1101:4824:65
E: EVDEV_ABS_35=1262:5679:44
E: EVDEV_ABS_36=1101:4824:65
E: ID_BUS=i8042
E: ID_INPUT=1
E: ID_INPUT_HEIGHT_MM=53
E: ID_INPUT_TOUCHPAD=1
E: ID_INPUT_TOUCHPAD_INTEGRATION=internal
E: ID_INPUT_WIDTH_MM=96
E: LIBINPUT_DEVICE_GROUP=11/2/7:isa0060/serio1
E: MAJOR=13
E: MINOR=69
E: SUBSYSTEM=input
E: USEC_INITIALIZED=3370202

P: /devices/pci0000:00/0000:00:1f.3/sound/card0/input10/event6
N: input/event6
E: DEVNAME=/dev/input/event6
E: DEVPATH=/devices/pci0000:00/0000:00:1f.3/sound/card0/input10/event6
E: ID_INPUT=1
E: ID_PATH=pci-0000:00:1f.3
E: ID_PATH_TAG=pci-0000_00_1f_3
E: LIBINPUT_DEVICE_GROUP=0/0/0:ALSA
E: MAJOR=13
E: MINOR=70
E: SUBSYSTEM=input
E: USEC_INITIALIZED=4376244

P: /devices/platform/thinkpad_acpi/input/input8/event7
N: input/event7
S: input/by-path/platform-thinkpad_acpi-event
E: DEVLINKS=/dev/input/by-path/platform-thinkpad_acpi-event
E: DEVNAME=/dev/input/event7
E: DEVPATH=/devices/platform/thinkpad_acpi/input/input8/event7
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_PATH=platform-thinkpad_acpi
E: ID_PATH_TAG=platform-thinkpad_acpi
E: KEYBOARD_KEY_01=screenlock
E: KEYBOARD_KEY_02=battery
E: KEYBOARD_KEY_03=sleep
E: KEYBOARD_KEY_04=wlan
E: KEYBOARD_KEY_06=switchvideomode
E: KEYBOARD_KEY_07=f21
E: KEYBOARD_KEY_08=f24
E: KEYBOARD_KEY_0b=suspend
E: KEYBOARD_KEY_0f=brightnessup
E: KEYBOARD_KEY_10=brightnessdown
E: KEYBOARD_KEY_11=kbdillumtoggle
E: KEYBOARD_KEY_13=zoom
E: KEYBOARD_KEY_14=volumeup
E: KEYBOARD_KEY_15=volumedown
E: KEYBOARD_KEY_16=mute
E: KEYBOARD_KEY_17=prog1
E: KEYBOARD_KEY_1a=f20
E: LIBINPUT_DEVICE_GROUP=19/17aa/5054:thinkpad_acpi
E: MAJOR=13
E: MINOR=71
E: SUBSYSTEM=input
E: USEC_INITIALIZED=3371359

P: /devices/pci0000:00/0000:00:1f.3/sound/card0/input11/event8
N: input/event8
E: DEVNAME=/dev/input/event8
E: DEVPATH=/devices/pci0000:00/0000:00:1f.3/sound/card0/input11/event8
E: ID_INPUT=1
E: ID_PATH=pci-0000:00:1f.3
E: ID_PATH_TAG=pci-0000_00_1f_3
E: LIBINPUT_DEVICE_GROUP=0/0/0:ALSA
E: MAJOR=13
E: MINOR=72
E: SUBSYSTEM=input
E: USEC_INITIALIZED=4376246

P: /devices/pci0000:00/0000:00:1f.3/sound/card0/input12/event9
N: input/event9
E: DEVNAME=/dev/input/event9
E: DEVPATH=/devices/pci0000:00/0000:00:1f.3/sound/card0/input12/event9
E: ID_INPUT=1
E: ID_PATH=pci-0000:00:1f.3
E: ID_PATH_TAG=pci-0000_00_1f_3
E: LIBINPUT_DEVICE_GROUP=0/0/0:ALSA
E: MAJOR=13
E: MINOR=73
E: SUBSYSTEM=input
E: USEC_INITIALIZED=4376385

P: /devices/platform/i8042/serio1/serio2/input/input9/event10
N: input/event10
E: DEVNAME=/dev/input/event10
E: DEVPATH=/devices/platform/i8042/serio1/serio2/input/input9/event10
E: ID_BUS=i8042
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_INPUT_POINTINGSTICK=1
E: LIBINPUT_DEVICE_GROUP=11/2/a:synaptics-pt/serio0
E: MAJOR=13
E: MINOR=74
E: POINTINGSTICK_CONST_ACCEL=1.0
E: POINTINGSTICK_SENSITIVITY=200
E: SUBSYSTEM=input
E: USEC_INITIALIZED=5036321

Unknown device, --name=, --path=, or absolute path in /dev/ or /sys expected.
Unknown device, --name=, --path=, or absolute path in /dev/ or /sys expected.


Ok, so now I am extremely ashamed of myself:
if I do a "cat /dev/input/event10" and move my (Lenovo) trackpoint I do get data.
Same thing if I "cat /dev/input/event4" and press a key on the keyboard.
But I really think that I did not get anything previously (but of course I might be wrong - but I tried on 2 different days under two completely different conditions... mmmhh...).
I'll have of course to roll at least 3 times on the floor to properly excuse myself for this post :cry:

A last weird thing is that none of the "event0" to "event10" nor "mice/mouse0/mouse1" show any output when I scroll/move using the laptop's clickpad (which is working fine as I see the cursor moving).
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4258
Location: Dallas area

PostPosted: Thu Apr 25, 2019 11:46 pm    Post subject: Reply with quote

Judging by the output of udevadm

event 5 is touchpad
and
event 10 is synaptics.

If you look at the output per event# you can pretty much guess what they are.
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.1 (no-pie & modified) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Pearlseattle
Apprentice
Apprentice


Joined: 04 Oct 2007
Posts: 162
Location: Switzerland

PostPosted: Sun Apr 28, 2019 5:25 pm    Post subject: Reply with quote

Thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum