[buug] Linux: mouse/pointer with text (gpm) & X
Michael Paoli
Michael.Paoli at cal.berkeley.edu
Fri Sep 18 00:04:00 PDT 2009
Question was asked at meeting about gpm and X configuration to
have them both simultaneously use mouse/pointer device (at least
on any active virtual terminal, and without changing configuration
when going between text and X virtual terminals).
Some slightly ancient configuration bits, but essentially as I
understand/recall it, key bits are - for the gpm configuration:
repeat_type=raw
and for X (XFree86 --> X.org):
Section "InputDevice"
...
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/gpmdata"
...
EndSection
Also, once in a great while, I'd sometimes find after a reboot that
mouse behavior wasn't correct - but a restart of gpm would correct it -
that may have been from some initialization timing issues between gpm
and X.
Configurations, e.g.:
$ grep '^[^#]' /etc/gpm.conf
device=/dev/psaux
responsiveness=
repeat_type=raw
type=autops2
append=''
sample_rate=
$ sed -ne '/^Section[ ]/,/^EndSection[ ]*$/{;/^Section[
]/h;/^Section[ ]/!H;/^EndSection[ ]*$/{x;/gpmdata/p;d;};};'
/etc/X11/XF86Config-4
Section "InputDevice"
Identifier "IBM ThinkPad T40p TYPE 2373-G1U TrackPoint via gpm"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/gpmdata"
Option "Protocol" "PS/2"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/gpmdata"
Option "Protocol" "PS/2"
EndSection
More information about the buug
mailing list