Puppy Volume Mixer. Updated Mar 3, 2007

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#41 Post by rarsa »

This is good, keep them comming, the more I have the easier it will be to have a (now for real) fully functional mixer.

Why another mixer? Well, I searched up and down for Mixers, GTK based mixers in particular, and for whatever reason they are either quite ugly with a lot of functionality or nice looking with very limited functionality. There were even the ugly looking with very functionality.

I am sure that whatever I come up with will not support 100% of Alsa's functionality, it will just be a volume level mixer not a full mixer but it will allow users with a broader range of audio devices to control them.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

brad_chuck
Posts: 286
Joined: Tue 16 Aug 2005, 03:47
Location: Appalachian Mountains

#42 Post by brad_chuck »

A bit slow.. sorry.
Attachments
amixer.tar.gz
(610 Bytes) Downloaded 513 times

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#43 Post by Flash »

rarsa, I haven't given it any kind of test but at least I figured out how to use it. :lol: I had assumed it would replace the single slider bar that pops up when you left-click the speaker icon. I finally found the Puppy sound mixer in the multimedia menu.

Speaking of that slider bar, it doesn't always go away when I'm done with it and move the cursor. Anyone know why?
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69321][color=blue]Puppy Help 101 - an interactive tutorial for Lupu 5.25[/color][/url]

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#44 Post by rarsa »

Flash wrote:I had assumed it would replace the single slider bar that pops up when you left-click the speaker icon.
If you use the most recent tray mini-volume, it shows a menu on right click from where you can select "mixer" which will open the mixer.
Flash wrote:Speaking of that slider bar, it doesn't always go away when I'm done with it and move the cursor. Anyone know why?
Yes, the mouse must move over the open slider. The slider closes 0.5 seconds after the mouse leaves it.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

Pvolume mixer

#45 Post by vovchik »

Dear rarsa,

I did get pvolume to work on my machine but have the following observations.

(a) it controls my alsa Audigy 2ZS just fine, but 13 options aren't really enough. I'll try to tweak the code a bit to inlcude a toggle for analog on/off, since I had that problem for about a week and was getting no sound out of the Audigy until I toggled that setting in the alsa console mixer.

(b) Pvolume opens up a small 8x8cm grey window, in addition to the mixer window. Is there any way to turn that annoyance off? There must be some tktcl initialization setting setting.

(c)The mixer app, at least on on my machine (xorg at 1028x768 TTL), starts off at about horiz. pixel 950, which may be part of the reason I wrote earlier that the app wasn't working. It may be that I simply didn't see it materialize on the screen. I think an initial placement parameter, say 100h, 100v for most users, might be a good idea in a future release.

In any case, thanks and nice work.

With kind regards,
vovchik

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

Re: Pvolume mixer

#46 Post by rarsa »

vovchik wrote:(a) it controls my alsa Audigy 2ZS just fine, but 13 options aren't really enough. I'll try to tweak the code a bit to inlcude a toggle for analog on/off, since I had that problem for about a week and was getting no sound out of the Audigy until I toggled that setting in the alsa console mixer.
Please read up in this thread. About 16 or 17 posts before this one.
vovchik wrote:(b) Pvolume opens up a small 8x8cm grey window, in addition to the mixer window. Is there any way to turn that annoyance off? There must be some tktcl initialization setting setting.
My guess is that you are using puppy 2.15CE or did the wrong MIME association for TCL applications. That screen is not a problem with the script but the way you are executing it (or the puppy you are using). WhoDo, already fixed Puppy for the next version of 2.15.
vovchik wrote:(c)The mixer app, ...starts off at about horiz. pixel 950
I don't specify the position. It is responsibility of the WM to position it.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#47 Post by vovchik »

Thanks rarsa,

I fixed the mysterious grey window problem. You were right. My ROX run default was set to "wish" and not "tclsh" as a result of some earlier fiddling on my part. As for direct Alsa mixer support, that would be great. I read the previous posts you mentioned and am looking forward to it, if, that is, you ever find the time. One problem I see right off the bat is that some sound cards have a ridiculously large number of controls and toggles (such as mine). That would make for a very unwieldy mixer (if there were no separate configuration dialog to disable most of them) and require a large array for their storage. Your code, as it now stands, is simple, elegant and straghtforward.

With kind regards,
vovchik

PS.To get sound out of my card I had to run the following:

amixer set 'Audigy Analog/Digital Output Jack' unmute

and it took me some time to figure that one out...and that it was muted by default.

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#48 Post by rarsa »

vovchik wrote:That would make for a very unwieldy mixer (if there were no separate configuration dialog to disable most of them)
That's one of the reasons I added the configuration window. ;)
vovchik wrote:and require a large array for their storage. Your code, as it now stands, is simple, elegant and straghtforward.
No problem with the way I coded it. The code is the same whether there are 10 or 100 controls.

Thanks for the kind words, though.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
jason.b.c
Posts: 755
Joined: Wed 08 Feb 2006, 05:32
Location: Marshfield,MO
Contact:

#49 Post by jason.b.c »

I take it this thing dosen't work with the XFCE.pup , Seeing as i have installed it and never got it going , or showing up anywhere...
Puppy is Awesome..!!!!
[url=http://www.puppylinux.com/][img]http://www.browserloadofcoolness.com/sig.png[/img][/url]

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#50 Post by rarsa »

Puppy volume mixer is a standard application, It does not depend on the Window Manager.

I don't know what kind of setup you have so I don't know why it is not showing in your Multimedia menu but you can execute it from the command line

Code: Select all

pvolume-mixer.tcl
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
pakt
Posts: 1157
Joined: Sat 04 Jun 2005, 16:54
Location: Sweden

#51 Post by pakt »

Nice work rarsa :)

I've been reading the forum sporadically and missed this thread until now. Here's my amixer output.

Paul

P.S. Just a comment on 'speakers' vs 'headphones': The setvol 0 (SOUND_MIXER_VOLUME) device works with my laptop's speakers but not the headphone jack where I have my external speakers connected. Only device 4 & 10 have any effect (PCM & ALTPCM), as you have noticed on one of your PCs.

The same is true with your mixer and Zmixer's master volume control. However, when I install Xtmix, the master volume DOES control BOTH outputs! I wonder why one mixer controls both and another doesn't... It would be nice if the volumeapplet could control my external speakers ;)
Attachments
amixer.tar.gz
(747 Bytes) Downloaded 447 times
Methinks Raspberry Pi were ideal for runnin' Puppy Linux

Post Reply