Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295951 - media-tv/tvtime switches the keyboard layout to the default every few seconds
Summary: media-tv/tvtime switches the keyboard layout to the default every few seconds
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-06 12:51 UTC by Alexander Koryushkin
Modified: 2010-11-12 06:03 UTC (History)
1 user (show)

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


Attachments
my lshal output (lshal.out,167.61 KB, text/plain)
2010-03-15 17:01 UTC, Alexander Koryushkin
Details
xorg log (Xorg.0.log,22.22 KB, text/plain)
2010-03-15 17:02 UTC, Alexander Koryushkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Koryushkin 2009-12-06 12:51:24 UTC
Every few seconds tvtime simulates pressing Shift_L(for blocking screensaver, as   I know). This xev output with running tvtime:

KeyPress event, serial 34, synthetic NO, window 0x3200001,
    root 0x110, subw 0x0, time 3747425, (194,510), root:(1222,535),
    state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x3200001,
    root 0x110, subw 0x0, time 3747425, (194,510), root:(1222,535),
    state 0x11, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

Now(after some updates X-server) this action is to switch layouts in US, although the switch is actually configured to CapsLock.
This part fdi-file for hal:
 <merge key="input.xkb.layout" type="string">us,ru</merge>
 <merge key="input.xkb.variant" type="string">,winkeys</merge>
 <merge key="input.xkb.options" type="string">grp:caps_toggle</merge>



Reproducible: Always

Steps to Reproduce:
1. run tvtime
2. switch layout
3. wait 

Actual Results:  
layout again us 

Expected Results:  
layout should not be changed arbitrarily

[I] x11-base/xorg-server
     Installed versions:  1.7.3(16:00:14 03.12.2009)(hal nptl sdl xorg -debug -dmx -ipv6 -kdrive -minimal -tslib)

[I] x11-drivers/xf86-input-evdev
     Installed versions:  2.3.1(20:08:03 22.11.2009)(-debug)

[I] x11-apps/setxkbmap       
     Installed versions:  1.1.0(21:24:10 30.10.2009)(-debug)

[I] x11-apps/xkbcomp
     Installed versions:  1.1.1(21:24:45 30.10.2009)(-debug)

[I] sys-apps/hal
     Installed versions:  0.5.13-r2(13:32:14 06.12.2009)(X acpi consolekit crypt doc kernel_linux -apm -debug -dell -disk-partition -kernel_FreeBSD -laptop -policykit -selinux)

>emerge --info
Portage 2.1.7.10 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11-r1, 2.6.32-gentoo-core2 i686)
=================================================================                            
System uname: Linux-2.6.32-gentoo-core2-i686-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 06 Dec 2009 11:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.3
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.64
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -fomit-frame-pointer -ftree-vectorize -funroll-loops"
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 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-O2 -march=native -mtune=native -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -fomit-frame-pointer -ftree-vectorize -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS=" http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.supp.name/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j2"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/games"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acc acl acpi addbookmarks aim akode alias alsa aol ass avi bash-completion berkdb bluetooth bs2b bzip2 cairo cd cdparanoia cdr cli connectionstatus consolekit contactnotes cracklib crypt css cups curl cxx daap dbus dia divx djvu doc dri dri2 dts dv dvb dvd dvdr emf enca encode eselect esound examples expat fax ffmpeg fftw flac fortran ftp gadu gallium gallium-intel gdbm gif git glitz glut gmplayer gnutls gpm gstreamer h224 h281 h323 hal highlight i18n iax iconv icq ieee1394 ifp imagemagick inkjar ipod irc ivr ixj jabber jack jadetex java java6 javascript jbig jingle joystick jpeg jpeg2k kde kde3 kde4 kpathsea lame latex lcms libcaca libsamplerate lid lirc lzo mad matroska mbrola mikmod mmx mmxext mng modplug modules mp3 mp4 mpeg mplayer msn mtp mudflap musepack musicbrainz nas ncurses netmeeting njb nls nptl nptlonly nsplugin ogg openal openexr opengl openmp openssl oscar pam pch pcre pdf perl phonon pipechan plotutils plugins png pnm postscript pppd projectm python qt3 qt3support qt4 quicktime rar raster rdesktop readline reflection rfc4175 samba sametime sane sbc scanner scrobbler sdl session shmvideo sip sipim slang smbclient sms sndfile snmp soap socks speex spell spl sse sse2 sse3 ssl ssse3 svg sysfs tcpd telnet theora threads tiff timidity tk translator truetype tts udev unicode unrar usb utf8 v4l v4l2 video-file video4linux vidix visualization vnc vorbis vxml wav wavpack wifi win32codecs winpopup wmf x264 x86 xanim xcb xcomposite xine xinerama xml xmlrpc xmp xorg xscreensaver xulrunner xv xvid xvmc yahoo zip 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" NETBEANS_MODULES="apisupport harness ide java nb cnd groovy gsf identity j2ee mobility php profiler soa visualweb webcommon websvccommon xml dlight enterprise ergonomics ruby" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2009-12-06 17:58:06 UTC
Aside of the fact, that ru layout doesn't have winkeys variant,
do you have any fancy .Xmodmap ?
Add 'setxkbmap -print', settings of all input.keys type devices
using evdev driver straight from the deamon and check if whatever
desktop environment you're using isn't overriding hal settings.
Comment 2 Alexander Koryushkin 2009-12-06 21:23:17 UTC
>setxkbmap -print

xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete+ledcaps(group_lock)"  };
        xkb_symbols   { include "pc+us+ru(winkeys):2+inet(evdev)+capslock(grouplock)"   };
        xkb_geometry  { include "pc(pc104)"     };
};
Comment 3 Rafał Mużyło 2009-12-07 03:54:56 UTC
And what about the rest ?
Comment 4 Alexander Koryushkin 2009-12-07 06:38:43 UTC
(In reply to comment #3)

ru layout is have winkeys variant: "cat /usr/share/X11/xkb/symbols/ru |grep winkeys"
I have not modified .Xmodmap or other configs, except hal/fdi.

Previously, there were no problems in kde3 and kde4, something happened after the upgrade xkb or another package. I missed the point, exactly when it happened.
In the evening I'll check on the bare X + xterm + tvtime, to ensure that de/wm has nothing to do with it.
Comment 5 Rafał Mużyło 2009-12-07 13:26:25 UTC
Did you notice 'partial default alphanumeric_keys'
one line above ?
It means that the default for this layout.
What about settings straight from the deamon ?
See hal/evdev sticky on the forum.
Comment 7 Rafał Mużyło 2010-03-07 17:49:22 UTC
So, in a way it's not a bug - that is if you'd disregard
the part where layout toggle happens not on CapsLock,
but one of Shift/Ctrl combinations.
Is there anything interesting about that in xorg log ?
And what about those settings from hal ?
This may simply a misconfiguration of your desktop environment.
Comment 8 Alexander Koryushkin 2010-03-08 17:08:57 UTC
(In reply to comment #7)

Problem not only with layout. When I press the left shift key sometimes shift gets locked.
I tried to start only X, xterm and tvtime - the same effect.
At xine same behavior.

This my HAL settings:

<?xml version="1.0" encoding="UTF-8"?> 
<deviceinfo version="0.2"> 
    <device> 
        <match key="info.capabilities" contains="input.mouse"> 
            <merge key="input.x11_driver" type="string">mouse</merge> 
                <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux"> 
                <!-- If we're using Linux, we use evdev by default (falling back to 
                                            mouse otherwise). --> 
                    <merge key="input.x11_driver" type="string">evdev</merge> 
                </match> 
            </match> 
            <match key="info.capabilities" contains="input.keys"> 
                <merge key="input.x11_driver" type="string">keyboard</merge> 
                <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux"> 
                            <!-- If we're using Linux, we use evdev by default (falling back to 
                            keyboard otherwise). --> 
                    <merge key="input.x11_driver" type="string">evdev</merge> 
                </match> 
                    <merge key="input.xkb.layout" type="string">us,ru</merge> 
                    <merge key="input.xkb.options" type="string">grp:caps_toggle</merge> 
            </match> 
    </device> 
</deviceinfo>

This xorg log: http://pastebin.org/105625
Comment 9 Rafał Mużyło 2010-03-14 17:40:57 UTC
Fabulous, though two 'minor' things:
1. don't use pastebins for bugzilla posts
2. fdi file != hald content (it may differ significantly,
if i.e. fdi file is malformed or there's an other file, that overrides
this one)

See hal/evdev sticky on the forum on how to get the info.
This file could use a bit of trimming too.

Also, are you sure it's not a hardware failure (like, keys getting stuck) ?
Comment 10 Alexander Koryushkin 2010-03-15 17:01:27 UTC
Created attachment 223753 [details]
 my lshal output

see links above - it not only my personal problem
Comment 11 Alexander Koryushkin 2010-03-15 17:02:32 UTC
Created attachment 223755 [details]
xorg log
Comment 12 Alexander Koryushkin 2010-03-16 06:51:45 UTC
Rafał Mużyło,

1. check your "~/.xine/config" for gui.screensaver_timeout string - default 10 sec
2. turn any video playback with xine
3. in another window, do something with the lshift key
4. when matched pressing the lshift and anti-screensaver polling, shift will locked for the next 10 seconds

is your system reproduce this?