Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130916 - Weird problems typing in x11-misc/wdm
Summary: Weird problems typing in x11-misc/wdm
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-22 19:00 UTC by ash
Modified: 2007-06-03 18:52 UTC (History)
4 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 ash 2006-04-22 19:00:49 UTC
When I boot my computer without starting wdm/xdm, I can login, run startx, and everything is fine. When I start wdm/xdm manually, everything is fine. But when I have it start automatically at startup, I can't type anything, which makes it impossible to log in. Not only that, but the keyboard doesn't respond to ctrl-alt-backspace or ctrl-alt-del. If I ssh from another computer and restart wdm, it works fine. I also eventually found out that button-mashing prints out some stuff, but not in a way that I can control what I type. I also discovered that banging my head on my keyboard in resignation to not being able to do anything magically causes wdm to restart, and then it works fine. Also one time I made it reboot and all the shutdown output was in strange and weird characters, like glyphs instead of letters.

I'm aware this probably isn't a bug in wdm or xdm, but I have no where else to start. It's the most vague problem I've had in Linux in a long while. I would very much like to know what I could read up on or anything that might help.

Actually, come to think of it, this probably has something to do with the fact that I'm running x11-7.0-r1 (that's modular X.org, with xdm 1.0.3-r1) and nvidia-glx-1.0.8756, both are still marked as testing, with wdm 1.28. I have reemerged wdm since upgrading x11 and the nvidia driver, but I still have this problem.

