You are not logged in.

#1 2021-11-18 13:37:12

PointBlank776
Member
Registered: 2020-09-23
Posts: 17

[Solved] Can't adjust sound with volume keys or volume wheel

I'm still getting the hang of linux, and I can't get the volume keys to work.
I have kmix installed, and I do try to map the shortcuts in kmix's settings but even doing so I get no results.
Without kmix installed, relying on Pulseaudio yields the same issue. I do have a kmix widget on my taskbar, as I read on another forum that it might help, which is what solved the issue for someone else having the same issue, but it didn't work for me. No clue what other information I need to provide, so if I need to provide any specific outputs please let me know

Last edited by PointBlank776 (2021-11-21 10:06:50)

Offline

#2 2021-11-18 16:25:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,200

Re: [Solved] Can't adjust sound with volume keys or volume wheel

No clue what other information I need to provide

1. Changing the volume itself works, it's only about the shortcuts?
2. X11 or wayland?
3. Run "sudo libinput debug-events", do the keys show up when you press them=
4. "kmix" implies KDE/plasma or do you run it on sth. else (bottom line: what's your shortcut daemon)?

Offline

#3 2021-11-18 20:06:19

PointBlank776
Member
Registered: 2020-09-23
Posts: 17

Re: [Solved] Can't adjust sound with volume keys or volume wheel

seth wrote:

No clue what other information I need to provide

1. Changing the volume itself works, it's only about the shortcuts?
2. X11 or wayland?
3. Run "sudo libinput debug-events", do the keys show up when you press them=
4. "kmix" implies KDE/plasma or do you run it on sth. else (bottom line: what's your shortcut daemon)?

1. Yes, I can change volume in settings and using the little widget, it's just the shortcuts that aren't responsive

2. X11

3.

-event27  KEYBOARD_KEY            +0.000s       KEY_VOLUMEDOWN (114) pressed
 event27  KEYBOARD_KEY            +0.032s       KEY_VOLUMEDOWN (114) released
 event27  KEYBOARD_KEY            +0.920s       KEY_VOLUMEUP (115) pressed
 event27  KEYBOARD_KEY            +0.936s       KEY_VOLUMEUP (115) released

4. I do indeed run KDE plasma, so KDE shortcuts daemon I'm guessing lol

Offline

#4 2021-11-19 06:13:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,200

Re: [Solved] Can't adjust sound with volume keys or volume wheel

ps aux | grep kglobalaccel

Are the keys grabed?

xev -event keyboard # and press the keys 
sleep 5; xdotool key "XF86LogGrabInfo" # make sure to press one of the volume keys when xdotool hits and check your xorg log for the active (and passive) grabs, https://wiki.archlinux.org/title/Xorg#General

Offline

#5 2021-11-20 23:25:00

PointBlank776
Member
Registered: 2020-09-23
Posts: 17

Re: [Solved] Can't adjust sound with volume keys or volume wheel

seth wrote:
ps aux | grep kglobalaccel

Are the keys grabed?

xev -event keyboard # and press the keys 
sleep 5; xdotool key "XF86LogGrabInfo" # make sure to press one of the volume keys when xdotool hits and check your xorg log for the active (and passive) grabs, https://wiki.archlinux.org/title/Xorg#General

ps aux | grep kglobalaccel:

KeyRelease event, serial 28, synthetic NO, window 0x8a00001,
    root 0x1d2, subw 0x0, time 24183075, (78,86), root:(78,115),
    state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x8a00001,
    root 0x1d2, subw 0x0, time 24183923, (78,86), root:(78,115),
    state 0x10, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

xev -event keyboard # and press the keys
sleep 5; xdotool key "XF86LogGrabInfo"

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

KeyRelease event, serial 28, synthetic NO, window 0x8a00001,
    root 0x1d2, subw 0x0, time 24230563, (203,220), root:(203,249),
    state 0x10, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x8a00001,
    root 0x1d2, subw 0x0, time 24232739, (203,220), root:(203,249),
    state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

everything seems to be picking up fine I think sad

Offline

#6 2021-11-21 09:23:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,200

Re: [Solved] Can't adjust sound with volume keys or volume wheel

You kinda only posted the xev output, but the keys are currently NOT grabbed (assigned to a global shortcut)

Offline

#7 2021-11-21 09:57:04

PointBlank776
Member
Registered: 2020-09-23
Posts: 17

Re: [Solved] Can't adjust sound with volume keys or volume wheel

seth wrote:

You kinda only posted the xev output, but the keys are currently NOT grabbed (assigned to a global shortcut)

Ah, my noob-ness has reared its ugly face

I just tried mapping it in kmix but the settings aren't persistant. After exiting settings and going back I can see it didn't stay mapped

edit: God I'm an idiot... Fixed by removing kmix and just setting global shortcut using pulseaudio

Last edited by PointBlank776 (2021-11-21 10:06:00)

Offline

#8 2021-11-21 10:02:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,200

Re: [Solved] Can't adjust sound with volume keys or volume wheel

ps aux | grep kglobalaccel

Offline

Board footer

Powered by FluxBB