/dev/input/mice device not found

When attempting to start the gpm.service, it fails as it does not find the /dev/input/mice device… which does not exist.

It would appear that /dev/input/js0 (joytick?) is the mouse as is /dev/input/event4 according to the Xorg.0.log. So I made a symbolic link /dev/input/mice to /dev/input/js0 and changed the gpm.service to load the js0 but that does not work well.
I have tried modifying the gpm.serivce to use /dev/input/js0 and /dev/input/event4 and trying different mouse types but have not found the correct combination. If it is not simple, then I am doing it wrong.

The closest to “working” I have come is to copy the gpm.service to /etc/systemd/system/. Then modify two lines of the service file:
ConditionPathExists=/dev/input/js0
and
ExecStart=/usr/bin/gpm -m /dev/input/js0 -t js
This does produce the mouse cursor in the middle of the console but movement almost nonexistent. I can get the mouse pointer to move but only in one direction where it eventually becomes stuck against an edge of the console.
Close but not correct. Any ideas as to what I can try next?

Looking at which modules are loaded, I see psmouse, atkbd and libps2. The mouse does work in X.

What kernel are you running? I noticed some mouse issues on the LTS kernel, presumably due to some upstream change. When I went back to the native kernel it fixed itself so I didn’t dig into it much further at the time.

gpm.service is to use mouse at console not X.

Usually you have a lots of input devices that can act as mouse, like: external mouse, laptop mouse pad, touch screen, etc.

Find your mouse device with
ls -l /dev/input/by-id

Current SO version : 30550
5.2.3-809.native #1 SMP Fri Jul 26 03:09:30 PDT 2019 x86_64 GNU/Linux

On a bare-metal install on a NUC:
usb-Chicony_HP_Elite_USB_Keyboard-event-if01 -> …/event8
usb-Chicony_HP_Elite_USB_Keyboard-event-kbd -> …/event6
usb-Microsoft_Comfort_Mouse_3000-event-if00 -> …/event4
usb-Microsoft_Comfort_Mouse_3000-event-mouse -> …/event5

On a VM installation in Fusion:
usb-VMware_VMware_Virtual_USB_Mouse-event-mouse -> …/event1
usb-VMware_VMware_Virtual_USB_Mouse-if01-event-mouse -> …/event2
usb-VMware_VMware_Virtual_USB_Mouse-mouse -> …/js0

If I change the gpm.service to use the above “*-mouse” devices, gpm fails to initialize the mouse.

If I take a look at a CentOS system, I see a /dev/input/mice 13, 63. There is not a major 13 minor 63 device on either of these installations.

I have tried all reasonable choices for the mouse type -t (imps2, exps2, ps2, js).
js has produced the best results… a mouse pointer on the console which performs limited movement.

