Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: How to get gpm working, FINALLY!< Next Oldest | Next Newest >
SaidinUnleashed Offline





Group: Members
Posts: 1428
Joined: Mar. 2004
Posted: May 12 2005,04:46 QUOTE

After several failed attemps, and some help from Seth_Has_Errors in IRC, I finally have a way to get gpm working.

If you don't know what gpm is, you probably don't need it, but it's a console mouse server.

Anywho, this requires...

dsl-dpkg.dsl
gnu-utils.dsl (not really sure it needs this, but it never hurts)
Xfree86.dsl  (if you actually USE X)

I have NOT been able to get Kdrive and gpm to cooperate, but I will keep fiddling.

Step 1. Install the required .dsls, and get Xfree86 running, if applicable.

Step 2. Quit X, su to root, make sure you are pointed to Debian Stable, and run apt-get update.

If you use X, as root, open XF86Config-4 in an editor, scroll down to the mouse definition and comment out the device line with a "#". On the line below it, type the following

Code Sample
Option          "Device"                "/dev/gpmdata"


Remember where your mouse was originally at, and the protocal, because we will need those in a sec.

Step 3. apt-get install gpm

It should start the config script for gpm when it's done installing, but we aren't going to use it, because it kinda sucks, so enter whatever you want, or hit ctrl+c to kill it.

Step 4. Test it.

Run the following command, replacing the values I told you to remember earlier where indicated.
Code Sample
gpm -m <location of mouse> -t <protocal> -Rraw


If it worked, and it should, you can just add that line to /opt/bootlocal.sh to have it start up every time. If not, killall gpm. You will need to play with the protocal setting, most likely. Play around if needed.

Whatever you do, do not change the -Rraw append. If you ever want to use X, you will need it.

If you use X, exit out of su, and start X. make sure your mouse is working properly, etc. It should be fine. :P


-J.P.


--------------
They say if you play a Microsoft CD backwards, you hear satanic messages. That's nothing, cause if you play it forwards, it installs Windows.

Unleash the power of the TILDE~~~
Back to top
Profile PM AOL MSN YIM 
Seth Offline





Group: Members
Posts: 17
Joined: April 2005
Posted: May 12 2005,05:41 QUOTE

ok an anendum to the above, it will work with kdrive, my mouse was filthy, so it was not tracking right anyway.

any way:
fire up a xterm, and type : sudo nano -w /home/dsl/.xserverrc
find the -mouse /dev/mousedevice (/dev/psaux if u have a ps/2 mouse)  part of the exec command and change it to -mouse /dev/gpmdata
press ctrl+x answer y then press return and exit and restart x

note :
-Seth
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: May 12 2005,16:19 QUOTE

Great job, guys!

This is an important development.

Why?

Because there are people out there with strange mouse pointer devices like touchpads, touchscreens, trackballs and nonstandard mice that cannot use the built in X-Windows system that comes with DSL (Kdrive/TinyX/Freedesktop.org).

However, if their devices are supported under gpm, it is now possible to use gpm in repeater mode and work with Kdrive and without the need to install the full-blown XFree86 which is important for computers with limited resources because

gpm+kdrive

uses less resources than

fullblown XFree86

This should go into the docs.
Back to top
Profile PM 
Seth Offline





Group: Members
Posts: 17
Joined: April 2005
Posted: May 12 2005,17:21 QUOTE

ok an update, heres my small list of devices that work under gpm & kdrive :

Synaptics touchpad (generic) PS/2 : Works under both
Kigston mouse (mouse in a box) Serial\PS/2 : works with the PS/2 adaptor, waiting for serial tests
Standard wheel mouse (genaric) PS/2 : Works
Ibm Ps/2 mouse PS/2 : Works

disclaimer , it worked for me but your millage may vary, so please dont yell if its not working right away :)
Back to top
Profile PM 
Seth Offline





Group: Members
Posts: 17
Joined: April 2005
Posted: May 30 2005,02:47 QUOTE

*update*

serial mice will work, it will not work with a ps/2 to serial adaptor tho
also setting it 'mouse systems' mode seems to cause problems here

Seth
Back to top
Profile PM 
5 replies since May 12 2005,04:46 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: How to get gpm working

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code