Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Keyboard config resets on reboot (xubuntu)

  • 07-08-2013 8:30am
    #1
    Moderators, Arts Moderators Posts: 35,920 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,597 ✭✭✭gctest50


    does Ubuntu use /etc/default/keyboard


  • Moderators, Arts Moderators Posts: 35,920 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,931 ✭✭✭PrzemoF


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


  • Moderators, Arts Moderators Posts: 35,920 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: 35,920 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: 35,920 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: 35,920 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,336 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,931 ✭✭✭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: 35,920 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: 35,920 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