You are not logged in.

#1 2007-11-13 14:02:54

oliwer
Member
From: Paris
Registered: 2007-06-30
Posts: 153
Website

VolWheel - easy volume control

Hi there,

I've wrote a little application which lets you control the volume (providing you use ALSA) easily through a tray icon you can scroll on. It is somehow an improvement of gvtray, except that it is written from scratch in perl.

Go get it on AUR : http://aur.archlinux.org/packages.php?d … 1&ID=13764

Please report any bug or wished feature smile

Offline

#2 2007-11-13 16:58:16

s26c.sayan
Member
From: Kolkata, India
Registered: 2007-02-07
Posts: 176
Website

Re: VolWheel - easy volume control

Wow!!!

Is this coincidence or what!!!! I was looking for such an app which I could use with my Fluxbox environ. In fact, just today I was beginning to code one for myself (in wxpython).

U saved me a bit of coding! smile


March Linux : An Arch Linux "distrolet" that I am trying to develop (March = My Arch!)
Please take a look......:)

Offline

#3 2007-11-13 18:37:12

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: VolWheel - easy volume control

Thank you very much, oliwer.  This is great!


thayer williams ~ cinderwick.ca

Offline

#4 2007-11-14 05:18:00

aodhon
Member
From: Dublin
Registered: 2007-06-20
Posts: 19

Re: VolWheel - easy volume control

Not a moment too soon, this was the only thing I missed from gnome that I wasn't able to get in openbox.

Offline

#5 2007-11-14 19:33:45

oliwer
Member
From: Paris
Registered: 2007-06-30
Posts: 153
Website

Re: VolWheel - easy volume control

VolWheel v.0.2.1 is available on AUR smile

The mute bug should be fixed : all channels can now be muted, even thoses that cannot be through ALSA. Here is how it works : when you mute (middle-click) a channel like 'Master' which cannot be muted by amixer, VolWheel will set its volume to 0%. When unmuting it, VolWheel puts back volume to 75% (you can change this at line 70 of the source). I'll look forward later to make a function to remember the volume level before muting, so that it can restore the volume to its previous level when unmuting.

Bonus : an improved menu and some code clean up.

Enjoy wink

Offline

#6 2007-11-14 22:44:23

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: VolWheel - easy volume control

Thanks again, the new version is working great.


thayer williams ~ cinderwick.ca

Offline

#7 2007-11-15 00:00:38

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: VolWheel - easy volume control

A great and welcomed initiative! Works great, so I hope it'll get a lot of votes.

Thanks!

Offline

#8 2007-11-15 04:32:33

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: VolWheel - easy volume control

Just an FYI that I did a small writeup about VolWheel:

http://www.cinderwick.ca/notebook/volwh … st-desktop

You will become famous now that all 3 of my website visitors will see this article LOL


thayer williams ~ cinderwick.ca

Offline

#9 2007-11-15 10:33:19

oliwer
Member
From: Paris
Registered: 2007-06-30
Posts: 153
Website

Re: VolWheel - easy volume control

Thanks a lot for the advertising ! You surely presented VolWheel better than me.

I am completly rebuilding oliwer.net, so VolWheel should soon have its own page. Maybe i'll just c/p your post lol

Offline

#10 2007-11-20 05:29:56

mucknert
Member
From: Berlin // Germany
Registered: 2006-06-27
Posts: 510

Re: VolWheel - easy volume control

After building volwheel, the following happens when I try to run it:

Can't locate Gtk2.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl .) at /usr/bin/volwheel line 22.
BEGIN failed--compilation aborted at /usr/bin/volwheel line 22.

Todays mistakes are tomorrows catastrophes.

Offline

#11 2007-11-20 09:40:42

kefir
Member
From: Mora,Sweden
Registered: 2007-11-06
Posts: 11
Website

Re: VolWheel - easy volume control

Awesome little app, thanks alot for this one!


| ruskprick @ irc | simple is smart |

Offline

#12 2007-11-20 10:14:36

ramoneur
Member
Registered: 2007-06-04
Posts: 89

