You are not logged in.

#1 2017-02-20 14:58:09

sacrew
Member
Registered: 2017-02-20
Posts: 14

problem with the keyboard layout

Every time when i reboot the system the keyboard layout change, i know there is already an post about this but my problem is a little bit different

when i reboot show this

$ localectl
   System Locale: LANG=es_CO.UTF-8
       VC Keymap: es
      X11 Layout: es
$setxkbmap -query
rules:      evdev
model:      pc105
layout:     us

when i use "setxkbmap -layout es"

show this

$ localectl
   System Locale: LANG=es_CO.UTF-8
       VC Keymap: es
      X11 Layout: es
$setxkbmap -query
rules:      evdev
model:      pc105

in xinitrc i have "setxkbmap -layout es" but this not work, aditionally when i put " setxkbmap -layout es" in the console (i use terminator and termite) it does not work  in both,
but it work in xterm

p.s tilda don't open i don't know why, maybe is connected with the problem

Last edited by sacrew (2017-02-21 12:01:07)

Offline

#2 2017-02-20 17:00:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: problem with the keyboard layout

First, welcome to the Arch Linux Forums.   
I assume that English is not your native language; I am guessing is it Spanish.  You may want to clarify the title to indicate that we are talking about keyboard layout
Also, please use BBCode code tags around program output for readability.

And, I am afraid I cannot help, I have never used anything but the default keyboard.  I am sure someone here can help with that.

Thanks.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2017-02-20 17:21:35

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: problem with the keyboard layout

on login choose "gnome on xorg" ...

Offline

#4 2017-02-20 18:03:25

olegabrielz
Member
From: Norway
Registered: 2015-12-23
Posts: 255

Re: problem with the keyboard layout

Have you tried one of these approaches?


Be aware of my Newbie Powers

Offline

#5 2017-02-21 12:43:33

sacrew
Member
Registered: 2017-02-20
Posts: 14

Re: problem with the keyboard layout

olegabrielz wrote:

Have you tried one of these approaches?

yes but doesn't work

i have this in 00-keyboard.conf

#nano 00-keyboard.conf
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "es"
        Option "XkbModel" "pc104"
        Option "XkbRules" "xorg"
EndSection

Offline

#6 2017-02-21 14:17:36

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: problem with the keyboard layout

aditionally when i put " setxkbmap -layout es" in the console (i use terminator and termite) it does not work  in both,
but it work in xterm

Are you on gnome and is it gnome on wayland?
If so, try the behavior w/ gnome on xorg, for your description sounds a lot like you're operating on xwayland.

Offline

#7 2017-02-22 13:25:55

sacrew
Member
Registered: 2017-02-20
Posts: 14

Re: problem with the keyboard layout

Are you on gnome and is it gnome on wayland?
If so, try the behavior w/ gnome on xorg, for your description sounds a lot like you're operating on xwayland.

I don't have it  just xorg sad

Offline

#8 2017-02-22 14:36:16

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: problem with the keyboard layout

Ok, then what session is that actually (i currently fail to understand how the terminal emulator could reasonably impact xsetxkbmap)
Run

loginctl session-status | tee session.status

and paste  the resulting session.status file somewhere (in code tags please, if "here")

Offline

#9 2017-02-23 00:26:21

sacrew
Member
Registered: 2017-02-20
Posts: 14

Re: problem with the keyboard layout

seth wrote:

Run

loginctl session-status | tee session.status

and paste  the resulting session.status file somewhere (in code tags please, if "here")

srry for  taking so long

$ loginctl session-status | tee session.status

Leader: 415 (gdm-session-wor)
	    Seat: seat0; vc2
	     TTY: /dev/tty2
	 Service: gdm-password; type wayland; class user
	   State: active
	    Unit: session-c2.scope
		  ├─415 gdm-session-worker [pam/gdm-password]
		  ├─425 /usr/lib/gdm/gdm-wayland-session gnome-session
		  ├─429 /usr/lib/gnome-session/gnome-session-binary
		  ├─450 /usr/bin/gnome-shell
		  ├─476 /usr/bin/Xwayland :0 -rootless -noreset -listen 4 -listen 5 -displayfd 6
		  ├─524 /usr/lib/gnome-settings-daemon/gnome-settings-daemon
		  ├─541 /usr/lib/gnome-settings-daemon/gsd-printer
		  ├─581 xterm
		  ├─585 bash
		  ├─870 firefox
		  ├─916 /usr/lib/firefox/plugin-container -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /usr/lib/firefox/browser 870 tab
		  ├─972 /usr/lib/firefox/plugin-container /usr/lib/mozilla/plugins/libflashplayer.so -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /usr/lib/firefox/browser 870 plugin
		  ├─990 termite
		  ├─997 /bin/bash
		  ├─998 loginctl session-status
		  └─999 tee session.status

Offline

#10 2017-02-23 00:35:15

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: problem with the keyboard layout

Service: gdm-password; type wayland; class user
....
├─476 /usr/bin/Xwayland :0 -rootless -noreset -listen 4 -listen 5 -displayfd 6

