Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Volume buttons
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Jmaxxz
Apprentice
Apprentice


Joined: 16 Sep 2006
Posts: 166

PostPosted: Sun Oct 08, 2006 9:27 pm    Post subject: Volume buttons Reply with quote

Is there a way to map my volume buttons on boot? Instead of having to run
Code:
xmodmap -e  "keycode 176 = XF86AudioRaiseVolume"
xmodmap -e  "keycode 174 = XF86AudioLowerVolume"
xmodmap -e  "keycode 160 = XF86AudioMute"


every time I get into kde.


Also is their away to change how many % the volume is increase, i.e. I want the buttons to change the volume by say 5% instead of 10%

Thank in advance
Back to top
View user's profile Send private message
lateralus__
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2006
Posts: 100
Location: Belgium

PostPosted: Sun Oct 08, 2006 10:28 pm    Post subject: Reply with quote

Hi,

lineak is the solution to your problems.
It is available in portage along with other cool packages.
The following command give you informations on what you can install (if not already done, emerge eix first) :
Code:

eix lineak

_________________
There are a lot of lies going around.... and half of them are true.
-- Winston Churchill
Back to top
View user's profile Send private message
Jmaxxz
Apprentice
Apprentice


Joined: 16 Sep 2006
Posts: 166

PostPosted: Mon Oct 09, 2006 12:34 am    Post subject: Reply with quote

Nice tool! but not exactly what I am looking for. I think there is some script that if I add said commands the keys will be mapped correctly. Does anyone know how to do this?
Back to top
View user's profile Send private message
Diablo82
n00b
n00b


Joined: 23 Jan 2004
Posts: 15

PostPosted: Mon Oct 09, 2006 6:59 am    Post subject: Reply with quote

Here it is my dirty way to make those button work (just volume up and down buttons, I don't use the mute one).
You need to define in your xorg.conf a keyboard model which has those buttons and this works for me (even if I don't have that keyboard model no more):

Option "XkbModel" "trustda"

Adding this string in your keyboard options should enable those buttons you need.
Next, open Kde control center and point to:

Regional & Accessibility -> Input Actions

Here you can easily define your own hotkeys actions.
These are the commands you should bind to the hotkeys:

amixer sset "Master" 5+
amixer sset "Master" 5-
amixer sset "Master" mute
amixer sset "Master" unmute

Of course you can use a value different that 5, even something like 10%, it depends on your needs.
You just need the alsa-utils package installed on your system, that's all.
Feel free to ask for help if I haven't been so clear, I just woke up a few minutes ago so I guess I need a coffee right now :D
Back to top
View user's profile Send private message
hamil
n00b
n00b


Joined: 25 Mar 2007
Posts: 2

PostPosted: Sun Mar 25, 2007 10:46 am    Post subject: Reply with quote

Sorry for bumping this thread, but it seems that I can not find the answer to my question any place. Most likely I am not searching for the right thing, or looking at the wrong places, but anyhow, hope that someone can help me with this...

I have a laptop with some extra keys, and the Fn+Fx keys, which is supposed to control the thouchpad, sound, switch screen, bluetooth and other things. Without any modifications my keys for brightness, bluetooth and sleep is working correctly (even though they do not give any output in xev).

My first try to get these keys working, was with xmodmap. However, I could not manage to get the volume to work. Then I found this thread about keytouch, and gave that a shot.

Keytouch-editor correctly identifies my keytouch for the keys I press, and even suggests the correct actions for them. But it is not able to correctly execute the actions when I do press the keys. I have only managed to get the mute function to work properly. The volume up/down is not working, nothing happens. I am running KDE, and have the KDE-plugin installed, and chosen the Kmixer (although I also have tried the amixer option it suggested to me as default aswell).

For the disable/enabling of the touchpad I do not know what action I am supposed to assign it to. I am using libsynaptic to controll it manually, with GUI. And the same for the switch screen, what action am I supposed to assign to that keypress?

Thanks in advance! ;)

Lasse
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
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