You are not logged in.

#1 2023-09-03 18:40:09

hecsa
Member
Registered: 2023-09-03
Posts: 6

[SOLVED] AltGr on a latinamerican keyboard not working on XFCE4

Hi!
I'm trying to make work the AltGr key my latinamerican keyboard with no luck. All other keys look fine, but not AltGr.
Browsing different sites found something about using localectl, setxkbmap, the xfce4-keyboard-settings tool, etc., but nothing seems to work properly.
It looks like my AltGr key is working as a normal Alt, because if I type AltGr and 2 or 3 on an XFCE Terminal, it switches from tab to tab.
I started the machine with a Manjaro LiveUSB, because it works like a charm using Manjaro, and copied the output of localectl, which in Manjaro is what follows:

$ localectl
System Locale: LANG=en_US.UTF-8
    VC Keymap: latam                
   X11 Layout: latam
    X11 Model: pc105
  X11 Options: terminate:ctrl_alt_bksp

Then, configured /etc/X11/xorg.conf.d/00-keyboard.conf (copied from the Manjaro LiveUSB configuration):

Section "InputClass"
 Identifier "system-keyboard"
 MatchIsKeyboard "on"
 Option "XkbLayout" "latam"
 Option "XkbModel" "pc105"
 Option "XkbVariant" ""
 Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Also /etc/vconsole.conf:

KEYMAP=latam

...and now the output is what follows:

root@macross etc]# localectl
System Locale: LANG=en_US.UTF-8
    VC Keymap: (unset)                
   X11 Layout: latam
    X11 Model: pc105
  X11 Options: terminate:ctrl_alt_bksp

...but AlrGr still not working as it must.
Any ideas about what can be done to make it work properly?
Thanks in advance, and best regards,

HeCSa.

Last edited by hecsa (2023-09-03 20:07:03)

Offline

#2 2023-09-03 19:06:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,659

Re: [SOLVED] AltGr on a latinamerican keyboard not working on XFCE4

Please use [code][/code] tags. Edit your post in this regard.

Then post the output of 

setxkbmap -print -query

and

cat /usr/share/X11/xkb/symbols/latam | curl -F 'file=@-' 0x0.st

Afaict all latam variants have

include "level3(ralt_switch)"

Last edited by seth (2023-09-03 19:06:31)

Online

#3 2023-09-03 19:43:38

hecsa
Member
Registered: 2023-09-03
Posts: 6

Re: [SOLVED] AltGr on a latinamerican keyboard not working on XFCE4

Hi @seth!

First output:

$ setxkbmap -print -query
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+latam+us:2+inet(evdev)+terminate(ctrl_alt_bksp)+group(alts_toggle):1+group(alts_toggle):2"	};
	xkb_geometry  { include "pc(pc105)"	};
};
rules:      evdev
model:      pc105
layout:     latam,us
variant:    ,
options:    grp:alts_toggle,terminate:ctrl_alt_bksp

Second output:

$ cat /usr/share/X11/xkb/symbols/latam | curl -F 'file=@-' 0x0.st
http://0x0.st/HpYW.txt

Third line of your note: I don't see that in the first output. If this is needed, how can I have it added?

Thanks, and best regards,
HeCSa.

Offline

#4 2023-09-03 19:46:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,659

Re: [SOLVED] AltGr on a latinamerican keyboard not working on XFCE4

Third line of your note:

Was just me pointing out that the relevant configuration is done for all lantam layouts (look into the file you posted)

layout:     latam,us
options:    grp:alts_toggle,terminate:ctrl_alt_bksp

This isn't reflected by your locale config and the particular toggle sounds like it's a problem wink

Online

#5 2023-09-03 19:50:41

hecsa
Member
Registered: 2023-09-03
Posts: 6

Re: [SOLVED] AltGr on a latinamerican keyboard not working on XFCE4

Yes, I understand it's a problem...do you know how to fix it?
Thanks again, and best regards,

HeCSa.

Offline

#6 2023-09-03 19:53:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,659

Re: [SOLVED] AltGr on a latinamerican keyboard not working on XFCE4

Configure a different toggle, there're plenty.

grep toggle /usr/share/X11/xkb/rules/base.lst

Online

#7 2023-09-03 19:57:59

hecsa
Member
Registered: 2023-09-03
Posts: 6

Re: [SOLVED] AltGr on a latinamerican keyboard not working on XFCE4

Sorry I didn't ask on my previous note, but isn't this just to toggle my keyboard layout?
Thanks, and best regards,

HeCSa.

Offline

#8 2023-09-03 20:00:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,659

Re: [SOLVED] AltGr on a latinamerican keyboard not working on XFCE4

Yes, but right now you want to use both alt keys together to toggle the layout.
That wouldn't work if one of them was AltGr - therefore: use a different toggle (one that doesn't use the right alt key)

Online

#9 2023-09-03 20:04:26

hecsa
Member
Registered: 2023-09-03
Posts: 6

Re: [SOLVED] AltGr on a latinamerican keyboard not working on XFCE4

Great! That was the issue, it's working now!
Thanks a lot!
Best regards,

HeCSa.

Offline

Board footer

Powered by FluxBB