Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Volume buttons on Laptop?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Mon Nov 08, 2004 12:53 am    Post subject: Volume buttons on Laptop? Reply with quote

Is there a way to get these working. I have a up and down and a mute one.
Back to top
View user's profile Send private message
count_zero
Guru
Guru


Joined: 17 May 2004
Posts: 460
Location: Little Rock, Arkansas, USA

PostPosted: Mon Nov 08, 2004 2:38 am    Post subject: Reply with quote

Yeah. But sometimes it depends upon which model laptop you're using. Often times, you can just use xev to find out the keycode for the extra buttons and map it to hotkeys or a similar program. Just type "xev" into an xterm, and press some keys--you should see some output, look for the number after "keycode"--this is the key number you need. If you use KDE, you can look in the control center --> Regional & Accessibility for a hotkey program you can map these buttons to do whatever action you want (i.e., alsamixer, aumix, etc.). Else, you can emerge "hotkeys" and do the same thing in this program.

For example, I have my keys set to do these actions:
Volume up: "aumix -v +4"
Volume down: "aumix -v -4"
Mute: "mutoggle"

I'm using OSS, though, with aumix as my mixer. Alsamixer can do the same, but the commands will be different.
_________________
"We must all hang together, or assuredly we shall all hang separately."
-Ben Franklin
Back to top
View user's profile Send private message
Archangel1
Veteran
Veteran


Joined: 21 Apr 2004
Posts: 1212
Location: Work

PostPosted: Mon Nov 08, 2004 5:06 am    Post subject: Reply with quote

Under Alsa I'm using
Code:
amixer set Wave 5- && amixer set "Wave Surround" 5-

that's with rear speakers hooked up as well though; on a laptop you'd be fine with
Code:
amixer set Master 5-

and for muting
Code:
amixer set Master toggle
Back to top
View user's profile Send private message
GenKreton
l33t
l33t


Joined: 20 Sep 2003
Posts: 828
Location: Cambridge, MA

PostPosted: Mon Nov 08, 2004 6:23 am    Post subject: Reply with quote

you can use a non-kde dependent app like hotkeys as well.
Back to top
View user's profile Send private message
Cagnulein
l33t
l33t


Joined: 18 Sep 2003
Posts: 861
Location: Modena, Italy

PostPosted: Mon Nov 08, 2004 6:47 am    Post subject: Reply with quote

xev doesn't show anything when i use fn+anykey in my notebook..is that right?
Back to top
View user's profile Send private message
count_zero
Guru
Guru


Joined: 17 May 2004
Posts: 460
Location: Little Rock, Arkansas, USA

PostPosted: Mon Nov 08, 2004 12:23 pm    Post subject: Reply with quote

Neither does my fn key, but mine requires a special kernel module to work. What model laptop do you use?
_________________
"We must all hang together, or assuredly we shall all hang separately."
-Ben Franklin
Back to top
View user's profile Send private message
GenKreton
l33t
l33t


Joined: 20 Sep 2003
Posts: 828
Location: Cambridge, MA

PostPosted: Mon Nov 08, 2004 5:54 pm    Post subject: Reply with quote

My fn+anything doesn't work except a few standard keyboard commands like num lock, but the battery, wifi radio, volume ones, and the non-fn volume controls on my dell 600m do not show anything in xev, but they still work in hotkeys.
Back to top
View user's profile Send private message
Cagnulein
l33t
l33t


Joined: 18 Sep 2003
Posts: 861
Location: Modena, Italy

PostPosted: Tue Nov 09, 2004 11:59 am    Post subject: Reply with quote

count_zero wrote:
Neither does my fn key, but mine requires a special kernel module to work. What model laptop do you use?


toshiba :I
Back to top
View user's profile Send private message
count_zero
Guru
Guru


Joined: 17 May 2004
Posts: 460
Location: Little Rock, Arkansas, USA

PostPosted: Tue Nov 09, 2004 4:18 pm    Post subject: Reply with quote

Cagnulein wrote:
count_zero wrote:
Neither does my fn key, but mine requires a special kernel module to work. What model laptop do you use?


toshiba :I


Maybe this is what you want:
http://fnfx.sourceforge.net/
_________________
"We must all hang together, or assuredly we shall all hang separately."
-Ben Franklin
Back to top
View user's profile Send private message
Cagnulein
l33t
l33t


Joined: 18 Sep 2003
Posts: 861
Location: Modena, Italy

PostPosted: Tue Nov 09, 2004 5:46 pm    Post subject: Reply with quote

perfect! 8)

thanks! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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