Re: VolWheel - easy volume control

personally i dont need this, cause i like to stick to the terminal as much as possible (screen) and not be dependent on X applications, but it looks like a very nice app! and im sure alot of people will like it smile keep up the good work m8!


A w e s o m e
r
c
h

Offline

#13 2007-11-20 15:31:29

oliwer
Member
From: Paris
Registered: 2007-06-30
Posts: 153
Website

Re: VolWheel - easy volume control

mucknert wrote:

After building volwheel, the following happens when I try to run it:

Can't locate Gtk2.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl .) at /usr/bin/volwheel line 22.
BEGIN failed--compilation aborted at /usr/bin/volwheel line 22.

Perl module packaging is problematic on Arch. Try uninstalling then reinstalling the gtk2-perl package.

Thanks to all for your support.

@ramoneur : you masochist tongue

Offline

#14 2007-12-06 20:00:51

RoobZ
Member
Registered: 2006-07-26
Posts: 13

Re: VolWheel - easy volume control

Hello! I'm trying to use volwheel, but after install, when put:
bash-3.2$ volwheel

It shows this error:
amixer: Unable to find simple control 'PCM',0

amixer: Unable to find simple control 'PCM',0

What am I doing wrong? Volwheel works alone or I need to use with a panel (fbpanel,pypanel,etc..)?

Offline

#15 2007-12-07 11:49:01

RoobZ
Member
Registered: 2006-07-26
Posts: 13

Re: VolWheel - easy volume control

Ok, now I realize that I need a panel to volwheel. I'm using pypanel and it shows a tray icon.

But now I have another problem: my computer has a 5.1 sound system and I want to use something like a Master Channel to control all others channels. I don't want to adjust the channels one by one (front,left,right....etc). Something like "One channel to rule them all", like the volume mixer in gnome-panel.
Is this possible with Volwhell? Because I really like this app.

Offline

#16 2007-12-07 15:33:16

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: VolWheel - easy volume control

I take it that the Master channel doesn't work on your setup?  I've never used 5.1 on a computer, so I wouldn't know where to begin.  I'm assuming you have checked the VolWheel preferences window and made sure you aren't controlling the PCM volume or something.

Last edited by thayer (2007-12-07 15:34:12)


thayer williams ~ cinderwick.ca

Offline

#17 2007-12-07 23:56:25

oliwer
Member
From: Paris
Registered: 2007-06-30
Posts: 153
Website

Re: VolWheel - easy volume control

Hi there,

I never used 5.1 either. Yet, I don't think it changes a lot of things. Try setting VolWheel's channel to "Master" or "Surround". You can also use mixers like gnome-alsamixer or simply alsamixer to test each channel and see (hear) which one is the best for you.

Also : the next version of VolWheel will have an error message when there is no systray manager available wink

Offline

#18 2008-01-10 18:50:12

darkarchon
Member
From: Israel
Registered: 2007-02-28
Posts: 41

Re: VolWheel - easy volume control

Volwheel doesn't work with perl package from testing (5.10.0-1). It worked well with perl 5.8.8-9.
This is the error i get:

arqon ~ > volwheel
perl: symbol lookup error: /usr/lib/perl5/site_perl/current/i686-linux-thread-multi/auto/Glib/Glib.so: undefined symbol: Perl_Tstack_sp_ptr

edit:
here is the reason: http://bugs.archlinux.org/task/9078

Last edited by darkarchon (2008-01-10 20:39:07)

Offline

#19 2008-01-12 23:22:30

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 100
Website

Re: VolWheel - easy volume control

@darkarchon - Maybe you should stop using testing packages? lol

@oliwer - I love it! Runs smoothly, no errors. I do have a request though: Could you and bruenig combine projects? Something that would display a percentage bar when the volume changes as well as parameters that could be called upon for changing the volume via keybindings.

changevol + volwheel = really really good lightweight volume controller! I await the day big_smile


cat /usr/bin/arson > Arson, the HOT AUR search helper! -- Use Clyde instead smile

