You are not logged in.

#1 2012-12-24 23:22:06

trixrabbit
Member
Registered: 2012-11-27
Posts: 100

[SOLVED] Terminal keyboard layout problem

I was reading the wiki https://wiki.archlinux.org/index.php/Xo … d_settings to try to change my keyboard layout from "us" to "canadian-french" and I changed the keymap to dvorak, now I try to change it back but I don't know what keyboard I'm using, Xorg detected it at first and I know there is a list but I don't know which one mine is.
When I try $ setxkbmap -print -verbose 10, I get : Cannot open display "default display"

Can anyone help me set my keyboard to canadian-french, or at least back to us.
thank you

Last edited by trixrabbit (2012-12-28 02:57:29)

Offline

#2 2012-12-25 01:21:10

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] Terminal keyboard layout problem

Are you in X, or in a console when you run this? "cannot open display" typically means you are trying to run a command in a console when that command only works in X.

Offline

#3 2012-12-25 06:59:39

trixrabbit
Member
Registered: 2012-11-27
Posts: 100

Re: [SOLVED] Terminal keyboard layout problem

oh I was in console, I'll try again in X.
Also with more research, I found this : http://betabug.ch/blogs/ch-athens/1242

and it worked, thank you.

EDIT: I am able to change the keyboard layout for the current session but it doesn't save when I reboot. so I tried https://wiki.archlinux.org/index.php/Xo … d_settings but I can't figure out what is the hot pluggin.
I tried creating 10-keyboard.conf with

Section "InputClass"
    Identifier             "Keyboard Defaults"
    MatchIsKeyboard	   "yes"
    Option	           "XkbLayout" "ca"
EndSection

and I get the error : MatchIsKeyboard is not a valid keyword in this section, removing it gives an error saying a need a driver line.

help please

Last edited by trixrabbit (2012-12-25 09:30:53)

Offline

#4 2012-12-26 00:49:23

trixrabbit
Member
Registered: 2012-11-27
Posts: 100

Re: [SOLVED] Terminal keyboard layout problem

do i have to download a pluggin for it to work, thank you,

Offline

#5 2012-12-26 09:48:27

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Terminal keyboard layout problem

Xorg keyboard layouts do not work in the console, because, well, Xorg isn't running.

The keyboard layout for the console (i.e. the tty, shell, whatever you wanna call it) is called a keymap.


https://wiki.archlinux.org/index.php/Be … and_keymap



PS: No, you don't need a plugin. smile Come on. This isn't the first time you heard of the term hot plugging. See the Wikipedia link from here. You probably just forgot. As an example, SATA drives are hot pluggable (meaning you can plug them in while the computer is running, without the need for a restart).

Last edited by DSpider (2012-12-26 09:57:12)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#6 2012-12-26 21:36:28

trixrabbit
Member
Registered: 2012-11-27
Posts: 100

Re: [SOLVED] Terminal keyboard layout problem

My console layout is fine, it's really the urxvt terminal language that is US and needs to be CA..but I think you answered my question.
oh wow, ya I had forgotten about hot pluggin, thanks for reminding me. I guess that since i'm using a thinkpad t61 they keyboard isn't hot-plugging since it's built in so maybe I need change my 10-keyboard.conf according to that.
I'll try that, thank you.

Offline

#7 2012-12-26 21:43:27

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Terminal keyboard layout problem

In the link from the original post there's a note:

Note: If you use GNOME, these settings will be ignored.

So which DE/WM are you using?


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#8 2012-12-26 21:49:59

Max-P
Member
Registered: 2011-06-11
Posts: 164

Re: [SOLVED] Terminal keyboard layout problem

Canadian French:

In console:

loadkeys cf

In xorg.conf (or xorg.conf.d/10-evdev.conf):

	Option "XkbLayout" "ca"
	Option "XkbVariant" "fr"

Works perfectly fine for me, at least wink

Offline

#9 2012-12-26 22:25:33

trixrabbit
Member
Registered: 2012-11-27
Posts: 100

Re: [SOLVED] Terminal keyboard layout problem

alright thanks, I'll try that.
Using openbox standalone

Offline

#10 2012-12-28 02:57:14

trixrabbit
Member
Registered: 2012-11-27
Posts: 100

Re: [SOLVED] Terminal keyboard layout problem

DSpider wrote:

In the link from the original post there's a note:

Note: If you use GNOME, these settings will be ignored.

So which DE/WM are you using?

perfect answer! thank you !

Offline

Board footer

Powered by FluxBB