Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195623 - x11-base/xorg-server-1.4-r1 doesn't handle keyboard modifiers when apps started from the same VT
Summary: x11-base/xorg-server-1.4-r1 doesn't handle keyboard modifiers when apps start...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-12 15:48 UTC by Michal 'vorner' Vaner
Modified: 2009-02-23 18:33 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emerge.info,9.27 KB, text/plain)
2007-10-12 15:49 UTC, Michal 'vorner' Vaner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal 'vorner' Vaner 2007-10-12 15:48:48 UTC
Hello,

I start X server directly from console, by launching X :1 &. When I start the first application from the same VT, xorg ignores all keyboard modifiers (shift, ctrl, etc).

It works all right if the server is on :0, or the first app is started from different VT.

I have my own layout (which is rather complicated, there are even keys with 6 used symbols, caps lock redefined to hyper as I remember), but as it works sometimes, I guess it is not caused by it.

I can send the keyboard definitions, if you think it may be of help, but it is more files, so I do not want to spam, if they are useless.

emerge --info output coming next, anything else I could send or try?

Thank you
Comment 1 Michal 'vorner' Vaner 2007-10-12 15:49:52 UTC
Created attachment 133257 [details]
emerge --info output
Comment 2 Martin Mokrejš 2007-11-05 17:47:40 UTC
I have a similar case here. After upgrade from 1.3.0.0 to 1.4 my alt+shift switch stopped working as well. I did not have the time to investigate more the details, but the upgrade meant for me as well to re-create the xorg.conf file. Finally I had a look whats the cause now and at least I see in /etc/X11/ a link to NON-existing directory ../../usr/lib/X11/xkb . It appears to me the 1.4 series does not have this directory anymore, so at least the ebuild should have deleted this link. But, maybe that is the reason why the keyboard does not work.

In my xorg.conf I have:

Section "InputDevice"
        Identifier  "Generic Keyboard"
        Driver    "keyboard"
        Option    "CoreKeyboard"
        Option    "XkbRules" "xorg"
        Option    "XkbModel" "pc105"
        Option    "XkbLayout" "en_US,cz_qwerty"
        Option    "XkbOptions" "grp:alt_shift_toggle,grp:switch,grp_led:scroll"
EndSection
Comment 3 Michal 'vorner' Vaner 2007-11-05 17:55:12 UTC
Sorry, but either I did not understand you or you did not understand me. To state that more clearly, I do not want to switch keyboards, I have only one layout. My shift is not working at all (or, wasn't, I have downgraded already), so I can not write capitals. Nor the others Modifier(s)+Key combinations work.

You probably met other bug.
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2007-11-05 17:55:18 UTC
Try dropping the XkbRules line.
Comment 5 Martin Mokrejš 2007-11-05 18:04:06 UTC
> Try dropping the XkbRules line.

Yes, that helped. Thanks.

BTW, I forgot to mention, one more problem I still I do have: The caps-lock LED as well as the NumLock LED at least stopped working after the upgrade. But both buttons do work, just the light never turns on.
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2007-11-05 18:07:15 UTC
That's bug #192221 and may not be fixed until xorg-server 1.4.1.
Comment 7 Sumant Oemrawsingh 2007-11-11 00:21:06 UTC
Perhaps this is related or not. I use ctrl:swapcaps and found that since xorg-server-1.4 (currently using r2), using left alt and left control as modifier only works correctly when first pressing left alt then left control, but not the other way around.

This can be verified with xev. When first pressing left control followed by left alt, xev only reports the Control_L pressed event. When releasing the left alt, xev reports immediately Alt_L pressed and Alt_L released events.

This is highly annoying, since I usually press control just before hitting alt when using control alt as modifiers. Can someone verify this?

This is in my xorg.conf file (currently using xorg-server-1.4-r2):

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option      "XkbOptions" "ctrl:swapcaps,compose:rwin"
EndSection


emerge --info reports:

Portage 2.1.3.19 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.6.1-r0,
 2.6.23-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3500+
Timestamp of tree: Wed, 07 Nov 2007 20:46:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6, 2.5.1-r3
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -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/shu
tdown /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="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans use
rfetch"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ ftp://sunsite.informatik.rwth
-aachen.de/pub/Linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://
ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.scarlet-internet.nl/pub/gent
oo"
LANG="en_GB.UTF-8"
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=/di
stfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/xeffects/trunk /usr/loca
l/overlays/xeffects/experimental"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acpi alsa amd64 apm arts audiofile avi bash-completion berk
db bitmap-fonts blas browserplugin bzip2 cairo cddb cdinstall cdparanoia cdr cli
 cracklib crypt cups dbus dlloader dri dts dvd dvdr dvdread emboss encode esd ex
if fam fftw firefox flac fluidsynth fontconfig fortran gd gdbm gif glitz glut gp
hoto2 gpm gstreamer gtk gtk2 hal hardened iconv icq imagemagick imlib ipv6 isdnl
og java jpeg jpeg2k lapack latex ldap mad matroska mbox midi mikmod mime mng mot
if mozilla mozsvg mp3 mpeg mplayer msn mudflap ncurses nls nptl nptlonly nsplugi
n nvidia offensive ogg oggvorbis openaloscar opengl openmp oss pam password pcre
 pdf perl plotutils png ppds pppd python qt4 quicktime rar readline reflection r
tc scanner sdl session shorten slang sox spell spl ssl svg tcpd tetex theora thr
eads tiff truetype truetype-fonts type1-fonts unicode usb uudeview vcd vim-synta
x vim-with-x vorbis wmf x264 xml xml2 xorg xpm xprint xsl xv xvid zlib" ALSA_CAR
DS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty ext
plug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug r
ate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard joystic
k" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, L
INGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 Sumant Oemrawsingh 2007-11-11 00:22:36 UTC
I forgot to mention: when not using ctrl:swapcaps, I don't have the problem: control alt works regardless of the order in which I press left control and left alt.
Comment 9 Paul Bredbury 2007-12-06 22:57:55 UTC
Could be same problem as at http://bugs.archlinux.org/task/8758?project=1
Comment 10 Michal 'vorner' Vaner 2007-12-07 10:25:41 UTC
(In reply to comment #9)
> Could be same problem as at http://bugs.archlinux.org/task/8758?project=1

This one acts a little differently (I will try it anyway some time soon), since when I started the X, it either worked OK for the whole lifetime of the X server or just ignores them no matter what. The bug on archlinux says it ignores the shift sometimes, specially if you type fast.

So I guess it is something different, I will just have to check it somehow.
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2009-02-20 15:26:42 UTC
Any news here?

Input has been cleaned up a bit in 1.5.3. If you can still reproduce the issue with this version or a newer one, please don't hesitate to reopen this bug with update info.

Thanks
Comment 12 Michal 'vorner' Vaner 2009-02-23 18:33:34 UTC
No, the 1.5 version seems to be OK here. I did not meet the problem since upgrade, I somehow forgot I have this bug opened (I now start X as :1 and start applications from the same VT).

Thanks