XFCE - switch to US keyboard layout on screen lock

I have a dual keyboard layout, and when xscreensaver triggers, I have no indication which language am I in. This is not a problem with gnome screen saver, but with xscreensaver that comes with xfce4 there is no indicator, which is annoying. Also, no indication that caps-lock is on, but at least this could be detected by the LED.
I modified /usr/bin/xflock4, adding following line to beginning of the file:
/usr/bin/setxkbmap -layout "us,ru" -option "grp:lalt_lshift_toggle,terminate:ctrl_alt_bksp"
it works, but only when I lock the screen using "lock screen" button on xfce panel. When screen locks up due to timeout, keyboard layout stays as-is. It looks like there is a different command being used by power manager to turn off screen. Anyone knows how to hook into this?
Last edited by asg1448 (2014-07-28 22:40:09)

More detail:  Some keys on the keyboard do work, ie: caps lock toggles the led, and the function keys across the top seem to work {that is I can adjust brightness, and so forth}
the letter and numbers, and perhap others do not work.

Similar Messages

  • Xfce issue with the keyboard layout

    Hello all
    I'm trying to configure my keyboard for another layout, but i just can't seem to do it, i've searched the xfce wiki and all
    The thing is, i'm doing these changes on the evdev file because i have no xorg-conf file, it's a directory not a file, and in the wiki they say this:
    Add the XkbLayout Option to your xorg.conf-file. Here is an example if you want to use german and russian keyboard-settings:
      Section "InputDevice"
      Identifier  "Keyboard0"
      Driver      "kbd"
           Option      "XkbModel" "pc105"
           Option      "XkbLayout" "de,ru"
      EndSection
    While my edev file usually looks like this
    Section "InputClass"
            Identifier "evdev keyboard catchall"
            MatchIsKeyboard "on"
            MatchDevicePath "/dev/input/event*"
            Driver "evdev"
    EndSection
    And i changed it to:
    Section "InputClass"
            Identifier "Keyboard0"
            MatchIsPointer "on"
            MatchDevicePath "/dev/input/event*"
            Driver "evdev"
            Option "XkbLayout" "pt"
            Option "XkbModel" "pc105"
    EndSection
    Really need a little hand here, thanks in advance

    1. If you found a solution, even if it's a simple one, please share it with the community.
    2. Please use [ code ] tags, not [ quote ] tags for posting snippets of code.
    3. Remember to mark the thread as solved.

  • Windows Welcome Screen Keyboard Layout

    Hello, I'm a Dvorak typist and I have changed my Windows settings to use that layout, but I cannot find (or there doesn't exist) an option to change the initial Welcome screen keyboard layout.  When locking my session or returning from screen saver
    mode, the layout is correct, but if I've logged out or restarted, the welcome screen reverts to Qwerty.  Is there an option to change this?

    Hi,
    I made a test in our testing environment, Windows 10 Technical Preview 9926 X64 English edition. After add the keyboard layout, such as Dvorak, we do need to restart the computer to let the setting come into effective.
    Therefore, please restart your computer for test.
    Roger Lu
    TechNet Community Support

  • NCS and non US keyboard layout - Guest - Email ID and @

    Problem:
    The problem is that we cannot email the Guest Account Details to the guest, because the popup where we fill in the email of the guest - Email ID - Does not recognise the @ when using non US Keyboard layout.
    When i use my local keyboard layout (Danish) and press AltGr+2 (this is the keyboard "shortcut" for @) it writes nothing.
    When i switch to US keyboard layout and press Shift+2 it writes @ fine.
    Version:
    Tried this in both 1.0 and I just upgraded to 1.1 and it is still the same.
    Does anyone know of a open BugID that addresses the following problem on the NCS Lobby Ambasador page ?

    Thomas,
    Have you tried it from different machines and different OSes and confirmed that the common denominator is NCS and not your specific KB/OS setup?
    Justin
    Sent from Cisco Technical Support iPhone App

  • Keyboard layout

    We are testing a java application under web start
    on a machine with two keyboard layouts (windows 2000).
    it seems that web start switches the selected
    keyboard layout arbitrary,
    sometimes english and sometimes german.
    Does anybody have experiences with this problem ?

    Yes, I mean the tray keyboard change:
    It switches back and forth.
    I do not switch the keyboard layout in the
    JAVA application, it seems that
    Web Start switches it by any reason.
    This does not happen on every machine
    ( all tests under w2k ).

  • Keyboard Layout User Account Domain Wide Issue

    I have a 2008 R2 Standard as my Domain Controller and File Server, 2012 R2 Standard Remote Desktop Server and 2012 Standard Server running some applications.
    All my computers log on and switch the default keyboard layout to Canadian English with the French layout.  I have tried to install US English and removed the Canadian layout, and even after removing it the Canadian Multilingual layout keeps coming
    back as default.  I am lost as to the reason and do not know how to fix this.  I even opened registry and US English is the only keyboard layout listed.
    Ideas?
    Thanks.

    Hi,
    At first, I would check that registry key;HKEY_USERS\.DEFAULT\Keyboard Layout\1
    What do you see ?
    And, if the value is ok there, you could make sure the imported keyboard is not check;
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
    IgnoreRemoteKeyboardLayout (REG_DWORD) = 1
    With the above two key, the new users will always get the default layout. Just watch out as user profile already created might have the bad keyboard.
    Edited; I wrote my answer first answer as if it's an issue when they logon the RDS's server, but if it's locally on their workstation, check the default layout in the first registry I give. If you see an 1109, or something like that it's more the canadian's
    keyboard code.
    Regards, Philippe
    Don't forget to mark as answer or vote as
    helpful to help identify good information. ( linkedin endorsement never hurt too :o) )
    Answer an interesting question ? Create a
    wiki article about it!

  • Keyboard layouts in Xmonad

    Hello, all!
    Can someone tell me, how to change between en and lt keyboard layouts using Caps Lock? (When disabled - en layout, active - lt)

    Thank You!
    It takes some time to configure, but this wm becomes just ideal for me. It solves all problems I had with awesome and dwm. Thank's again

  • [XFCE]Keyboard layout config sometimes gets reset after suspend/resume

    After I got suspend/resume working thanks to the help here, I have still another little problem with it: After suspend/resume the keyboard layout configuration in the corresponding xfce-panel plugin is sometimes reset to US. The keyboard layout should be Russian/German with switching the layouts with LCtrl+LShift. In the xorg.conf everything is fine, but it seems to be disregarded:
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "de,ru"
    Option "XkbVariant" ",winkeys"
    Option "XkbOptions" "grp:ctrl_shift_toggle"
    EndSection
    The settings that I make in the panel-applet via its configuration dialogue work though, but they sometimes get reset after a suspend/resume.
    The XFCE session is started via following command in ~/.xinitrc:
    exec ck-launch-session dbus-launch xfce4-session
    Thanks for any hint,
    PhotonX

    I see. Then you should maybe add debug output to check whether the script is run at all and if yes, where it fails. Like
    button/lid)
    echo "lid action caught" >> /home/lid.log
    case "$3" in
    close)
    logger 'LID closed'
    # Suspend and lock the screen
    /usr/sbin/pm-suspend &
    DISPLAY=:0.0 su -c - miki /usr/bin/slimlock
    echo "lid closed" >> /home/lid.log
    open)
    logger 'LID opened'
    # Set the keyboard layout again on IT
    setxkbmap it
    echo "lid opened" >> /home/lid.log
    logger "ACPI action undefined: $3"
    echo "something wrong happened" >> /home/lid.log
    esac
    and then check /home/lid.log after lid close&open.

  • Screen locked with non-English keyboard layout selected

    Hello,
    I use two keyboard character sets for keyboard. The switch between them is Command-Space.
    I also have password requirement for waking up or going from screen saver.
    Now if screensaver starts with non-English layout selected, I'm not able to login:
    password is not accepted because keyboard layout is not English and switching
    to English layout does not work in unlocking window.
    Is there any way to change layout while in the unlock window?
    Thanks

    Yes you are right, this is not a bug, it's just bad user interface. Just imagine the following scenario...
    Writing a paper, switching to Greek to enter a couple of characters and leaving the mac idle for 5 mins.
    The lock screen comes up asking for a password, unfortunately the user didn't change the language
    before the mac was left idle and there is no option to change the language in the lock screen.
    User has to hard reset to access the mac and let's hope that the user was saving his paper frequenlty.
    So from a coding point of view this is not a bug, but from a user interface design it is a huge flaw

  • Xfce4 keyboard layout switcher

    I am having a strange issue with setting up xfce4 on my fathers' laptop. Every time I switch the keyboard layout, the x terminal emulator start acting weird:
    [jarda-wien@primator ~]$ whoami
    jarda-wien
    [jarda-wien@primator ~]$ echo hello
    bash: echo hello: command not found
    [jarda-wien@primator ~]$ ping www.google.com
    bash: ping www.google.com: command not found
    [jarda-wien@primator ~]$ echo $PATH
    bash: echo /bin:/usr/bin:/sbin:/usr/sbin:/opt/java/jre/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/opt/qt/bin: No such file or directory
    Before switching the keyboard, everything works fine... As this doesn't happen on virtual terminal, it may be an xorg/xfce issue. What do you make of it?

    ok so I've made a workaround for that... The problem seems to be not only xfce4 related as the same behavior can be seen on yakuake running on xfce4 and every other terminal emulator I have tried, as well as on openbox and all the terminals. Anyway, here's the fix:
    Remove any
    Option "XkbLayout" "us,cz"
    Option "XkbOptions" "grp:alt_shift_toggle"
    and install xbindkeys from extra.
    Next edit and save the following script somewhere:
    #!/bin/bash
    # Put your desired layouts, space separated, between the brackets
    layout=(us de cz)
    # Main code, do not change, unless you know what you're doing
    current=$( setxkbmap -print | grep -o 'pc+[a-zA-Z0-9_-/]*' | sed 's/pc+//' )
    num=${#layout[@]}
    i=0
    for use in ${layout[@]} ; do
    i=$[ i + 1 ]
    if [[ $current = $use ]] ; then
    if [[ $i -eq $num ]] ; then
    setxkbmap ${layout[0]}
    break
    else
    setxkbmap ${layout[$i]}
    break
    fi
    fi
    done
    exit $?
    Make the script executable and try it! It should cycle through the specified layouts. The next step is to map the script to a keyboard shortcut in .xbindkeysrc (look up how in the wiki...)
    Everything works now, even after switching the layout!!!

  • Keyboard layout switching does not work if I connect a second keyboard

    When I connect an external keyboard (a very ordinary Dell keyboard, no extra keys or something unusual) to my laptop, XFCE keyboard layout switcher disappears from a the and keyboard shortkut meant to switch also does not work. Rebooting with the keyboard initially attached does not help. Any ideas how to fix?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Fix Keyboard Layouts plugin in XFCE 4.10

    The keyboard layouts plugin which I use on XFCE to switch between layouts (like the name says) stopped working on the Update to XFCE 4.10.1. The reason is, that "Keyboard Layouts" depends that xkbcomp is available in /usr/share/X11/xkb. To fix this, simply make a symbolic link:
    sudo ln -s /usr/bin/xkbcomp /usr/share/X11/xkb/
    That's it. I hope somebody can use this.

    Thanks! This solved it for me.

  • [PROBLEM] Keyboard layout unexpected behaviour problem Xfce

    Dear Everyone,
    I am rather new to arch linux. I have recently (about a week ago) installed archlinux with xorg and xfce (booted by slim), and reading the wiki I managed to set up a fully working computer. But there is a slight problem that continues bugging me about keyboard layouts, and although I have found a way to make the keyboard layout switching with alt+shift work I think that I did it in a nonstandard way and some programs still exhibit unusual (and I think unintended) behaviour.
    Here goes:
    I use a notebook
    My xorg uses hotplugging that seems to be working (hal and dbus installed and running at bootup, detects external usb mouse, I have no xorg.conf file). When I setup my keyboard I put the 10-keymap.fdi from the /usr/share/... dir into /etc/hal/fdi/policy/10-keymap.fdi and it contains (as instructed by the wiki):
    <merge key="input.xkb.layout" type="string">us,ru</merge>
    <merge key="input.xkb.variant" type="string" />
    <merge key="input.xkb.options" type="string">grp:alt_shift</merge>
    And here is the problem:
    After editig this file I restarted hal using
    #/etc/rc.d/hal stop
    #/etc/rc.d/hal start
    and keyboard switching with alt+shift started working.
    Then I went to the xfce keyboard settings to the layout tab and my setup was:
    keyboard model -> evdev-managed keyboard
    keyboard layout -> us   
    so the russian layout did not appear (also adding the russian layout through this menu before editing the .fdi file was useless (it was the first thing I tried before reading the wiki and writing config files for hal))
    I started the keyboard layout switcher applet for xfce and it also displayed only the us flag and had only us as the available layout, and even switching to russian layout using alt+shift had no effect on the displayed flag.
    What I decided to do then was to restart my system.
    Everything restarted without error (hal and stuff started etc..) but it was no longer possible to switch keyboard layouts using alt+shift.
    The xfce keyboard settings now displayed us and ru as available layouts but switch between them using the mouse in the settings menu had no effect whatsoever. Also the layout switcher displayed that both layouts were available but for the russian keyboard the variant field displayed a lot of garbage (I will post screenshot soon). Switching to the russian layout through any key sequence defined in the applet was useless. Trying to switch it with the mouse by selecting the flag didn't do anything either.
    The only way I discovered to make the alt+shift keys work is by manually restarting hal through
    #/etc/rc.d/hal stop
    #/etc/rc.d/hal start
    which is very strange since I have not changed any settings file.
    Then again every time I restarted my comuter the ability to switch layouts was lost until manually restarting hal.
    The only  solution I found was going to the xfce keyboard settings and clicking the  "Use system defaults []"
    After restarting the system alt+shift switching began to work fine but the keyboard applet didn't  work anyway.
    As a consequence I think that all this is a big mess since I suppose that what I described is not the expected behaviour. The other effect of this is that only user with root priviledges could possibly add a new layout to the system (editing the /etc/hal/policy/10-keymap.fdi file) while the idea was that the gui tools of the DM (xfce in my case) permitted the user to change layouts on his/her own. Then again the keyboard layour applet never worked so it is impossible to have an indicator of the current layout. Where do you think should I write about this. I think this qualifies as a bug although I do not know whose fault is it: is it xfce, Xorg, hal or others?  And having to restart hal maunally without having changed any config files is rather strange. The garbage displayed by the applet is also suspicious.
    Any advice to where to report this and how to fix everything would be great.
    P.S. Throughout all these tries to make things work the setxkbmap command from the cli never had any effect.
    Last edited by cavesnow (2009-03-14 10:41:51)

    hmm... i have a similar problem:
    i want two layouts: GB(english) and ES(spanish). I have them defined in /etc/hal/fdi/policy/10-keymap.fdi :
    <merge key="input.xkb.layout" type="string">gb,es</merge>
    and i can actually switch between them. the issue is that i have an extra, unwanted layout. i have to press once in order to change from GB to ES, then if i want to switch back to GB, i have to switch twice. There is a third layout i did not configured.
    Example of the layouts:
    GB: abcdefghijklmnopqrstuvwxyz
    ES: abcdefghijklmnopqrstuvwxyz    and i can write accents and everything for spanish:  ñÑáéíóú, etc.
    unkown third layout: æ"¢ðeđŋħ→jĸłµnøþ@¶ßŧ↓"ł»←«
    łħæŧ →ß ŧħ→ß???
    sorry, i mean:
    what is this???
    any help would be appreciated.

  • Keyboard layout switching not working

    i use xfce4 and i created /etc/X11/xorg.conf
    Section "InputClass"
        Identifier             "Keyboard Defaults"
        MatchIsKeyboard        "yes"
        Option                 "XkbLayout" "us, ar"
        Option                 "XkbOptions" "grp:alt_shift_toggle"
    EndSection
    but it's not working.
    xfce4 has a program called Keyboard in settings menu, i used it it gives the ability to add another language but it doesnt has a switching capability.

    I don't use keyboard layout switch through xorg.conf because it stops to work sometimes(if i use setxkbmap for example).
    So i am using setxkbmap in .xinitrc.
    setxkbmap -model pc105 \
    -layout "de,ru" \
    -variant "basic,phonetic" \
    -option -option "grp:sclk_toggle, grp_led:scroll, terminate:ctrl_alt_bksp, caps:none"
    and "kbdd" for remembering layout for each window.
    Change it to your needs or check the arch wiki about xorg.conf.d .

  • Is there a way to change the keyboard layout on locked screen iOS7?

    I updated my ipad from ios6 to ios7. I noticed a really ridiculous thing after i updated my IPAD. The thing is after starting my device with ios7, i tried to enter my pass on the lock screen, but no way.
    My old password consisted characters such as ¥ $# etc ...  the keyboard layout is changed in ios7 and I couldn't see the "¥" sign anymore. I tried to restore it but I do need the lock pass.
    Any ideas?

    Hi.  I guess there will always be differences in text handling between apps like InDesign and Illustrator, which are fundermentally layout apps, and Photoshop that isn't.  But I'd like to be clear about how you Photoshop set up?  For instance, I prefer to set type size to mm in Photoshop and InDesign so I can better predict text sizing in a given document.  For fine adjustment I do it by eye, so don't really care about what the units are.
    If I have missunderstood your point (sorry about the non intended pun) please explain some more.
    Incidentally, Nigel French has an excellent title on Lynda.com called 'Photoshop for Designers - Type Essentials'.  It's probably the best source I know of for handling type in Photoshop.
    http://www.lynda.com/Photoshop-CS5-tutorials/Photoshop-for-Designers-Type-Essentials/53258 -2.html

Maybe you are looking for