PDA

View Full Version : [ubuntu] [SOLVED] Keyboard layout keeps changing to english



InSearchOf
November 5th, 2008, 08:28 PM
My keyboard layout keeps changing form Norwegian to English (Ubuntu 8.04, kernel 2.6.24-16). I have Norwegian as default layout. Almost every day I have to change keyboard layout back to Norwegian from English. I do this in System - Preferences - Keyboard - Layouts. The weird thing though, is that when i go to Layouts, It still says Norwegian as default, (and that is the only language added to the list of layouts). I then have to add another Norwegian layout, and then remove the former layout. Then it works.

This problem arrived only a couple of weeks ago, and I've been on the same install since 7.10. Never been an issue until now. A problem popping up from what seems like nowhere...

Any experts out there?

-InSearchOf

fornix
November 6th, 2008, 05:45 AM
Can you paste the output of xorg.conf?
/etc/X11/xorg.conf

InSearchOf
November 6th, 2008, 09:29 AM
Ahhh...
Guess the part you are looking for from xorg.conf is this...
.........
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
..........
So once again the layout had changed when i logged in today. Here is the complete output of xorg.conf...
..........
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@vernadsky) Thu Jun 5 09:26:53 UTC 2008

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Synaptics Touchpad"
EndSection

Section "Module"
Load "glx"
EndSection

Section "ServerFlags"
Option "Xinerama" "0"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "TV-0"
HorizSync 30.0 - 75.0
VertRefresh 60.0
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce Go 7200"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Configured Video Device"
Monitor "Configured Monitor"
DefaultDepth 24
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP: nvidia-auto-select +0+0, TV: nvidia-auto-select +1280+0"
# Removed Option "metamodes" "TV: nvidia-auto-select +0+0, DFP: nvidia-auto-select +0+0"
# Removed Option "metamodes" "TV: 1024x768 +0+0, DFP: nvidia-auto-select +0+0"
# Removed Option "metamodes" "TV: 1024x768 +0+0, DFP: 1024x768 +0+0"
# Removed Option "metamodes" "TV: 1024x768 +1280+0, DFP: 1280x800 +0+0"
# Removed Option "metamodes" "TV: 800x600 +1280+0, DFP: 1280x800 +0+0"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "metamodes" "TV: nvidia-auto-select +1280+0, DFP: 1280x800 +0+0"
EndSection
...................

So I went back into Keyboard Layouts, where it still says Norwegian, but my keyboard behaves English(us). I do the procedure described in previous post and then everything seems ok, but xorg.conf hasnt changed. It's still an exact copy of the output posted here. Am I wrong guessing that
......
Option "XkbLayout" "us"
......
should be "no" instead? (or whatever equivalent to the "us" variable)

-InSearchOf

Edit: I now changed the string mentioned above from "us" to "no" and all seems fine after a reboot. Will wait for a few days and see if the problem occurs again.

Edit2: 6 Days later, and problem has not returned. I consider this as solved.