LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-22-2010, 12:15 PM   #1
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Gnome: control audio volume via the keyboard


Hello.

Gnome has a funcionality that allows to set the volume using a key combo. A little OSD is shown on the screen when you do this and it seems to work. However when I do this with the mixer window open I can see that it modifies the "Front" channel, which on my setup is used for nothing. I'd rather like it to modify the "PCM" channel, which is what I use as a Master volume.

I wanted to know whether it's possible to change the change the channel that these keys act upon. The little volume applet has this capability, I just change it to PCM and it works like a charm. I wonder if there's a similar setting I can configure for the keyboard bindings functionality.

Something to consider is that I don't use pulseaudio (disabled at compile time, globally). I use plain ALSA.
 
Old 10-03-2010, 04:19 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
I'm not sure if there's a better way to do what you want, but there's an easy workaround Install "amixer" (sudo apt-get install amixer), and then you can use the custom shortcuts in GNOME: run "gconf-editor" then go to "/apps/metacity/global_keybindings" and add the shortcut you want to use as the key for run_command_1, then go to "/apps/metacity/keybinding_commands" and enter "amixer set PCM 10+" into the command_1 key value. Then, hopefully, whenever you press the shortcut it should raise the PCM volume level by 10 decibels. Similarly, you could set command_2 as "amixer set PCM 10-" to lower the volume. Hope this helps

Last edited by Snark1994; 10-03-2010 at 07:07 AM. Reason: Original was posted in a hurry...
 
Old 10-04-2010, 03:28 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Original Poster
Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
I can use external tools like amixer, I've done it in the past under other WMs, I was just curious if there's a way to use the gnome builtin OSD-ish tool. Thanks for trying though. I appreciate it
 
  


Reply

Tags
gnome, keybindings, mixer, sound



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
Fedora 10 no control over audio volume zeelog Fedora 4 09-15-2009 10:42 AM
Problem with maximum audio volume + volume control threshold mensch Debian 6 10-10-2008 10:48 AM
Playlists and audio volume control in Xine greengrocer Linux - Newbie 1 07-26-2008 06:55 AM
Intel HD Audio - Volume Control Glitch dudeman41465 Linux - Hardware 2 01-28-2008 06:44 PM
Volume Control on Keyboard... Grim Reaper Linux - Hardware 2 10-29-2002 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:14 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