Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some media keys don't work #7160

Open
umbernhard opened this issue Sep 4, 2022 · 17 comments
Open

Some media keys don't work #7160

umbernhard opened this issue Sep 4, 2022 · 17 comments
Labels
bug Not working as intended

Comments

@umbernhard
Copy link

  • Sway version 1.7

  • Debug Log

  • Configuration File:

    • repros with the default configuration file and a config with a binding like bindsym XF86MonBrightnessDown exec brillo -U 10
  • Description:

    • Some of my media keys are on a separated 0:6:Video_Bus device
    • Specifically, the keys to control the brightness are not functional. They do not show up in wev or evtest (even with --grab specified)
    • 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-devices shows them in different groups:
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!

@umbernhard umbernhard added the bug Not working as intended label Sep 4, 2022
@Nachtpfoetchen
Copy link

I encounter the same behaviour on fedora 37 with my keyboard. some media keys work under gnome but not in sway.

@bl4ckb0ne
Copy link
Contributor

Do they show up with libinput debug-events? Could be a keyboard group issue.

@Nachtpfoetchen
Copy link

idk why. but it is working now for me. so i cannot reproduce it anymore on my system.

@iabdelkareem
Copy link

+1 I experienced the same issue with Razer Huntsman Elite keyboard. It works well in Gnome but not with swaywm. The output from libinput debug-events is below.

-event7   DEVICE_ADDED            Razer Razer Huntsman Elite        seat0 default group1  cap:kp left scroll-nat scroll-button
 event7   KEYBOARD_KEY            +6.097s	KEY_VOLUMEUP (115) pressed
 event7   KEYBOARD_KEY            +6.097s	KEY_VOLUMEUP (115) released