As predicted ...

Select "gnome on xorg" as session in the login screen and see what happens.

Next time somebody asks you something and you don't know the answer, you please say "don't know, how do I check that" - instead of just guessing a wrong answer, ok?

Offline

#11 2017-02-23 02:29:12

sacrew
Member
Registered: 2017-02-20
Posts: 14

Re: problem with the keyboard layout

As predicted ...

Select "gnome on xorg" as session in the login screen and see what happens.

Next time somebody asks you something and you don't know the answer, you please say "don't know, how do I check that" - instead of just guessing a wrong answer, ok?

it's so embarrassing i really sorry for that, i was stupid

Offline

#12 2017-02-23 07:30:04

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: problem with the keyboard layout

No problem, that's why this is the noobs corner ;-)

On gnome on wayland, your xorg config is pretty much worthless; gnome should provide a keyboard layout configuration in its settings - use that (but it might simply be unsupported stuff yet)

Offline

#13 2017-02-23 14:01:49

sacrew
Member
Registered: 2017-02-20
Posts: 14

Re: problem with the keyboard layout

seth wrote:

No problem, that's why this is the noobs corner ;-)

On gnome on wayland, your xorg config is pretty much worthless; gnome should provide a keyboard layout configuration in its settings - use that (but it might simply be unsupported stuff yet)

I select gnome on xorg in the login and the keyboard layout work's fine, but the direction keys don't work, the upkey just takes screenshots
i have this in the leader:

$ loginctl session-status | tee session.status
 Leader: 405 (gdm-session-wor)

and i have uncomented

 WaylandEnable=False

in 

 etc/gdm/custom.conf

Offline

#14 2017-02-23 14:36:49

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: problem with the keyboard layout

the upkey just takes screenshots

#nano 00-keyboard.conf

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "es"
        Option "XkbModel" "pc104"
        Option "XkbRules" "xorg"
        Driver          "evdev" # this one. you'll be using libinput which causes this here as well
EndSection

Offline

#15 2017-02-25 03:07:09

sacrew
Member
Registered: 2017-02-20
Posts: 14

Re: problem with the keyboard layout

seth wrote:

the upkey just takes screenshots

#nano 00-keyboard.conf

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "es"
        Option "XkbModel" "pc104"
        Option "XkbRules" "xorg"
        Driver          "evdev" # this one. you'll be using libinput which causes this here as well
EndSection

Wow the problem is solved but i still have the problem when i reboot the sistem the keyboard layout is change to us, I tried with the beginners guide and wiki,  I modify ~/.xinitrc, sudo setxkbmap -layout and does not work sad

Last edited by sacrew (2017-02-25 05:00:19)

Offline

#16 2017-02-25 07:32:08

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: problem with the keyboard layout

sudo setxkbmap -layout

Why do you think there should be a sudo? (this will fail for sure, root doesn't own the X authority)

Also I'm not sure gnome invokes ~/.xinitrc (unless you maybe added some autostart script)
Gnome likely resets the layout based on some own setting, so check its settings.

Offline

#17 2017-02-25 14:52:44

sacrew
Member
Registered: 2017-02-20
Posts: 14

Re: problem with the keyboard layout

seth wrote:

sudo setxkbmap -layout

Why do you think there should be a sudo? (this will fail for sure, root doesn't own the X authority)

Also I'm not sure gnome invokes ~/.xinitrc (unless you maybe added some autostart script)
Gnome likely resets the layout based on some own setting, so check its settings.

Is funny what happend to me, I investigate the gnome and i dont have installed the gnome-extras so I install it but suddenly the sistem reboot with this.

tpm_crb MSFT0101:00: can't request region for resource [mem 0

Offline

#18 2017-02-25 15:15:42

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: problem with the keyboard layout

"gnome-extra" (w/o the "s") is a group, no idea what it would pull in, but that's entirely unrelated and (very likely) means you've not installed the intel-ucode package.

Offline

#19 2017-02-25 17:26:51

sacrew
Member
Registered: 2017-02-20
Posts: 14

Re: problem with the keyboard layout

seth wrote:

"gnome-extra" (w/o the "s") is a group, no idea what it would pull in, but that's entirely unrelated and (very likely) means you've not installed the intel-ucode package.

I use usb boot to install intel-ucode in mnt ( mount mnt in linux system) then i reboot and gives me the same output

Last edited by sacrew (2017-02-25 18:59:23)

Offline

#20 2017-02-25 19:58:56

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: problem with the keyboard layout

Ok, just to be clear: the system doesn't even boot (and you assume that's related to the error message)?

Did you "pacman -Syu gnome-extras"?
Did that maybe update the kernel? (check the pacman log)?
Did you maybe forget to mount /boot first and now have a dated initrmfs there?

=> boot the installation medium, arch-chroot the installed system, DO NOT FORGET to "mount /boot", and "sudo pacman -S linux" (or linux-lts, depending on which kernel you run)

If that doesn't work, open a new thread on the matter for it's completely off-topic and shopping list threads are not appreciated.

Offline

Board footer

Powered by FluxBB