Author |
Message |
HairyWill

Joined: 26 May 2006 Posts: 2946 Location: Southampton, UK
|
Posted: Wed 19 Mar 2008, 10:03 Post subject:
absvolume-puppytray Subject description: updated volume trayapp for dingo and latest 3 series |
|
I haven't been completely happy with with the volume control in dingo. In dingo alpha 7 it also seems to be hanging onto the mixer device making it hard to run the alsa wizard. I've done some tarting up and it is now nearly equal to Rarsa's original tcl applet.
The pet includes the icons.
It has a -u switch which takes a millisecond parameter for how long to wait between checking the current volume and updating the icon if necessary. By default this is off to avoid the alsa wizard problem and to minimise processor load.
The slider disappears automatically when you move the focus to another window.
The volume is updated as you move the slider rather than just when you let go of it.
I have removed the -bg option to set the background, it now works properly with gtk transparency and the citrus theme in the latest dingo.
If you want to mess with the icons they are in the same place as earlier pups in /usr/local/lib/X11/mini-icons
The source tar is available at
http://users.ecs.soton.ac.uk/wmd04r/puppy/AbsVolume_1.0_puppytray-0.8.tgz
The command to start it is
absvolume
When you restart X it should start automatically
 |
Description |
|

Download |
Filename |
AbsVolume_1.0_puppytray-0.8-i486.pet |
Filesize |
8.34 KB |
Downloaded |
1518 Time(s) |
_________________ Will
contribute: community website, screenshots, puplets, wiki, rss
|
Back to top
|
|
 |
Joshas
Joined: 21 Jan 2008 Posts: 26
|
Posted: Sat 22 Mar 2008, 03:58 Post subject:
|
|
Awesome. Just the thing I need. Compiled on Puppy 3.01, but there's a problem. When I set volume by dragging slider - I get this error:
Code: | (absvolume:5106): Gtk-CRITICAL **: _gtk_marshal_BOOLEAN__BOXED: assertion `n_param_values == 2' failed
(absvolume:5106): Gtk-CRITICAL **: _gtk_marshal_VOID__INT_INT: assertion `n_param_values == 3' failed
Segmentation fault |
Using mouse scroll wheel over volume slider works without errors.
I must note, that I have some problems with my notebooks' integrated sound card - it's impossible to change volume with master volume sliders in ALSA (it has only pswitch capability) , so I use the PCM slider for volume control.
It would be nice, that when starting absvolume one could use a command line switch to choose which mixer control to control.
|
Back to top
|
|
 |
HairyWill

Joined: 26 May 2006 Posts: 2946 Location: Southampton, UK
|
Posted: Sat 22 Mar 2008, 04:19 Post subject:
|
|
Joshas wrote: | Awesome. Just the thing I need. Compiled on Puppy 3.01, but there's a problem. When I set volume by dragging slider - I get this error:
Code: | (absvolume:5106): Gtk-CRITICAL **: _gtk_marshal_BOOLEAN__BOXED: assertion `n_param_values == 2' failed
(absvolume:5106): Gtk-CRITICAL **: _gtk_marshal_VOID__INT_INT: assertion `n_param_values == 3' failed
Segmentation fault | ...
It would be nice, that when starting absvolume one could use a command line switch to choose which mixer control to control. |
Are you at the extreme end of the slider when this happens?
Is your window manager jwm (the default one)?
I will have a look at the mixer choice idea.
_________________ Will
contribute: community website, screenshots, puplets, wiki, rss
|
Back to top
|
|
 |
Sage
Joined: 04 Oct 2005 Posts: 5371 Location: GB
|
Posted: Sat 22 Mar 2008, 06:50 Post subject:
|
|
Whilst you're at it HW, maybe you can look at an opposite problem to Jos, please? I think it may have been discussed previously but couldn't find it amongst the millions of sound issues reported. I cannot get the Master Volume slider to stick. It constantly remains at 100%. Even if workarounds have been suggested, this has been an issue for so long that it's worth getting a permanent fix?
|
Back to top
|
|
 |
Joshas
Joined: 21 Jan 2008 Posts: 26
|
Posted: Sat 22 Mar 2008, 07:33 Post subject:
|
|
HairyWill wrote: |
Are you at the extreme end of the slider when this happens?
Is your window manager jwm (the default one)?
I will have a look at the mixer choice idea. |
I am using IceWM as window manager.
On my setup master volume can only be at 100% and 0%, because of mixers' capabilities (pswitch). Crash happens when I try to move slider from 100% to any other position, except 0%. But when I try to drag slider from 0% to 100% - it crashes. Using mouse wheel to scroll works without crashes - I can set master volume either to 0% or 100% - no errors. Might be that mouse wheel and slider dragging are processed diferently.
I've tried the same setup in Qemu emulator, everything works fine (amixer shows that master volume has "pvolume" AND "pswitch" capabilities).
On a side note, it would be nice to control volume with mouse wheel while hovering over tray icon.
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6781 Location: Auckland, New Zealand
|
Posted: Mon 24 Mar 2008, 23:54 Post subject:
|
|
Quote: | On a side note, it would be nice to control volume with mouse wheel while hovering over tray icon. |
I might as well save HW from answering that question and perhaps others, by posting the suggestions/requests I made, and his answers:
I suggested: Quote: | 1. being able to change the volume by scrolling over the icon, rather than having to click on it.
2. if you click on it, having the scroll bar disappear if you click elsewhere or at least if you press escape or something.
3. an accessible mute (personally I like using the middle button for this).
4. volume tooltips when you scroll the volume up and down (at the moment there are just tooltips when you hover over the icon). |
HW fixed number 2, and said: Quote: | I've just checked
http://library.gnome.org/devel/gtk/2.11/GtkStatusIcon.html
in more detail. Status icons generate very few signals. Unless someone tells me differently 1 and 3 are not possible, you could probably fudge 3 by implementing a right click menu like Rarsa did. I don't know how exactly and consider it a low priority. I don't know exactly how to do 4 and considering you can see where the slider is and the icon images indicate level as well it seems more trouble than it is worth. I would still like to get it to work when the tray is not at the bottom of the screen and maybe get more control of the slider placement. I'm getting bored of playing with it now as it has reached the point of diminishing returns. |
|
Back to top
|
|
 |
