Bug 192404 - all apps using keyboard except firefox cannot receive 'e' !!
Summary: all apps using keyboard except firefox cannot receive 'e' !!
Status: RESOLVED NOT A BUG
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-12 09:58 UTC by Jason Vas Dias
Modified: 2009-05-15 22:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
/etc/X11/xorg.conf (1.67 KB, application/octet-stream)
2009-05-13 20:05 UTC, Jason Vas Dias
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Vas Dias 2009-05-12 09:58:22 UTC
Version:           4.2 @ SVN svn://anonsvn.kde.org/home/kde/trunk/KDE svn://anonsvn.kde.org/home/kde    2009-04-24T00:34:26.623405Z 9 (using KDE 4.2.2)
Compiler:          gcc-4.4.1 glibc-2.9.90
OS:                Linux
Installed from:    Compiled From Sources

I checked out and successfully built KDE 4.2 from SVN : 

svn://anonsvn.kde.org/home/kde/trunk/KDE
svn://anonsvn.kde.org/home/kde

2009-04-24T00:34:26.623405Z

with "qt-copy" 4.5 successfully built & installed 

  ~~~~ MANY THANKS ! ~~~~

and everything except kdm seems to work, up to a point -

But then NOTHING CAN READ 'e' from the keyboard under KDE 4.2 !!

/usr/bin/firefox :

Mozilla Firefox 3.0.5, Copyright (c) 1998 - 2008 mozilla.org

can read 'e's, but no KDE app, or emacs, can read 'e' from the keyboard
from Xorg server :

X.Org X Server 1.6.99.1
Release Date: (unreleased)
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.30-rc2-tip-jvd x86_64 
Current Operating System: Linux jvdspc 2.6.30-rc3-tip-jvd #2 SMP Sat Apr 25 04:55:46 EDT 2009 x86_64
Build Date: 20 April 2009  10:35:14PM
 
When KDE 4.2 windows manager is running ! 

ie. I can successfully do a 

 $ export DISPLAY=:0 ; kde4 startkde

but after doing that command. I have to kill the X server and restart it with
eg :
 $ Xorg :0 vt7
in order to again be able to use the 'e' key with any pure X-Windows or KDE app .

This even affects password entry, so I infer this is some weird TTY line-discipline thing KDE is doing ?

How can I turn off the KDE TTY line discipline ?

Anyone got any 'e' for KDE 4.2 ?







Under Linux:
$ uname -a 
Linux jvdspc 2.6.30-rc3-tip_x86 ... x86_64 x86_64 x86_64 GNU/Linux

$ gcc -v
$ gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-languages=c,c++,objc,obj-c++,java,fortran --enable-targets=all --enable-multilib --enable-threads=posix --enable-tls --enable-shared --enable-checking=release --with-build-time-tools=/usr/bin --with-ld=/usr/bin/ld --with-gnu-ld --with-as=/usr/bin/as --with-gnu-as --enable-__cxa_atexit --disable-libunwind-exceptions --with-system-zlib --with-system-gettext --with-system-intl --disable-werror --enable-serial-configure --enable-classpath --enable-java-awt=gtk --with-java-home=/usr/java --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu
Thread model: posix
gcc version 4.4.1 20090422 (prerelease) (GCC) 

$ ls -l /lib64/libc.so.6
lrwxrwxrwx. 1 root root 14 2009-04-14 16:50 /lib64/libc.so.6 -> libc-2.9.90.so

$ cat /usr/lib/libc.so
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib64/libc.so.6 /usr/lib64/libc_nonshared.a  AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 ) )

$ ldd /bin/bash
 ldd /bin/bash
	linux-vdso.so.1 =>  (0x00007fff9affe000)
	libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00000030f9000000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007f4f92a84000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f4f9272b000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f4f92c88000)
Comment 1 Jason Vas Dias 2009-05-12 10:04:01 UTC
The last line was meant to be a joke, actually ! - but seriously :
my keyboard is an extended en.US PC-AT (modern) with 12 Function keys,
from an HP-6715b x86_64x2 2.2Ghz laptop , and xterm and all X-Windows
apps work flawlessly under KDE-3.5.9 , but NOT under KDE 4.2 only in 
respect that I cannot enter 'e' - I can enter '^E' or 'E' ok , but when
trying to enter 'e' the cursor changes and focus leaves wherever I was
entering it - where does it go ?
Comment 2 Jason Vas Dias 2009-05-12 10:10:48 UTC
Xorg server log excerpts :