[ 22.419] (II) config/udev: Adding input device VMware VMware Virtual USB Mouse (/dev/input/event1)
[ 22.419] () VMware VMware Virtual USB Mouse: Applying InputClass “libinput pointer catchall”
[ 22.419] (II) Using input driver ‘libinput’ for ‘VMware VMware Virtual USB Mouse’
[ 22.473] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 31 paused 0
[ 22.474] (
) VMware VMware Virtual USB Mouse: always reports core events
[ 22.474] () Option “Device” “/dev/input/event1”
[ 22.474] (
) Option “_source” “server/udev”
[ 22.479] (II) event1 - VMware VMware Virtual USB Mouse: is tagged by udev as: Mouse
[ 22.479] (II) event1 - VMware VMware Virtual USB Mouse: device is a pointer
[ 22.480] (II) event1 - VMware VMware Virtual USB Mouse: device removed
[ 22.480] () Option “config_info” “udev:/sys/devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-1/2-1:1.0/0003:0E0F:0003.0001/input/input1/event1”
[ 22.480] (II) XINPUT: Adding extended input device “VMware VMware Virtual USB Mouse” (type: MOUSE, id 7)
[ 22.481] (
) Option “AccelerationScheme” “none”
[ 22.481] () VMware VMware Virtual USB Mouse: (accel) selected scheme none/0
[ 22.481] (
) VMware VMware Virtual USB Mouse: (accel) acceleration factor: 2.000
[ 22.481] () VMware VMware Virtual USB Mouse: (accel) acceleration threshold: 4
[ 22.485] (II) event1 - VMware VMware Virtual USB Mouse: is tagged by udev as: Mouse
[ 22.486] (II) event1 - VMware VMware Virtual USB Mouse: device is a pointer
[ 22.487] (II) config/udev: Adding input device VMware VMware Virtual USB Mouse (/dev/input/js0)
[ 22.487] (II) No input driver specified, ignoring this device.
[ 22.487] (II) This device may have been added with another device file.
[ 22.488] (II) config/udev: Adding input device VMware VMware Virtual USB Mouse (/dev/input/event2)
[ 22.488] (
) VMware VMware Virtual USB Mouse: Applying InputClass “libinput pointer catchall”
[ 22.488] (II) Using input driver ‘libinput’ for ‘VMware VMware Virtual USB Mouse’
[ 22.542] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 32 paused 0
[ 22.542] () VMware VMware Virtual USB Mouse: always reports core events
[ 22.542] (
) Option “Device” “/dev/input/event2”
[ 22.542] () Option “_source” “server/udev”
[ 22.545] (II) event2 - VMware VMware Virtual USB Mouse: is tagged by udev as: Mouse
[ 22.546] (II) event2 - VMware VMware Virtual USB Mouse: device is a pointer
[ 22.546] (II) event2 - VMware VMware Virtual USB Mouse: device removed
[ 22.547] (
) Option “config_info” “udev:/sys/devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-1/2-1:1.1/0003:0E0F:0003.0002/input/input2/event2”
[ 22.547] (II) XINPUT: Adding extended input device “VMware VMware Virtual USB Mouse” (type: MOUSE, id 8)
[ 22.547] () Option “AccelerationScheme” “none”
[ 22.547] (
) VMware VMware Virtual USB Mouse: (accel) selected scheme none/0
[ 22.547] () VMware VMware Virtual USB Mouse: (accel) acceleration factor: 2.000
[ 22.547] (
) VMware VMware Virtual USB Mouse: (accel) acceleration threshold: 4
[ 22.552] (II) event2 - VMware VMware Virtual USB Mouse: is tagged by udev as: Mouse
[ 22.553] (II) event2 - VMware VMware Virtual USB Mouse: device is a pointer
[ 22.554] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
[ 22.554] () AT Translated Set 2 keyboard: Applying InputClass “libinput keyboard catchall”
[ 22.554] (II) Using input driver ‘libinput’ for ‘AT Translated Set 2 keyboard’
[ 22.557] (II) systemd-logind: got fd for /dev/input/event3 13:67 fd 33 paused 0
[ 22.557] (
) AT Translated Set 2 keyboard: always reports core events
[ 22.557] () Option “Device” “/dev/input/event3”
[ 22.557] (
) Option “_source” “server/udev”
[ 22.559] (II) event3 - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[ 22.559] (II) event3 - AT Translated Set 2 keyboard: device is a keyboard
[ 22.560] (II) event3 - AT Translated Set 2 keyboard: device removed
[ 22.560] () Option “config_info” “udev:/sys/devices/platform/i8042/serio0/input/input3/event3”
[ 22.560] (II) XINPUT: Adding extended input device “AT Translated Set 2 keyboard” (type: KEYBOARD, id 9)
[ 22.563] (II) event3 - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[ 22.563] (II) event3 - AT Translated Set 2 keyboard: device is a keyboard
[ 22.566] (II) config/udev: Adding input device ImPS/2 Generic Wheel Mouse (/dev/input/event4)
[ 22.566] (
) ImPS/2 Generic Wheel Mouse: Applying InputClass “libinput pointer catchall”
[ 22.566] (II) Using input driver ‘libinput’ for ‘ImPS/2 Generic Wheel Mouse’
[ 22.568] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 34 paused 0
[ 22.568] () ImPS/2 Generic Wheel Mouse: always reports core events
[ 22.568] (
) Option “Device” “/dev/input/event4”
[ 22.569] () Option “_source” “server/udev”
[ 22.571] (II) event4 - ImPS/2 Generic Wheel Mouse: is tagged by udev as: Mouse
[ 22.571] (II) event4 - ImPS/2 Generic Wheel Mouse: device is a pointer
[ 22.571] (II) event4 - ImPS/2 Generic Wheel Mouse: device removed
[ 22.571] (
) Option “config_info” “udev:/sys/devices/platform/i8042/serio1/input/input5/event4”
[ 22.571] (II) XINPUT: Adding extended input device “ImPS/2 Generic Wheel Mouse” (type: MOUSE, id 10)
[ 22.571] () Option “AccelerationScheme” “none”
[ 22.571] (
) ImPS/2 Generic Wheel Mouse: (accel) selected scheme none/0
[ 22.571] () ImPS/2 Generic Wheel Mouse: (accel) acceleration factor: 2.000
[ 22.571] (
) ImPS/2 Generic Wheel Mouse: (accel) acceleration threshold: 4
[ 22.574] (II) event4 - ImPS/2 Generic Wheel Mouse: is tagged by udev as: Mouse

