LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 01-06-2004, 05:22 PM   #1
boffhaku
LQ Newbie
 
Registered: Dec 2003
Distribution: Suse
Posts: 8

Rep: Reputation: 0
Volume control


Nope, this isn't a question about hair styling products.
Has anyone got the hardware sound volume buttons on a Compaq Evo N610C (or any N600 series) to work?
I'm currently using Suse 9. It's not a critical thing, but would be nice
Thanks all!
 
Old 01-07-2004, 05:30 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Check out this thread and see if it will work for you.
http://www.linuxquestions.org/questi...388#post536388

Some other info I saved for how me and nef got it working for him.


Under KDE3 mapping Special keys, Hotkeys, Multimedia Keys

You really gave me a challenge. But I finially got what I think will work for you. Thanks to these web sites:
http://sdb.suselinux.hu/en/sdb/html/extrakeys.html
http://www.linuxgazette.com/issue67/evans.html
http://www.mail-archive.com/expert@...m/msg48067.html
https://me.in-berlin.de/~peter/gnu-.../tastatur.shtml
http://ypwong.org/hotkeys/
http://www.ignavus.net/software.html


Part 1 Mapping Keys to Scripts. (I have this working fine)
1. Need to create 5 executable scripts to. One for volume up, one for volume down, and mute.


Contents for volume up named ' volumeup '
#!/bin/sh
aumix -v +5 -S

Contents of volume down named ' volumeudn '
#!/bin/sh
aumix -v -5 -S

Contents of volume down named ' volumemute '
#!/bin/sh
aumix -v0
cp /opt/volumemute1 /opt/volumemute

Contents of volume down named ' volumeumute1 '
#!/bin/sh
aumix -v75
cp /opt/volumemute2 /opt/volumemute

Contents of volume down named ' volumeumute2 '
#!/bin/sh
aumix -v0
cp /opt/volumemute1 /opt/volumemute




Save all files under my /opt directory. Make sure scripts have full read, write , & executable permissions for all users.

2. Now create a file under ~/.kde/share/config called ' khotkeysrc ' ' ~ ' character reprosents your home directory if you did not know. Typeing ' cd ~ ' will take to your home directory of the user you are login as.

Contents of ' ~/.kde/share/config/khotkeysrc '
[Main]
Num_Sections=3
Version=1

[Section1]
MenuEntry=false
Name=volumeudn
Run=/opt/volumeudn
Shortcut=F11

[Section2]
MenuEntry=false
Name=volumeup
Run=/opt/volumeup
Shortcut=F12

[Section3]
MenuEntry=false
Name=volumemute
Run=/opt/volumemute
Shortcut=F10


Save file.

3. execute this command in ~/kde/share/config directory
' dcop khotkeys khotkeys reread_configuration '

Note: sometimes may require a restart of X server.

4. Start playing some music and try your F10, F11 and F12 keys. If volume goes up and down (note don't press the keys real fast, pause a 1/2 second between keypresses of F10, F11 or F12).

Note: It may be necessary to run the volumemute1 script when you first bootup so volume is at 75% or what ever value you perfer. This script can be run from rc.local.





This is what nef did for his system.
Part 2 Mapping Special key to Key ( This I have not done. )
5. Now to map your volume buttons to F11 & F12. I have not done this part but following info from the earlier post on X. Make a backup copy of your /etc/X11/Xmodmap. Now edit /etc/X11/Xmodmap and setup like the following. Replace the ' ** ' with the keycode you recieved from ' xev ' program.


! /etc/X11/Xmodmap

! mapping volume keys
keycode ** = F11
keycode ** = F12


6. Save and exit

7. Execute the following command ' xmodmap /etc/X11/Xmodmap '


Brian1
Hope this helps. Let me know how this worked for you or what else you did to get it working on your system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no more volume control? merlin666 Fedora 2 04-29-2005 12:14 AM
volume control xamdbz01 Fedora 2 06-29-2004 11:15 AM
volume control pantspi Debian 1 06-07-2004 05:55 AM
No volume control dhbiker Slackware 3 02-20-2004 10:56 AM
Volume control OneDragonWon Linux - Newbie 1 01-05-2003 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration