ytmdesktop2 icon indicating copy to clipboard operation
ytmdesktop2 copied to clipboard

Media keys not working.

Open drakosoldier298 opened this issue 3 years ago • 13 comments

Operating system

Microsoft Windows [Version 10.0.22621.963]

YouTube Music Desktop App Version

v0.9.7

Bug description

instead of reopening #41 i decided to make a new thread as im unsure if im having the same bug my media keys seem to not be caught by the app.

Steps to reproduce

No response

Relevant log output

the command provided and location provided seems to not exist

drakosoldier298 avatar Dec 23 '22 02:12 drakosoldier298

Been using media keys and its working fine. Could you provide me your keyboard name?

Venipa avatar Dec 23 '22 02:12 Venipa

steelseries apex 3

drakosoldier298 avatar Dec 23 '22 03:12 drakosoldier298

image im on Microsoft Windows [Version 10.0.19045.2364] it should work, probably an issue with your keyboard software. but it could also be an issue if you have multiple media sources

Venipa avatar Dec 23 '22 14:12 Venipa

Media keys are not working for me on Ubuntu 22.10. Do I need any extra setup for it?

I'm using Logitech G512. Media keys from my laptop keyboard (Dell inspiron) are not working either

TulioAbreu avatar Feb 28 '23 13:02 TulioAbreu

Also having the same issue in Fedora with wayland - is there any way to diagnose?

Output from xev when touching the play/pause key:

KeyPress event, serial 34, synthetic NO, window 0x3a00001,
    root 0x49a, subw 0x0, time 367409856, (6,596), root:(3209,1018),
    state 0x10, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x3a00001,
    root 0x49a, subw 0x0, time 367409922, (6,596), root:(3209,1018),
    state 0x10, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

josejulio avatar May 30 '23 18:05 josejulio

I am on a macbook with macOS 13.4 and having same problem with both laptop keyboard and Logitech G512.

I think this should be a important issue?

oliver139 avatar Oct 31 '23 03:10 oliver139

Media keys are currently not working for me on Fedora 39 running wayland.
When I press the media key all I get is a circle with a line through it. Fedora seems to not be recognizing the app as a media player. App version: 0.11.6 Screenshot from 2024-03-13 14-23-09

FluffyRanger avatar Mar 13 '24 21:03 FluffyRanger

I had the same issue, my media keys weren't connected by default on my sway config. I am not on my desktop, I can try to update this tomorrow with my config.

josejulio avatar Mar 13 '24 21:03 josejulio

So this is the relevant information on my ~/.config/sway file. I use pactl (PulseAudio) to bind the key

set $pctl playerctl -p playerctld
bindsym XF86AudioPrev exec --no-startup-id $pctl previous
bindsym XF86AudioNext exec --no-startup-id $pctl next
bindsym XF86AudioPlay exec --no-startup-id $pctl play-pause
bindsym XF86AudioStop exec --no-startup-id $pctl stop
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%

# This is something else i found to be able to control multiple sources 
# You can cycle trough them by pressing your mod key + next/previous
bindsym $mod+XF86AudioPrev exec playerctld unshift && notify-send \
    "Now controlling player $(playerctl -l | head -n1)" --app-name playerctld
bindsym $mod+XF86AudioNext exec playerctld   shift && notify-send \
    "Now controlling player $(playerctl -l | head -n1)" --app-name playerctld

josejulio avatar Mar 14 '24 20:03 josejulio

I'm on MacOS Sonoma on a Macbook Air M1 and the media keys are not working. I'm using a Apple Magic keyboard with touch id.

Chewieez avatar Jul 29 '24 15:07 Chewieez

+1 Windows 10 Version 22H2 Build 19045.4780

woliver99 avatar Sep 05 '24 12:09 woliver99

Media keys aren't working on M4 MBP also unfortunately

publicvirtualvoid avatar Mar 18 '25 22:03 publicvirtualvoid

Same for me. M1 MBP on Sequoia 15.4.1 using Logitech MX Keys as well as Airpods Pro. Using the play/pause button will open Apple Music.

MitchLeonards avatar Aug 27 '25 11:08 MitchLeonards