Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
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).


  Search this Thread
Old 01-06-2004, 04:22 PM   #1
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, 04:30 PM   #2
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, 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.

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:

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 '
aumix -v +5 -S

Contents of volume down named ' volumeudn '
aumix -v -5 -S

Contents of volume down named ' volumemute '
aumix -v0
cp /opt/volumemute1 /opt/volumemute

Contents of volume down named ' volumeumute1 '
aumix -v75
cp /opt/volumemute2 /opt/volumemute

Contents of volume down named ' volumeumute2 '
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 '




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 '

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


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-28-2005 11:14 PM
volume control xamdbz01 Fedora 2 06-29-2004 10:15 AM
volume control pantspi Debian 1 06-07-2004 04:55 AM
No volume control dhbiker Slackware 3 02-20-2004 09:56 AM
Volume control OneDragonWon Linux - Newbie 1 01-05-2003 08:21 PM > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 02:53 PM.

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