$ emerge --info
Portage 2.1_pre7-r5 (default-linux/x86/no-nptl, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15.1TheGoon1.0 i686)
=================================================================
System uname: 2.6.15.1TheGoon1.0 i686 AMD Athlon (TM) MP
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -mtune=athlon-mp"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -mtune=athlon-mp"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.arcticnetwork.ca/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.seren.com/gentoo http://gentoo.ngi.it http://gentoo.po.opole.pl http://gentoo.netnitco.net http://gentoo.mirrors.tds.net/gentoo http://gentoo.cs.lewisu.edu/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi aim alsa audiofile avi bash-completion berkdb bzip2 calendar cdparanoia cdr clamav cli crypt cups curl curlwrappers dga dio directfb dvd dvdread emacs emacs-w3 encode esd fbcon ffmpeg foomaticdb fortran ftp gcj gd gif glut gnustep gphoto2 gpm gstreamer gtk gtk2 imagemagick imap imlib ipv6 isdnlog java jpeg ldap libwww lm_sensors mad memlimit mmx mp3 mpeg ncurses nls nocd offensive ogg opengl oscar pam pcre pdf pdflib perl plotutils png portaudio posix pppd profile python quicktime readline reflection samba sdl session sharedmem spell spl ssl symlink sysvipc tcpd tetex tiff truetype usb verbose videros vorbis xml xmms xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa video_cards_v4l"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 R. Bosch 2006-06-11 14:36:53 UTC
(In reply to comment #0)
> When I boot my computer without starting wdm/xdm, I can login, run startx, and
> everything is fine. When I start wdm/xdm manually, everything is fine. But when
> I have it start automatically at startup, I can't type anything, which makes it
> impossible to log in. Not only that, but the keyboard doesn't respond to
> ctrl-alt-backspace or ctrl-alt-del. If I ssh from another computer and restart
> wdm, it works fine. I also eventually found out that button-mashing prints out
> some stuff, but not in a way that I can control what I type. I also discovered
> that banging my head on my keyboard in resignation to not being able to do
> anything magically causes wdm to restart, and then it works fine. Also one time

Can confirm this problem. Only not with the glyphs.
I have xorg-server-1.1.0  and xorg-x11-7.1 installed.

Other info:

Portage 2.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-suspend
2-r8 i686)
=================================================================
System uname: 2.6.16-suspend2-r8 i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS=" -O2 -march=pentium-m -pipe -fomit-frame-pointer "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acpi alsa aotuv apache2 avi berkdb bitmap-fonts bzip2 cairo cli crypt cups curl dga dlloader dri emboss encode exif flac foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java jpeg lcms libg++ libwww logrotate lzo mad mikmod mmx modplug mp3 mpeg nas ncurses nls nptl nsplugin offensive ogg opengl pam pcmcia pcre pdflib perl png pppd python qt quicktime readline reflection rle rtc sdl session spell spl sse ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode usb v4l vorbis wifi wmf xml xml2 xorg xpm xv zlib elibc_glibc input_devices_-wacom input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux userland_GNU video_cards_i810 video_cards_v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 R. Bosch 2006-06-11 14:38:42 UTC
(In reply to comment #1)
Forgot to mention that I use no binary drivers. Just the opensource i915 driver.
Comment 3 Matthieu 2006-07-02 02:12:30 UTC
After migrating to modular X, I've got the same problem (only with wdm - xdm works fine).
When starting the xdm service in default level, wdm starts on VT 2 and keyboard input is "stolen" by the tty.
If I change from wdm to xdm in /etc/rc.conf, xdm starts normally in VT 7 and everything works.
So modular X/wdm seems to break the "StartDM.sh" mecanism described in /etc/init.d/xdm. Why and how is beyond my understanding.
Comment 4 seraph@xs4all.nl 2006-07-02 04:21:41 UTC
I have exactly the same problem with wdm after upgrading to modular X, both on my desktop (using the radeon driver) and my laptop (using the i810 driver).

Removing xdm from runlevels and starting it manually solves the problem. So does ssh-ing into the system and restarting xdm. Only when xdm-wdm is started automatically does the keyboard lock.

emerge --info from desktop:

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17.3 i686)
=================================================================
System uname: 2.6.17.3 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.6.15
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.pearlgates.net/gentoo-portage"
USE="x86 3dfx 3dnow X acpi alsa apache2 avi berkdb bitmap-fonts cli crypt cups dlloader dri dvd eds emboss encode esd foomaticdb fortran gdbm gif gpm gstreamer gtk2 imlib isdnlog joystick jpeg libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl ogg opengl pam pcre pdflib perl png ppds pppd python qt3 qt4 quicktime readline reflection scanner sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev usb vorbis xml xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_joystick kernel_linux userland_GNU video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17.3 i686)
=================================================================
System uname: 2.6.17.3 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.15
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.pearlgates.net/gentoo-portage"
USE="x86 X acpi alsa apache2 avi berkdb bitmap-fonts cli crypt cups dlloader dri dvd eds emboss encode esd foomaticdb fortran gdbm gif gpm gstreamer gtk2 ieee1394 imlib isdnlog jpeg libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl ogg opengl pam pcmcia pcre pdflib perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev usb vorbis wifi xine xml xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_joystick kernel_linux userland_GNU video_cards_i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 5 seraph@xs4all.nl 2006-07-05 03:31:24 UTC
Setting XSTATICVT="no" in /etc/conf.d/xdm fixes this problem for me.
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-09 08:52:29 UTC
Could someone tell me what needs to get done to force wdm to start on vt7 or higher?
Comment 7 R. Bosch 2006-08-09 10:51:03 UTC
(In reply to comment #6)
> Could someone tell me what needs to get done to force wdm to start on vt7 or
> higher?
> 


For one you could try google or forums. Not Bugzilla. The topic is btw off-topic.
Please use the forums at gentoo.org

R. Bosch
Comment 8 R. Bosch 2006-08-09 10:51:46 UTC
(In reply to comment #5)
> Setting XSTATICVT="no" in /etc/conf.d/xdm fixes this problem for me.
> 

For me too.
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-09 19:42:03 UTC
(In reply to comment #7)
> For one you could try google or forums. Not Bugzilla. The topic is btw
> off-topic.
> Please use the forums at gentoo.org

If you think it's offtopic, you do not understand this bug. That is the entire issue -- if that can be done by default, then this will not happen.
Comment 10 Alexandre Rostovtsev (RETIRED) gentoo-dev 2006-08-17 16:21:52 UTC
I can confirm this bug also happens with gdm-2.14.9-r1

When I have XSTATICVT="yes", gdm starts on vt2 and the keyboard doesn't work. When I have XSTATICVT="no", gdm starts on vt7 everything works fine.
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-17 16:39:46 UTC
(In reply to comment #10)
> I can confirm this bug also happens with gdm-2.14.9-r1
> 
> When I have XSTATICVT="yes", gdm starts on vt2 and the keyboard doesn't work.
> When I have XSTATICVT="no", gdm starts on vt7 everything works fine.

Each desktop manager (*dm) needs a separate bug, because the underlying issue is that they don't start on vt7 and higher and each one needs a change for that.

In gdm's case, you should doublecheck that your gdm.conf file contains something like this, with the entries commented out:

# Automatic VT allocation.  Right now only works on Linux.  This way
# we force X to use specific vts.  turn VTAllocation to false if this
# is causing problems.
#FirstVT=7
#VTAllocation=true
Comment 12 Alexandre Rostovtsev (RETIRED) gentoo-dev 2006-08-17 16:47:17 UTC
My gdm.conf says

# Automatic VT allocation.  Right now only works on Linux.  This way
# we force X to use specific vts.  turn VTAllocation to false if this
# is causing problems.
FirstVT=7
#VTAllocation=true
VTAllocation=false

Should I comment out the two uncommented lines?
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-17 17:14:14 UTC
(In reply to comment #12)
> #VTAllocation=true
> VTAllocation=false

This is breaking you. Needs to be true, which is the default, so you can comment it along with the other line.
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2007-06-02 16:35:34 UTC
Hrm, is this bug still valid? I can only see this in /etc/conf.d/xdm.

# We always try and start X on a static VT. The various DMs normally default
# to using VT7. If you wish to use the xdm init script, then you should ensure
# that the VT checked is the same VT your DM wants to use. We do this check to
# ensure that you have't accidently configured something to run on the VT
# in your /etc/inittab file so that you don't get a dead keyboard.
CHECKVT=7

# What display manager do you use ?  [ xdm | gdm | kdm | entrance ]
# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
DISPLAYMANAGER="xdm"
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2007-06-03 18:52:13 UTC
(In reply to comment #14)
> Hrm, is this bug still valid? I can only see this in /etc/conf.d/xdm.
> 
> # We always try and start X on a static VT. The various DMs normally default
> # to using VT7. If you wish to use the xdm init script, then you should ensure
> # that the VT checked is the same VT your DM wants to use. We do this check to
> # ensure that you have't accidently configured something to run on the VT
> # in your /etc/inittab file so that you don't get a dead keyboard.
> CHECKVT=7
> 
> # What display manager do you use ?  [ xdm | gdm | kdm | entrance ]
> # NOTE: If this is set in /etc/rc.conf, that setting will override this one.
> DISPLAYMANAGER="xdm"
> 

This file is from x11-apps/xinit-1.0.3-r4, so everyone test that and report back if problem still persists.