Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291457 - x11-base/xorg-server-1.7 is causing the keyboard to print random weird characters
Summary: x11-base/xorg-server-1.7 is causing the keyboard to print random weird charac...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
Depends on:
Reported: 2009-11-01 18:13 UTC by cucu ionut
Modified: 2009-11-10 20:20 UTC (History)
1 user (show)

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

attaching xorg.conf (xorg.conf,2.42 KB, text/plain)
2009-11-02 20:51 UTC, cucu ionut
X.0.log file (X.0.log,31.97 KB, text/plain)
2009-11-02 20:53 UTC, cucu ionut
xorg log for xorg with no xorg.con file (Xorg.0.log,34.82 KB, text/plain)
2009-11-07 14:01 UTC, cucu ionut

Note You need to log in before you can comment on or make changes to this bug.
Description cucu ionut 2009-11-01 18:13:49 UTC
xorg-server-1.7.1 is causing my keyboard to print weird random characters

Reproducible: Always

Steps to Reproduce:
1.install xorg-server-1.7.1. Since I'm only in colnsole using links2 I can only send the xorg.conf and X log through dpaste. I changed the kernel, nvidia-drivers, re-re-builded input-drivers: mouse, evdev, keyboard and dbus and hald and the same  happens. and If I need to provide more info plese let me know
Comment 1 Man Shankar 2009-11-01 19:32:18 UTC
What is the output of

$ eselect opengl list

Also your log shows different build and current systems. Are you sure you rebuild the modules against the kernel you want to use. Remember to use a recent enough kernel with latest X. By the way what sort of random chars are you getting?
Comment 2 Sebastian Luther (few) 2009-11-01 20:30:21 UTC
Additionally to the things requested in comment 1, attach "emerge --info xorg-server". Also attach the things in the pastbin, please don't use pastbins on bugzilla.
Comment 3 cucu ionut 2009-11-02 20:50:03 UTC
paludis --info:
        CXX:                   x86_64-pc-linux-gnu-g++ 4.4.1                                                                 
        CXXFLAGS:               -march=athlon64 -O2 -pipe -pedantic                                                          
        LDFLAGS:               -Wl,-O1                                                                                       
        DATE:                  2009-09-29T20:57:20+0300                                                                      

        C++ Library:           GNU libstdc++ 20090722

        DATADIR:               /usr/share
        LIBDIR:                /usr/lib64
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc        
        RUBYINSTALLDIR:        /usr/lib64/ruby/site_ruby/1.8/x86_64-linux

    Linux cuci 2.6.30-gentoo-r4 #3 SMP Sat Aug 22 13:22:29 EEST 2009 x86_64 AMD Athlon(tm) Dual Core Processor 4850e AuthenticAMD GNU/Linux                                                                                                               

Reduced Privs:
    reduced_uid:               1000
    reduced_uid->name:         cuci
    reduced_uid->dir:          /home/cuci
    reduced_gid:               1000      
    reduced_gid->name:         cuci      

    Format:                    paludis
    Config dir:                /etc/paludis
    World file:                /var/db/pkg/world

Repository installed-virtuals:
    format:                    installed_virtuals
    root:                      /                 

Repository virtuals:
    format:                    virtuals

Repository gentoo:
    format:                    ebuild
    location:                  /usr/portage
    append_repository_name_to_write_cache: true
    binary_destination:        false           
    builddir:                  /var/tmp/paludis
    cache:                     /usr/portage/metadata/cache
    distdir:                   /var/tmp/dist              
    eapi_when_unknown:         0                          
    eapi_when_unspecified:     0                          
    eclassdirs:                /usr/portage/eclass        
    ignore_deprecated_profiles: false                     
    layout:                    traditional                
    names_cache:               /var/cache/paludis/gentoo  
    newsdir:                   /usr/portage/metadata/news 
    profile_eapi_when_unspecified: 0                      
    profiles:                  /usr/portage/profiles/default/linux/amd64/10.0
    securitydir:               /usr/portage/metadata/glsa                    
    setsdir:                   /usr/portage/sets                             
    sync:                      rsync://       
    use_manifest:              use                                           
    write_cache:               /var/cache/paludis/metadata                   

    Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       4.0_p35    
        dev-java/java-config:  1.3.7-r1 2.1.9-r1
        dev-lang/python:       2.4.4-r9 2.5.4-r2 2.6.3 3.1.1-r1
        dev-python/pycrypto:   2.0.1-r8                        
        dev-util/ccache:       2.4-r8                          
        dev-util/cmake:        2.6.4-r3                        
        dev-util/confcache:    (none)                          
        sys-apps/baselayout:   2.0.1                           
        sys-apps/openrc:       0.5.2-r1                        
        sys-apps/sandbox:      2.2                             
        sys-devel/autoconf:    2.13 2.63-r1                    
        sys-devel/automake:    1.10.2 1.11 1.5 1.6.3 1.7.9-r1 1.8.5-r3 1.9.6-r2
        sys-devel/binutils:    2.20                                            
        sys-devel/gcc-config:  1.4.1                                           
        sys-devel/libtool:     2.2.6a                                          
        virtual/os-headers:    2.6.30-r1 (for sys-kernel/linux-headers::installed)

