You are not logged in.

#1 2014-05-31 09:22:28

Emoryy
Member
From: Hungary
Registered: 2013-10-25
Posts: 22

Problem with the layout of wireless Logitech keyboard at startup

This seems to be quite a strange issue.
At system startup at the display manager login screen (I use lightdm) the layout of my Logitech K360 keyboard is set to english / qwerty, even though the system locale is hungarian.
This is understandably can be quite problematic upon entering passwords...
The curious thing is that the layout of the laptop's own keyboard remains hungarian, furthermore once I've hit a key on it, the layout of the wireless keyboard also resets to hungarian.

Fortunately I don't experience the issue once I logged in. (However this isn't a case for my work laptop (with the same keyboard), where the problem persists even after login. But I run Manjaro on that computer, so that doesn't belong here.)


toshiba satellite a300-1no, core2duo t5800@2ghz, 3gb ddr2, 120gb ocz vertex 3, 250gb wd scorpio blue, ati radeon hd3470

Offline

#2 2014-05-31 12:42:57

bluestreak0
Member
From: England
Registered: 2014-04-12
Posts: 22

Re: Problem with the layout of wireless Logitech keyboard at startup


Github (dotfiles etc.)

Offline

#3 2014-05-31 13:47:38

Emoryy
Member
From: Hungary
Registered: 2013-10-25
Posts: 22

Re: Problem with the layout of wireless Logitech keyboard at startup

Hate to say it, but no. (Not until now.)

However I don't really see any hint toward a solution.
In the wiki it is stated that there is three method to set the layout:
1) setxkbmap - says that changes can be made persistent with ~/.xinitrc, but as I guess that only applies when I log in with my user, and not on the login screen.
2) X configuration files - I already have an auto generated config file here with the right settings.
3) localectl - generates the aforementioned config files.


toshiba satellite a300-1no, core2duo t5800@2ghz, 3gb ddr2, 120gb ocz vertex 3, 250gb wd scorpio blue, ati radeon hd3470

Offline

#4 2014-05-31 14:07:09

bluestreak0
Member
From: England
Registered: 2014-04-12
Posts: 22

Re: Problem with the layout of wireless Logitech keyboard at startup

In /etc/lightdm.conf there is a setting called greeter-setup-script.

Try putting in there setxkbmap -layout etc. as detailed in the wiki.

This runs each time a greeter is started.

Not the cleanest solution, but should work.

Last edited by bluestreak0 (2014-05-31 14:07:43)


Github (dotfiles etc.)

Offline

#5 2014-05-31 16:44:44

Emoryy
Member
From: Hungary
Registered: 2013-10-25
Posts: 22

Re: Problem with the layout of wireless Logitech keyboard at startup

I've done as you said. I've put the line

greeter-setup-script = setxkbmap -model pc104 -layout hu

into /etc/lightdm/lightdm.conf
Still no good.


toshiba satellite a300-1no, core2duo t5800@2ghz, 3gb ddr2, 120gb ocz vertex 3, 250gb wd scorpio blue, ati radeon hd3470

Offline

#6 2014-05-31 21:13:00

bluestreak0
Member
From: England
Registered: 2014-04-12
Posts: 22

Re: Problem with the layout of wireless Logitech keyboard at startup


Github (dotfiles etc.)

Offline

#7 2014-06-01 09:23:58

Emoryy
Member
From: Hungary
Registered: 2013-10-25
Posts: 22

Re: Problem with the layout of wireless Logitech keyboard at startup

bluestreak0 wrote:

Tried it. Still no luck.

Also found this (at the bottom) https://wiki.archlinux.org/index.php/Lo … _xorg.conf
Which is what you said to try with lightdm. Except that the greeter script either doesn't work, or doesn't run.
It says that "temporary workaround". I guess (I hope) this implies that eventually it will be fixed.


toshiba satellite a300-1no, core2duo t5800@2ghz, 3gb ddr2, 120gb ocz vertex 3, 250gb wd scorpio blue, ati radeon hd3470

Offline

#8 2014-06-01 10:23:08

bluestreak0
Member
From: England
Registered: 2014-04-12
Posts: 22

Re: Problem with the layout of wireless Logitech keyboard at startup

If you dont think the command is excecuting, you could try writing a simple script in /usr/local/bin

#!/bin/sh
setxkbmap -model pc104 -layout hu

Then do

# chmod +x /usr/local/bin/keyboard.sh

Finally, in lightdm.conf, find the greeter-setup-script setting and put in

greeter-setup-script=/usr/local/bin/keyboard.sh

Github (dotfiles etc.)

Offline

Board footer

Powered by FluxBB