The portion of the Xorg.0.log above shows a bit of gyration concerning the mouse, maybe it will shed a bit of light. Below is output from dmesg:

[ 2.029542] usb 1-1: Manufacturer: VMware, Inc.
[ 2.034606] usb 2-1: New USB device found, idVendor=0e0f, idProduct=0003, bcdDevice= 1.02
[ 2.034608] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.034610] usb 2-1: Product: VMware Virtual USB Mouse
[ 2.034612] usb 2-1: Manufacturer: VMware
[ 2.048931] input: VMware VMware Virtual USB Mouse as /devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-1/2-1:1.0/0003:0E0F:0003.0001/input/input1
[ 2.049579] hid-generic 0003:0E0F:0003.0001: input,hidraw0: USB HID v1.10 Mouse [VMware VMware Virtual USB Mouse] on usb-0000:02:00.0-1/input0
[ 2.054364] input: VMware VMware Virtual USB Mouse as /devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-1/2-1:1.1/0003:0E0F:0003.0002/input/input2
[ 2.055364] hid-generic 0003:0E0F:0003.0002: input,hidraw1: USB HID v1.10 Mouse [VMware VMware Virtual USB Mouse] on usb-0000:02:00.0-1/input1

The list of loaded modules is below:

Module Size Used by
rfcomm 61440 2
bnep 24576 2
vmw_vsock_vmci_transport 32768 2
vsock 36864 3 vmw_vsock_vmci_transport
btusb 49152 0
btrtl 20480 1 btusb
btbcm 16384 1 btusb
btintel 20480 1 btusb
bluetooth 536576 27 btrtl,btintel,btbcm,bnep,btusb,rfcomm
psmouse 135168 0
ecdh_generic 16384 1 bluetooth
rfkill 28672 5 bluetooth
ecc 28672 1 ecdh_generic
atkbd 32768 0
libps2 20480 2 atkbd,psmouse
serio_raw 20480 0
vmw_balloon 24576 0
uvcvideo 98304 0
videobuf2_vmalloc 20480 1 uvcvideo
joydev 24576 0
videobuf2_memops 20480 1 videobuf2_vmalloc
videobuf2_v4l2 24576 1 uvcvideo
videobuf2_common 53248 2 videobuf2_v4l2,uvcvideo
videodev 204800 3 videobuf2_v4l2,uvcvideo,videobuf2_common
media 53248 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
snd_ens1371 28672 2
sr_mod 24576 0
snd_ac97_codec 131072 1 snd_ens1371
ac97_bus 16384 1 snd_ac97_codec
snd_rawmidi 36864 1 snd_ens1371
snd_seq_device 16384 1 snd_rawmidi
gameport 20480 1 snd_ens1371
snd_pcm 114688 2 snd_ac97_codec,snd_ens1371
snd_timer 36864 1 snd_pcm
snd 81920 10 snd_seq_device,snd_timer,snd_ac97_codec,snd_pcm,snd_rawmidi,snd_ens1371
cdrom 69632 1 sr_mod
soundcore 16384 1 snd
e1000 139264 0
vmw_vmci 69632 2 vmw_balloon,vmw_vsock_vmci_transport
vmwgfx 286720 4
pata_acpi 16384 0
i2c_piix4 28672 0
i8042 28672 0
ac 16384 0

The event handlers are:
N: Number=0 Name=kbd
N: Number=1 Name=sysrq (filter)
N: Number=2 Name=evdev Minor=64
N: Number=3 Name=joydev Minor=0
N: Number=4 Name=rfkill

Those outputs are from Clear Linux or Centros?

The outputs are from Clear Linux. Only the one post of the existing devices on CentOS is not CL.