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.
And if you change the type to 'ps2' ?
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.
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"
for me it is still the same... :(
it's a shame...
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.
Does it help for you to change MOUSEDEV=/dev/misc/psaux to /dev/input/mice and MOUSE=imps2 to MOUSE=ps2 ?
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.
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?
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).
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
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...
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
/dev/input/mice should be used because it mixes all mice.
fixed with 2.6 kernel series
Switched this weekend to 2.6.11 and I can also confirm that gpm is now working as expected.