You are not logged in.

#1 2012-05-04 01:37:05

jiewmeng
Member
Registered: 2012-02-09
Posts: 118

[Solved] Volume down keyboard shortcut works but not volume up

I am using a Microsoft Multimedia keyboard with those "multimedia keys" eg. volume up down etc. I am using XFCE 4.10 and bound those keys to

- /usr/bin/amixer set Master 5%+
- /usr/bin/amixer set Master 5%-
- /usr/bin/amixer set Master toggle

But I notice that volume up does not work ... When I set the shortcut using Settings > Keyboard > Application shortcuts, the button is detected as XF86AudioRaiseVolume, but apart from that, it appears the key does not work? Pressing it does not affect the volume. If I set it to another key eg. Super+Up, it works, so I think its a key problem?

Last edited by jiewmeng (2012-05-05 00:16:19)


Computer Science Student, Web Developer

Offline

#2 2012-05-04 01:40:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [Solved] Volume down keyboard shortcut works but not volume up

Have you tried xev to check the output of the key?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-05-04 08:13:16

jiewmeng
Member
Registered: 2012-02-09
Posts: 118

Re: [Solved] Volume down keyboard shortcut works but not volume up

Ok, I pressed VolUp a few times and the the output:

FocusOut event, serial 39, synthetic NO, window 0x1e00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 39, synthetic NO, window 0x1e00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 39, 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   0   0   0   0   0   0   0   0   0   0   0   

FocusOut event, serial 39, synthetic NO, window 0x1e00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 39, synthetic NO, window 0x1e00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 39, 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   0   0   0   0   0   0   0   0   0   0   0   

ClientMessage event, serial 39, synthetic YES, window 0x1e00001,
    message_type 0x123 (WM_PROTOCOLS), format 32, message 0x121 (WM_DELETE_WINDOW)

Computer Science Student, Web Developer

Offline

#4 2012-05-04 08:50:08

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [Solved] Volume down keyboard shortcut works but not volume up

Check through Xmodmap if the keycode for your volume key is actually bound to an action (XF86AudioRaiseVolume in this case).


Burninate!

Offline

#5 2012-05-04 09:15:30

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved] Volume down keyboard shortcut works but not volume up

You should try it on another OS. A "live" distro could work.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#6 2012-05-05 00:12:52

jiewmeng
Member
Registered: 2012-02-09
Posts: 118

Re: [Solved] Volume down keyboard shortcut works but not volume up

@Gcool, I'm not sure I am using xmodmap correctly but I did

xmodmap -pke > ~/.xmodmap

then in the file, I see

keycode 123 = XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume

So it should be OK? How do I know what key is 123?


Computer Science Student, Web Developer

Offline

#7 2012-05-05 07:37:03

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved] Volume down keyboard shortcut works but not volume up

If you solved the issue, don't just mark it as solved and move on. You should post what you did so that other people (including yourself sometimes) may find useful.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

Board footer

Powered by FluxBB