Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33550 - need to start gpm twice
Summary: need to start gpm twice
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-15 04:42 UTC by Joerg Schaible
Modified: 2005-03-19 05: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 Joerg Schaible 2003-11-15 04:42:59 UTC
I have a imps2 mouse. Unfortunately gpm fails always to initialize the mouse at 
first start with the following error lines: 
 
*** err [mice.c(1877)]: imps2: PS/2 mouse failed to read id, assuming standard 
PS/2 
*** err [mice.c(18883)]: imps2: PS/2 mouse failed setup, continuing... 
 
Restarting gpm there is no problem, the mouse is working as expected. Therefore 
I've changed the init script to start gpm, kill it and start it again: 
 
        ebegin "Starting gpm" 
        /usr/sbin/gpm -m ${MOUSEDEV} -t ${MOUSE} ${params}  2> /dev/null 
        /bin/sleep 0.4s 
        /usr/sbin/gpm -k 2> /dev/null 
        /bin/sleep 0.2s 
        start-stop-daemon --start --quiet --exec /usr/sbin/gpm \ 
                -- -m ${MOUSEDEV} -t ${MOUSE} ${params} 
        eend ${?} 
 
Anyway this is not a real solution. 
 
Here's my /etc/conf.d/gpm: 
MOUSE=imps2 
MOUSEDEV=/dev/misc/psaux 
APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\" -A60" 
 
Here are the log entries from the above start script: 
Nov 15 12:34:11 [/usr/sbin/gpm] *** err [mice.c(1877)]: 
Nov 15 12:34:11 [/usr/sbin/gpm] imps2: PS/2 mouse failed to read id, assuming 
standard PS/2 
Nov 15 12:34:11 [/usr/sbin/gpm] *** err [mice.c(1883)]: 
Nov 15 12:34:11 [/usr/sbin/gpm] imps2: PS/2 mouse failed setup, continuing... 
Nov 15 12:34:11 [gpm] *** info [gpn.c(176)]: 
Nov 15 12:34:11 [gpm] Killed gpm(1739). 
 
 
After that I normally am able to switch between X and console without problems, 
occationally the driver fill fail though. Sometimes with the same error, sometime 
with the message, that it does not know about a mouse id 250. 
 
Error log: 
Nov 15 13:19:01 [/usr/sbin/gpm] *** err [mice.c(1864)]: 
Nov 15 13:19:01 [/usr/sbin/gpm] imps2: PS/2 mouse failed init 
 
Can I provide any more information to locate the problem? 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-16 14:57:13 UTC
And if you change the type to 'ps2' ?
Comment 2 Joerg Schaible 2003-11-16 16:00:21 UTC
The mouse does not work with ps2 at all. On every movement only weird parts of the screen are highlighted. With imps2 mouse work after 2nd start as expected. X runs also with imps2, works also without any problems including wheel.
Comment 3 Evert 2004-06-13 09:41:31 UTC
Is this bug dead?
I have kind of the same problem with my imp2s mouse. Don't need to start gpm twice, but after some time, movements of the mouse, highlights, selects and pastes weird parts of the screen! In that case I always press ctrl-l to clear the screen and I have to restart gpm...

Gentoo Base System version 1.4.16
Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.26)
=================================================================
System uname: 2.4.26 i686 AMD Athlon(tm) XP 2600+
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
FEATURES="autoaddcvs buildpkg ccache sandbox"
MAKEOPTS="-j2"
USE="X apm arts avi berkdb cdr crypt cups directfb encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby sdl slang sse ssl svga tcpd tiff truetype x86 xml2 xmms xv zlib"
Comment 4 Joerg Schaible 2004-06-14 09:43:39 UTC
for me it is still the same... :(
Comment 5 Evert 2004-06-14 11:47:05 UTC
it's a shame...
Comment 6 Binary Runner 2004-10-05 23:16:52 UTC
I have the same problem. In startup gpm fails without init script noticing that, I must first zap it to start it. During initialization I may not move with mouse or it fails again -- I guess it's some kind of timing problem in gpm. 

I use one of 2.4.x kernels from mandrake but it should not make any difference.
No PIC, nohardened gcc or other experimental stuff AFAIK. I'll provide additional info if needed.
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2005-03-09 12:28:54 UTC
Does it help for you to change MOUSEDEV=/dev/misc/psaux to /dev/input/mice
and MOUSE=imps2 to MOUSE=ps2 ?
Comment 8 Joerg Schaible 2005-03-09 13:14:22 UTC
Hmm. I don't have /dev/input/mice and setting ps2 does not work at all (console nearly unusable even by keyboard). I am quite sure, that it is some configuration thing, the 2005 livecd RCs start gpm on my machine without problems and it works as expected. I already looked at the config, but I cannot see the real difference.
Comment 9 Stefan Schweizer (RETIRED) gentoo-dev 2005-03-09 13:21:26 UTC
There is something wrong if you dont have /dev/input/mice, are you maybe using an old non- 2.6 kernel?

Can you please post your emerge info?
Comment 10 Joerg Schaible 2005-03-09 14:01:24 UTC
Never said something else. Yes, I am still running gentoo-sources-2.4.26-r15. No, gentoo-sources-2.4.28-r8 does not work for me (reported already upstream some months ago).
Comment 11 Stefan Schweizer (RETIRED) gentoo-dev 2005-03-09 14:21:21 UTC
Can you please try to upgrade to 2.6.something?
Or is there something that holds you on an old 2.4-kernel?

http://www.gentoo.org/doc/en/kernel-upgrade.xml
Comment 12 Evert 2005-03-10 11:47:20 UTC
In /etc/conf.d/gpm I have:
MOUSE=imps2
MOUSEDEV=/dev/psaux
I'm running 2.6.10 and since I run the 2.6 kernel I don't have the problem anymore, so what was the problem, I don't know but it works okay for me now...
Comment 13 Evert 2005-03-10 12:17:17 UTC
bwt, /dev/misc/psaux and /dev/input/mice have a different major and minor. What's the difference between those?

$ ls -l /dev/psaux /dev/misc/psaux /dev/input/mice
crw-r--r--  1 root root 13, 63 Feb  8 13:09 /dev/input/mice
crw-rw----  1 root root 10,  1 Feb  8 13:09 /dev/misc/psaux
lrwxrwxrwx  1 root root     10 Feb  8 20:05 /dev/psaux -> misc/psaux
Comment 14 Stefan Schweizer (RETIRED) gentoo-dev 2005-03-10 12:32:39 UTC
/dev/input/mice should be used because it mixes all mice.
Comment 15 Stefan Schweizer (RETIRED) gentoo-dev 2005-03-17 08:31:51 UTC
fixed with 2.6 kernel series
Comment 16 Joerg Schaible 2005-03-19 05:42:42 UTC
Switched this weekend to 2.6.11 and I can also confirm that gpm is now working as expected.