Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 03-05-2013, 05:59 PM   #16
Registered: May 2007
Distribution: LFS
Posts: 584

Rep: Reputation: 171Reputation: 171

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...
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...
Originally Posted by linux-3.8 help


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...
Originally Posted by linux-3.8 help


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
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...
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...
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).

Last edited by stoat; 03-05-2013 at 08:05 PM.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting gnome desktop started in fedora core 15 paul62 Fedora 1 10-15-2011 11:38 PM
Litotas Desktop, a new Linux Desktop environment, work started Endarur Programming 3 03-12-2011 06:40 AM
Gnome how to jump to second find tkalfaoglu Linux - Newbie 1 04-21-2008 07:15 AM
desktop configuration file on blfs ashmita04 Linux From Scratch 1 07-18-2007 10:12 PM
Linux Newbie Jump Started!? wingnut3140 Linux - Newbie 4 02-10-2007 06:23 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration