PDA

View Full Version : [lubuntu] Keyboard switch not permanent



Settler
April 23rd, 2011, 11:15 AM
Hi all,

I would like to add a language for my keyboard apart from english. I have found an answer for this through this forum but I goes away when I reboot.

Does anyone know how can I fix this permanently?

P.S. Same with my screen resolution and refresh rate. (If anyone know this too I'd be please to have the answer)

Thank you in advance

Settler
April 23rd, 2011, 05:03 PM
As in my title...

I use

setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,gr

for switching between english and greek, it works perfectly until I restart the machine...when only english is my option?

any advice for making it work permanently?

thank you in advance

mörgæs
April 23rd, 2011, 06:18 PM
http://ubuntuforums.org/showthread.php?t=1455877

Please don't create multiple threads on the same topic.

Settler
April 24th, 2011, 12:30 AM
I have checked these posts but it isn't working...

I have my bash file with the command inside... It work when I log-out/in but not when I restart...

cavalier911
April 24th, 2011, 02:20 AM
Add this to /etc/X11/xorg.conf :
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "us,gr"
Option "XkbOptions" "grp:alt_shift_toggle"
EndSection

Settler
April 24th, 2011, 09:43 AM
I have created the file copied and pasted the above content to xorg.conf but even with this after the reboot of my machine only english is the option...

Settler
April 24th, 2011, 03:21 PM
Latest addition...

If I reboot and open the LXTerminal... my languages increase to 2 (English, Greek)...

Any other way in order to avoid opening LXTerminal each time I restart the machine?

cavalier911
April 24th, 2011, 05:35 PM
sudo nano /usr/lib/X11/xorg.conf.d/05-evdev.conf
Change:
Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
to
Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbLayout" "us,gr"
Option "XKbOptions" "grp:alt_shift_toggle"
EndSection

Settler
April 24th, 2011, 08:15 PM
It brings me up an error: "No such file or directory"

And it doesn't let me create the folder "xorg.conf.d"

Any idea?

cavalier911
April 25th, 2011, 05:00 PM
My previous instructions tested as working on Lubuntu 10.04 Lucid.
I don't run Lubuntu 10.10 and found location of evdev.conf by searching maverick package contents at http://packages.ubuntu.com

Lubuntu 10.10 Maverick Meerkat :
/usr/share/X11/xorg.conf.d/10-evdev.conf

Settler
April 26th, 2011, 10:41 PM
There is no such thing in my installation... Any idea of how could I create it?

cavalier911
April 27th, 2011, 05:11 AM
Not only do you need the -evdev.conf but it has to have the correct prefix number and be in the right location.
-evdev.conf is installed by a package in every release of Lubuntu.
Reinstalling the correct package will provide the file with the correct name and put it in the proper location.
I need the info below to tell you the correct package to reinstall.
Open lxterminal,run each command in the code box and paste the complete output in your reply.
The first command will output your version of Lubuntu.
The second command will output the name of the package on your system that provides evdev.conf


lsb_release -a

dpkg -S *evdev.conf

Settler
April 28th, 2011, 01:58 PM
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick


xserver-xorg-core: /usr/share/X11/xorg.conf.d/10-evdev.conf

cavalier911
April 28th, 2011, 08:40 PM
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick


xserver-xorg-core: /usr/share/X11/xorg.conf.d/10-evdev.conf

Reinstall xserver-xorg-core which provides 10-evdev.conf :
Connected to internet.
Open lxterminal.

sudo apt-get -y --reinstall install xserver-xorg-coreOpen/Edit/Save 10-evdev.conf in leafpad:


sudo leafpad /usr/share/X11/xorg.conf.d/10-evdev.conf

Change:
Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
to
Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbLayout" "us,gr"
Option "XKbOptions" "grp:alt_shift_toggle"
EndSection