5 kx #!/bin/sh
5 kx #
5 kx # Start/stop/restart the GPM mouse server:
5 kx #
5 kx
5 kx if [ "$1" = "stop" ]; then
5 kx echo "Stopping gpm..."
5 kx /usr/sbin/gpm -k
5 kx elif [ "$1" = "restart" ]; then
5 kx echo "Restarting gpm..."
5 kx /usr/sbin/gpm -k
5 kx sleep 1
5 kx /usr/sbin/gpm -m /dev/mouse -t imps2
5 kx else # assume $1 = start:
5 kx echo "Starting gpm: /usr/sbin/gpm -m /dev/mouse -t imps2"
5 kx /usr/sbin/gpm -m /dev/mouse -t imps2
5 kx fi
5 kx
5 kx # There is another way to run GPM, where it acts as a repeater outputting a
5 kx # virtual MouseSystems mouse on /dev/gpmdata. This is useful for feeding
5 kx # gpm's data to X, especially if you've got a busmouse (in that situation X
5 kx # and gpm may not coexist without using a repeater). To try running a GPM
5 kx # repeater for X, change the gpm command line to look like this:
5 kx # /usr/sbin/gpm -R msc -m /dev/mouse -t imps2
5 kx # Then, make sure that the mouse configuration in your XF86Config file refers
5 kx # to the repeater device (/dev/gpmdata) and a MouseSystems mouse type. If you
5 kx # edit the file directly, you'll want the lines to look like this (minus the
5 kx # comment marks '#' shown here, of course):
5 kx #Section "Pointer"
5 kx # Protocol "MouseSystems"
5 kx # Device "/dev/gpmdata"