^[[57439u event7   KEYBOARD_KEY            +7.298s	KEY_VOLUMEUP (115) pressed
 event7   KEYBOARD_KEY            +7.298s	KEY_VOLUMEUP (115) released
^[[57439u event7   KEYBOARD_KEY            +8.141s	KEY_VOLUMEUP (115) pressed
 event7   KEYBOARD_KEY            +8.141s	KEY_VOLUMEUP (115) released
^[[57439u event7   KEYBOARD_KEY            +10.085s	KEY_VOLUMEUP (115) pressed
 event7   KEYBOARD_KEY            +10.085s	KEY_VOLUMEUP (115) released
^[[57439u event7   KEYBOARD_KEY            +12.459s	KEY_VOLUMEDOWN (114) pressed
 event7   KEYBOARD_KEY            +12.459s	KEY_VOLUMEDOWN (114) released
^[[57438u event7   KEYBOARD_KEY            +12.600s	KEY_VOLUMEDOWN (114) pressed
 event7   KEYBOARD_KEY            +12.600s	KEY_VOLUMEDOWN (114) released
^[[57438u-event16  KEYBOARD_KEY            +15.484s	KEY_PLAYPAUSE (164) pressed
^[[57428u event16  KEYBOARD_KEY            +15.695s	KEY_PLAYPAUSE (164) released
 event16  KEYBOARD_KEY            +20.740s	*** (-1) pressed
 event16  KEYBOARD_KEY            +24.110s	*** (-1) released

@bl4ckb0ne
Copy link
Contributor

@iabdelkareem could you paste the output of libinput list-devices

@iabdelkareem
Copy link

@bl4ckb0ne Of course, Here you go

> libinput list-devices

Failed to open /dev/input/event2 (Permission denied)
Failed to open /dev/input/event11 (Permission denied)
Failed to open /dev/input/event1 (Permission denied)
Failed to open /dev/input/event0 (Permission denied)
Failed to open /dev/input/event5 (Permission denied)
Failed to open /dev/input/event6 (Permission denied)
Failed to open /dev/input/event16 (Permission denied)
Failed to open /dev/input/event23 (Permission denied)
Failed to open /dev/input/event13 (Permission denied)
Failed to open /dev/input/event14 (Permission denied)
Failed to open /dev/input/event18 (Permission denied)
Failed to open /dev/input/event19 (Permission denied)
Failed to open /dev/input/event20 (Permission denied)
Failed to open /dev/input/event21 (Permission denied)
Failed to open /dev/input/event22 (Permission denied)
Failed to open /dev/input/event12 (Permission denied)
Failed to open /dev/input/event3 (Permission denied)
Failed to open /dev/input/event8 (Permission denied)
Failed to open /dev/input/event17 (Permission denied)
Failed to open /dev/input/event4 (Permission denied)
Failed to open /dev/input/event7 (Permission denied)
Device:           Razer Razer Huntsman Elite
Kernel:           /dev/input/event9
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:           Razer Razer Huntsman Elite
Kernel:           /dev/input/event10
Group:            1
Seat:             seat0, default
Capabilities:     keyboard pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    disabled
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:           Razer Razer Huntsman Elite
Kernel:           /dev/input/event15
Group:            1
Seat:             seat0, default
Capabilities:     keyboard pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
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

@bl4ckb0ne
Copy link
Contributor

bl4ckb0ne commented Dec 14, 2022

Capabilities: keyboard pointer

How can this keyboard have pointer caps? Multi function keys?

Could you also paste the output of swaymsg -t get_inputs and the logs from sway (with -Vd) please, I suspect a sway keyboard grouping issue.

@iabdelkareem
Copy link

I'm not sure to be honest this keyboard doesn't have pointer caps. But I'm attaching it to a lenovo laptop and the laptop keyboard has a pointer (red dot).

> swaymsg -t get_inputs
Input device: PXC 550-II (AVRCP)
  Type: Keyboard
  Identifier: 1170:24589:PXC_550-II_(AVRCP)
  Product ID: 24589
  Vendor ID: 1170
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: ThinkPad Extra Buttons
  Type: Keyboard
  Identifier: 6058:20564:ThinkPad_Extra_Buttons
  Product ID: 20564
  Vendor ID: 6058
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: TPPS/2 Elan TrackPoint
  Type: Mouse
  Identifier: 2:10:TPPS/2_Elan_TrackPoint
  Product ID: 10
  Vendor ID: 2
  Libinput Send Events: enabled

Input device: AT Translated Set 2 keyboard
  Type: Keyboard
  Identifier: 1:1:AT_Translated_Set_2_keyboard
  Product ID: 1
  Vendor ID: 1
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Intel HID events
  Type: Keyboard
  Identifier: 0:0:Intel_HID_events
  Product ID: 0
  Vendor ID: 0
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: SYNA800E:00 06CB:CE67 Touchpad
  Type: Touchpad
  Identifier: 1739:52839:SYNA800E:00_06CB:CE67_Touchpad
  Product ID: 52839
  Vendor ID: 1739
  Libinput Send Events: enabled

Input device: SYNA800E:00 06CB:CE67 Mouse
  Type: Mouse
  Identifier: 1739:52839:SYNA800E:00_06CB:CE67_Mouse
  Product ID: 52839
  Vendor ID: 1739
  Libinput Send Events: enabled

Input device: Logitech Wireless Mouse
  Type: Mouse
  Identifier: 1133:16468:Logitech_Wireless_Mouse
  Product ID: 16468
  Vendor ID: 1133
  Libinput Send Events: enabled

Input device: Logitech Wireless Keyboard PID:4023
  Type: Mouse
  Identifier: 1133:16419:Logitech_Wireless_Keyboard_PID:4023
  Product ID: 16419
  Vendor ID: 1133
  Libinput Send Events: enabled

Input device: Logitech Wireless Keyboard PID:4023
  Type: Keyboard
  Identifier: 1133:16419:Logitech_Wireless_Keyboard_PID:4023
  Product ID: 16419
  Vendor ID: 1133
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Integrated Camera: Integrated I
  Type: Keyboard
  Identifier: 5075:21509:Integrated_Camera:_Integrated_I
  Product ID: 21509
  Vendor ID: 5075
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Integrated Camera: Integrated C
  Type: Keyboard
  Identifier: 5075:21509:Integrated_Camera:_Integrated_C
  Product ID: 21509
  Vendor ID: 5075
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Razer Razer Huntsman Elite
  Type: Mouse
  Identifier: 5426:550:Razer_Razer_Huntsman_Elite
  Product ID: 550
  Vendor ID: 5426
  Libinput Send Events: enabled

Input device: Razer Razer Huntsman Elite
  Type: Keyboard
  Identifier: 5426:550:Razer_Razer_Huntsman_Elite
  Product ID: 550
  Vendor ID: 5426
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Razer Razer Huntsman Elite
  Type: Mouse
  Identifier: 5426:550:Razer_Razer_Huntsman_Elite
  Product ID: 550
  Vendor ID: 5426
  Libinput Send Events: enabled

Input device: Razer Razer Huntsman Elite
  Type: Keyboard
  Identifier: 5426:550:Razer_Razer_Huntsman_Elite
  Product ID: 550
  Vendor ID: 5426
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Razer Razer Huntsman Elite
  Type: Keyboard
  Identifier: 5426:550:Razer_Razer_Huntsman_Elite
  Product ID: 550
  Vendor ID: 5426
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Sleep Button
  Type: Keyboard
  Identifier: 0:3:Sleep_Button
  Product ID: 3
  Vendor ID: 0
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Lid Switch
  Type: Switch
  Identifier: 0:5:Lid_Switch
  Product ID: 5
  Vendor ID: 0
  Libinput Send Events: enabled

Input device: Video Bus
  Type: Keyboard
  Identifier: 0:6:Video_Bus
  Product ID: 6
  Vendor ID: 0
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Power Button
  Type: Keyboard
  Identifier: 0:1:Power_Button
  Product ID: 1
  Vendor ID: 0
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

@iabdelkareem
Copy link

I could reproduce the same bug using another keyboard Logitech G815. Below are the outputs.

>  sudo libinput debug-events
-event2   DEVICE_ADDED            Power Button                      seat0 default group1  cap:k
-event11  DEVICE_ADDED            Video Bus                         seat0 default group2  cap:k
-event1   DEVICE_ADDED            Lid Switch                        seat0 default group3  cap:S
 event1   SWITCH_TOGGLE           +0.000s	switch lid state 1
-event0   DEVICE_ADDED            Sleep Button                      seat0 default group4  cap:k
-event15  DEVICE_ADDED            Integrated Camera: Integrated C   seat0 default group5  cap:k
-event16  DEVICE_ADDED            Integrated Camera: Integrated I   seat0 default group5  cap:k
-event22  DEVICE_ADDED            Logitech G815 RGB MECHANICAL GAMING KEYBOARD seat0 default group6  cap:k
-event23  DEVICE_ADDED            Logitech G815 RGB MECHANICAL GAMING KEYBOARD Keyboard seat0 default group6  cap:k
-event24  DEVICE_ADDED            Logitech G815 RGB MECHANICAL GAMING KEYBOARD Mouse seat0 default group6  cap:p left scroll-nat scroll-button
-event5   DEVICE_ADDED            RAPOO Rapoo 2.4G Wireless Device  seat0 default group7  cap:p left scroll-nat scroll-button
-event6   DEVICE_ADDED            RAPOO Rapoo 2.4G Wireless Device System Control seat0 default group7  cap:k
-event7   DEVICE_ADDED            RAPOO Rapoo 2.4G Wireless Device Consumer Control seat0 default group7  cap:kp scroll-nat
-event8   DEVICE_ADDED            RAPOO Rapoo 2.4G Wireless Device  seat0 default group7  cap:k
-event9   DEVICE_ADDED            SYNA800E:00 06CB:CE67 Mouse       seat0 default group8  cap:p left scroll-nat scroll-button
-event10  DEVICE_ADDED            SYNA800E:00 06CB:CE67 Touchpad    seat0 default group8  cap:pg  size 112x57mm tap(dl off) left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwt-on dwtp-on
-event12  DEVICE_ADDED            Intel HID events                  seat0 default group9  cap:k
-event3   DEVICE_ADDED            AT Translated Set 2 keyboard      seat0 default group10 cap:k
-event4   DEVICE_ADDED            TPPS/2 Elan TrackPoint            seat0 default group11 cap:p left scroll-nat scroll-button
-event13  DEVICE_ADDED            ThinkPad Extra Buttons            seat0 default group12 cap:k
-event25  DEVICE_ADDED            LE-PXC 550-II (AVRCP)             seat0 default group13 cap:k
-event23  KEYBOARD_KEY            +0.000s	KEY_VOLUMEUP (115) pressed
^[[57439u event23  KEYBOARD_KEY            +0.001s	KEY_VOLUMEUP (115) released
 event23  KEYBOARD_KEY            +0.055s	KEY_VOLUMEUP (115) pressed
^[[57439u event23  KEYBOARD_KEY            +0.056s	KEY_VOLUMEUP (115) released
 event23  KEYBOARD_KEY            +0.638s	KEY_VOLUMEDOWN (114) pressed
^[[57438u event23  KEYBOARD_KEY            +0.639s	KEY_VOLUMEDOWN (114) released
 event23  KEYBOARD_KEY            +1.042s	KEY_VOLUMEDOWN (114) pressed
^[[57438u event23  KEYBOARD_KEY            +1.043s	KEY_VOLUMEDOWN (114) released
 event23  KEYBOARD_KEY            +2.648s	KEY_PLAYPAUSE (164) pressed
^[[57428u event23  KEYBOARD_KEY            +3.013s	KEY_PLAYPAUSE (164) released
 event23  KEYBOARD_KEY            +3.580s	KEY_NEXTSONG (163) pressed
^[[57435u event23  KEYBOARD_KEY            +3.840s	KEY_NEXTSONG (163) released
 event23  KEYBOARD_KEY            +4.407s	KEY_PREVIOUSSONG (165) pressed
^[[57436u event23  KEYBOARD_KEY            +4.614s	KEY_PREVIOUSSONG (165) released
-event22  KEYBOARD_KEY            +5.104s	*** (-1) pressed
 event22  KEYBOARD_KEY            +5.245s	*** (-1) pressed
>  sudo libinput list-devices
Device:           Power Button
Kernel:           /dev/input/event2
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:           Video Bus
Kernel:           /dev/input/event11
Group:            2
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/event1
Group:            3
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:           Sleep Button
Kernel:           /dev/input/event0
Group:            4
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:           Integrated Camera: Integrated C
Kernel:           /dev/input/event15
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

Device:           Integrated Camera: Integrated I
Kernel:           /dev/input/event16
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

Device:           Logitech G815 RGB MECHANICAL GAMING KEYBOARD
Kernel:           /dev/input/event22
Group:            6
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:           Logitech G815 RGB MECHANICAL GAMING KEYBOARD Keyboard
Kernel:           /dev/input/event23
Group:            6
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:           Logitech G815 RGB MECHANICAL GAMING KEYBOARD Mouse
Kernel:           /dev/input/event24
Group:            6
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: disabled
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:           RAPOO Rapoo 2.4G Wireless Device
Kernel:           /dev/input/event5
Group:            7
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: disabled
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:           RAPOO Rapoo 2.4G Wireless Device System Control
Kernel:           /dev/input/event6
Group:            7
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:           RAPOO Rapoo 2.4G Wireless Device Consumer Control
Kernel:           /dev/input/event7
Group:            7
Seat:             seat0, default
Capabilities:     keyboard pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    disabled
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:           RAPOO Rapoo 2.4G Wireless Device
Kernel:           /dev/input/event8
Group:            7
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:           SYNA800E:00 06CB:CE67 Mouse
Kernel:           /dev/input/event9
Group:            8
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:           SYNA800E:00 06CB:CE67 Touchpad
Kernel:           /dev/input/event10
Group:            8
Seat:             seat0, default
Size:             112x57mm
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:           Intel HID events
Kernel:           /dev/input/event12
Group:            9
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:           AT Translated Set 2 keyboard
Kernel:           /dev/input/event3
Group:            10
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:           TPPS/2 Elan TrackPoint
Kernel:           /dev/input/event4
Group:            11
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: disabled
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:           ThinkPad Extra Buttons
Kernel:           /dev/input/event13
Group:            12
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:           LE-PXC 550-II (AVRCP)
Kernel:           /dev/input/event25
Group:            13
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
swaymsg -t get_inputs
Input device: LE-PXC 550-II (AVRCP)
  Type: Keyboard
  Identifier: 1170:24589:LE-PXC_550-II_(AVRCP)
  Product ID: 24589
  Vendor ID: 1170
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: ThinkPad Extra Buttons
  Type: Keyboard
  Identifier: 6058:20564:ThinkPad_Extra_Buttons
  Product ID: 20564
  Vendor ID: 6058
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: TPPS/2 Elan TrackPoint
  Type: Mouse
  Identifier: 2:10:TPPS/2_Elan_TrackPoint
  Product ID: 10
  Vendor ID: 2
  Libinput Send Events: enabled

Input device: AT Translated Set 2 keyboard
  Type: Keyboard
  Identifier: 1:1:AT_Translated_Set_2_keyboard
  Product ID: 1
  Vendor ID: 1
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Intel HID events
  Type: Keyboard
  Identifier: 0:0:Intel_HID_events
  Product ID: 0
  Vendor ID: 0
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: SYNA800E:00 06CB:CE67 Touchpad
  Type: Touchpad
  Identifier: 1739:52839:SYNA800E:00_06CB:CE67_Touchpad
  Product ID: 52839
  Vendor ID: 1739
  Libinput Send Events: enabled

Input device: SYNA800E:00 06CB:CE67 Mouse
  Type: Mouse
  Identifier: 1739:52839:SYNA800E:00_06CB:CE67_Mouse
  Product ID: 52839
  Vendor ID: 1739
  Libinput Send Events: enabled

Input device: RAPOO Rapoo 2.4G Wireless Device
  Type: Keyboard
  Identifier: 9390:8211:RAPOO_Rapoo_2.4G_Wireless_Device
  Product ID: 8211
  Vendor ID: 9390
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: RAPOO Rapoo 2.4G Wireless Device Consumer Control
  Type: Mouse
  Identifier: 9390:8211:RAPOO_Rapoo_2.4G_Wireless_Device_Consumer_Control
  Product ID: 8211
  Vendor ID: 9390
  Libinput Send Events: enabled

Input device: RAPOO Rapoo 2.4G Wireless Device Consumer Control
  Type: Keyboard
  Identifier: 9390:8211:RAPOO_Rapoo_2.4G_Wireless_Device_Consumer_Control
  Product ID: 8211
  Vendor ID: 9390
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: RAPOO Rapoo 2.4G Wireless Device System Control
  Type: Keyboard
  Identifier: 9390:8211:RAPOO_Rapoo_2.4G_Wireless_Device_System_Control
  Product ID: 8211
  Vendor ID: 9390
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: RAPOO Rapoo 2.4G Wireless Device
  Type: Mouse
  Identifier: 9390:8211:RAPOO_Rapoo_2.4G_Wireless_Device
  Product ID: 8211
  Vendor ID: 9390
  Libinput Send Events: enabled

Input device: Logitech G815 RGB MECHANICAL GAMING KEYBOARD Mouse
  Type: Mouse
  Identifier: 1133:49983:Logitech_G815_RGB_MECHANICAL_GAMING_KEYBOARD_Mouse
  Product ID: 49983
  Vendor ID: 1133
  Libinput Send Events: enabled

Input device: Logitech G815 RGB MECHANICAL GAMING KEYBOARD Keyboard
  Type: Keyboard
  Identifier: 1133:49983:Logitech_G815_RGB_MECHANICAL_GAMING_KEYBOARD_Keyboard
  Product ID: 49983
  Vendor ID: 1133
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Logitech G815 RGB MECHANICAL GAMING KEYBOARD
  Type: Keyboard
  Identifier: 1133:49983:Logitech_G815_RGB_MECHANICAL_GAMING_KEYBOARD
  Product ID: 49983
  Vendor ID: 1133
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Integrated Camera: Integrated I
  Type: Keyboard
  Identifier: 5075:21509:Integrated_Camera:_Integrated_I
  Product ID: 21509
  Vendor ID: 5075
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Integrated Camera: Integrated C
  Type: Keyboard
  Identifier: 5075:21509:Integrated_Camera:_Integrated_C
  Product ID: 21509
  Vendor ID: 5075
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Sleep Button
  Type: Keyboard
  Identifier: 0:3:Sleep_Button
  Product ID: 3
  Vendor ID: 0
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Lid Switch
  Type: Switch
  Identifier: 0:5:Lid_Switch
  Product ID: 5
  Vendor ID: 0
  Libinput Send Events: enabled

Input device: Video Bus
  Type: Keyboard
  Identifier: 0:6:Video_Bus
  Product ID: 6
  Vendor ID: 0
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Power Button
  Type: Keyboard
  Identifier: 0:1:Power_Button
  Product ID: 1
  Vendor ID: 0
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

@iabdelkareem
Copy link

Solved for me by manually specifying bindings as follows.

bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%

@edmilsonaj
Copy link

edmilsonaj commented Jan 30, 2023

Also having same problem on the Corsair K63, no matter if wired or wireless , using Sway 1.8 on Arch.

I still get the problem even if I manually set the bindings on my config file

removed debug info

@bl4ckb0ne
Copy link
Contributor

*** (-1) pressed

that's when you're trying the media keys?

@edmilsonaj
Copy link

that's when you're trying the media keys?

Thats ctrl+c

@edmilsonaj
Copy link

Nevermind, just noticed that one of the config files I copied over my existing conf had some bindings that weren´t working on my setup. After removing it, it now works as expected.

Sorry for the confusion.

@kamiyaa
Copy link

kamiyaa commented Jul 6, 2023

Same issue here with a keyboard with mouse capabilities (media keys allows for controlling the mouse)

Sway version: 20ffe54
wlroots version: 77d5631e42fbcf3ceb51a1d607219228aeaabb00
Kernel version: 6.3.9

None of the media keys work for me (volume, playback, search, mouse, etc.)

The weird thing is:

  • sometimes when I start sway, it works, sometimes it doesn't
    • when it works, the media keys show up in xev
    • when it doesn't work, the media keys do not show up in xev
  • starting sway also stalls for a good 2-3s, which it didn't in the past with an old keyboard
  • which leads me to think theres some sort of race condition? or at least some sort of inconsistent processing order of devices
~$ sudo libinput list-devices
Device:           Power Button
Kernel:           /dev/input/event1
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:         0.0

Device:           Power Button
Kernel:           /dev/input/event0
Group:            2
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:         0.0

Device:           USB OPTICAL MOUSE
Kernel:           /dev/input/event2
Group:            3
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: disabled
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   flat *adaptive custom
Rotation:         0.0

Device:           USB OPTICAL MOUSE  Keyboard
Kernel:           /dev/input/event3
Group:            3
Seat:             seat0, default
Capabilities:     keyboard pointer
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    disabled
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:         0.0

Device:           ROYUAN HyeKu Gaming Keyboard
Kernel:           /dev/input/event17
Group:            4
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:         0.0

@strk
Copy link

strk commented Jan 4, 2024

Solved for me by manually specifying bindings as follows.

bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%

how about the KEY_NEXTSONG and KEY_PREVIOUSSONG ones ?

@lnicola
Copy link

lnicola commented Jan 4, 2024

XF86AudioPrev and XF86AudioNext, from https://cgit.freedesktop.org/xorg/proto/x11proto/tree/XF86keysym.h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

8 participants