GPM.CONF(5)
π GPM.CONF(5) π
okay bestie, quick vibe check: this is gpm.conf, the startup configuration file for the gpm daemon, and it lives in the File Formats Manual section. yes it's a file format page, yes it's iconic, let's go π¦
β¨ NAME β¨
gpm.conf β the startup configuration file for gpm π
πΈ DESCRIPTION πΈ
so like. gpm.conf is where you write down the options that get handed to the gpm daemon when it starts up. and here's the tea π: it is parsed by the init script, not by gpm itself. so don't come for gpm about it, she's not even the one reading this file.
the format is variable assignments in Bourne shell syntax:
variable=value
with no extra spaces, bestie, i'm so serious. and if you wanna embed spaces or other shell metacharacters in your values? use quotes, exactly like you would in shell scripting. blank lines and lines that start with a hash (#) are just ignored, they're not the main character π
every setting here works by setting flags on the gpm command line β those flags are all documented over in gpm(8), go read her too, she ate. the variable names you get are:
deviceβ the device file for your primary mouse. sets-m. πtypeβ the protocol for your primary mouse. sets-t.device2,type2β literally the same asdeviceandtypebut for your secondary mouse. these set-mand-tafter passing-M. and heads up: if either one of these is defined, both must be. no picking favorites.responsivenessβ the responsiveness for your primary mouse. sets-r.sample_rateβ the sample rate for your primary mouse. sets-s.repeat_typeβ turns on the gpm repeater and sets the repeater protocol, using the-Rflag. a repeat type ofnone, or an empty value, will disable the repeater. bye repeater πappendβ anything you put here gets appended to thegpmcommand line. and if you're using multiple options, you'll need to wrap the value in quotes (""). no cap.
π EXAMPLES π
here's a simple gpm.conf for a PS/2 mouse whose protocol should be autodetected, and which should be repeated in /dev/gpmdata as a serial Microsoft Intellimouse. she's lowkey perfect:
# Sample gpm.conf
device=/dev/psaux
type=autops2
repeat_type=ms3
this will cause the daemon to be started as:
gpm -m /dev/psaux -t autops2 -Rms3
ate and left no crumbs π₯
π¦ FILES π¦
/etc/gpm.conf
π SEE ALSO π
and ooh, little bonus lore: dpkg-reconfigure gpm can be used to generate and update the gpm.conf file automatically. so if you're feeling lazy (real), that's your girl π
okay that's the whole page, you're basically a gpm.conf expert now, mwah π«Ά this was Debian 3.0, dated January 5, 2005 β yeah she's vintage, she's a classic, periodt π
π¦ where this page comes from
- debian bookworm: gpm 1.20.7-10+b1 Β· GPL-2.0-or-later
- debian trixie: gpm 1.20.7-11+b2 Β· GPL-2.0-or-later
- ubuntu jammy: gpm 1.20.7-10build1 Β· GPL-2.0-or-later
- ubuntu noble: gpm 1.20.7-11 Β· GPL-2.0-or-later
- ubuntu questing: gpm 1.20.7-12
- ubuntu resolute: gpm 1.20.7-12build1 Β· GPL-2.0-or-later
- ubuntu stonking: gpm 1.20.7-12build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms