Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Multimedia & Video
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Multimedia & Video
Have multimedia question? ATI, Nvidia, Sound cards. Just ask here.

 
Thread Tools Display Modes
Old September 23rd, 2006   #11
Coutsos
5 Cups of Ubuntu
 
Join Date: Mar 2005
Beans: 17
Ubuntu Breezy 5.10
Re: Can I change the volume keys bingings from master channel to PCM?

I spent a few hours of my morning fussing about this very problem. Luckily I've got a solution. Of sorts. It works, that's all that I'm worried about

Step one:
Get the keytouch source (don't worry, this is going to be relatively painless)
source (.tar.gz)

Step two:
Extract.

Step three:
Go to the plugins folder and open "amixer.c" in your text editor of choice. Here's the easiest part: Replace all occurrances of "Master" with "PCM". Bam. You are ~90% done. ([i]Note: if there's some other channel you wish to use, replace "PCM" with the appropriate name).

You should also change the plugin name (I prefer to add a seperate plugin instead of replacing the original). Find the line that says:
Quote:
{"Amixer", "Marvin Raaijmakers", "GPL 2", "2.2",
And change it to something like:
Quote:
{"Amixer Modified", "Marvin Raaijmakers", "GPL 2", "2.2",
And, I guess, change the nearby
Quote:
"amixer.so",
line to:
Quote:
"amixer_modified.so",
Don't forget to save!

Step four:
Go back to the main keytouch directory to run these two commands:
Code:
$ ./configure
$ make
When I tried "make install" I got errors about "/usr/local/etc/" not existing. Probably for the best, because I'd rather not have this mess up my already installed ubuntu package.
Now that it's compiled, go to the plugins directory again, and rename "amixer.so" to "amixer_modified.so" (or whatever you decided on).

Step five:
Code:
$ sudo cp amixer_modified.so /usr/local/lib/keytouch/plugins/
Step six:
Go to System -> Administration -> Keytouch
Under the "Preferences" tab click the "Import..." button, and navigate to /usr/local/lib/keytouch/plugins/" and select the file you just copied there.

Step seven:
Back to the "Key settings" tab, configure "Mute", "Volume Up", and "Volume Down" to use the new plugin and appropriate function.

Step eight:
Throw a party! (invite please?)

I hope that helps people. When I was looking for how to solve this problem I saw alot of people were struggling with this and didn't come to any solution. In the end, this feature is really not that important (and hardly useful), but I can't deny that I like having it.
Coutsos is offline   Reply With Quote
Old October 4th, 2006   #12
onispawn
First Cup of Ubuntu
 
Join Date: Apr 2006
Beans: 1
Re: Can I change the volume keys bingings from master channel to PCM?

Here is a keytouch keyboard I made that controls the pcm volume. It works great on my Inspiron 9300, but it should work on anything since its using a simple bash script to access PCM volume settings. Just simply import the file into keytouch and the defaults should work for you needs. You can always change the bash commands a little bit to control what ever you need.
Attached Files
File Type: txt keyboard.txt (2.5 KB, 125 views)
onispawn is offline   Reply With Quote
Old October 11th, 2006   #13
mcgregorandrew
First Cup of Ubuntu
 
Join Date: Sep 2006
Beans: 2
Re: Can I change the volume keys bingings from master channel to PCM?

Quote:
Originally Posted by onispawn View Post
Here is a keytouch keyboard I made that controls the pcm volume. It works great on my Inspiron 9300, but it should work on anything since its using a simple bash script to access PCM volume settings. Just simply import the file into keytouch and the defaults should work for you needs. You can always change the bash commands a little bit to control what ever you need.

Hi,

I did find that
amixer sset PCM 1+ unmute
amixer sset PCM 1- unmute

turn the volume up and down, but I can't get keytouch to make any settings take effect. I can load different keyboards and that all makes sense, but I get messages like this when I start it up:

(keytouch:2000: GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed

(keytouch:2000: libgnomevfs-WARNING **: Internal error: the configuration system was not initialized. Did you call _gnome_vfs_configuration_init?

(keytouch:2000: GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed

(keytouch:2000: libgnomevfs-WARNING **: Internal error: the configuration system was not initialized. Did you call _gnome_vfs_configuration_init?
keytouchd: no process killed

And this message when I press "Apply":
Warning: Not all keys can be grabbed by this program. This
can be caused by another program which is already
grabbing these keys.


when I run keytouch from the keyboard.

Any ideas what is stopping keytouch from working?
mcgregorandrew is offline   Reply With Quote
Old November 17th, 2006   #14
VuDu
Just Give Me the Beans!
 
Join Date: Nov 2006
Beans: 38
Re: Can I change the volume keys bingings from master channel to PCM?

http://ubuntuforums.org/showpost.php...34&postcount=8

Quote:
http://gnomesupport.org/forums/viewtopic.php?t=10879

Looks like it's a know bug.
Too bad they haven't fixed it yet.


http://bugzilla.gnome.org/show_bug.cgi?id=173035
VuDu is offline   Reply With Quote
Old December 21st, 2006   #15
qiemem
Gee! These Aren't Roasted!
 
Join Date: Dec 2005
Beans: 149
Dapper Drake Testing/
Re: Can I change the volume keys bingings from master channel to PCM?

Hey all, definitely the most productive thread on this issue.

Anyway, I, like mcgregorandrew, can't get the changes to take effect. When running keytouch from terminal, I get this when I hit 'apply':
Code:
Warning: Not all keys can be grabbed by this program. This
         can be caused by another program which is already
         grabbing these keys.
Is there a way to disable Gnome's default keyboard shortcut program?

Update:
Heh, just had to restart... Works great now!

Last edited by qiemem; January 11th, 2007 at 02:20 PM..
qiemem is offline   Reply With Quote
Old January 11th, 2007   #16
ingomueller.net
5 Cups of Ubuntu
 
Join Date: Dec 2006
Beans: 17
Lightbulb Re: Can I change the volume keys bingings from master channel to PCM?

Hi!

I had a similar problem one month ago and have spent a lot of time in its solution. As I stumbled upon this post, probably others will, so I'll post the link to a howto I wrote:

http://alsa.opensrc.org/How_to_use_s..._master_volume

I hope this helps someone...

Ingo
ingomueller.net is offline   Reply With Quote
Old January 20th, 2007   #17
VuDu
Just Give Me the Beans!
 
Join Date: Nov 2006
Beans: 38
Re: Can I change the volume keys bingings from master channel to PCM?

http://ubuntuforums.org/showpost.php...79&postcount=9

Quote:
Originally Posted by VuDu View Post
http://bugzilla.gnome.org/show_bug.cgi?id=173035

Check the topic again...
Quote:
Comment #36 from Jan Arne Petersen (points: 1
2007-01-08 15:41 UTC [reply]

Created an attachment (id=79756) [edit]
Patch to implement the sound-capplet and keybindings part


Comment #37 from Thomas Wood (control-center developer, points: 15)
2007-01-08 22:40 UTC [reply]

Patch looks generally good - let's get this in got 2.18!


Comment #38 from Rodrigo Moya (control-center developer, points: 21)
2007-01-08 22:55 UTC [reply]

Patch committed
Great news, no?
VuDu is offline   Reply With Quote
Old January 20th, 2007   #18
MarvinR
First Cup of Ubuntu
 
Join Date: Jun 2005
Beans: 1
Re: Can I change the volume keys bingings from master channel to PCM?

Quote:
Originally Posted by Coutsos View Post
I spent a few hours of my morning fussing about this very problem. Luckily I've got a solution. Of sorts. It works, that's all that I'm worried about
In the latest (beta) version of keyTouch it is possible to select the mixer channel that should be used for controlling the volume.
MarvinR is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:47 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry