You are not logged in.

#1 2009-07-31 04:31:27

Unhelpful
Member
Registered: 2009-07-31
Posts: 4

X keyboard mapping problem

Something went wrong and my keyboard suddenly stopped working in KDE. I managed to get the laptop rebooted, and I am now unable to use the keyboard in X at all. All keys are mapped to switch resolution, so that I can't interact with any applications or kill the X server. I've tried removing the xorg.conf file without results, as well as reinstalling xkeyboard-config and xorg-xkb-utils, hoping that some keymap file had just been corrupted. It's not a hardware, problem, as the keyboard works correctly in the console, and another keyboard has the same problem in X. The keyboard doesn't seem to be set up with any unusual mappings, X gets settings for it from hal and uses model evdev, rules evdev, layout us. The xorg log with -logverbose 255 is at http://pastebin.ca/1513216

Offline

#2 2009-07-31 09:03:11

miau
Member
Registered: 2009-05-06
Posts: 202

Re: X keyboard mapping problem

Have you tried to put the keyboard in xorg.conf and disabling AutoAddDevices?

Last edited by miau (2009-07-31 09:03:34)

Offline

#3 2009-07-31 09:04:47

Unhelpful
Member
Registered: 2009-07-31
Posts: 4

Re: X keyboard mapping problem

Yes, I tried doing that with both the evdev and kbd drivers, with the same results - any keypress changes video modes, and is not seen by applications. I've also now reinstalled all packages, which still hasn't changed anything. I'll try a livecd later just to make sure that it's really software, and then I'll probably delete+reinstall if nobody can figure this out, because I'm not able to find anything on the web about a problem like this, and there doesn't appear to be anything helpful in the log.

Last edited by Unhelpful (2009-07-31 09:07:46)

Offline

#4 2009-07-31 09:32:42

miau
Member
Registered: 2009-05-06
Posts: 202

Re: X keyboard mapping problem

Could you post the xorg.conf you have used?

Offline

#5 2009-07-31 09:49:36

Unhelpful
Member
Registered: 2009-07-31
Posts: 4

Re: X keyboard mapping problem

xorg.conf:

Section "Module"
    SubSection  "extmod"
       Option    "omit xfree86-dga"
    EndSubSection
    Load    "i2c"
    Load    "ddc"
    Load    "vbe"
    Load    "dri"
    Load    "glx"
    Load    "synaptics"
EndSection

Section "ServerFlags"
     Option    "AllowMouseOpenFail"    "true"
     Option    "AutoAddDevices" "false"
     Option    "AllowEmptyInput" "false"
EndSection

Section "InputDevice"
     Identifier "keyboard"
     Driver "kbd"
#     Driver "evdev"
#     Option "Device" "/dev/input/by-path/platform-i8042-serio-0-event-kbd"
     Option "CoreKeyboard" "true"
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    VertRefresh    43 - 61
    HorizSync      28 - 80
    UseModes "modes"
EndSection


Section "Device"

    Identifier  "Nvidia0"
    Driver      "nvidia"
    Option "XAANoOffscreenPixmaps"
    Option "UseEvents" "True"
    Option "HorizSync" "CRT-0: 31.4-67.6"
    Option "VertRefresh" "CRT-0: 59.9-75.1"
    Option "FlatPanelProperties" "Scaling=aspect-scaled" 
    Option "ModeValidation" "DFP-0: NoHorizSyncCheck, NoMaxPClkCheck, NoEdidMaxPClkCheck, NoVertRefreshCheck, NoDFPNativeResolutionCheck"
    Option "MetaModes" "DFP-0: 1680x1050 @1680x1050 +0+0, CRT-0: NULL; DFP-0: 1360x768 @1360x768 +0+0, CRT-0: 1360x768 @1360x768 +0+0; DFP-0: 1680x1050 @1680x1050 +0+0, CRT-0: 1360x768 @1680x1050 +0+0; DFP-0: 1680x1050 @1920x1050 +0+0, CRT-0: 1920x1080 +0+0"
    Option "DynamicTwinView" "True"
    Option "TwinView"
    Option "DPI" "115x115"
EndSection

Section "Modes"
    Identifier "modes"
    ModeLine "1360x768" 85.48 1360 1424 1536 1792 768 771 778 795 -HSync -VSync
    Modeline "1920x1080"  148.50 1920 2008 2052 2200  1080 1084 1089 1125  +HSync -VSync
EndSection
    


Section "Screen"

    Identifier    "Screen 0"
    Device        "Nvidia0"
    Monitor       "Generic Monitor"
    Option       "AddARGBGLXVisuals" "true"

    DefaultDepth 24

    SubSection "Display"
        Depth        8
        ViewPort    0 0
    EndSubsection

    SubSection "Display"
        Depth           16
        ViewPort        0 0
    EndSubsection

    SubSection "Display"
        Depth           24
        ViewPort        0 0
    EndSubsection

EndSection

Section "ServerLayout"
    Identifier   "Main Layout"
    InputDevice "keyboard"
    Screen 0    "Screen 0"
EndSection

Section "Extensions"
   Option "Composite" "Enable"
EndSection

Disabling DynamicTwinview stops the vidmode cycling, but I suspect that's simply because the server only knows one mode. Applications still fail to receive any text input.

Offline

#6 2009-07-31 09:57:58

miau
Member
Registered: 2009-05-06
Posts: 202

Re: X keyboard mapping problem

Have you tried to add the Option Xkblayout "us" to your keyboard section?

Offline

#7 2009-07-31 10:03:58

Unhelpful
Member
Registered: 2009-07-31
Posts: 4

Re: X keyboard mapping problem

Yes, that produces no change, and even when it was using hal to set up the keyboard it was using the us layout.

Offline

Board footer

Powered by FluxBB