Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 192085 - xorg-server-1.4-r1 keyboard doesn't work if X was started as user
Summary: xorg-server-1.4-r1 keyboard doesn't work if X was started as user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-11 09:06 UTC by Tassilo Horn
Modified: 2009-05-06 15:12 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 Tassilo Horn 2007-09-11 09:06:03 UTC
I upgraded to Xorg 7.3 with xorg-server-1.4-r1 and now my keyboard doesn't work anymore if I started X as normal user.  It seems that no keyboard input is accepted except Ctrl-Alt-{Del,F*}.  Those shortcuts work as expected.

If I startx as root everything works just fine.

When started as user the only warning I get is

,----
| The XKEYBOARD keymap compiler (xkbcomp) reports:
| > Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
| >                   Ignoring extra symbols
| Errors from xkbcomp are not fatal to the X server
`----

but I also had that with xorg-server-1.3, and then it worked well.  When started as root I get this warning, too.  So this shouldn't cause the troubles.

/var/log/Xorg.0.log contains to warnings and no errors.

I recompiled all drivers, but still no luck.  Because I thought it may have something to do with the hal hotplug stuff, I tried to recompile the X11 server without hal support.  This didn't help, too.

My keyboard config is

,----[ /etc/X11/xorg.conf ]
| Section "InputDevice"
|   Identifier  "Keyboard"
|   Driver      "kbd"
|   Option      "XkbModel"        "pc105"
|   Option      "XkbRules"        "xorg"
| 
|   # German Dvorak Type II layout
|   Option      "XkbLayout"       "de"
|   Option      "XkbVariant"      "dvorak"
| 
|   # Make CapsLock a third Control!
|   Option      "XkbOptions"      "ctrl:nocaps"
| EndSection
`----

It looks like a problem with permissions, so I checked that /usr/lib/xorg/modules/input/kbd_drv.so is readable by the user which it has.  It uses the same permissions as the working mouse_drv.so.

Then I checked the device permissions:

