Multimedia Keys Issue
Martin Bagge / brother
brother at bsnet.se
Thu Mar 8 18:18:48 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 2012-03-08 19:08, Jean-Pierre Vidal Piesset wrote:
> - Mute
worked?
KeyRelease event, serial 41, synthetic NO, window 0x2800001,
root 0x14e, subw 0x0, time 813918, (-884,-148), root:(261,256),
state 0x0, keycode 121 (keysym 0x1008ff12, XF86AudioMute),
same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
key: XF86AudioMute
> - Decrease volume (not working)
KeyRelease event, serial 41, synthetic NO, window 0x2800001,
root 0x14e, subw 0x0, time 814474, (-884,-148), root:(261,256),
state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume),
same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
key: XF86AudioLowerVolume
> - Increase volume (not working)
KeyRelease event, serial 41, synthetic NO, window 0x2800001,
root 0x14e, subw 0x0, time 814955, (-884,-148), root:(261,256),
state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume),
same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
key: XF86AudioRaiseVolume
My guess, your keys are playing nice with the box but your config is not.
This is how it pretty much should look like in
~/.config/openbox/lubuntu-rc.xml (I hope I remeber the file name
correct, should be obvious at least.)
Using amixer here, I am not sure about lubuntu defaults and so on -
hopefully others might be able to help on that part.
<!-- local volume control with normal buttons on keyboard -->
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>amixer</name>
</startupnotify>
<command>amixer -c 0 set Master 3- unmute</command>
</action>
</keybind>
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>amixer</name>
</startupnotify>
<command>amixer -c 0 set Master 3+ unmute</command>
</action>
</keybind>
<keybind key="XF86AudioMute">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>amixer</name>
</startupnotify>
<command>amixer set Master toggle</command>
</action>
</keybind>
(this is also covered in the upstream FAQ if not in the Ubuntu FAQ...
<http://wiki.lxde.org/en/FAQ#How_do_I_make_my_keyboard_volume_buttons_work.3F>)
A example of how you can do something similar for a remote station could
look like this:
<!-- volume control at remote station with "music" button and
"play/pause" button -->
<keybind key="XF86Tools">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>amixer</name>
</startupnotify>
<command>ssh -i /home/brother/.ssh/id_rsa_music music at music
"amixer -c 0 set Master 5- unmute"</command>
</action>
</keybind>
I control the volume at the remote music box at work using two other
media buttons (XF86Tools and XF86AudioPlay as identified by xev =))
- --
brother
http://sis.bthstudent.se
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBCAAGBQJPWPgIAAoJEJbdSEaj0jV70dgH/2FPRBOBWTzL2Me3ps9zZJhB
4EzPI0urmzXIDJDD9JCEuIFLmAiyLICQsV3OW7x6dvrW6eKrF9+TtDemAh+mNmcj
q20GR46oYvMHIszEl+z4aijo3DoJWG7DKRA98GW/yMNnxQ6khAlVuxo1AYb/QXUg
rR07Glhheu1LskFcJFgTHb3Rfnsr17Vlchx2frWwoohgyY0V5UTj+/i7YR1r/AB4
KdZxDqi4Llm7dEEYEuc5dWXAF5p8K5DTRE3juSBD+D5GuOL103feyxGUmbovi0kQ
fSQxZWg+M9jSjJBpAnu7mturmr6cBzjdY0c2JZx8P10e37S4NXNwSXPfuq/MyJ4=
=BjJw
-----END PGP SIGNATURE-----
More information about the Lubuntu-users
mailing list