Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277441 - setkeycodes commands in local.start disable keyboard under X
Summary: setkeycodes commands in local.start disable keyboard under X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2009-07-11 15:26 UTC by Stefano Priore
Modified: 2009-08-14 16:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xorg.conf for amd64 system (xorg.conf,1.64 KB, text/plain)
2009-07-24 21:24 UTC, Stefano Priore
Details
Xorg.0.log before the bug (Xorg.0.log.before,18.35 KB, text/plain)
2009-07-28 22:05 UTC, Stefano Priore
Details
Xorg.0.log after the bug (Xorg.0.log.after,19.86 KB, text/plain)
2009-07-28 22:05 UTC, Stefano Priore
Details
Diff of old and new logs posted by reporter (Xorg.0.log.diff,3.19 KB, patch)
2009-07-29 07:24 UTC, James Earl Spahlinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano Priore 2009-07-11 15:26:04 UTC
I have added some setkeycodes commands to /etc/conf.d/local.start in order to remap the multimedia keys that are present on my keyboard.

I have discovered the following facts: if after rebooting, I immediately work under X environment, everything looks fine. Whenever I switch to a console (Ctrl+Alt+F1) and return back to X, the keyboard stops working. This happens regardless of the desktop manager (Gnome, KDE): it happens even in the login screen. Moreover, I don't have to log in the console session to activate the bug: merely switching into it is enough.

After having accessed to the machine via SSH and restarted the X server, the problem disappeared, only to return after having rebooted the machine.

The funny part is that if I manage to start another X session (after having triggered the bug, but before killing the X server) then the new session is unaffected - in practice I can switch between the sessions using Ctrl+Alt+F1 and F8 as long as I want, and nothing happens.

Ater having commented out the setkeycodes statements in /etc/conf.d/local.start everything came back to normality.

The bug occurs both on my amd64 desktop and my x86 laptop.

Reproducible: Always




 emerge --info

Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5-Jacob x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-Jacob-x86_64-Intel-R-_Pentium-R-_Dual_CPU_E2200_@_2.20GHz-with-glibc2.2.5
Timestamp of tree: Sat, 11 Jul 2009 10:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib alsa amd64 arts authdaemond bash-completion berkdb bidi bluetooth branding bzip2 cairo cddb cdr cjk cli cracklib crypt css cups curl curlwrappers dbus djvu dri dts dv dvd dvdr dvdread emboss encode evo exif expat fam fbcon ffmpeg firefox flac fontconfig fortran ftp gd gdbm gif gimp glut gnuplot gnutls gpm graphviz gstreamer hal hddtemp iconv imagemagick ipod isdnlog java javascript jbig joystick jpeg jpeg2k kde lame latex lcms libcaca libnotify libsamplerate lm_sensors lzo m17n-lib mad maildir midi mikmod mime mmx mng mp3 mpeg mplayer mudflap multilib musepack musicbrainz ncurses nls nntp nptl nptlonly nsplugin ntfs offensive ogg openexr opengl openmp pam pcre pda pdf perl png ppds pppd python qt3 qt3support qt4 quicktime raw readline recode reflection rss samba sasl sdl session shorten skey slang smp sox speex spell spl sse sse2 ssl startup-notification svg sysfs syslog szip tcpd theora threads tiff timidity truetype unicode usb v4l v4l2 vcd vim-syntax vnc vorbis wavpack wmf x264 xattr xcomposite xface xine xml xorg xpm xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Stefano Priore 2009-07-20 07:35:32 UTC
Just bumping... anybody dare to tackle this one? Do you need more info about it?
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-07-22 17:00:14 UTC
Yes, we need more information from you. Please attach your xorg.conf file to this bug and post the output of 

  emerge -qpv $(qlist -CIq x11-drivers) xorg-server sys-apps/kbd 

and post the exact setkeycode command you have written in your local.start file. The "qlist" executeable is from the app-portage/portage-utils package.

By the way, this looks like a really tricky bug, so every additional information could be helpful.
Comment 3 Stefano Priore 2009-07-24 21:24:32 UTC
Created attachment 199027 [details]
xorg.conf for amd64 system

This file belongs to an amd64 system
Comment 4 Stefano Priore 2009-07-24 21:30:26 UTC
Ok, I'll begin posting info about the amd64 system:

Relevant entries in /etc/portage/package.keywords
-------------------------------------------------

=x11-drivers/xf86-video-intel-2.7.1 ~amd64
=x11-libs/libdrm-2.4.11 ~amd64



Output of emerge -qpv $(qlist -CIq x11-drivers) xorg-server sys-apps/kbd
------------------------------------------------------------------------

[ebuild   R   ] sys-apps/kbd-1.13-r1  USE="nls"
[ebuild   R   ] x11-base/xorg-server-1.5.3-r6  USE="hal nptl sdl xorg (-3dfx) -debug -dmx -ipv6 -kdrive -minimal -tslib" INPUT_DEVICES="evdev joystick keyboard mouse -acecad -aiptek -citron -elographics -fpit -hyperpen -mutouch -penmount -synaptics -tslib -virtualbox -vmmouse -void -wacom" VIDEO_CARDS="intel -apm -ark -ast -chips -cirrus -dummy -epson -fbdev -fglrx (-geode) -glint -i128 (-i740) (-impact) (-imstt) -mach64 -mga -neomagic (-newport) -nv -nvidia -r128 -radeon -radeonhd -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l (-vermilion) -vesa -via -virtualbox -vmware -voodoo (-xgi)"
[ebuild   R   ] x11-drivers/xf86-input-evdev-2.1.3  USE="hal -debug"
[ebuild   R   ] x11-drivers/xf86-input-joystick-1.4.0  USE="-debug"
[ebuild   R   ] x11-drivers/xf86-input-keyboard-1.3.2  USE="-debug"
[ebuild   R   ] x11-drivers/xf86-input-mouse-1.4.0  USE="-debug"
[ebuild   R   ] x11-drivers/xf86-video-intel-2.7.1  USE="dri -debug"



Output of /etc/conf.d/local.start
---------------------------------

# /etc/conf.d/local.start

# This is a good place to load any misc programs
# on startup (use &>/dev/null to hide output)

# Logitech Cordless Desktop EX110 missing multimedia keys

setkeycodes 6d   174 # Close
setkeycodes e03b 138 # Help
#setkeycodes e03c 421 # Word Processor
#setkeycodes e03d 423 # Spreadsheet
#setkeycodes e03e 425 # Presentation
setkeycodes e03f 131 # Undo
setkeycodes e040 182 # Redo
setkeycodes e041 210 # Print
setkeycodes e042 234 # Save
setkeycodes e043 148 # Prog 1
setkeycodes e044 149 # Prog 2
setkeycodes e057 202 # Prog 3
setkeycodes e058 203 # Prog 4
Comment 5 Wormo (RETIRED) gentoo-dev 2009-07-27 01:18:58 UTC
Could you attach Xorg.0.log captured after problem was triggered, in case there are any relevant messages logged?
Comment 6 Stefano Priore 2009-07-28 22:04:15 UTC
Ok, I'm gonna attach Xorg.0.log before and after having triggered the bug
Comment 7 Stefano Priore 2009-07-28 22:05:05 UTC
Created attachment 199481 [details]
Xorg.0.log before the bug
Comment 8 Stefano Priore 2009-07-28 22:05:30 UTC
Created attachment 199482 [details]
Xorg.0.log after the bug
Comment 9 James Earl Spahlinger 2009-07-29 07:24:46 UTC
Created attachment 199512 [details, diff]
Diff of old and new logs posted by reporter

This is marked as a patch, but its not really a patch, I just want the "diff" button to be there so it is easy to see what was added.
Comment 10 James Earl Spahlinger 2009-08-10 01:44:31 UTC
Assigning to x11 folks to see if they have any better idea what needs done with this. Its been sitting with wranglers inactive for a week.
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2009-08-10 06:09:58 UTC
Really, I have no idea why that would screw up X. I've been setting up keycodes in local.start for years without any trouble.

Maybe there's a specific setkeycode call that breaks the whole thing? Could you try figuring out which one(s) break it?

Thanks
Comment 12 Ragas 2009-08-10 12:52:49 UTC
Hey I'm having exact the same Problem.
Some interesting bits may be:
I use "x86" so it's not a x86-64 specific problem.
also my local.start file is empty, something else causes this. Maybe there are other config files witch I have edited and cause me this Problem too.

here my emerge --info, if needed I will provide more details.

# emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4-ragas i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-ragas-i686-Genuine_Intel-R-_CPU_T2080_@_1.73GHz-with-glibc2.0
Timestamp of tree: Sun, 09 Aug 2009 01:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
ADA_INCLUDE_PATH="/usr/lib/gnat-gcc/i686-pc-linux-gnu/4.2/adainclude"
ADA_OBJECTS_PATH="/usr/lib/gnat-gcc/i686-pc-linux-gnu/4.2/adalib"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
ANT_HOME="/usr/share/ant"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS=" -march=prescott -O2 -pipe -fomit-frame-pointer -fno-ident"
CHOST="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS=" -march=prescott -O2 -pipe -fomit-frame-pointer -fno-ident -fvisibility-inlines-hidden"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose --ask"
EMERGE_WARNING_DELAY="10"
FEATURES="candy collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
GNOME_KEYRING_SOCKET="/tmp/keyring-pfVXoU/socket"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.2/info:/usr/share/info/emacs-22:/usr/share/gnat-gcc-data/i686-pc-linux-gnu/4.2/info"
INPUT_DEVICES="synaptics evdev"
INTEL_BATCH="1"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LANG="de_DE@euro"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ALL="de_DE@euro"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBXCB_ALLOW_SLOPPY_LOCK="1"
LINGUAS="de"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAKEOPTS="-j3"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.2/man:/etc/java-config/system-vm/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/usr/share/gnat-gcc-data/i686-pc-linux-gnu/4.2/man"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.2:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/i686-pc-linux-gnu/gnat-gcc-bin/4.2:/usr/libexec/gnat-gcc/i686-pc-linux-gnu/4.2"
PKGDIR="/usr/portage/packages"
PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/desktop-effects /usr/local/portage/layman/x11 /usr/local/portage/layman/rbu /usr/local/portage"
PRELINK_PATH_MASK="/usr/lib/klibc"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/root"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.2:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/i686-pc-linux-gnu/gnat-gcc-bin/4.2:/usr/libexec/gnat-gcc/i686-pc-linux-gnu/4.2"
RPMDIR="/usr/portage/rpm"
SBCL_HOME="/usr/lib/sbcl"
SBCL_SOURCE_ROOT="/usr/lib/sbcl/src"
SHELL="/bin/bash"
SHLVL="2"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USE="X a52 aac aalib acl acpi ads alsa async automount bash-completion berkdb bidi bzip2 cairo cdda cdio cdr cifs cli cracklib crypt cups curl custom-cflags custom-optimization dbus dell dga directfb dri dts dvd dvdr dvdread eds emerald encode fam fbcon fbcondecor ffmpeg firefox flac fortran galago gd gdbm ggi gif glibc-omitfp gnome gnome-keyring gnutls gpm gstreamer gtk hal httpd iconv id3tag ipv6 java java5 java6 javascript jpeg kerberos laptop ldap libnotify libproxy live lm_sensors mad matroska mikmod mmx mono mp3 mpeg mudflap ncurses networkmanager nfs nls nptl nptlonly nsplugin odbc ogg opengl openmp pam pcntl pcre pdf perl pmu png ppds pppd python qt3support quicktime readline reflection reiserfs samba sdl service_cache session smb smp spell spl sse sse2 sse3 ssl startup-notification stream svg svga swat sysfs tcpd theora threads threadsafe truetype unicode unsupported usb vcd vlm vorbis win32codecs winbind wxwindows x86 xcb xcomposite xfs xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="intel"
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="intel"
VISUAL="/bin/nano"
XAUTHORITY="/root/.xauth0hcysf"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/kde/3.5/share:/usr/share"
XSESSION="Gnome"
_="/usr/bin/emerge"
Comment 13 Rémi Cardona (RETIRED) gentoo-dev 2009-08-10 15:43:08 UTC
(In reply to comment #12)
> Hey I'm having exact the same Problem.
> Some interesting bits may be:
> I use "x86" so it's not a x86-64 specific problem.
> also my local.start file is empty, something else causes this. Maybe there are
> other config files witch I have edited and cause me this Problem too.

But do you run setkeycodes at some point? If not, you're having another bug.

Thanks
Comment 14 Ragas 2009-08-10 18:01:00 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Hey I'm having exact the same Problem.
> > Some interesting bits may be:
> > I use "x86" so it's not a x86-64 specific problem.
> > also my local.start file is empty, something else causes this. Maybe there are
> > other config files witch I have edited and cause me this Problem too.
> 
> But do you run setkeycodes at some point? If not, you're having another bug.
> 
> Thanks
> 

Since I once messed with this it might be.
I'm going to investigate this.
Comment 15 Ragas 2009-08-10 18:15:33 UTC
Ok I searched for the command.

I had it in /etc/X11/gdm/PostLogin.

I deleted the entry's now an the Bug is gone.
Comment 16 Rémi Cardona (RETIRED) gentoo-dev 2009-08-10 20:24:42 UTC
Can you reproduce the bug with older kernels, say, 2.6.29 ?

Thanks
Comment 17 Ragas 2009-08-14 12:47:40 UTC
(In reply to comment #16)
> Can you reproduce the bug with older kernels, say, 2.6.29 ?
> 
> Thanks
> 

I just tried it out with 2.6.29 and the Bug is gone there.

so maybe a regression in evdev?
Comment 18 Rémi Cardona (RETIRED) gentoo-dev 2009-08-14 13:44:08 UTC
Reopening
Comment 19 Rémi Cardona (RETIRED) gentoo-dev 2009-08-14 13:46:52 UTC
@kernel team, there seems to be a regression for some users who use "setkeycodes" with 2.6.30. If I understand the bug correctly, doing a VT switch after X has started breaks all keyboard input.

It looks like 2.6.29 is unaffected.

Do you guys know anything about it? Should this be reported to some upstream somewhere? (it kinda falls outside the scope of X, so my knowledge is somewhat limited)

Thanks :)
Comment 20 Brayan Arraes (YacK) 2009-08-14 14:21:24 UTC
try with the latest kernel version
gentoo-source-2.30-r4, and see if the bug still happen
Comment 21 Brayan Arraes (YacK) 2009-08-14 14:22:58 UTC
try with the latest kernel version
gentoo-source-2.6.30-r4, and see if the bug still happen
Comment 22 Ragas 2009-08-14 16:12:34 UTC
Sorry somehow I'm right now unable to reproduce this bug anymore.
Maybe some update fixed it.

Sorry for the inconvenience.