Results 1 to 9 of 9

Thread: Wrong keyboard layout at login screen

  1. #1
    Join Date
    Apr 2008
    Beans
    231
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Wrong keyboard layout at login screen

    I accidentally installed Ubuntu 9.04 with the wrong keyboard layout. No problem, I just went to System > Preferences > Keyboard > Layout and added the correct layout then removed the incorrect one. Everything is working fine now, except that my login screen is set to the original layout. Does anyone know how to change the login screen keyboard layout?

  2. #2
    Join Date
    Mar 2006
    Beans
    8,348

    Re: Wrong keyboard layout at login screen

    In terminal

    Code:
    gksudo gedit  /etc/X11/xorg.conf
    and you will see section

    #Section "InputDevice"
    # Identifier "Generic Keyboard"
    # Driver "kbd"
    # Option "XkbRules" "xorg"
    # Option "XkbModel" "pc105"
    # Option "XkbLayout" "us"
    # Option "XkbOptions" "lv3:ralt_switch"

    #EndSection
    # Option "XkbLayout" "us" this is line you are interested in.Change language there and you should be fine.Save and close file and good luck!
    There is no greater religion than a truth.

  3. #3
    Join Date
    Apr 2008
    Beans
    231
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Wrong keyboard layout at login screen

    That's how it used to be, but I thought Ubuntu changed it. Below are the contents of my xorg.conf file:

    Code:
    # 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.
    #
    # Note that some configuration settings that could be done previously
    # in this file, now are automatically configured by the server and settings
    # here are ignored.
    #
    # 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 "Device"
    	Identifier	"Configured Video Device"
    EndSection
    
    Section "Monitor"
    	Identifier	"Configured Monitor"
    EndSection
    
    Section "Screen"
    	Identifier	"Default Screen"
    	Monitor		"Configured Monitor"
    	Device		"Configured Video Device"
    EndSection
    The only sections are Device, Monitor, and Screen. There's no InputDevice section. Any ideas?

  4. #4
    Join Date
    Mar 2006
    Beans
    8,348

    Re: Wrong keyboard layout at login screen

    Code:
    sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
    Code:
     sudo dpkg-reconfigure -phigh xserver-xorg
    There is no greater religion than a truth.

  5. #5
    Join Date
    Apr 2008
    Beans
    231
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Wrong keyboard layout at login screen

    I'm afraid that doesn't do anything:

    Code:
    $ cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
    $ diff /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
    $ sudo dpkg-reconfigure -phigh xserver-xorg
    xserver-xorg postinst warning: overwriting possibly-customised configuration
       file; backup in /etc/X11/xorg.conf.20090507164807
    $ diff /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
    $

  6. #6
    Join Date
    Mar 2006
    Beans
    8,348

    Re: Wrong keyboard layout at login screen

    See if you have what you need in /etc/X11/xorg.conf.20090507164807 file.
    There is no greater religion than a truth.

  7. #7
    Join Date
    Apr 2008
    Beans
    231
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Wrong keyboard layout at login screen

    Quote Originally Posted by zvacet View Post
    See if you have what you need in /etc/X11/xorg.conf.20090507164807 file.
    Nope. It's exactly the same as both xorg.conf and xorg.conf.bak.

  8. #8
    Join Date
    Mar 2006
    Beans
    8,348

    Re: Wrong keyboard layout at login screen

    See if this can be of any help to you.
    There is no greater religion than a truth.

  9. #9
    Join Date
    Apr 2008
    Beans
    231
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Wrong keyboard layout at login screen

    Yes, that worked. Thanks.

    For anyone curious, the command that worked for me was:
    Code:
    sudo dpkg-reconfigure xserver-xorg

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •