Remastersys and AVLinux Forum
May 25, 2013, 05:21:50 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Current Version of AV Linux - 6.0 "The Now"

http://www.bandshed.net/DownloadInstall.html
 
   Home   Remastersys Home Remastersys downloads Donate Login Register AV LINUX Home Help Search  
Pages: [1]
  Print  
Author Topic: HowTO: Enable laptop/hardware volume and mute buttons in LXDE  (Read 4216 times)
0 Members and 1 Guest are viewing this topic.
trulan
Global Moderator
Hero Member
*****
Offline Offline

Posts: 855


« on: December 24, 2010, 08:15:30 AM »

Edit 6-14-2011:  these settings, as well as keybindings in Compiz using the 'commands' plugin, are enabled by default on AVLinux 5.

Here's another neat LXDE-openbox tweak.

If you are using a laptop or a standard multimedia keyboard, you have probably noticed that the volume and mute buttons don't work.  Here's how to fix that:
Code:
gedit ~/.config/openbox/lxde-rc.xml
Hit Ctrl-F (for find) and search for </keyboard>
Right above that line, insert the following lines:
Code:
  <keybind key="XF86AudioMute">
      <action name="Execute">
       <command>amixer sset Master toggle</command>
      </action>
    </keybind>
     <keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
       <command>amixer sset Master 5%+</command>
      </action>
    </keybind>
     <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
       <command>amixer sset Master 5%-</command>
      </action>
    </keybind>
Save the file, log out and back in, and your volume and mute buttons should work.  Cool, huh?
« Last Edit: June 14, 2011, 06:25:18 AM by trulan » Logged
GMaq
Administrator
Hero Member
*****
Offline Offline

Posts: 2164


A/V 'Nixer


WWW
« Reply #1 on: December 24, 2010, 11:48:10 AM »

Great tip!!

Thanks for sharing, actually as well 'Clementine' which will be included in AV Linux 4.2 as the music player also lets you map your own multimedia buttons as well, your tip of course is better as a global solution. Thanks again, this is an important missing ingredient.
Logged

AV Linux, Proudly created with Remastersys: http://www.bandshed.net/AVLinux.html
trulan
Global Moderator
Hero Member
*****
Offline Offline

Posts: 855


« Reply #2 on: December 24, 2010, 12:09:21 PM »

...yet another "functions needed to switch completely from Ubuntu to AVLinux" item checked off my list!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!