Repository installed:
    format:                    vdb
    location:                  /var/db/pkg
    builddir:                  /var/tmp/paludis
    eapi_when_unknown:         0               
    names_cache:               /var/cache/paludis/names
    provides_cache:            /var/cache/paludis/provides
    root:                      /      
Comment 4 cucu ionut 2009-11-02 20:51:37 UTC
Created attachment 209094 [details]
attaching xorg.conf
Comment 5 cucu ionut 2009-11-02 20:53:16 UTC
Created attachment 209095 [details]
X.0.log file
Comment 6 cucu ionut 2009-11-02 20:56:09 UTC
eselect opengl list:
Available OpenGL implementations:
  [1]   nvidia
  [2]   xorg-x11 *

Linux cuci 2.6.30-gentoo-r4 #3 SMP--this first appeared on 2.6.31-gentoo-r4 but I thought I made some bad config and reverted to this one...but I guess not
Comment 7 cucu ionut 2009-11-02 20:57:47 UTC
the random characters I'm getting are both alfanumericals and punctuations, and although I press the same key many times every time I get a different result
Comment 8 Man Shankar 2009-11-03 05:23:15 UTC
(In reply to comment #6)
> eselect opengl list:
> Available OpenGL implementations:
>   [1]   nvidia
>   [2]   xorg-x11 *
> Linux cuci 2.6.30-gentoo-r4 #3 SMP--this first appeared on 2.6.31-gentoo-r4 but
> I thought I made some bad config and reverted to this one...but I guess not

That shows you are not using the nvidia-glx module.
Well, decide which kernel you will use by

# eselect kernel set "whatever u wish"

build the modules against them, and then do 

# eselect opengl set nvidia

to use the nvidia driver.

Comment 9 Rémi Cardona gentoo-dev 2009-11-03 09:04:39 UTC
Where are you getting the weird characters exactly?

Comment 10 cucu ionut 2009-11-04 06:33:39 UTC
I did an eselect on both kernel and opengl...fixed it to use nvidia properly but the same happens. The chars I'm getting are not weird...sorry english is not my first language: are just random and unexpected: pressing t twice will print &8=aT first then backspace and b, for instance.
Comment 11 cucu ionut 2009-11-04 06:34:41 UTC
Please don't close this as I need my desktop pc, and I will provide any further info you may need
Comment 12 Rémi Cardona gentoo-dev 2009-11-04 07:20:46 UTC
(In reply to comment #9)
> Where are you getting the weird characters exactly?

Please actually answer this question.

And closing a bug doesn't mean I don't care. In this case, it means I need more information to actually _understand_ what's going on.

Comment 13 cucu ionut 2009-11-04 07:52:49 UTC
I did answered
Comment 14 Rémi Cardona gentoo-dev 2009-11-04 08:31:51 UTC
No, you didn't say _where_. Which application? You're giving me almost nothing here on what the bug looks like to you.
Comment 15 cucu ionut 2009-11-04 09:14:22 UTC
Ah...sorry. So the first I saw it in kdm-svn version, and thought maybe it was only a kde bug, but I installed fluxbox and in xterm it was the same: key-pressing shows random characters.konsole svn version also shows the same out put
Comment 16 Rémi Cardona gentoo-dev 2009-11-04 09:59:49 UTC
You should fix your xorg.conf first. You're adding your own mouse and keyboard driver, yet HAL still adds devices of its own.

(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout " Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Input Device "Keyboard0"
(**) |-->Input Device "Mouse0"
         ^^^^^^^^^^^^^^^^^^^^^^^^ from your xorg.conf
(==) Automatically adding devices
(==) Automatically enabling devices
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ from HAL

And then, your keyboard driver is completely misconfigured.

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Option         "CoreKeyboard"
    Option         "KcbRules"  "xorg"
                    ^^^^^^^^ wrong
    Driver         "xbd"
                    ^^^ wrong too

So please read to properly configure Xorg to use HAL and evdev.

I'm pretty sure your issues will go away once you've properly configured HAL and Xorg.

Comment 17 cucu ionut 2009-11-06 00:19:26 UTC
ok so I mangled in xorg.conf also: replaced xbd with evdev, removed input device sction of the keyboard, removed xorg.conf all together, but I get the same thing. I mangled in /etc/hal/.../*.fdi removed the policy folder restarted hald and X and the same thing happened
Comment 18 Rémi Cardona gentoo-dev 2009-11-06 07:06:44 UTC
Could you attach your Xorg.0.log when you're not using any xorg.conf?

Comment 19 cucu ionut 2009-11-07 14:01:31 UTC
Created attachment 209542 [details]
xorg log for xorg with no xorg.con file

I can get X started without conf file only with nv driver not with the nvidia one. I have recompiled xorg-drivers with nv -nvidia use flags and removed nvidia-drivers package
Comment 20 cucu ionut 2009-11-10 16:29:18 UTC
It was after all a broken pkg problem: I have done a paludis --dl-reinstall always everything and now I can happly type in X, with nvidia driver loaded
Comment 21 Rémi Cardona gentoo-dev 2009-11-10 20:20:10 UTC
Thanks for the follow up. :)