Probably worng device type at gpm configuration.
GPM is by default started with the following parameters:
-m /dev/input/mice -t imps2.
Maybe this can help.
Note that in this example, the LFS built in Virtual Environment.
1. Find mouse device
Code:
# ls -l /dev/input/by-id
lrwxrwxrwx 1 root root 9 Mar 18 20:18 usb-VMware_VMware_Virtual_USB_Mouse-event-mouse -> ../event4
So mouse device is /dev/input/event4
2. Find mouse type
Code:
# gpm -m /dev/input/event2 -t help
gpm 1.20.7
Available mouse types are:
r name synonym description
mman The "MouseMan" and similar devices (3/4 bytes per packet).
Synonyms: Mouseman
ms The original ms protocol, with a middle-button extension.
Synonyms:
acecad Acecad tablet absolute mode(Sumagrapics MM-Series mode)
Synonyms:
bare Unadorned ms protocol. Needed with some 2-buttons mice.
Synonyms: Microsoft
bm Micro$oft busmice and compatible devices.
Synonyms: BusMouse
brw Fellowes Browser - 4 buttons (and a wheel) (dual protocol?)
Synonyms:
cal Calcomp UltraSlate
Synonyms:
calr Calcomp UltraSlate - relative mode
Synonyms:
etouch EloTouch touch-screens (only button-1 events, by now)
Synonyms:
evdev Linux Event Device
Synonyms:
exps2 IntelliMouse Explorer (ps2) - 3 buttons, wheel unused
Synonyms: ExplorerPS/2
js Joystick mouse emulation
Synonyms: Joystick
genitizer "Genitizer" tablet, in relative mode.
Synonyms:
gunze Gunze touch-screens (only button-1 events, by now)
Synonyms:
* imps2 Microsoft Intellimouse (ps2)-autodetect 2/3 buttons,wheel unused
Synonyms:
logi Used in some Logitech devices (only serial).
Synonyms: Logitech
logim Turn logitech into Mouse-Systems-Compatible.
Synonyms:
mm MM series. Probably an old protocol...
Synonyms: MMSeries
* ms3 Microsoft Intellimouse (serial) - 3 buttons, wheel unused
Synonyms:
ms+ Like 'ms', but allows dragging with the middle button.
Synonyms:
ms+lr 'ms+', but you can reset m by pressing lr (see man page).
Synonyms:
* msc Mouse-Systems-Compatible (5bytes). Most 3-button mice.
Synonyms: MouseSystems
mtouch MicroTouch touch-screens (only button-1 events, by now)
Synonyms:
ncr Ncr3125pen, found on some laptops
Synonyms:
netmouse Genius NetMouse (ps2) - 2 buttons and 2 buttons 'up'/'down'.
Synonyms:
pnp Plug and pray. New mice may not run with '-t ms'.
Synonyms:
* ps2 Busmice of the ps/2 series. Most busmice, actually.
Synonyms: PS/2
* sun 'msc' protocol, but only 3 bytes per packet.
Synonyms:
* summa Summagraphics or Genius tablet absolute mode(MM-Series)
Synonyms:
syn The "Synaptics" serial TouchPad.
Synonyms: synaptics
synps2 The "Synaptics" PS/2 TouchPad
Synonyms: synaptics_ps2
twid Twidddler keyboard
Synonyms:
vsxxxaa The DEC VSXXX-AA/GA serial mouse on DEC workstations.
Synonyms:
wacom Wacom Protocol IV Tablets: Pen+Mouse, relative+absolute mode
Synonyms:
wp Genius WizardPad tablet
Synonyms: wizardpad
For event mouse device, the type is
evdev.
For other mouse device, find the correct type.
So GPM parameters:
-m /dev/input/event4 -t evdev
3. Edit gpm systemd unit file
Edit /lib/systemd/system/gpm.service file
Change default configuration
ExecStart=/usr/sbin/gpm -m /dev/input/mice -t imps2
into
ExecStart=/usr/sbin/gpm -m /dev/input/event4 -t evdev
4. Restart gpm
Code:
# systemctl restart gpm