You are not logged in.

#1 2017-06-27 20:14:43

nachopro
Member
Registered: 2013-08-23
Posts: 78

[REOPEN] Dell E7270 with two keyboards

Hi!

I have a new E7270 with KeyboardLayout US and I use and Logitech K380 with Layout ES

I wroted two xorg rules but the two keyboards comes with the same Layout!

My Goal: Use the KB's Laptop with US layout and the K380 with ES layout at the same time*.
* Generally I use the notebook attached to a external display in a "Desktop environment" but I need to frecuentrly move across boxes and I must use the integrated KB.

Xinput List output:

$ xinput list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS DualPoint Stick           	id=12	[slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS DualPoint TouchPad        	id=13	[slave  pointer  (2)]
⎜   ↳ Bluetooth Mouse M336/M337/M535          	id=16	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Power Button                            	id=8	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=9	[slave  keyboard (3)]
    ↳ Integrated_Webcam_HD                    	id=10	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=11	[slave  keyboard (3)]
    ↳ Dell WMI hotkeys                        	id=14	[slave  keyboard (3)]
    ↳ DELL Wireless hotkeys                   	id=15	[slave  keyboard (3)]
    ↳ Bluetooth Mouse M336/M337/M535          	id=17	[slave  keyboard (3)]
    ↳ Keyboard K380                           	id=18	[slave  keyboard (3)]

/etc/X11/xorg.conf.d/10-keyboard.conf

Section "InputClass"
    Identifier "system-keyboard"
    # MatchProduct "AT Translated Set 2 keyboard" # test 
    
    Option "XkbLayout"  "us"
    Option "XkbVariant" "intl"
EndSection

/etc/X11/xorg.conf.d/40-logitech-k380.conf

Section "InputClass"
    Identifier "Logitech K380"
    MatchProduct    "Keyboard K380"

    Option "XkbLayout"  "es"
EndSection

I tried with differents settings without success sad


Related topic: https://bbs.archlinux.org/viewtopic.php?id=224181

Last edited by nachopro (2017-07-08 05:47:30)

Offline

#2 2017-06-30 19:04:49

nachopro
Member
Registered: 2013-08-23
Posts: 78

Re: [REOPEN] Dell E7270 with two keyboards

Hi, any suggestion? Thanks!

Offline

#3 2017-07-05 14:36:55

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: [REOPEN] Dell E7270 with two keyboards

Post the xorg log file please, with the two keyboards.

Offline

#4 2017-07-07 01:23:31

nachopro
Member
Registered: 2013-08-23
Posts: 78

Re: [REOPEN] Dell E7270 with two keyboards

Hi @berbae Sorry for not understanding what You was asking

Here my Xorg's log output: https://gist.github.com/nachopro/84ea7d … d9d86e40a9


I have these two files

$ cat /etc/X11/xorg.conf.d/10-keyboard.conf

Section "InputClass"
    Identifier "Keyboard Defaults"
    MatchIsKeyboard "on"
    
    Option "XkbModel" "pc104"
    Option "XkbLayout"  "us"
    Option "XkbVariant" "altgr-intl"
EndSection


$ cat /etc/X11/xorg.conf.d/40-logitech-k380.conf

Section "InputClass"
    Identifier "Logitech K380"
    MatchIsKeyboard "on"

    MatchProduct "Keyboard K380"

    Option "XkbModel" "pc104"
    Option "XkbLayout"  "es"
EndSection

Thanks for your reply!

Last edited by nachopro (2017-07-07 19:26:50)

Offline

#5 2017-07-07 06:11:04

seth
Member
Registered: 2012-09-03
Posts: 50,983

Re: [REOPEN] Dell E7270 with two keyboards

User MatchProduct and MatchProduct for both items. You commented "AT Translated Set 2 keyboard" matching so there might be some matching problem?
Also berbae asked for your xorg log - and so will I ;-)

Offline

#6 2017-07-07 19:31:40

nachopro
Member
Registered: 2013-08-23
Posts: 78

Re: [REOPEN] Dell E7270 with two keyboards