Offline

#20 2008-01-13 01:14:49

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: VolWheel - easy volume control

Is it gnome only?


Sign of the times: Navajo blanket..made in China
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Online

#21 2008-01-13 16:55:21

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 100
Website

Re: VolWheel - easy volume control

lilsirecho - nope, only Gtk2 needed


cat /usr/bin/arson > Arson, the HOT AUR search helper! -- Use Clyde instead smile

Offline

#22 2008-01-13 19:55:27

darkarchon
Member
From: Israel
Registered: 2007-02-28
Posts: 41

Re: VolWheel - easy volume control

@zenix - no, i like when things get broken like this :]

Offline

#23 2008-01-13 20:26:10

oliwer
Member
From: Paris
Registered: 2007-06-30
Posts: 153
Website

Re: VolWheel - easy volume control

I guess your right zenix, I'm going to implement some of changevol functionalities. Concerning the splash, I was wondering if someone was interested in using OSD instead of GTK.  It would be easy to implement both in VolWheel.

I am also thinking about a trayicon which would change following the volume level, so you can see immediately if the volume is high, low or mute. But that will come later since I don't have much skills in icons design.

Ho, and I contacted Sergej who will soon make perl-gtk2-trayicon work with Perl 5.10.

Last edited by oliwer (2008-01-13 20:27:12)

Offline

#24 2008-03-13 09:37:13

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: VolWheel - easy volume control

Hi!

Love your app, it works great! smile

But is it a way to set the volume start level. Everytime I reboot the volume jumps up to
90% and that is an accident just waiting to happen. tongue

Offline

#25 2008-03-13 12:00:09

MrWeatherbee
Member
Registered: 2007-08-01
Posts: 266

Re: VolWheel - easy volume control

Perre wrote:

Hi!
But is it a way to set the volume start level. Everytime I reboot the volume jumps up to
90% and that is an accident just waiting to happen. tongue

Yeah. I thought the same thing. So I made a highly modified version of Volwheel for my own use that:

- when unmuted (from either real mute or SiMute), the volume is returned to the same volume as set at the moment of muting. This behavior is different (and safer) than the unmodded Volwheel which returns the volume to a preset (high) level of ~75% when in simulated mute mode.

- allows for static (single) icon mode just like the unmodded version

- allows dynamic (multi / animated) icon mode with these icon features:
-- icon indicates volume level @ 0%, 1-20%, 21-40%, 41-60%, 61-80%, 81-100%
-- level indicator changes color @ 81-100% as an additional warning
-- mute indicator for real mute
-- different mute indicator for SiMute (simulated mute using volume level with cards or controls that don't support 'real' mute)

- automatic detection of alsa controls that can have their volume / level changed (these are made available in a GUI drop-down menu for easy selection by user)

- file chooser dialogs for setting mixer, single icon path, and dynamic icons folder

- user-selectable mouse button for launching alsa mixer (left or middle button)

- user-selectable volume increments from 1-10%

- user-selectable mute modes: a) disable level change via scroll when mute is in effect or b) enable scroll while mute is in effect

- all changes made via the GUI preferences are immediate upon saving (including icon mode switching) ... no restart of app required

- other stuff I forgot
 
Screenshot attached ... the modded Volwheel icon (in dynamic mode) is the one with two music notes and two blue dots (the dots are the level indicator, in this case two dots indicate volume between 21-40%.)

It's mostly ready for prime time (need to complete the help information and I might implement a couple more features), but my biggest concerns are:

1. I still consider my code to be Oliwer's project even though my code hardly has any resemblance to the original anymore
2. I have no time (and likely, no expertise) to provide support if I were to upload it for others to use
3. Though I am comfortable with some other languages, I only learned enough Perl and Gtk2 to get this project to work, so it is likely not a very polished bit of code (aesthetically)
4. I probably will regret even making this post smile

screenshotvolwheel20080cf9.th.png

Last edited by MrWeatherbee (2008-03-14 21:24:17)

Offline

Board footer

Powered by FluxBB