Piling on just to add regarding that gpm config file that everything most of us need to know for those variables is probably in the paragraph following those examples in the book. It probably could stand some editing for clarity, but it does give the following example device names...
Quote:
Originally Posted by GPM-1.20.7
/dev/ttyS0 for a serial mouse (on Windows this is COM1)
/dev/input/mice is often used for USB mice
/dev/psaux for PS2 mice
|
You probably should look around in /dev to see what is available there. The device node /dev/psaux is sort of considered legacy now. It's still available but has to be enabled in the kernel for it to appear in /dev (CONFIG_INPUT_MOUSEDEV_PSAUX=y). I don't think it's enabled by default. From the kernel help...
Quote:
Originally Posted by linux-3.8 help
CONFIG_INPUT_MOUSEDEV_PSAUX:
Say Y here if you want your mouse also be accessible as char device
10:1 - /dev/psaux. The data available through /dev/psaux is exactly
the same as the data from /dev/input/mice.
|
Currently for me, that is not set and does not appear in /dev.
Keith Hedger is using /dev/input/mouse0 for a USB mouse. I am successfully using /dev/input/mice for a PS/2 wheel mouse. Either of those probably will work with most any mouse used nowadays. Both are provided by CONFIG_INPUT_MOUSEDEV=y in the kernel config...
Quote:
Originally Posted by linux-3.8 help
CONFIG_INPUT_MOUSEDEV:
Say Y here if you want your mouse to be accessible as char devices
13:32+ - /dev/input/mouseX and 13:63 - /dev/input/mice as an
emulated IntelliMouse Explorer PS/2 mouse. That way, all user space
programs (including SVGAlib, GPM and X) will be able to use your
mouse.
|
Then, armed with a device name, run that gpm command shown in that same paragraph in the book to see a list of the available protocols...
Code:
gpm -m /dev/input/mice -t -help
You get a big list of stuff for the available protocols. Here are some links to Gentoo and Arch wikis for more verbosity on those...
http://www.gentoo.org/doc/en/gpm.xml
https://wiki.archlinux.org/index.php..._Mouse_Support
http://linux.about.com/library/cmd/b..._gpm-types.htm
I'm using imps2 for a PS/2 wheel mouse. I never have to put anything in for GPMOPTS.
So I guess the thing to do is look around in /dev for mouse input device nodes, review the kernel config if what you want or need is not there, and experiment. It can't hurt anything to try stuff. As a matter of fact, plan on recompiling your first kernel two or three dozen times while you adjust it for and learn about more things just like this. I did anyway.
P.S. I usually open the book with Lynx by just specifying the path to the index.html file with the lynx command (
lynx /mnt/temp/book/index.html, for example).