@seth You are right!! I replied a question that nobody made! But note that I have no MatchProduct on my /etc/X11/xorg.conf.d/10-keyboard.conf
The commented line that you talk about was a testing before create this post (and does not difference)

@berbae I edited the post to reply what you are asking! Sorry for my mistake

Thanks @seth and @berbae!

Offline

#7 2017-07-07 19:39:59

seth
Member
Registered: 2012-09-03
Posts: 50,983

Re: [REOPEN] Dell E7270 with two keyboards

Ok, look at it. There are some errors "(EE)" - one of them should provide you a hook for further investigation.

Offline

#8 2017-07-07 20:08:50

nachopro
Member
Registered: 2013-08-23
Posts: 78

Re: [REOPEN] Dell E7270 with two keyboards

Thanks Seth! The problem was that the Option "XkbVariant" "altgr-intl" becoming assigned to all keyboard, and this is for keyboard US.
I switched this param to qwerty in my K380 conf to overwrite altgr-intl coming from 10-keyboard.conf.

Thanks a lot!!! Now is working as I want!!!

Offline

#9 2017-07-07 20:21:40

seth
Member
Registered: 2012-09-03
Posts: 50,983

Re: [REOPEN] Dell E7270 with two keyboards

Congratulations.
Now mark the thread as solved so others will know that there might be an answer in here ;-)

You'll find various legal es variants in /usr/share/X11/xkb/symbols/es

Offline

#10 2017-07-08 05:52:29

nachopro
Member
Registered: 2013-08-23
Posts: 78

Re: [REOPEN] Dell E7270 with two keyboards

Hi, sorry. I'm again!

Tonight, after a BT host or KB suspension (i guess), the keyboard settings gone off sad When I connect it to the laptop, the layout is US, but xorg's logs says that is ES. I can't understand it!

[ 19146.491] (II) config/udev: Adding input device Keyboard K380 (/dev/input/event21)
[ 19146.491] (**) Keyboard K380: Applying InputClass "libinput keyboard catchall"
[ 19146.491] (**) Keyboard K380: Applying InputClass "Logitech K380"
[ 19146.491] (II) Using input driver 'libinput' for 'Keyboard K380'
[ 19146.492] (II) systemd-logind: got fd for /dev/input/event21 13:85 fd 64 paused 0
[ 19146.492] (**) Keyboard K380: always reports core events
[ 19146.492] (**) Option "Device" "/dev/input/event21"
[ 19146.492] (**) Option "_source" "server/udev"
[ 19146.492] (II) event21 - (II) Keyboard K380: (II) is tagged by udev as: Keyboard
[ 19146.492] (II) event21 - (II) Keyboard K380: (II) device is a keyboard
[ 19146.492] (II) event21 - (II) Keyboard K380: (II) device removed
[ 19146.492] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/bluetooth/hci0/hci0:256/0005:046D:B342.0007/input/input28/event21"
[ 19146.492] (II) XINPUT: Adding extended input device "Keyboard K380" (type: KEYBOARD, id 11)
[ 19146.492] (**) Option "xkb_model" "pc104"
[ 19146.492] (**) Option "xkb_layout" "es"
[ 19146.493] (II) event21 - (II) Keyboard K380: (II) is tagged by udev as: Keyboard
[ 19146.493] (II) event21 - (II) Keyboard K380: (II) device is a keyboard

Restarting Xorgs fixed this issued, but I need to restart it after suspension sad
Can you help me? Thanks

Last edited by nachopro (2017-07-08 06:00:05)

Offline

#11 2017-07-08 20:19:00

nachopro
Member
Registered: 2013-08-23
Posts: 78

Re: [REOPEN] Dell E7270 with two keyboards

Here a complete log (including keyboard suspend):

