Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Keyboard config resets on reboot (xubuntu)

  • 07-08-2013 08:30AM
    #1
    Moderators, Arts Moderators Posts: 36,286 Mod ✭✭✭✭


    Since updating to 12.4 my keyboard, which has always been EN-GB keeps resetting itself to EN-US whenever I restart. I have to run the keyboard configuration (sudo dpkg-reconfigure keyboard-configuration) every single time.

    Does anyone have a reliable method of retaining my keyboard layout after rebooting?


Comments

  • Registered Users, Registered Users 2 Posts: 9,534 ✭✭✭gctest50


    does Ubuntu use /etc/default/keyboard


  • Moderators, Arts Moderators Posts: 36,286 Mod ✭✭✭✭pickarooney


    I'll test later and report back


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    Hmmm. I did have this before and I did fix it. I will mull it and get back to you. I think it may have been environment variable based (i.e. ignore that). What does "env" say?


  • Registered Users, Registered Users 2 Posts: 1,929 ✭✭✭PrzemoF


    Can you create a test user and confirm if that happens as well for the new account?


  • Moderators, Arts Moderators Posts: 36,286 Mod ✭✭✭✭pickarooney


    /etc/default/keyboard is set to gb but it still defaults to us on startup.

    env has
    LANG=en_US.UTF-8

    whereas my installation has always been en_GB


  • Advertisement
  • Moderators, Arts Moderators Posts: 36,286 Mod ✭✭✭✭pickarooney


    I think I fixed it, or nearly, with

    sudo locale-gen en_GB.UTF-8
    sudo update-locale LANG=en_GB.UTF-8


    The locale and env output are en-GB after logging back in and most of the keys seem to work. The ! symbol does not print correctly in the console or mousepad with monospace font but looks ok elsewhere.


  • Moderators, Arts Moderators Posts: 36,286 Mod ✭✭✭✭pickarooney


    This has reset itself after turning off the PC and going away for a week. ENV is showing GB but the keyboard is still US.


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    Can you remove the US keyboard locale somehow?


  • Registered Users, Registered Users 2 Posts: 5,238 ✭✭✭humbert


    Forgive me if this is a stupid suggestion but is there any chance it's the definition in /etc/X11/xorg.conf that's influencing things?


  • Moderators, Arts Moderators Posts: 36,286 Mod ✭✭✭✭pickarooney


    humbert wrote: »
    Forgive me if this is a stupid suggestion but is there any chance it's the definition in /etc/X11/xorg.conf that's influencing things?

    I don't think so. My video drivers just updated and fecked up my system once again and testing it seems that Xorg.conf is not even used.


  • Advertisement
  • Moderators, Technology & Internet Moderators Posts: 1,338 Mod ✭✭✭✭croo


    I don't think so. My video drivers just updated and fecked up my system once again and testing it seems that Xorg.conf is not even used.
    I think if there is an xorg.conf it gets used but that the modern X generates an xorg.conf on the fly so you normally don't define one.


  • Registered Users, Registered Users 2 Posts: 1,929 ✭✭✭PrzemoF


    Pickarooney, a few things to try:
    1. add XKBLAYOUT="gb" to /etc/default/keyboard

    2. http://linux.die.net/man/1/setxkbmap
    example usage: "setxkbmap gb intl"

    3. reset to default (-d) with http://linux.die.net/man/1/loadkeys

    What distro/kernel you use?


  • Moderators, Arts Moderators Posts: 36,286 Mod ✭✭✭✭pickarooney


    PrzemoF wrote: »
    Pickarooney, a few things to try:
    1. add XKBLAYOUT="gb" to /etc/default/keyboard

    2. http://linux.die.net/man/1/setxkbmap
    example usage: "setxkbmap gb intl"

    3. reset to default (-d) with http://linux.die.net/man/1/loadkeys

    What distro/kernel you use?

    /etc/default/keyboard has gb in it

    I've run setxkbmap gb and will see if it persists after reboot though I have my doubts.

    Using Xubuntu 12.04 with 3.2.0.52-pae-generic kernel. This only started after upgrading from 11.10. I had to reinstall the OS today after a bit of a calamity and once again it's doing this. It used the proper layout during the install, funnily enough.

    ETA: not sure if it's related but the keyboard has become extremely unresponsive in the last couple of minutes.


  • Moderators, Arts Moderators Posts: 36,286 Mod ✭✭✭✭pickarooney


    I added this to ~/.profile and now it seems ok
    setxkbmap gb

    It appears to be an unresolved bug in 12.0.4


Advertisement