I am attempting to make my Logitech mouse’s btn_side
and btn_extra
switch workspaces (namely CTRL+ALT+UP and CTRL+ALT+DOWN), though so far I have not experienced any success. Here’s what my /etc/udev/hwdb.d/70-mouse-remap.hwdb
looks like:
# 70-mouse-remap.hwdb
# Remap buttons on Logitech M585/M590 mouse.
evdev:name:Logitech M585/M590:*
KEYBOARD_KEY_700e2=btn_side
KEYBOARD_KEY_700e0=btn_side
KEYBOARD_KEY_70051=btn_side
KEYBOARD_KEY_700e4=btn_extra
KEYBOARD_KEY_700e6=btn_extra
KEYBOARD_KEY_70052=btn_extra
udevadm info
returns the right stuff, but the buttons just don’t work:
dad@DadsGram~ $ sudo udevadm info /dev/input/by-path/*-usb-*-mouse | grep -A3 -P3 KEYBOARD_KEY
E: MINOR=81
E: SUBSYSTEM=input
E: USEC_INITIALIZED=417649917
E: KEYBOARD_KEY_70051=btn_side
E: KEYBOARD_KEY_70052=btn_extra
E: KEYBOARD_KEY_700e0=btn_side
E: KEYBOARD_KEY_700e2=btn_side
E: KEYBOARD_KEY_700e4=btn_extra
E: KEYBOARD_KEY_700e6=btn_extra
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_INPUT_KEY=1
Do you have the x11-tools
bundle installed?
sudo swupd bundle-list | grep x11-tools
There are 3 symbolic links missing in Clear Linux, possibly causing the remapping to fail.
opened 07:52PM - 23 Mar 23 UTC
bug
new
The xorg, xorg.lst, and xorg.xml files are symbolic links, missing in Clear Linu… x. This is the reason of folks reporting keyboard mapping failing in the forum. Ditto for TurboVNC not working on Clear Linux.
```bash
cd /usr/share/X11/xkb/rules
sudo ln -s base xorg
sudo ln -s base.lst xorg.lst
sudo ln -s base.xml xorg.xml
```
```bash
$ pwd
/usr/share/X11/xkb/rules
$ ls -l
total 808
-rw-r--r-- 1 root root 44498 Feb 1 2019 base
-rw-r--r-- 2 root root 58346 Feb 1 2019 base.extras.xml
-rw-r--r-- 2 root root 46138 Feb 1 2019 base.lst
-rw-r--r-- 2 root root 251261 Feb 1 2019 base.xml
-rw-r--r-- 1 root root 39445 Feb 1 2019 evdev
-rw-r--r-- 2 root root 58346 Feb 1 2019 evdev.extras.xml
-rw-r--r-- 2 root root 46138 Feb 1 2019 evdev.lst
-rw-r--r-- 2 root root 251261 Feb 1 2019 evdev.xml
-rw-r--r-- 1 root root 91 Feb 1 2019 README
-rw-r--r-- 1 root root 864 Feb 1 2019 xfree98
-rw-r--r-- 1 root root 1086 Feb 1 2019 xkb.dtd
lrwxrwxrwx 1 root root 4 Mar 23 14:42 xorg -> base
lrwxrwxrwx 1 root root 8 Mar 23 14:42 xorg.lst -> base.lst
lrwxrwxrwx 1 root root 8 Mar 23 14:42 xorg.xml -> base.xml
```
The symbolic links exists in CentOS (verified), Fedora (verified), and possibly other Linux distributions.
Edit: /usr/share/X11/xkb/rules (changed xcb in title to xkb)
Thanks for the reply. Apparently mapping a combination of keys onto one key/button cannot be achieved w/hwdb . HWDB only handles one to one mappings.
So I’m back to square one.
That’s on hwdb, unfortunately. The issue request was created nonetheless for the Clear Linux team. Three symbolic links are missing, which exist in other Linux distributions (e.g. CentOS, Fedora, and Ubuntu). The xkbcomp
command may fail, resolved by making the symbolic links.
Would using xkbcomp
achieve the type of mappings that I need? Does it work with Wayland?