[clavier] double clavier avec double layout (résolu)

Reconnaissance et configuration du matériel / kernel linux
tomsawyer01
archer de cavalerie
Messages : 152
Inscription : mar. 24 juin 2014, 12:37

[clavier] double clavier avec double layout (résolu)

Message par tomsawyer01 »

Bonjour,
Mon laptop est un dell qui tourne sous Archlinux avec KDE et clavier en azerty. Et je viens d'avoir un écran externe avec un clavier externe (Querty) . Du coup , je demande votre aide si c'est possible de switcher automatiquement entre les 2 claviers Querty et Azerty ?
Merci d'avance
Dernière modification par tomsawyer01 le mer. 25 nov. 2020, 17:28, modifié 1 fois.
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17180
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [clavier] double clavier avec double layout

Message par benjarobin »

Bonjour,
Que je sache tu ne peux pas avoir un layout par clavier. Le layout est forcément commun à tous les clavier de branché
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
viperpaulo
Chu Ko Nu
Messages : 389
Inscription : lun. 06 déc. 2010, 13:58

Re: [clavier] double clavier avec double layout

Message par viperpaulo »

Hello,

Je ne sais pas du tout si c'est possible mais en utilisant des "Identifier" différents pour les claviers dans la configuration de Xorg ?

Code : Tout sélectionner

Section "InputClass"
    Identifier         "XXXXX quelque chose à trouver XXXXX"
    MatchIsKeyboard    "yes"
    Option             "XkbLayout"  "fr"
    Option             "XkbVariant" "latin9"
EndSection
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17180
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [clavier] double clavier avec double layout

Message par benjarobin »

Hum, je crois avoir dis une bêtise, il est peut être possible de réaliser une telle chose.
L'identifier n'a aucune importance, tu dois juste en avoir 2 de différents.
Tu dois supprimer / changer la condition pour que cela match le bon device, je te conseille pour cela MatchUSBID si ton clavier est en USB
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
tomsawyer01
archer de cavalerie
Messages : 152
Inscription : mar. 24 juin 2014, 12:37

Re: [clavier] double clavier avec double layout

Message par tomsawyer01 »

J'ai essayé avec un raccourci pour switcher entre les 2 rapidement pour l'instant. Je creuse du coté de KDE pour separer selon l'ecran aussi et tester celui de @viperpaulo
tomsawyer01
archer de cavalerie
Messages : 152
Inscription : mar. 24 juin 2014, 12:37

Re: [clavier] double clavier avec double layout

Message par tomsawyer01 »

viperpaulo a écrit : lun. 23 nov. 2020, 14:44 Hello,

Je ne sais pas du tout si c'est possible mais en utilisant des "Identifier" différents pour les claviers dans la configuration de Xorg ?

Code : Tout sélectionner

Section "InputClass"
    Identifier         "XXXXX quelque chose à trouver XXXXX"
    MatchIsKeyboard    "yes"
    Option             "XkbLayout"  "fr"
    Option             "XkbVariant" "latin9"
EndSection
C'est lequel l'idenfiant ?

Code : Tout sélectionner

	Information	[ 80166.850] (II) config/udev: Adding input device Bluetooth Keyboard (/dev/input/event22)
	Information	[ 80166.850] (**) Bluetooth Keyboard: Applying InputClass "libinput keyboard catchall"
	Information	[ 80166.850] (**) Bluetooth Keyboard: Applying InputClass "system-keyboard"
	Information	[ 80166.850] (II) Using input driver 'libinput' for 'Bluetooth Keyboard'
	Information	[ 80166.850] (**) Bluetooth Keyboard: always reports core events
	Information	[ 80166.851] (**) Option "Device" "/dev/input/event22"
	Information	[ 80166.851] (**) Option "_source" "server/udev"
	Information	[ 80166.856] (II) event22 - Bluetooth Keyboard: is tagged by udev as: Keyboard
	Information	[ 80166.856] (II) event22 - Bluetooth Keyboard: device is a keyboard
	Information	[ 80166.857] (II) event22 - Bluetooth Keyboard: device removed
	Information	[ 80166.884] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/bluetooth/hci0/hci0:256/0005:05AC:0220.0007/input/input32/event22"
	Information	[ 80166.884] (II) XINPUT: Adding extended input device "Bluetooth Keyboard" (type: KEYBOARD, id 19)
	Information	[ 80166.884] (**) Option "xkb_layout" "fr"
	Information	[ 80166.891] (II) event22 - Bluetooth Keyboard: is tagged by udev as: Keyboard
	Information	[ 80166.891] (II) event22 - Bluetooth Keyboard: device is a keyboard
	Information	[ 80166.899] (II) config/udev: Adding input device Bluetooth Keyboard Consumer Control (/dev/input/event23)
	Information	[ 80166.899] (**) Bluetooth Keyboard Consumer Control: Applying InputClass "libinput keyboard catchall"
	Information	[ 80166.899] (**) Bluetooth Keyboard Consumer Control: Applying InputClass "system-keyboard"
	Information	[ 80166.899] (II) Using input driver 'libinput' for 'Bluetooth Keyboard Consumer Control'
	Information	[ 80166.899] (**) Bluetooth Keyboard Consumer Control: always reports core events
	Information	[ 80166.899] (**) Option "Device" "/dev/input/event23"
	Information	[ 80166.899] (**) Option "_source" "server/udev"
	Information	[ 80166.905] (II) event23 - Bluetooth Keyboard Consumer Control: is tagged by udev as: Keyboard
	Information	[ 80166.906] (II) event23 - Bluetooth Keyboard Consumer Control: device is a keyboard
	Information	[ 80166.907] (II) event23 - Bluetooth Keyboard Consumer Control: device removed
	Information	[ 80166.958] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/bluetooth/hci0/hci0:256/0005:05AC:0220.0007/input/input33/event23"
	Information	[ 80166.958] (II) XINPUT: Adding extended input device "Bluetooth Keyboard Consumer Control" (type: KEYBOARD, id 20)
	Information	[ 80166.958] (**) Option "xkb_layout" "fr"
	Information	[ 80166.965] (II) event23 - Bluetooth Keyboard Consumer Control: is tagged by udev as: Keyboard
	Information	[ 80166.965] (II) event23 - Bluetooth Keyboard Consumer Control: device is a keyboard
tomsawyer01
archer de cavalerie
Messages : 152
Inscription : mar. 24 juin 2014, 12:37

Re: [clavier] double clavier avec double layout (résolu)

Message par tomsawyer01 »

Un truc que j'ai trouvé ici https://askubuntu.com/a/337364
Répondre