,----
|   /dev/input:
|   total used in directory 0 available 10168
|   drwxr-xr-x  4 root root    280 2007-09-10 21:14 .
|   drwxr-xr-x 12 root root   2820 2007-09-10 22:13 ..
|   drwxr-xr-x  2 root root     80 2007-09-10 21:14 by-id
|   drwxr-xr-x  2 root root    140 2007-09-10 21:14 by-path
|   crw-------  1 root root 13, 64 2007-09-10 21:14 event0
|   crw-------  1 root root 13, 65 2007-09-10 21:14 event1
|   crw-------  1 root root 13, 66 2007-09-10 21:14 event2
|   crw-------  1 root root 13, 67 2007-09-10 21:14 event3
|   crw-------  1 root root 13, 68 2007-09-10 21:14 event4
|   crw-------  1 root root 13, 69 2007-09-10 21:14 event5
|   crw-------  1 root root 13, 70 2007-09-10 21:14 event6
|   crw-r--r--  1 root root 13, 63 2007-09-10 21:14 mice
|   crw-r--r--  1 root root 13, 32 2007-09-10 21:14 mouse0
|   crw-r--r--  1 root root 13, 33 2007-09-10 21:14 mouse1
`----

I tried giving all those event interfaces 644 permissions, but this also
didn't help.

At last I downgraded to xorg-server-1.3 and re-emerged all drivers once again.  But still the problem hasn't vanished.

Reproducible: Always




Portage 2.1.3.9 (default-linux/x86/2007.0, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r6 i686)
=================================================================
System uname: 2.6.22-gentoo-r6 i686 Genuine Intel(R) CPU T2300 @ 1.66GHz
Timestamp of tree: Tue, 11 Sep 2007 06:50:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18.50.0.1
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -mtune=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=i686 -mtune=prescott -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://gentoo.tiscali.nl/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j3"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/emacs /usr/portage/local/layman/haskell /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa aotuv async audiofile berkdb bitmap-fonts boundschecking bzip2 c++ cairo cap caps cdparanoia cli cpudetection cracklib crypt css cups curl dbus dga dhcp dmi dri dvd dvdread dynamic eap-tls emacs encode fam fbcon ffmpeg fftw finger flac fontconfig gdbm gif glut gmp gnutls gpgme gpm graphviz gs gsl gtk guile hal iconv icq idn imagemagick imap imlib ipv6 isdnlog jabber jack java javascript jbig jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility ldap libedit live lzo mad maildir midi mime mimencode mjpeg mmx mmxext mng mouse mp3 mp4 mpeg mudflap musepack musicbrainz ncurses nis nls nntp nptl nptlonly nsplugin nvidia offensive ogg openexr opengl openmp pam pcmcia pcre pdf pic png pppd qdbm qt3 qt4 quicktime rdesktop readline real reflection rtc ruby samba sasl sbcl sdl session slp smp smtp sndfile socks5 sox speex spell spl sql sqlite sqlite3 sse sse2 ssl subversion svg sysfs tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb userlocales utempter uudeview vorbis win32codecs wmf x264 x86 xcb xcomposite xface xine xinerama xinetd xml xorg xosd xpm xprint xscreensaver xv xvid xvmc zeroconf zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tassilo Horn 2007-09-11 19:07:26 UTC
Today I deinstalled x11-base/*, x11-drivers/* x11-libs/lib*, x11-proto/* and tried a clean xorg-x11 (7.3), but the keyboard is still not functional if X is started as user.  Now even Ctrl-Alt-F* doesn't work anymore, only Ctrl-Alt-Del has an effect.  xorg-server-1.4-r1 failed to install first, because there was a symlink /usr/share/X11/xkb/compiled which pointed to somewhere in /lib and the ebuild didn't assume a file named "compiled" in this directory.  I deleted the symlink, which was broken anyway, and on a second try I could install it.
Comment 2 Tassilo Horn 2007-09-12 10:41:10 UTC
Hm, today Ctrl-Alt-F* work again, so it seems nothing changed after the clean reinstall.
Comment 3 Tassilo Horn 2007-09-12 14:42:20 UTC
Now I unmerged every ebuild under x11-* and deleted /etc/X11, /usr/lib/X11 and /usr/share/X11 and re-emerged xorg-x11-7.3.  Now the keyboard works again.
Comment 4 Goran Mekić 2007-09-15 01:37:56 UTC
At my box(es, tested with 2 of them), when I use multiple XkbLayout, i can not switch to console. For example, working xorg.conf has:
Option      "XkbLayout" "us"

If I change that line to says
Option      "XkbLayout" "us,cs(latin)"

i can not switch to terminal (Ctrl+Alt+F1). Weird, but I've managed to narrow the problem. Hope someone has an idea, because I don't. BTW, can anyone else with this problem confirm the bug I have? Thanx!
Comment 5 Anthony Parsons 2007-09-20 16:30:58 UTC
Same problem here. I've tried most of the above, tried using evdev for the keyboard driver, used a fresh xorg.conf from X -config, and did a complete uninstall + depclean of xorg-server without any luck.
My keyboard seems to work fine with buttons handled by xbindkeys, and the default ctrl+alt+* stuff, but apart from that the 1.4 server completely kills it.
Comment 6 August Hörandl 2007-09-23 08:56:31 UTC
it seems to help to re-emerge
xf86-input-keyboard (and xf86-input-mouse for nonworking mouse)

at least the keyboard works again, but it doesn't handle the german layout -- all keys with "umlaut" and alt-gr are not working
Comment 7 R Stephan 2007-09-27 16:46:27 UTC
> all keys with "umlaut" and alt-gr are not working

I had such a problem when upgrading to 7.2. Only cleaning up all X11 directories as mentioned above helped, and then only when I removed the line XbdVariant "qwertz" from the config. This might be your problem if setxkbmap -v 10 shows the line 'symbols: "pc(pc105)+de(qwertz)"' which is nonsense and should actually read 'symbols: "pc(pc105)+de"'
Comment 8 August Hörandl 2007-09-28 14:05:02 UTC
thanks - it was the right direction
$ setxkbmap
Error loading new keyboard description

which leads to this bug
http://bugs.gentoo.org/show_bug.cgi?id=194026

downgrading to x11-misc/xkeyboard-config-0.9 solved the problems with the "umlaut" and the alt-gr key
Comment 9 Anthony Parsons 2007-09-29 18:28:58 UTC
I think my dead keyboard is being caused by xinit. I can get it to work by calling X directly (/usr/bin/X) or moving my ~/.xinitrc and running the programs in it manually. Here's my xinitrc file, which worked fine in the older X version:
----
xmodmap $HOME/.Xmodmap
urxvtd -q -f -o
xbindkeys
xset r rate 500 40
if [[ $DISPLAY == ":0" ]]; then
    startkde
else
    urxvt
fi
----
Comment 10 Jan Schubert 2008-05-02 20:41:20 UTC
Any news in here?

I also have this 

  Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols

for ages now. Where is it coming from?
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2009-05-05 15:30:57 UTC
@all,

Please upgrade to xorg-server 1.5.3-r5 or newer. Don't hesitate to reopen this bug if you can still reproduce the issue with newer versions.

Thanks
Comment 12 Tassilo Horn 2009-05-06 14:47:18 UTC
Hi Rémi,

now I use 1.5.3-r5 and about one year ago I switched to the evdev driver for my mouse and keyboard, and since then I didn't have any problems like this again.  So IMO this bug could be closed.

Thanks,
Tassilo
Comment 13 Rémi Cardona (RETIRED) gentoo-dev 2009-05-06 15:11:59 UTC
Alright, thanks for the follow up
Comment 14 Rémi Cardona (RETIRED) gentoo-dev 2009-05-06 15:12:13 UTC
And closing with the proper resolution.

Thanks