You are not logged in.

#1 2017-12-31 13:38:47

42578
Member
Registered: 2017-12-22
Posts: 45

Change Keyboard Layout

Hi.

How can I change my keyboard layout?

Thanks.

Last edited by Head_on_a_Stick (2018-01-19 07:13:53)

Offline

#2 2017-12-31 14:21:10

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Change Keyboard Layout

Open a terminal window and run this command:

sudo dpkg-reconfigure keyboard-configuration

See also https://wiki.debian.org/Keyboard

You could also try

sudo apt install ibus
ibus-setup

If you need a switcher in the systray then add this line to ~/.config/openbox/autostart:

ibus-daemon &

Perhaps try it without the ampersand as well, check if `ibus-daemon` returns the prompt if you run it and if it does then drop the ampersand.

Offline

#3 2018-01-18 22:10:23

42578
Member
Registered: 2017-12-22
Posts: 45

Re: Change Keyboard Layout

I have follow the steps of your first option but don't work. I have this:

update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults


The second option that you told me, I don't understand what you tell with this:

If you need a switcher in the systray then add this line to ~/.config/openbox/autostart:

ibus-daemon &

Perhaps try it without the ampersand as well, check if `ibus-daemon` returns the prompt if you run it and if it does then drop the ampersand.


Thanks a lot.

Offline

#4 2018-01-19 07:12:35

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Change Keyboard Layout

42578 wrote:

I have follow the steps of your first option but don't work. I have this:

update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults

Those messages are quite normal and do not mean that the command failed.

After you used `dpkg-reconfigure keyboard-configuration` did you pick a keyboard from the list?

Offline

#5 2018-01-19 08:35:04

42578
Member
Registered: 2017-12-22
Posts: 45

Re: Change Keyboard Layout

Ah, ok.

I pick a keyboard from the list (Generic Intel 105), but I don't know what are my keyboard.

My laptop is a Asus ROG.

Offline

#6 2018-01-20 12:23:39

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Change Keyboard Layout

42578 wrote:

I pick a keyboard from the list (Generic Intel 105), but I don't know what are my keyboard.

My laptop is a Asus ROG.

Try the other choices then, I'm sure one will work wink

Offline

#7 2018-01-20 12:37:26

42578
Member
Registered: 2017-12-22
Posts: 45

Re: Change Keyboard Layout

Is there any way to know what type of keyboard is in my laptop?

Offline

#8 2018-01-20 13:30:35

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: Change Keyboard Layout

42578 wrote:

Is there any way to know what type of keyboard is in my laptop?

Depends. I don't know for certain if there isn't a protocol/bus which supports this (USB at least should? as does Bluetooth?), but it's not possible to determine the physical layout of the keyboard from within X11.

You can gather some info however.

cat /proc/bus/input/devices

will include your keyboard and maybe tell you its product name/label. USB devices may provide more information here. For example, the "Name" may include stuff like "105 keys Intel keyboard" or suchlike. Here's my laptop's built-in keyboard. As you can see, it's not using the USB bus!

I: Bus=0011 Vendor=0001 Product=0001 Version=ab54
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input0
U: Uniq=
H: Handlers=sysrq kbd leds event0 
B: PROP=0
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

Info on how to read this is here.

Next, you can find the number of keycodes using

xinput --list --long

You'll find your keyboard here under the "Name" key you learned earlier.

Offline

#9 2018-01-20 13:50:57

42578
Member
Registered: 2017-12-22
Posts: 45

Re: Change Keyboard Layout

Sorry, but I'm really noob in this. Can you please explain this on other way?

Offline

Board footer

Powered by FluxBB