HairyWill

Joined: 26 May 2006 Posts: 2946 Location: Southampton, UK
|
Posted: Tue 25 Mar 2008, 06:46 Post subject:
|
|
I though I'd posted a reply to this.
I must have missed the submit button.
Though I converted the original absvolume to work in the tray for puppy I still have no understanding of how sound works, I just copied the relevant bits of code. The code is not particularly large or complicated for someone who has a rudimentary knowledge of C wishes to prod. You probably want to put some debugging output into the event handlers in interface.c. It is hard for me to debug because I have working sound and don't understand the fine details of the sound related stuff.
Joshas the error you are describing looks like a gtk problem. Moving the slider with the scrollwheel or by dragging fires the same event handling code. Is it possible for you to test my compiled code on a clean puppy install to ensure that the problem is hardware and not your software environment?
_________________ Will
contribute: community website, screenshots, puplets, wiki, rss
|
Back to top
|
|
 |
Joshas
Joined: 21 Jan 2008 Posts: 26
|
Posted: Wed 26 Mar 2008, 10:30 Post subject:
|
|
Original Absvolume works without errors. Maybe something was altered, when porting the code? I'll have a look in the patched code, when I finnaly set up my development enviroment.
|
Back to top
|
|
 |
HairyWill

Joined: 26 May 2006 Posts: 2946 Location: Southampton, UK
|
Posted: Wed 26 Mar 2008, 11:03 Post subject:
|
|
I strongly suspect that this is a gtk problem not a problem with the sound setup. It would be very helpful if you could test it in a clean install or just boot from CD with pfix=ram so that I can replicate your software setup.
_________________ Will
contribute: community website, screenshots, puplets, wiki, rss
|
Back to top
|
|
 |
Joshas
Joined: 21 Jan 2008 Posts: 26
|
Posted: Wed 26 Mar 2008, 12:26 Post subject:
|
|
Testing on clean install gives me the same errors. I think that this bug is not very important, after (if ever) you'll add an option to select mixer by passing a parameter in command line.
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6781 Location: Auckland, New Zealand
|
Posted: Fri 16 Oct 2009, 22:00 Post subject:
later versions of absvolume |
|
If anyone ever plays around with absvolume they might like to look at the latest versions from the original author as well (I presume this is the original author - unless it is a different absvolume)
http://www.pcbypaul.com/software/absvolume.html
BTW see http://murga-linux.com/puppy/viewtopic.php?search_id=37061343&t=46183 if you want to extract the slackware binaries
_________________ If you have or know of a good gtkdialog application, please post a link here
Classic Puppy quotes
ROOT FOREVER
|
Back to top
|
|
 |
Blesphemy206

Joined: 18 Feb 2011 Posts: 5
|
Posted: Fri 18 Feb 2011, 11:11 Post subject:
|
|
Haven't had any issues with the newest versions. Was this something that ended up being a big deal, or did it pass over with not much worry? I'm pretty new to this, ut I do believe in learning through history...
_________________ http://puppylinux.org/wikka/aprilaire/puppysites
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6781 Location: Auckland, New Zealand
|
Posted: Fri 18 Feb 2011, 19:24 Post subject:
|
|
Blesphemy206 wrote: | Haven't had any issues with the newest versions. Was this something that ended up being a big deal, or did it pass over with not much worry? I'm pretty new to this, ut I do believe in learning through history... |
Sorry, I don't understand what you're asking. Perhaps you could rephrase the question.
The bottom line is probably that absvolume is no longer relevant because Pizzasgood wrote the much better Retrovol.
_________________ If you have or know of a good gtkdialog application, please post a link here
Classic Puppy quotes
ROOT FOREVER
|
Back to top
|
|
 |
darkcity

Joined: 23 May 2010 Posts: 2545 Location: near here
|
Posted: Sat 11 Feb 2012, 09:21 Post subject:
|
|
Pet won't install on luci 5.29 puppy
also should this topic be shifted to multi -media?
_________________ helping Wiki for help
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 904
|
Posted: Sat 23 Feb 2013, 03:27 Post subject:
|
|
Source link in first post down - anybody have a copy of HairyWill´s source?
I found the original source via wayback machine.
Attached it for future reference...
Description |
|

Download |
Filename |
AbsVolume-1.0.tar.bz2 |
Filesize |
119.56 KB |
Downloaded |
525 Time(s) |
|
Back to top
|
|
 |
|