Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15153 - XFree86 hangs at startup when gpm is running.
Summary: XFree86 hangs at startup when gpm is running.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-05 04:02 UTC by Alexander Isacson
Modified: 2004-03-12 11:35 UTC (History)
3 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 Alexander Isacson 2003-02-05 04:02:23 UTC
This is the config that used to work with XFree 4.2.1

Section "InputDevice"
        Identifier      "Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device" "/dev/gpmdata"
        Option          "Protocol" "ps2"
        Option          "Emulate3Buttons" "true"
EndSection

This now hangs X at startup with both the nvidia and the nv drivers.

Reproducible: Always
Steps to Reproduce:
1. startx
2.
3.

Actual Results:  
blank screen with the nv driver and the nvidia logo with the nvidia driver was
stuck on the screen.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-05 09:44:26 UTC
Try a different kernel.
Comment 2 Alexander Isacson 2003-02-05 11:00:01 UTC
Ok. I'll wait for the next stable kernel... I rarely use the console anymore.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-05 17:56:05 UTC
Sorry, what I meant, was that if you are using gentoo-sources, or any other
patched kernel, please try a vanilla version.  What you running btw ?

Also include output of 'emerge info' please.
Comment 4 Alexander Isacson 2003-02-07 09:13:08 UTC
I am running vanilla allready.

Here is the output you asked for:

Portage 2.0.46-r11 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r3)
=================================================================
System uname: 2.4.20 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 3dnow cups libg++ mikmod mpeg qtmt quicktime gdbm berkdb tetex svga tcltk guile libwww perl python qt -arts alsa apm atlas avi bonobo cdr crypt dga dvd encode esd evo fbcon gif gnome gphoto2 gpm gtk -gtk2 gtkhtml imlib java jpeg -kde -maildir mbox mmx motif mozilla ncurses nls oggvorbis opengl oss pam pda png pdflib postgres readline samba sdl slang spell sse ssl tcpd tiff truetype X xml xml2 xmms xv zlib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CXXFLAGS="-march=pentium4 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 5 Andrew Baudouin 2003-02-15 23:22:39 UTC
Just a question, why do you have 3dnow in your use flags? :)

Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-16 16:22:38 UTC
Also try to remerge gpm with -march=pentium3.
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2003-05-30 03:53:57 UTC
alexander is this an issue with xfree-4.3.0-r2 as well?
Comment 8 Michael M Nazaroff (RETIRED) gentoo-dev 2003-06-04 01:55:03 UTC
There is a new gpm ebuild that is masked in portage.. could you please test that and see how X does?

gpm-1.20.1.ebuild

naz
Comment 9 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-14 23:01:54 UTC
Alexander?
Comment 10 Alexander Isacson 2003-06-15 13:30:46 UTC
I'm now running:
 
*  x11-base/xfree
      Latest version available: 4.3.0-r3
      Latest version installed: 4.3.0-r3
      Size of downloaded files: 70,989 kB
      Homepage:    http://www.xfree.org
      Description: Xfree86: famous and free X server

*  sys-libs/gpm
      Latest version available: 1.20.1
      Latest version installed: 1.20.1
      Size of downloaded files: 558 kB
      Homepage:    ftp://arcana.linux.it/pub/gpm/
      Description: Console-based mouse driver

With this configuration:
deepthink@dtk:~
:cat /etc/conf.d/gpm        
MOUSE=imps2
MOUSEDEV=/dev/mouse
REPEAT_TYPE=ps2            (I have also tired raw)
APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\""

:cat /etc/X11/XF86Config-4 
Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/gpmdata"
        Option      "ZAxisMapping"  "4 5"
        Option      "Buttons 5"
EndSection

X will freeze for up to ten seconds everytime I move the mouse. I haven't used gpm in a while that's why I haven't answered earlier. Sorry about that.
Comment 11 Luca Barbato gentoo-dev 2003-06-15 13:53:26 UTC
Question 
why use /dev/gpmdata and not /dev/psaux?
Comment 12 Alexander Isacson 2003-06-15 14:02:25 UTC
I thougt that both the console mousedriver (read gpm) and X couldn't use the same device at once. That's why gpmdata was created to solve that problem. Gpm uses /dev/mouse -> /dev/psaux and simply repeats the data to /dev/gpmdata.

Correct me if I'm wrong.
Comment 13 Rodger Etz-Brown 2003-06-20 06:48:41 UTC
Alexander,

you are quite right.

My first thinking would be that the Protocol might be the problem (as it normally is with gpm and X).

Could you try the following?

- Set gpm's Reapeat Type to imps2 (you seem to use an imps2 device but only use ps2 as the protocol)
- Set the Protocol Option in the XFR86Config-4 to something other than auto. 

If all that fails, look into your X log file (/var/log/XFree86.0.log) for any mouse related messages. May be you could post the whole log here or only the mouse extracts.

GPM might also tell you something in your syslog (depending on the logger and config you use, it might also be in /var/log/messages or somewhere completely different :)

You could also:

Stop gpm
Start gpm manually with the -D option (see man gpm)
Switch to X, startx, whatever and move the mouse around
Switch back to a console by pressing CTRL-ALT-BCKSP (kills X), CTRL-Fn, shutting X down gracefully or whatever you prefer

Then have a look at the gpm output. Anything that looks strange?

If all this fails, then I will try to reproduce your set-up on one of my machines. One last question, you are talking about a config that has worked. What exactly changed? You are only using a different graphic card? Did you try the standard VGA driver (though this should have _nothing_ to do with the mouse ;)?
Comment 14 Andrew Cooks (RETIRED) gentoo-dev 2003-11-23 12:28:33 UTC
Still an issue?
Comment 15 Alexander Isacson 2003-11-25 14:16:55 UTC
To tell the truth I'm not sure. I stopped using gpm when I filed this bug.
Comment 16 Andrew Bevitt 2003-11-26 18:48:50 UTC
Could you please test this for us again...

I asked a few people on irc and they said it was working for them
so you might find the bugs been fixed with the latest versions...
Comment 17 Andrew Bevitt 2004-01-31 15:47:42 UTC
Prod, Alexander???

Any futher problems etc..?
Comment 18 Andrew Bevitt 2004-03-04 18:14:31 UTC
Can we close this bug as we have no futher complaints or information???
Comment 19 Alexander Isacson 2004-03-06 00:41:01 UTC
Yes that's fine with me. Sorry for not replying earlier but I haven't used gpm in a while I was planning to merge it to try it out but haven't found the time.
Comment 20 Seemant Kulleen (RETIRED) gentoo-dev 2004-03-12 11:35:08 UTC
closing as requested