[ 14452.909] (II) config/udev: removing device Keyboard K380
[ 14452.909] (**) Option "fd" "28"
[ 14452.909] (II) event21 - (II) Keyboard K380: (II) device removed
[ 14452.912] (II) UnloadModule: "libinput"
[ 14452.912] (II) systemd-logind: releasing fd for 13:85
[ 18903.397] (II) config/udev: Adding input device Keyboard K380 (/dev/input/event21)
[ 18903.397] (**) Keyboard K380: Applying InputClass "libinput keyboard catchall"
[ 18903.397] (**) Keyboard K380: Applying InputClass "Logitech K380"
[ 18903.397] (II) Using input driver 'libinput' for 'Keyboard K380'
[ 18903.398] (II) systemd-logind: got fd for /dev/input/event21 13:85 fd 68 paused 0
[ 18903.398] (**) Keyboard K380: always reports core events
[ 18903.398] (**) Option "Device" "/dev/input/event21"
[ 18903.398] (**) Option "_source" "server/udev"
[ 18903.398] (II) event21 - (II) Keyboard K380: (II) is tagged by udev as: Keyboard
[ 18903.398] (II) event21 - (II) Keyboard K380: (II) device is a keyboard
[ 18903.398] (II) event21 - (II) Keyboard K380: (II) device removed
[ 18903.398] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/bluetooth/hci0/hci0:256/0005:046D:B342.0003/input/input24/event21"
[ 18903.398] (II) XINPUT: Adding extended input device "Keyboard K380" (type: KEYBOARD, id 11)
[ 18903.398] (**) Option "xkb_model" "pc104"
[ 18903.398] (**) Option "xkb_layout" "es"
[ 18903.409] (EE) Error loading keymap /tmp/server-0.xkm
[ 18903.409] (EE) XKB: Failed to load keymap. Loading default keymap instead.
[ 18903.423] (II) event21 - (II) Keyboard K380: (II) is tagged by udev as: Keyboard
[ 18903.423] (II) event21 - (II) Keyboard K380: (II) device is a keyboard

sad

Offline

#12 2017-07-09 05:44:25

seth
Member
Registered: 2012-09-03
Posts: 50,983

Re: [REOPEN] Dell E7270 with two keyboards

Try using a variant that's actually in the forementined file.

Offline

#13 2017-08-28 04:43:41

nachopro
Member
Registered: 2013-08-23
Posts: 78

Re: [REOPEN] Dell E7270 with two keyboards

Hi all, I can't solve this yet! May be a bug?

In the log I View that keyboard registers two times (see event21)

[103676.489] (II) config/udev: Adding input device Keyboard K380 (/dev/input/event21)
[103676.489] (**) Keyboard K380: Applying InputClass "libinput keyboard catchall"
[103676.489] (**) Keyboard K380: Applying InputClass "Logitech K380"
[103676.489] (II) Using input driver 'libinput' for 'Keyboard K380'
[103676.491] (II) systemd-logind: got fd for /dev/input/event21 13:85 fd 69 paused 0
[103676.491] (**) Keyboard K380: always reports core events
[103676.491] (**) Option "Device" "/dev/input/event21"
[103676.491] (**) Option "_source" "server/udev"
[103676.491] (II) event21 - (II) Keyboard K380: (II) is tagged by udev as: Keyboard
[103676.491] (II) event21 - (II) Keyboard K380: (II) device is a keyboard
[103676.491] (II) event21 - (II) Keyboard K380: (II) device removed
[103676.491] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/bluetooth/hci0/hci0:256/0005:046D:B342.0008/input/input29/event21"
[103676.491] (II) XINPUT: Adding extended input device "Keyboard K380" (type: KEYBOARD, id 11)
[103676.491] (**) Option "xkb_model" "pc104"
[103676.491] (**) Option "xkb_layout" "es"
[103676.491] (II) event21 - (II) Keyboard K380: (II) is tagged by udev as: Keyboard
[103676.492] (II) event21 - (II) Keyboard K380: (II) device is a keyboard

Offline

#14 2017-08-28 06:04:36

seth
Member
Registered: 2012-09-03
Posts: 50,983

Re: [REOPEN] Dell E7270 with two keyboards

seth wrote:

Try using a variant that's actually in the forementined file.

Offline

Board footer

Powered by FluxBB