[LXDE] Keyboard layout not saved on reboot

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
samyboy

[LXDE] Keyboard layout not saved on reboot

Post by samyboy »

Hi,

I just installed Linux Mint, this is an awesome piece of Linux.

However LXDE is giving me trouble with the keyboard layout.

I've got a swiss french (fr_CH) keyboard an change with lxkeymap.
The layout changes accordingly but on next reboot the layout is en_US again.

This is very annoying. I ran accross this issue with Ubuntu Natty. They've got an open bug about it:
https://bugs.launchpad.net/ubuntu/+sour ... bug/729880

Thanks for your help.

Code: Select all

 $ lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 11 LXDE
Release:	11
Codename:	katya
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Garvan
Level 4
Level 4
Posts: 300
Joined: Sun May 29, 2011 3:26 am
Location: Thailand
Contact:

Re: [LXDE] Keyboard layout not saved on reboot

Post by Garvan »

I have no experience of this, but I saw in other threads that this is a known issue, and you need to modify the file ~/.dmrc with a text editor. See http://forums.linuxmint.com/viewtopic.p ... rc#p482067.

Garvan
Notebook: DELL Latitude E5520, i5-2520M @ 2.50 GHz, 4GB RAM, Linux Mint 17.2 (2011)
Notebook: DELL Latitude 5280, i5-73000 @ 2.7 GHz., 16 GB RAM, Linux Mint 19.2 (2019)
kelebek333
Level 4
Level 4
Posts: 419
Joined: Sat Jun 25, 2011 11:57 am

Re: [LXDE] Keyboard layout not saved on reboot

Post by kelebek333 »

I solve this problem following.

For autologin.

Run following code with lxtermial.

Code: Select all

sudo gedit /etc/xdg/lxsession/Mint-LXDE/autostart
Add following line on autostart file and save.

Code: Select all

@setxkbmap -layout "your_layout"
I use for turkish f keyboard

Code: Select all

@setxkbmap -layout "tr(f)"

For using LXDM

I change keyboard layout form bottom panel on LXDM.
But layout reset every time on LXDM.
Fix it following.

I run following code on lxterminal for get info from .dmrc

Code: Select all

cat ~/.dmrc
Give me following print.

[Desktop]

Code: Select all

Language=tr_TR
Langlist=tr_TR:en
LCMesstr_TR.UTF-8
Layout=tr	f
I open lxdm.conf file by run following code on lxterminal

Code: Select all

sudo gedit /etc/xdg/mint-lxde/lxdm/lxdm.conf
I find [Input] line on lxdm.conf file and add last line from .dmrc file.

Code: Select all

[Input]
Layout=tr	f
I save lxdm.conf file and logout, not change keyboard layout on LXDM.
Locked

Return to “Software & Applications”