sway: Some media keys don't work
-
Sway version 1.7
-
Configuration File:
- repros with the default configuration file and a config with a binding like
bindsym XF86MonBrightnessDown exec brillo -U 10
- repros with the default configuration file and a config with a binding like
-
Description:
- Some of my media keys are on a separated
0:6:Video_Busdevice - Specifically, the keys to control the brightness are not functional. They do not show up in
wevorevtest(even with--grabspecified) - The physical keys work just fine, as their regular function key mappings show up
- According to the sway debug log, all keyboard devices are assigned to the same group, but
sudo libinput list-devicesshows them in different groups:
- Some of my media keys are on a separated
event4 - PIXA3854:00 093A:0274 Touchpad: kernel bug: clickpad advertising right button. See https://wayland.freedesktop.org/libinput/doc/1.21.0/clickpad-with-right-button.html for details
Device: Video Bus
Kernel: /dev/input/event8
Group: 1
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: n/a
Device: Lid Switch
Kernel: /dev/input/event0
Group: 2
Seat: seat0, default
Capabilities: switch
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: n/a
Device: Power Button
Kernel: /dev/input/event1
Group: 3
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: n/a
Device: PIXA3854:00 093A:0274 Mouse
Kernel: /dev/input/event3
Group: 4
Seat: seat0, default
Capabilities: pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: n/a
Calibration: n/a
Scroll methods: *button
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: flat *adaptive
Rotation: n/a
Device: PIXA3854:00 093A:0274 Touchpad
Kernel: /dev/input/event4
Group: 4
Seat: seat0, default
Size: 111x73mm
Capabilities: pointer gesture
Tap-to-click: disabled
Tap-and-drag: enabled
Tap drag lock: disabled
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: disabled
Calibration: n/a
Scroll methods: *two-finger edge
Click methods: *button-areas clickfinger
Disable-w-typing: enabled
Disable-w-trackpointing: enabled
Accel profiles: flat *adaptive
Rotation: n/a
Device: AT Translated Set 2 keyboard
Kernel: /dev/input/event2
Group: 5
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: n/a
Happy to provide swaymsg -t get_inputs too, but seems like the info may be redundant. I’ve tried using the seat * keyboard_grouping smart and none settings, which change nothing. I have also tried adding input type:keyboard {...} with mapping and repeat settings, as well as adding both keyboards as separate input devices, and nothing changes.
I know these keys do work to adjust the brightness, as running with GNOME/KDE under wayland they function just fine. Any guidance would be helpful!
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 3
- Comments: 17 (4 by maintainers)
XF86AudioPrevandXF86AudioNext, from https://cgit.freedesktop.org/xorg/proto/x11proto/tree/XF86keysym.h.Solved for me by manually specifying bindings as follows.