Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 24 Nov 2014, 13:52
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Audio
SOLVED - Volume controls (buttons of my laptop) doesn't work
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
luiscuadrado123


Joined: 29 Jan 2014
Posts: 58

PostPosted: Mon 13 Oct 2014, 18:32    Post subject:  SOLVED - Volume controls (buttons of my laptop) doesn't work
Subject description: on LxPupp 14.02 (precise puppy+LXDE)
 

Hello everyone

I have this problem only with "LxPup 14.02", because "Precise Puppy" or other "puppy" systems everything works perfectly.

Currently I have sound on my computer, and the speaker icon in the taskbar functions and can properly raise and lower the volume from the taskbar.

The problem is that the hotkeys of my notebook for volume do not work, ie: FN + (arrow) keys +/- and MUTE key.

How I can tell the OS that those keys do what they should do?

I'm sending you a report of my current laptop hardware (generated by the Hardinfo app)

Sorry for my English, I used google translator
hardinfo_report.html.tar
Description  Hardware Report
tar

 Download 
Filename  hardinfo_report.html.tar 
Filesize  110 KB 
Downloaded  14 Time(s) 

Last edited by luiscuadrado123 on Sun 09 Nov 2014, 20:08; edited 1 time in total
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 1516
Location: Worcestershire, UK

PostPosted: Tue 14 Oct 2014, 14:31    Post subject: Openbox key bindings  

LxPup uses Openbox. see http://wiki.lxde.org/en/LXDE:Questions#Modify_mouse.2Fkeyboard_bindings

Key bindings for Openbox are stored in /etc/xdg/openbox/rc.xml

You therefore need to edit that file to add bindings that link the keys on your laptop to the correct sound commands.

The file has an example for the Print Screen key.

The sound commands are:
Code:
amixer set Master 10%-
amixer set Master 10%+
amixer set Master toggle

You can use xev in a terminal to obtain the keycodes - run xev then press a key - read the keycode in decimal and convert it to hex.

Example: for my HP laptop the sound keys are Fn+f11 to decrease, Fn+f12 to increase, so the entries to put into rc.xml are:
Code:
  <!-- Keybindings for Sound Adjust -->
    <keybind key="0xAE">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Decrease sound</name>
        </startupnotify>
        <command>amixer set Master 10%-</command>
      </action>
    </keybind>
    <keybind key="0xB0">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Increase sound</name>
        </startupnotify>
        <command>amixer set Master 10%+</command>
      </action>
    </keybind>
Fn+f11 = decrease=174 = 0xAE
Fn+f12 = increase=176 = 0xB0

Restart the window manager after making the changes.

Not tested so will be interested to know if it works for you.

Cheers
peebee

_________________
LxPup-14.10 = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
luiscuadrado123


Joined: 29 Jan 2014
Posts: 58

PostPosted: Sun 09 Nov 2014, 19:59    Post subject: Re: Openbox key bindings  

peebee wrote:
LxPup uses Openbox. see http://wiki.lxde.org/en/LXDE:Questions#Modify_mouse.2Fkeyboard_bindings

Key bindings for Openbox are stored in /etc/xdg/openbox/rc.xml

You therefore need to edit that file to add bindings that link the keys on your laptop to the correct sound commands.

The file has an example for the Print Screen key.

The sound commands are:
Code:
amixer set Master 10%-
amixer set Master 10%+
amixer set Master toggle

You can use xev in a terminal to obtain the keycodes - run xev then press a key - read the keycode in decimal and convert it to hex.

Example: for my HP laptop the sound keys are Fn+f11 to decrease, Fn+f12 to increase, so the entries to put into rc.xml are:
Code:
  <!-- Keybindings for Sound Adjust -->
    <keybind key="0xAE">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Decrease sound</name>
        </startupnotify>
        <command>amixer set Master 10%-</command>
      </action>
    </keybind>
    <keybind key="0xB0">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Increase sound</name>
        </startupnotify>
        <command>amixer set Master 10%+</command>
      </action>
    </keybind>
Fn+f11 = decrease=174 = 0xAE
Fn+f12 = increase=176 = 0xB0

Restart the window manager after making the changes.

Not tested so will be interested to know if it works for you.

Cheers
peebee


yeeesss!!!

it works!!!

thanks!! i can now up and down volume!! thanks!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Audio
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0555s ][ Queries: 12 (0.0045s) ][ GZIP on ]