Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4716 - gpm goes (often) crazy switching from X to console
Summary: gpm goes (often) crazy switching from X to console
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Michael M Nazaroff (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-08 16:23 UTC by Alessandro Pisani
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Pisani 2002-07-08 16:23:13 UTC
gpm-1.20.0 goes often crazy when i switch from X (alt-f7) to console (alt-fX) :
i'm unable to use mouse in console until i log in and i run /etc/init.d/gpm restart
i have an ipms/2 mouse.
Comment 1 Matt Taylor 2002-07-08 18:18:46 UTC
I have a simalar problem, I also have a imps2 mouse

gpm dies at some point after I have been running X for a while, and I get this
when I try to restart gpm:

Started gpm successfully. Entered daemon mode.
=== ERROR ===: [/var/tmp/portage/gpm-1.20.0-r3/work/gpm-1.20.0/src/mice.c(1744)]: 
imps2: PS/2 mouse failed (3 button) init
oops(): [/var/tmp/portage/gpm-1.20.0-r3/work/gpm-1.20.0/src/gpm.c(968)]: 
mouse initialization failed

and I can't just do a /etc/init.d/gpm restart, cuz the proccess died so the
script chokes.  I have to do init.d/gpm zap and rm /var/run/gpm/pid before doing
a init.d/gpm start
Comment 2 Michael M Nazaroff (RETIRED) gentoo-dev 2002-07-09 12:43:38 UTC
I have gpm.. :o/ ok well I known this one was coming up and haven't found a fix
yet.. but it's been awhile since I tried so anyways.. naz is going to get a
crackin on it.

Snazzy Nazzy
Comment 3 Alessandro Pisani 2002-07-17 09:21:36 UTC
Michael: some additional informations: when switching from X to console, gpm 
sometimes lose the ability to select text (click+drag will do nothing) until 
restarted. more often, as said previously, i simply crash of a sudden death 
forcing user to use /etc/init.d/gpm zap etc etc... 
 
Alessandro  
Comment 4 Michael M Nazaroff (RETIRED) gentoo-dev 2002-08-02 14:23:26 UTC
I was wondering if there is a way you can get me all the logs etc from when gpm
dies, or strace it.. I just need to find out why it can't initilize the mouse. 
This should probably be sent up stream though.. Gentoo already has a heavily
modified gpm.. since it's so b0rked.

Naz
Comment 5 Alessandro Pisani 2002-08-10 15:24:41 UTC
Naz: my gpm just crashed switching from X to console: here there is the error   msg:     === ERROR ===:  [/var/tmp/portage/gpm-1.20.0-r3/work/gpm-1.20.0/src/mice.c(1762)]:  Name=Gaim imps2: PS/2 mouse failed setup, continuing...  Terminal=0                                             === ERROR ===:  [/var/tmp/portage/gpm-1.20.0-r3/work/gpm-1.20.0/src/mice.c(1762)]:  ~                                                        imps2: PS/2 mouse  failed setup, continuing...  ~                     === ERROR ===:  [/var/tmp/portage/gpm-1.20.0-r3/work/gpm-1.20.0/src/mice.c(1771)]:  ~                       imps2: Auto-detected unknown mouse type 250, assuming  standard PS/2  ~          === ERROR ===:  [/var/tmp/portage/gpm-1.20.0-r3/work/gpm-1.20.0/src/mice.c(1771)]:  ~            imps2: Auto-detected unknown mouse type 250, assuming standard  PS/2    ---  I have an original Microsoft IntelliMouse Optical USB/PS2 HTH  PS: please, help us poor users with gpm ^_^ - thank you in advance for your work, i know gpm is really harsh to be debugged :)  Alessandro 
Comment 6 Troy Dack 2002-08-11 20:32:56 UTC
How do you guys refer to the mouse device in your X86Config file?

I've got a MS Intellimouse Explorer optical with 7 buttons all up (3 main
buttons, scroll wheel, 2 side buttons) and switching X<->Console works fine.

I've configured gpm to repeat the mouse data to /dev/gpm and then I point X @
/dev/gpm instead of /dev/mouse or /dev/psaux

(When I get back to my gentoo box I'll add my /etc/conf.d/gpm and the relevant
portion of my /etc/X11/XF86Config files)

-- 
   Troy.
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-03 04:34:22 UTC
Had this issue as well, but got a imps2 compadible usb mouse, and now it seems
fixed.  Had a ps/2 before.  I dont repeat the data to /dev/gpm.
Comment 8 Alessandro Pisani 2002-12-13 05:09:45 UTC
on my machine the problem (apparently) disapperead using this configuration:

in /etc/conf.d/gpm:
MOUSE="imps2"
MOUSEDEV="/dev/mouse"
REPEAT_TYPE=raw
APPEND="-g 1 -A 60"

in /etc/X11/XF86Config-4:
Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Device" "/dev/gpmdata"
    Option      "Protocol" "IMPS/2"
    Option      "Emulate3Buttons" "on"
    Option      "ZAxisMapping" "4 5"
EndSection


(please note the "Device" "/dev/gpmdata"  in the XF86Config-4 file)
i was previously using /dev/mouse in XF86Config-4 and no repeat mode in gpm but
switching to this solution *seems* to make both gpm and X happy and friendly
each other; i'll let you know if more testing will confirm (or not) this config
is the right solution.

HTH,
Alessandro
Comment 9 Alessandro Pisani 2002-12-20 09:14:50 UTC
marking as "fixed" (fixed by 0.96 ebuild, that is)
Comment 10 Alessandro Pisani 2002-12-20 09:15:50 UTC
closed the wrong one, sorry
Comment 11 Alessandro Pisani 2003-01-02 09:07:13 UTC
the config I posted previously fixes the problem on my box: resolving as
WORKS_FOR_ME.

Bye