Bug#1105785: evtest: Sort the list of event sources numerically, not le
From
Gunnar Wolf@21:1/5 to
All on Wed May 14 20:40:01 2025
Package: evtest
Version: 1:1.35-1
Severity: minor
Tags: upstream
When running evtest, a list of devices providing information via/dev/input/event* is generated. However, its ordering is not clear to
the user:
# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Power Button
/dev/input/event1: Power Button
/dev/input/event10: HDA Intel HDMI HDMI/DP,pcm=7
/dev/input/event11: HDA Intel HDMI HDMI/DP,pcm=8
/dev/input/event12: HDA Digital PCBeep
/dev/input/event13: HDA Intel PCH Front Mic
/dev/input/event14: HDA Intel PCH Rear Mic
/dev/input/event15: HDA Intel PCH Line
/dev/input/event16: HDA Intel PCH Line Out
/dev/input/event17: HDA Intel PCH Front Headphone
/dev/input/event2: Video Bus
/dev/input/event3: Lite-On Tech IBM USB Travel Keyboard with UltraNav
/dev/input/event4: Lite-On Tech IBM USB Travel Keyboard with UltraNav System Control
/dev/input/event5: Lite-On Tech IBM USB Travel Keyboard with UltraNav Consumer Control
/dev/input/event6: Synaptics Inc. Composite TouchPad / TrackPoint
/dev/input/event7: Synaptics Inc. Composite TouchPad / TrackPoint (Stick)
/dev/input/event8: PC Speaker
/dev/input/event9: HDA Intel HDMI HDMI/DP,pcm=3
Select the device event number [0-17]:
I do not believe my system to be too atypical; having more than 9 event
sources is common. It was confusing for me to be asked for a numbered line,
and have a list in the wrong order. I think it should be presented as:
# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Power Button
/dev/input/event1: Power Button
/dev/input/event2: Video Bus
/dev/input/event3: Lite-On Tech IBM USB Travel Keyboard with UltraNav
/dev/input/event4: Lite-On Tech IBM USB Travel Keyboard with UltraNav System Control
/dev/input/event5: Lite-On Tech IBM USB Travel Keyboard with UltraNav Consumer Control
/dev/input/event6: Synaptics Inc. Composite TouchPad / TrackPoint
/dev/input/event7: Synaptics Inc. Composite TouchPad / TrackPoint (Stick)
/dev/input/event8: PC Speaker
/dev/input/event9: HDA Intel HDMI HDMI/DP,pcm=3
/dev/input/event10: HDA Intel HDMI HDMI/DP,pcm=7
/dev/input/event11: HDA Intel HDMI HDMI/DP,pcm=8
/dev/input/event12: HDA Digital PCBeep
/dev/input/event13: HDA Intel PCH Front Mic
/dev/input/event14: HDA Intel PCH Rear Mic
/dev/input/event15: HDA Intel PCH Line
/dev/input/event16: HDA Intel PCH Line Out
/dev/input/event17: HDA Intel PCH Front Headphone
Select the device event number [0-17]:
Thank you very much!
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.8.12-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages evtest depends on:
ii libc6 2.41-7
Versions of packages evtest recommends:
ii evemu-tools 2.7.0-4+b1
evtest suggests no packages.
-- no debconf information
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)