Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 23 Oct 2014, 09:24
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
absvolume-puppytray
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [27 Posts]   Goto page: 1, 2 Next
Author Message
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: 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
AbsVolume_1.0_puppytray-0.8-i486.pet
Description 
pet

 Download 
Filename  AbsVolume_1.0_puppytray-0.8-i486.pet 
Filesize  8.34 KB 
Downloaded  1324 Time(s) 

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
Joshas

Joined: 21 Jan 2008
Posts: 26

PostPosted: 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
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: 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
View user's profile Send private message 
Sage

Joined: 04 Oct 2005
Posts: 4797
Location: GB

PostPosted: 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
View user's profile Send private message 
Joshas

Joined: 21 Jan 2008
Posts: 26

PostPosted: 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
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: 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
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: 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
View user's profile Send private message 
Joshas

Joined: 21 Jan 2008
Posts: 26

PostPosted: 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
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: 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
View user's profile Send private message 
Joshas

Joined: 21 Jan 2008
Posts: 26

PostPosted: 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
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: 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

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Blesphemy206


Joined: 18 Feb 2011
Posts: 5

PostPosted: 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
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: 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.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
darkcity


Joined: 23 May 2010
Posts: 2462
Location: near here

PostPosted: 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 | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: 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...
AbsVolume-1.0.tar.bz2
Description 
bz2

 Download 
Filename  AbsVolume-1.0.tar.bz2 
Filesize  119.56 KB 
Downloaded  325 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [27 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0921s ][ Queries: 13 (0.0066s) ][ GZIP on ]