kfechter / LegionY530Ubuntu

Guide for installing Ubuntu on the Legion Y530
GNU General Public License v3.0
177 stars 32 forks source link

Music buttons in numeric keyboard dont work #55

Closed mgrova closed 4 years ago

mgrova commented 5 years ago

I dont know if is only in my case, but the buttons in numeric keyboard to control music, e.g, stop and play/pause, not work. Do you know any solution?

I have installed Ubuntu 16.04.6 in my laptop.

thank you in advance.

kfechter commented 5 years ago

It's possible that it is an issue with 16.04.x.

I have only tried the machine with 18.xx and 19.04, and IIRC they work correctly. My Legion is currently out of commission until I get the parts to repair it tomorrow, so I won't be able to test anything until I finish the repairs.

utajum commented 5 years ago

They work fine on KDE neon 18.04.02, try with a multimedia usb keyboard it should not work as well

kfechter commented 5 years ago

Do the media keys generate any output in xev or acpi_listen?

run the command xev and then use the media keys with Fn and see if any events are generated, close when finished.

run the command acpi_listen and use the media keys with Fn and see if any events are generated. close when finished.

mgrova commented 5 years ago

Hi! When I run these command, the system recognize the keys. The output with acpi_listen:

cd/play CDPLAY 00000080 00000000 K
cd/stop CDSTOP 00000080 00000000 K
cd/prev CDPREV 00000080 00000000 K
cd/next CDNEXT 00000080 00000000 K

and with xev:

KeyRelease event, serial 37, synthetic NO, window 0x5400001,
    root 0x28b, subw 0x0, time 939623, (-483,295), root:(255,347),
    state 0x0, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

FocusOut event, serial 37, synthetic NO, window 0x5400001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 37, synthetic NO, window 0x5400001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 37, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   64  0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 37, synthetic NO, window 0x5400001,
    root 0x28b, subw 0x0, time 940817, (-483,295), root:(255,347),
    state 0x0, keycode 174 (keysym 0x1008ff15, XF86AudioStop), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

FocusOut event, serial 37, synthetic NO, window 0x5400001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 37, synthetic NO, window 0x5400001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 37, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   32  0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 37, synthetic NO, window 0x5400001,
    root 0x28b, subw 0x0, time 941402, (-483,295), root:(255,347),
    state 0x0, keycode 173 (keysym 0x1008ff16, XF86AudioPrev), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

FocusOut event, serial 37, synthetic NO, window 0x5400001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 37, synthetic NO, window 0x5400001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 37, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   8   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 37, synthetic NO, window 0x5400001,
    root 0x28b, subw 0x0, time 942286, (-483,295), root:(255,347),
    state 0x0, keycode 171 (keysym 0x1008ff17, XF86AudioNext), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

So, then, I test it with Rhythmbox and works. The problem can come from the specific application and not from the laptop. I'm trying to get them to work with the browser or spotify.

Thank you !

kfechter commented 5 years ago

Not sure about the browser but there may be some issues with spotify on 16.04.

https://community.spotify.com/t5/Desktop-Linux/Media-Keys-Don-t-Work/td-p/4586503/page/6

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically closed due to inactivity. Feel free to open a new issue if you are still having issues