You are not logged in.

#1 2009-11-02 12:25:35

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 342
Website

Keyboard no longer works in X for most but not all users

Here is a bizarre one:

I ran a pacman -Syu yesterday afternoon, from a console window whilst in my KDE session. It seemed to go well, I then logged off and another user tried to log on.

Initially there appeared to be a problem with the nvidia drivers not loading due to some error. As a quick fix I reverted back to the Xorg "nv" drivers instead and that worked.

Alas the keyboard does not, for any other user other than me, nor any newly created users. The keyboard is so dead the numlock key does not even work, yet for me everything is fine.

I took copies of the file /var/log/Xorg.0.log for me and a user that does not work and ran a diff on them. There was no difference (other than the start time).

I have nothing in the directory /etc/had/fdi/policy, and never have had.

Here is the output of the end of Xorg.0.log

(**) NV(0):  Default mode "320x240": 15.8 MHz, 37.9 kHz, 72.8 Hz (D)
(II) NV(0): Modeline "320x240"x72.8   15.75  320 332 352 416  240 244 246 260 doublescan -hsync -vsync (37.9 kHz)
(**) NV(0):  Default mode "320x240": 12.6 MHz, 31.5 kHz, 60.1 Hz (D)
(II) NV(0): Modeline "320x240"x60.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz)
(**) NV(0): Display dimensions: (300, 220) mm
(**) NV(0): DPI set to (86, 88)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
        compiled for 1.7.1, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "xaa"
(II) LoadModule: "xaa"
(II) Loading /usr/lib/xorg/modules/libxaa.so
(II) Module xaa: vendor="X.Org Foundation"
        compiled for 1.7.1, module version = 1.2.1
        ABI class: X.Org Video Driver, version 6.0
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(II) NV(0): Using XFree86 Acceleration Architecture (XAA)
        Screen to screen bit blits
        Solid filled rectangles
        8x8 mono pattern filled rectangles
        Indirect CPU to Screen color expansion
        Solid Lines
        Scanline Image Writes
        Setting up tile and stipple cache:
                32 128x128 slots
                32 256x256 slots
                16 512x512 slots
(==) NV(0): Backing store disabled
(==) NV(0): Silken mouse enabled
(**) NV(0): DPMS enabled
(==) RandR enabled
(II) Initializing built-in extension Generic Event Extension
(II) Initializing built-in extension SHAPE
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension BIG-REQUESTS
(II) Initializing built-in extension SYNC
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-MISC
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)
record: RECORD extension enabled at configure time.
record: This extension is known to be broken, disabling extension now..
record: http://bugs.freedesktop.org/show_bug.cgi?id=20500
(**) Option "CoreKeyboard"
(**) Keyboard0: always reports core events
(**) Option "Protocol" "standard"
(**) Keyboard0: Protocol: standard
(**) Option "XkbRules" "xorg"
(**) Keyboard0: XkbRules: "xorg"
(**) Option "XkbModel" "pc105"
(**) Keyboard0: XkbModel: "pc105"
(**) Option "XkbLayout" "uk"
(**) Keyboard0: XkbLayout: "uk"
(WW) Option "XkbVariant" requires an string value
(**) Option "CustomKeycodes" "off"
(**) Keyboard0: CustomKeycodes disabled
(II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
(**) Option "Protocol" "auto"
(**) Option "Device" "/dev/psaux"
(II) PS/2 Mouse: Setting mouse protocol to "ExplorerPS/2"
(**) PS/2 Mouse: Device: "/dev/psaux"
(**) PS/2 Mouse: Protocol: "auto"
(**) Option "SendCoreEvents" "true"
(**) Option "CorePointer"
(**) PS/2 Mouse: always reports core events
(**) Option "Device" "/dev/psaux"
(**) Option "Emulate3Buttons" "true"
(**) Option "Emulate3Timeout" "70"
(**) PS/2 Mouse: Emulate3Buttons, Emulate3Timeout: 70
(**) Option "ZAxisMapping" "4 5"
(**) PS/2 Mouse: ZAxisMapping: buttons 4 and 5
(**) PS/2 Mouse: Buttons: 9
(**) PS/2 Mouse: Sensitivity: 1
(II) XINPUT: Adding extended input device "PS/2 Mouse" (type: MOUSE)
(**) PS/2 Mouse: (accel) keeping acceleration scheme 1
(**) PS/2 Mouse: (accel) acceleration profile 0
(II) PS/2 Mouse: Setting mouse protocol to "ExplorerPS/2"
(II) PS/2 Mouse: ps2EnableDataReporting: succeeded
(II) config/hal: Adding input device Macintosh mouse button emulation
(II) AutoAddDevices is off - not adding device.
(EE) config/hal: NewInputDeviceRequest failed (8)
(II) config/hal: Adding input device ImPS/2 Generic Wheel Mouse
(II) AutoAddDevices is off - not adding device.
(EE) config/hal: NewInputDeviceRequest failed (8)
(II) config/hal: Adding input device AT Translated Set 2 keyboard
(II) AutoAddDevices is off - not adding device.
(EE) config/hal: NewInputDeviceRequest failed (8)
(II) config/hal: Adding input device saa7134 IR (ASUSTeK P7131 Dual)
(II) AutoAddDevices is off - not adding device.
(EE) config/hal: NewInputDeviceRequest failed (8)
(II) config/hal: Adding input device Sleep Button
(II) AutoAddDevices is off - not adding device.
(EE) config/hal: NewInputDeviceRequest failed (8)
(II) config/hal: Adding input device Power Button
(II) AutoAddDevices is off - not adding device.
(EE) config/hal: NewInputDeviceRequest failed (8)
(II) config/hal: Adding input device Power Button
(II) AutoAddDevices is off - not adding device.
(EE) config/hal: NewInputDeviceRequest failed (8)

Any ideas?


Kind regards

Benedict White

Offline

#2 2009-11-02 14:33:13

imrehg
Member
From: Taiwan
Registered: 2008-04-10
Posts: 114
Website

Re: Keyboard no longer works in X for most but not all users

Affects me as well....
Using XFCE with SLIM, cannot even log in. Sometimes the keys dont' work at all, sometimes all my keypresses are the same key (wwwww, or zzzzz, or.... ). And no mouse at all.
Happened yesterday after pacman -Syu.
Have Acer Travelmate 4502, with ATI card, tried with the automatic xorg config (when there's no xorg.conf) set, and also with the "vesa" driver (that I used a lot before), both the same...

In Xorg.0.log there are these lines:

(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Keyboard0
(WW) Disabling USB Mouse

In other forums (mostly Ubuntu a few months back) when they had similar problems, the solution seemed to be to add this line to the xorg.conf

Section "ServerFlags"
        Option "AllowEmptyInput" "no"
EndSection

If I do that, the above log is not there anymore and finds all the input devices, but still cannot type anything....

Offline

#3 2009-11-02 14:39:29

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 342
Website

Re: Keyboard no longer works in X for most but not all users

Where are you supposed to add those lines?

What is odd about my setup is that all users can log in to the console, and the keyboard works fine until they startx when it goes wrong. I have also tried gnome (just in case) and that makes no difference.


Kind regards

Benedict White

Offline

#4 2009-11-02 14:45:34

imrehg
Member
From: Taiwan
Registered: 2008-04-10
Posts: 114
Website

Re: Keyboard no longer works in X for most but not all users

Benedict_White wrote:

Where are you supposed to add those lines?

in the /etc/X11/xorg.conf file, if you have any....
But I wouldn't mess with it if you don't know how that works. Easy to bork it in a way that's harder to fix when there's a solution later. Check out more of the forums in the meantime to pick up more info and be more confident how things work.

What is odd about my setup is that all users can log in to the console, and the keyboard works fine until they startx when it goes wrong. I have also tried gnome (just in case) and that makes no difference.

That's the situation for everyone. Not that odd, though, because the keyboard for the console has absolutely nothing to do with the keyboard support for X. They are completely separate. And since it is the problem of the X server, no matter if you use KDE, Gnome, XFCE, anything else... it will be the same underlying problem.

There seems to be enough stir already, hope some of the developers pick up the noise and there's a fix soon....

Offline

#5 2009-11-02 14:49:02

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 342
Website

Re: Keyboard no longer works in X for most but not all users

That's the situation for everyone. Not that odd, though, because the keyboard for the console has absolutely nothing to do with the keyboard support for X. They are completely separate. And since it is the problem of the X server, no matter if you use KDE, Gnome, XFCE, anything else... it will be the same underlying problem.

I understand that, but that does not explain why my Xwindows works fine, keyboard and all, and no other user on my system can get it to work at all, including root!

in the /etc/X11/xorg.conf file, if you have any....

I know which file, I was wondering where to put it in the file smile


Kind regards

Benedict White

Offline

#6 2009-11-02 14:52:41

imrehg
Member
From: Taiwan
Registered: 2008-04-10
Posts: 114
Website

Re: Keyboard no longer works in X for most but not all users

Benedict_White wrote:

That's the situation for everyone. Not that odd, though, because the keyboard for the console has absolutely nothing to do with the keyboard support for X. They are completely separate. And since it is the problem of the X server, no matter if you use KDE, Gnome, XFCE, anything else... it will be the same underlying problem.

I understand that, but that does not explain why my Xwindows works fine, keyboard and all, and no other user on my system can get it to work at all, including root!

First you said: the console works and X does not. What do you mean by "xwindows", then?  Also, whether it is root or not, does not make any difference.

in the /etc/X11/xorg.conf file, if you have any....

I know which file, I was wondering where to put it in the file smile

E.g. to the top....

Offline

#7 2009-11-02 15:01:06

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 342
Website

Re: Keyboard no longer works in X for most but not all users

Well, I fixed it! Under server flags section changed from:

Section "ServerFlags"
    Option         "AllowMouseOpenFail" "true"
    Option         "AutoAddDevices" "False"
EndSection

To:

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

And it all works fine!

Arghhhhhh....

Now all I need to know is how to mark this post as solved..


Kind regards

Benedict White

Offline

#8 2009-11-02 15:11:39

imrehg
Member
From: Taiwan
Registered: 2008-04-10
Posts: 114
Website

Re: Keyboard no longer works in X for most but not all users

Benedict_White wrote:

Well, I fixed it! Under server flags section changed from:

Section "ServerFlags"
    Option         "AllowMouseOpenFail" "true"
    Option         "AutoAddDevices" "False"
EndSection

To:

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

And it all works fine!

Arghhhhhh....

Now all I need to know is how to mark this post as solved..

I'm sorry to say, but that change does absolutely nothing for me.... Not solved at all, yet...

Offline

#9 2009-11-02 15:14:40

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 342
Website

Re: Keyboard no longer works in X for most but not all users

?Scratches head.....

I see.

Well, here is my whole xorg.conf.

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder57)  Thu Jun 25 19:52:48 PDT 2009

# Auto-generated by Archie mkxcfg
# Auto-generated by Archie mkxcfg

Section "ServerLayout"

# Serial Mouse not detected
# USB Mouse not detected
    Identifier     "Xorg Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "PS/2 Mouse" "CorePointer"
EndSection

Section "Files"

# Additional fonts: Locale, Gimp, TTF...
#       FontPath     "/usr/share/lib/X11/fonts/latin2/75dpi"
#       FontPath     "/usr/share/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/misc:unscaled"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/75dpi:unscaled"
    FontPath        "/usr/share/fonts/75dpi"
    FontPath        "/usr/share/fonts/100dpi:unscaled"
    FontPath        "/usr/share/fonts/100dpi"
    FontPath        "/usr/share/fonts/PEX"
    FontPath        "/usr/share/fonts/cyrillic"
    FontPath        "/usr/share/fonts/Type1"
    FontPath        "/usr/share/fonts/ttf/western"
    FontPath        "/usr/share/fonts/ttf/decoratives"
    FontPath        "/usr/share/fonts/truetype"
    FontPath        "/usr/share/fonts/truetype/openoffice"
    FontPath        "/usr/share/fonts/truetype/ttf-bitstream-vera"
    FontPath        "/usr/share/fonts/latex-ttf-fonts"
    FontPath        "/usr/share/fonts/defoma/CID"
    FontPath        "/usr/share/fonts/defoma/TrueType"
EndSection

Section "Module"
    Load           "ddc"  # ddc probing of monitor
    Load           "dbe"
    Load           "extmod"
    Load           "glx"
    Load           "bitmap" # bitmap-fonts
    Load           "type1"
    Load           "freetype"
    Load           "record"
        #   Load  "synaptics"
EndSection

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

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "keyboard"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "uk"
    Option         "XkbVariant" ""
EndSection

Section "InputDevice"
    Identifier     "Serial Mouse"
    Driver         "mouse"
    Option         "Protocol" "Microsoft"
    Option         "Device" "/dev/ttyS0"
    Option         "Emulate3Buttons" "true"
    Option         "Emulate3Timeout" "70"
    Option         "SendCoreEvents" "true"
EndSection

Section "InputDevice"
    Identifier     "PS/2 Mouse"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "ZAxisMapping" "4 5"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "true"
    Option         "Emulate3Timeout" "70"
    Option         "SendCoreEvents" "true"
EndSection

Section "InputDevice"
    Identifier     "USB Mouse"
    Driver         "mouse"
    Option         "Device" "/dev/input/mice"
    Option         "SendCoreEvents" "true"
    Option         "Protocol" "IMPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Buttons" "5"
EndSection

Section "Monitor"
 # Warning: This may fry old Monitors
 # Very conservative. May flicker.
#       VertRefresh  50.0 - 62.0 # Extreme conservative. Will flicker. TFT default.
        #  Default modes distilled from
        #      "VESA and Industry Standards and Guide for Computer Display Monitor
        #       Timing", version 1.0, revision 0.8, adopted September 17, 1998.
        #  $XFree86: xc/programs/Xserver/hw/xfree86/etc/vesamodes,v 1.4 1999/11/18 16:52:17 tsi Exp $
        # 640x350 @ 85Hz (VESA) hsync: 37.9kHz
    Identifier     "Monitor0"
    HorizSync       28.0 - 96.0
    VertRefresh     50.0 - 75.0
    ModeLine       "640x350" 31.5 640 672 736 832 350 382 385 445 +hsync -vsync
    ModeLine       "640x400" 31.5 640 672 736 832 400 401 404 445 -hsync +vsync
    ModeLine       "720x400" 35.5 720 756 828 936 400 401 404 446 -hsync +vsync
    ModeLine       "640x480" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
    ModeLine       "640x480" 31.5 640 664 704 832 480 489 491 520 -hsync -vsync
    ModeLine       "640x480" 31.5 640 656 720 840 480 481 484 500 -hsync -vsync
    ModeLine       "640x480" 36.0 640 696 752 832 480 481 484 509 -hsync -vsync
    ModeLine       "800x600" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
    ModeLine       "800x600" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
    ModeLine       "800x600" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
    ModeLine       "800x600" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
    ModeLine       "800x600" 56.3 800 832 896 1048 600 601 604 631 +hsync +vsync
    ModeLine       "1024x768" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync +vsync interlace
    ModeLine       "1024x768" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
    ModeLine       "1024x768" 75.0 1024 1048 1184 1328 768 771 777 806 -hsync -vsync
    ModeLine       "1024x768" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
    ModeLine       "1024x768" 94.5 1024 1072 1168 1376 768 769 772 808 +hsync +vsync
    ModeLine       "1152x864" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
    ModeLine       "1280x960" 108.0 1280 1376 1488 1800 960 961 964 1000 +hsync +vsync
    ModeLine       "1280x960" 148.5 1280 1344 1504 1728 960 961 964 1011 +hsync +vsync
    ModeLine       "1280x1024" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
    ModeLine       "1280x1024" 135.0 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
    ModeLine       "1280x1024" 157.5 1280 1344 1504 1728 1024 1025 1028 1072 +hsync +vsync
    ModeLine       "1600x1200" 162.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine       "1600x1200" 175.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine       "1600x1200" 189.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine       "1600x1200" 202.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine       "1600x1200" 229.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine       "1792x1344" 204.8 1792 1920 2120 2448 1344 1345 1348 1394 -hsync +vsync
    ModeLine       "1792x1344" 261.0 1792 1888 2104 2456 1344 1345 1348 1417 -hsync +vsync
    ModeLine       "1856x1392" 218.3 1856 1952 2176 2528 1392 1393 1396 1439 -hsync +vsync
    ModeLine       "1856x1392" 288.0 1856 1984 2208 2560 1392 1393 1396 1500 -hsync +vsync
    ModeLine       "1920x1440" 234.0 1920 2048 2256 2600 1440 1441 1444 1500 -hsync +vsync
    ModeLine       "1920x1440" 297.0 1920 2064 2288 2640 1440 1441 1444 1500 -hsync +vsync
    ModeLine       "1800x1440" 230 1800 1896 2088 2392 1440 1441 1444 1490 +hsync +vsync
    ModeLine       "1800x1440" 250 1800 1896 2088 2392 1440 1441 1444 1490 +hsync +vsync
    ModeLine       "640x480" 43.16 640 680 744 848 480 481 484 509 -hsync +vsync
    ModeLine       "768x576" 34.96 768 792 872 976 576 577 580 597 -hsync +vsync
    ModeLine       "768x576" 42.93 768 800 880 992 576 577 580 601 -hsync +vsync
    ModeLine       "768x576" 45.51 768 808 888 1008 576 577 580 602 -hsync +vsync
    ModeLine       "768x576" 51.84 768 808 888 1008 576 577 580 605 -hsync +vsync
    ModeLine       "768x576" 62.57 768 816 896 1024 576 577 580 611 -hsync +vsync
    ModeLine       "800x600" 68.18 800 848 936 1072 600 601 604 636 -hsync +vsync
    ModeLine       "1024x768" 113.31 1024 1096 1208 1392 768 769 772 814 -hsync +vsync
    ModeLine       "1152x864" 81.62 1152 1216 1336 1520 864 865 868 895 -hsync +vsync
    ModeLine       "1152x864" 119.65 1152 1224 1352 1552 864 865 868 907 -hsync +vsync
    ModeLine       "1152x864" 143.47 1152 1232 1360 1568 864 865 868 915 -hsync +vsync
    ModeLine       "1280x960" 124.54 1280 1368 1504 1728 960 961 964 1001 -hsync +vsync
    ModeLine       "1280x960" 129.86 1280 1368 1504 1728 960 961 964 1002 -hsync +vsync
    ModeLine       "1280x960" 178.99 1280 1376 1520 1760 960 961 964 1017 -hsync +vsync
    ModeLine       "1280x1024" 190.96 1280 1376 1520 1760 1024 1025 1028 1085 -hsync +vsync
    ModeLine       "1400x1050" 122.61 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
    ModeLine       "1400x1050" 149.34 1400 1496 1648 1896 1050 1051 1054 1094 -hsync +vsync
    ModeLine       "1400x1050" 155.85 1400 1496 1648 1896 1050 1051 1054 1096 -hsync +vsync
    ModeLine       "1400x1050" 179.26 1400 1504 1656 1912 1050 1051 1054 1103 -hsync +vsync
    ModeLine       "1400x1050" 214.39 1400 1512 1664 1928 1050 1051 1054 1112 -hsync +vsync
    ModeLine       "1600x1200" 280.64 1600 1728 1904 2208 1200 1201 1204 1271 -hsync +vsync
    Option         "DPMS" "true"
#       HorizSync    28.0 - 78.0 # Warning: This may fry very old Monitors
EndSection

Section "Device"
    Identifier     "Card0"
    Driver         "nv"
    VendorName     "All"
    BoardName      "All"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Card0"
    Monitor        "Monitor0"
    DefaultDepth    16
    SubSection     "Display"
        Depth       1
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       4
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       8
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       15
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       32
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Kind regards

Benedict White

Offline

#10 2009-11-02 19:18:39

ataylor
Member
Registered: 2008-04-10
Posts: 54

Re: Keyboard no longer works in X for most but not all users

I've got exactly the same problem as imrehg, have tried the fixes listed in this thread and same problem. Xorg logs don't really seem to show anything out of the ordinary.

Offline

#11 2009-11-02 20:46:12

jack.mitchell
Member
From: Ely, Cambridgeshire, UK
Registered: 2008-08-28
Posts: 156
Website

Re: Keyboard no longer works in X for most but not all users

I had to change my keyboard layout in /etc/hal/fdi/policies/10-keymap.fdi from uk to gb, then everything was alright again.

      <merge key="input.xkb.layout" type="string">gb</merge>

Line 19.

It seems Xorg as suddently got a lot more fraglie and less lienient. Hope this helps some of you!

Edit: or should I say HAL..... as if it ever was lienient.

Last edited by jack.mitchell (2009-11-02 20:46:37)

Offline

#12 2009-11-02 21:34:26

ataylor
Member
Registered: 2008-04-10
Posts: 54

Re: Keyboard no longer works in X for most but not all users

I've seen a similar solution somewhere else but I don't use HAL.

Offline

#13 2009-11-02 22:05:22

ataylor
Member
Registered: 2008-04-10
Posts: 54

Re: Keyboard no longer works in X for most but not all users

Managed to fix it by changing this line:

Option "XkbLayout" "uk"

to

Option "XkbLayout" "gb"

in xorg.conf.

Offline

#14 2009-11-03 03:05:22

imrehg
Member
From: Taiwan
Registered: 2008-04-10
Posts: 114
Website

Re: Keyboard no longer works in X for most but not all users

ataylor wrote:

Managed to fix it by changing this line:

Option "XkbLayout" "uk"

to

Option "XkbLayout" "gb"

in xorg.conf.

Got to try this one later, I have "gb" keyboard as well, so probably the same issue...

Offline

#15 2009-11-03 13:50:17

imrehg
Member
From: Taiwan
Registered: 2008-04-10
Posts: 114
Website

Re: Keyboard no longer works in X for most but not all users

Okay, fixed for now, almost the same way as you have said.

Had to change the value in /etc/hal/fdi/policy/10-keymap.fdi to read

<merge key="input.xkb.layout" type="string">gb</merge>

It was "uk" before, and it still gave me an us keyboard. Now with "gb" everything is back to normal.... I wonder what was this...

Offline

#16 2009-12-04 12:19:20

AtlanticVoyager
Member
Registered: 2009-08-11
Posts: 23

Re: Keyboard no longer works in X for most but not all users

I had to reinstall Arch Linux and what a packet of trouble reconfiguring xorg.conf gave me! There seems to be a tussle between the settings in xorg.conf and the auto-magic configuration of X by the new X-server. The xorg.conf.new file generated by Xorg -configure would not work and I had a lot of trouble trying to configure it properly
I have managed to get the keyboard and mouse working properly at last, but I still get a US instead of a UK keyboard. I have followed the advice here and changed /etc/hal/fdi/policy/10-keymap.fdi to read:
<merge key="input.xkb.layout" type="string">gb</merge>
and also changed Option "XkbLayout" in the "InputDevice" to read:
Option "XkbLayout" "gb"
The US keyboard layout won't shift. What else should I do? Unfortunately I cannot shop in dollars.

Offline

#17 2009-12-04 12:34:57

AtlanticVoyager
Member
Registered: 2009-08-11
Posts: 23

Re: Keyboard no longer works in X for most but not all users

I have an entry in ~/.xinitrc
setxkbmap gb
But it is ignored. The US keyboard returns after a reboot. I can temporarily code:
$ setxkbmap gb
and for one session it will give me a correct gb keyboard layout, but it is not permanent. Why should this be?
Any help would be greatly appreciated.

I want to be able to set the gb keyboard layout globally and not just for my own account.

Last edited by AtlanticVoyager (2009-12-04 12:42:08)

Offline

#18 2009-12-04 14:34:13

AtlanticVoyager
Member
Registered: 2009-08-11
Posts: 23

Re: Keyboard no longer works in X for most but not all users

I have found a solution, "gnome-keyboard-properties" was overiding my system settings, and giving a us keyboard layout by default. I had to change the System/Preferences/Keyboard/Layout settings in each account to uk default and delete the us layout.
Maybe this happened because I installed the gnome desktop before I had properly configured X.

Offline

Board footer

Powered by FluxBB