(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Simple Layout"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "ATI Radeon X1200"
(**) |-->Input Device "Mouse1"
(**) |-->Input Device "Keyboard1"
(**) Option "AIGLX" "no"
(**) Option "AllowEmptyInput" "off"
(**) Option "AutoAddDevices" "off"
(**) Option "AutoEnableDevices" "on"
(**) Not automatically adding devices
(**) Automatically enabling devices
(WW) `fonts.dir' not found (or not valid) in "/usr/local/share/fonts".
	Entry deleted from font path.
	(Run 'mkfontdir' on "/usr/local/share/fonts").
(**) FontPath set to:
	/usr/share/fonts/misc,
	/usr/share/fonts/Type1,
	/usr/share/fonts/100dpi,
	/usr/share/fonts/75dpi,
	/usr/lib64/X11/fonts/misc/,
	/usr/lib64/X11/fonts/TTF/,
	/usr/lib64/X11/fonts/OTF,
	/usr/lib64/X11/fonts/Type1/,
	/usr/lib64/X11/fonts/100dpi/,
	/usr/lib64/X11/fonts/75dpi/,
	built-ins
(==) ModulePath set to "/usr/lib64/xorg/modules"
(II) Loader magic: 0x7b99e0
(II) Module ABI versions:
	X.Org ANSI C Emulation: 0.4
	X.Org Video Driver: 5.0
	X.Org XInput driver : 5.0
	X.Org Server Extension : 2.0
(++) using VT number 7
...
(II) RADEONHD: X driver for the following AMD GPG (ATI) graphics devices:
...	RS690 : Radeon X1200, X1250, X1270. ...
...(II) LoadModule: "dbe"
(II) LoadModule: "extmod"
(II) LoadModule: "glx"
(II) LoadModule: "dri"
(II) LoadModule: "dri2"
(II) LoadModule: "radeonhd"
(II) LoadModule: "synaptics"
(II) LoadModule: "evdev"
(II) LoadModule: "i2c"
(II) LoadModule: "ddc"
(II) LoadModule: "fb"
(II) LoadModule: "ramdac"
(II) LoadModule: "xaa"
Comment 3 Dario Andres 2009-05-12 14:58:39 UTC
Have you tested the "e" in any other non-KDE application ? and may be in KDE3 ones?
May be some shortcut is misconfigured to "e" so pressing that key doesn't print the character but execute that action. Or may be there is some another configuration issue.
Thanks
Comment 4 Jason Vas Dias 2009-05-12 20:24:27 UTC
RE: Comment #3 :> Have you tested the "e" in any other non-KDE application ?

Yes, as I said above, "Mozilla Firefox 3.0.5" and "KDE 3.5 apps" have no problem
reading 'e's from the keyboard; only KDE 4.2 apps cannot do so .

I have never made any explicit KDE keyboard mappings, and I did:
   ' mv .kde .kde-3.5; mv .kderc .kderc-3.5 '
and edited no configuration before starting KDE 4.2 for the first time -
using 'kde4 startkde' because kdm doesn't let me type in my password .

Where could I look for the source of this mapping from 'e' to some KDE4 action?
Is there an easy way to turn all such mappings off ?
Comment 5 Jason Vas Dias 2009-05-13 19:58:35 UTC
OK, I rebuilt X-Windows & install from latest GIT , and also dbus (libdbus1.so.3.4.0*) and am actually typing this, with use
of as few 'e's as poss.,  on the 'e'-lacking KDE 4.2 system - build from latest
trunk in progress .
Now I am running X-Windows with /etc/X11/xorg.conf generated from output of :
 $ Xorg -configure > /etc/X11/xorg.conf
and changing vid. mod. driver to radeonhd (xorg.conf now upload.).

Also rebuilt all XKB tools ( setxkbmap ,  xkbcomp, xkbutils, ...) !

Still, lack of 'e' !!

Now, with new X libs, firefox also cannot read 'e' under KDE4 .

Only way to fix is to restart X and run KDE-3.5 or gnome or motif .

Please, could someone with knowledge of KDE keyboard input internals
give me a few pointers as to how to disable all keyboard accelerators
or translations - thanks !
Will post back again here will resolution.
Comment 6 Jason Vas Dias 2009-05-13 20:05:47 UTC
Created attachment 33636 [details]
/etc/X11/xorg.conf

The Xorg configuration file .

CLUE: I can type 'e' ONLY IN firefox "GTK Entry" fields, but not in GTK textview
fields ( I just typed the 'e' in "/etc/X11/xorg.conf" in the upload GTK entry,
but could not type it in the preceding text in this field - real pain! (had to
use mouse-paste ) ).
Comment 7 Jason Vas Dias 2009-05-13 20:06:24 UTC
CLUE: I can type 'e' ONLY IN firefox "GTK Entry" fields, but not in GTK textview
fields ( I just typed the 'e' in "/etc/X11/xorg.conf" in the upload GTK entry,
but could not type it in the preceding text in this field - real pain! (had to
use mouse-paste ) ).
Comment 8 Jason Vas Dias 2009-05-13 20:40:04 UTC
Aha! What works is to run "/usr/kde/3.5/bin/startkde", with path set to
 ${KDEDIR:-/usr/kde/3.5/bin}:${QTDIR:-/usr/qt/3/bin}
but then a ".bashrc" or ".kshrc" / ".profile" / ".login" containing
 PATH=${KDEDIR:=/usr/kde/4.2/bin}:${QTDIR:-/usr/qt/4.5/bin}
.
Then KDE4 works ok, allowing me to type 'e' again - whoopee! 

Note: I had to remove these calls from 
/usr/kde/4.2/bin/startupconfigkeys
:
kcminputrc Mouse cursorTheme 'Oxygen_Black'
kcminputrc Mouse cursorSize ''
ksplashrc KSplash Theme Default
ksplashrc KSplash Engine KSplashX
kcmrandrrc Display ApplyOnStartup false
kcmrandrrc [Screen0]
kcmrandrrc [Screen1]
kcmrandrrc [Screen2]
kcmrandrrc [Screen3]
kcmfonts General forceFontDPI 0
kdeglobals Locale Language '' # trigger requesting languages from KLocale


This file only works under KDE-3.5 - so why is it being used under KDE 4.2 ?
Comment 9 Jason Vas Dias 2009-05-14 00:56:09 UTC
It appears the input module 'immodule' installed by KDE4 is severely (ouch!) 
broken !

Could whoever maintains it please contact me ? Thanks !

Meanwhile I'm hoping that building from latest trunk will cure. 

Otherwise, what a terrific desktop / window manager KDE4 is - well done !
Comment 10 Jason Vas Dias 2009-05-14 01:22:38 UTC
Trying to rebuild ORBit for the kdesupport -> polkit -> gconf -> ORBit 
dependancy chain, the same missing files occur :

make[5]: Leaving directory `/tmp/ORBit2-2.14.12/src/idl-compiler'
/bin/true: line 1: kcminputrc: command not found
/bin/true: line 2: kcminputrc: command not found
/bin/true: line 3: ksplashrc: command not found
/bin/true: line 4: ksplashrc: command not found
/bin/true: line 5: kcmrandrrc: command not found
/bin/true: line 6: kcmrandrrc: command not found
/bin/true: line 7: kcmrandrrc: command not found
/bin/true: line 8: kcmrandrrc: command not found
/bin/true: line 9: kcmrandrrc: command not found
/bin/true: line 10: kcmfonts: command not found
/bin/true: line 11: kdeglobals: command not found

The same occurs during kde4 kdestart . 
Where are the sources for these commands ? I can't find them under KDE/* .
Comment 11 Jason Vas Dias 2009-05-14 15:10:10 UTC
Oops, somehow /bin/true ended up as a link to 
 /usr/kde/4.2/share/config/startupconfigkeys 
!!
This is now corrected.

But what I don't understand is these lines in startupconfigkeys which I had to 
comment out :
# kcminputrc Mouse cursorTheme 'Oxygen_Black'
kcminputrc_mouse_cursortheme="Oxygen_Black"
# kcminputrc Mouse cursorSize ''
kcminputrc_mouse_cursorsize=""
# ksplashrc KSplash Theme Default
ksplashrc_ksplash_theme="Default"
# ksplashrc KSplash Engine KSplashX
ksplashrc_ksplash_engine="KSplashX"
# kcmrandrrc Display ApplyOnStartup false
kcmrandrrc_display_applyonstartup="false"
# kcmrandrrc [Screen0]
# kcmrandrrc [Screen1]
# kcmrandrrc [Screen2]
# kcmrandrrc [Screen3]
# kcmfonts General forceFontDPI 0
kcmfonts_general_forcefontdpi="120"
# kdeglobals Locale Language '' # trigger requesting languages from KLocale
kdeglobals_locale_language="en_US:en_GB:de:da:ar"
klocale_languages=en_US:en_GB:de:da:ar


This file originally contained, after the KDE 4.2 build :
kcminputrc Mouse cursorTheme 'Oxygen_Black'
kcminputrc Mouse cursorSize ''
ksplashrc KSplash Theme Default
ksplashrc KSplash Engine KSplashX
kcmrandrrc Display ApplyOnStartup false
kcmrandrrc [Screen0]
kcmrandrrc [Screen1]
kcmrandrrc [Screen2]
kcmrandrrc [Screen3]
kcmfonts General forceFontDPI 0
kdeglobals Locale Language '' # trigger requesting languages from KLocale


Ie. it looks like some KDE program is trying to run this as a script, but 
none of these are commands : 
-rw------- 1 jason  1004  145 2009-05-13 18:39 /mnt/gentoo/usr/kde/4.2/share/config/kcminputrc
-rw------- 1 jason  1004 4550 2009-05-13 17:32 /mnt/gentoo/usr/kde/4.2/share/config/kdeglobals
-rw------- 1 jason jason   40 2009-05-13 16:43 /mnt/gentoo/usr/kde/4.2/share/config/ksplashrc
-rw------- 1 jason jason   54 2009-05-12 16:16 /mnt/gentoo/usr/kde/4.2/share/config/kcmfonts


They are all configuration files, but some startup scripts seem to be 
treating them as scripts !

I'm confused! Anyone have any suggestions how to fix ?
Comment 12 Dario Andres 2009-05-15 00:58:26 UTC
Mh, this report is a bit messy. Also your installation seems to be messed up (mixed KDE3/KDE4 installation, mixed config files).
Have you tried with a new clean user account (just for testing)... or trying a LiveCD ? to see if the problem is in your configuration mixup or in the hardware configuration.
Comment 13 Michael Jansen 2009-05-15 01:40:32 UTC
Ok ... how long till everyone learns to assign such bugs to me. Have a look into "kcmshell4 khotkeys". Somewhere is an action having 'e' as it's shortcut. IIRC it's "go to kde website".

That problem shouldn't happen anymore. We had that during the early 4.x development stage and i thought we fixed it. The problem behind it is qt inability to parse invalid key sequences correctly. It will take "Win+e" and parse it as 'e' because qt doesn't like/know 'win'.

We substitute 'win' with 'meta'. which qt knows. 

Jason Are you willing to work with me to find out how that problem still can occur?

I would have to ask you some questions and to test some stuff.

Mike
Comment 14 Jason Vas Dias 2009-05-15 22:03:44 UTC
Many thanks Mike for responding - Yes, I'd be happy to provide further information
and investigate this more - but problem seems now to be fixed, after I rebuilt 
dbus, dbus-glib, and latest qt-copy (4.5) from KDE SVN, and then un-commented-out
the lines from startkde which failed before:
  cat >$kdehome/share/config/startupconfigkeys <<EOF
kcminputrc Mouse cursorTheme 'Oxygen_Black'
kcminputrc Mouse cursorSize ''
ksplashrc KSplash Theme Default
ksplashrc KSplash Engine KSplashX
kcmrandrrc Display ApplyOnStartup false
kcmrandrrc [Screen0]
kcmrandrrc [Screen1]
kcmrandrrc [Screen2]
kcmrandrrc [Screen3]
kcmfonts General forceFontDPI 0
kdeglobals Locale Language '' # trigger requesting languages from KLocale
EOF
kstartupconfig

So, this bug is now fixed - I have 'e' again - hooray!

But is there still any info I get for you ?
Comment 15 Jason Vas Dias 2009-05-15 22:59:09 UTC
This was probably a DBUS misconfiguration issue - but perhaps KDE could do a
better job of ensuring that DBUS is correctly configured before agreeing to
'startkde', and 'startkde' should verify it has a complete and correct
configuration before proceeding.