30

I am running a userspace driver for a /dev/uinput device in a Wayland desktop session. The instructions suggest running xinput list to confirm that the device is detected.

Of course, xinput is an X.org application. What is the equivalent command for Wayland? (A GNOME GUI equivalent is acceptable.)

mmoya
  • 6,008
lofidevops
  • 3,159

3 Answers3

30

On Debian the command is:

$ sudo libinput list-devices
# requires the libinput-tools package

On arch-linux:

# libinput list-devices

To list just the device names, no details, use grep:

$ sudo libinput list-devices | grep Device
lofidevops
  • 3,159
GAD3R
  • 66,769
  • That does a part of xinput's functionality. How woule one create and remove logical master devices (I think they're called "seats" in Wayland lingo...)? – bk138 Nov 10 '20 at 08:58
2

You should be able to use sudo evemu-describe to list the input devices found in /dev/input/event*. It is interactive unless you give it a specific device from the list.

meuh
  • 51,383
2

According to man 5 sway-input, you could use swaymsg -t get_inputs.

malobre
  • 19
  • Nice one! This is what you need to do if you need to have device specific configuration (e.g. enabling natural scroll for the touchpad in the sway config) because this command gives you the the identifier you need for that. – hurrtz Feb 04 '20 at 10:28