Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Media Keys don't work [EDIT: in google-chrome]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
dennisn
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2004
Posts: 119
Location: Montreal, Canada

PostPosted: Sat Mar 09, 2024 8:04 am    Post subject: Media Keys don't work [EDIT: in google-chrome] Reply with quote

The Play/Pause/Previous/Next media keys on my keyboards don't work in any of my browsers. I've ripped almost all my hair out, and still haven't solved this.

Sites like https://unixpapa.com/js/testkey.html do report the proper keypresses, but apparently this isn't enough for our wonderful bloat-browsers (eg. firefox-bin, google-chrome-stable). Sites like youtube, or https://googlechrome.github.io/samples/media-session/ refuse to use them.

My firefox-bin does have "media.hardwaremediakeys.enabled"

My google-chrome does have the "hardware-media-key-handling" flag enabled BUT it is mysteriously missing "enable-media-session-service" which it says is also required !?

I do not see any obvious error messages in my terminal. They just silently refuse to work!?

"playerctl --list-all" shows nothing when the browsers are running.

"dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListNames" also basically shows nothing, no "MPRIS" (Media Player Remote Interfacing Specification)

Am I missing some piece of this Rube Goldbergian puzzle? Perhaps some "media session" provider or manager? What's going on!? Why can't I have basic keys working :|. I'm tempted to give up and simply remap XF86AudioPlay to a "space" keypress - that seems to work on most sites anyways. This is nuts.


Last edited by dennisn on Sun Mar 10, 2024 11:14 pm; edited 2 times in total
Back to top
View user's profile Send private message
dennisn
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2004
Posts: 119
Location: Montreal, Canada

PostPosted: Sun Mar 10, 2024 6:11 am    Post subject: Reply with quote

Some good news. So it works fine in firefox, after I wrap it in "dbus-run-session", and use "playerctl" to control it.

So I guess the problem is with google-chrome. Still no obvious error messages there, and no players are listed with playerctl.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum