Veromix - volume control / soundmenu

Plasma 4 Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

58
8.4
Description:

Veromix is a mixer for the Pulseaudio sound server.

Features:
- Media player controls (aka nowplaying)
- per application voluem control (replay & record)
- global hotkeys
- can life in system tray
- switch sound card profiles (for ex. from regular to HDMI)
- control LADSPA effects (equalizer and other effects)
- keyboard navigation (use Tab- and Arrow-keys)

Quickstart:
- middle click on panel icon mutes the default output
- mouse wheel over panel icon increases/decreases volume
- drag and drop playback streams between different output devices
- right click context menu:
-- kill playback streams
-- set default output device
-- set per channel volume
-- switch sound card profiles
- assign hotkeys
- click the add icon (bottom-right) to add a new effect
(drag and drop playback stream to the effect sink)


More Info:
- Howto: http://www.omgubuntu.co.uk/2012/02/how-to-increase-volume-over-100-in-kde/
- YouTube: http://www.youtube.com/watch?v=fph8xqsJd_g
- Review: http://padoca.wordpress.com/2011/03/18/kmix-veromix-qml-and-other-stories/
- Review: http://techlaze.com/2011/08/best-plasma-widgets-kde/

FAQ:
- Disable KMix: Set "AutoStart=false" in "[Global]" section of .kde/share/config/kmixrc

Requirements:
- plasma-scriptengine-python
- python-xdg
- python-qt4-dbus
- pulseaudio
- swh-plugins / ladspa-swh-plugins (for equalizer and other effects)
- ladspa-sdk / ladspa (dynamically detect installed ladspa plugins)

Changelog: http://code.google.com/p/veromix-plasmoid/source/browse/Changelog

Packages:
- Debian: http://packages.debian.org/plasma-widget-veromix
- Arch: https://aur.archlinux.org/packages.php?ID=60883
- openSUSE: https://build.opensuse.org/package/show?package=plasmoid-veromix&project=KDE%3AExtra


Please report bugs/wishes here: http://code.google.com/p/veromix-plasmoid/issues/list
C

nik3nt3

10 years ago

You are right - I'am also looking forward to that feature, made a bug-report:
http://code.google.com/p/veromix-plasmoid/issues/detail?id=17

Report

madsheytan

10 years ago

Please use the monochrome icon for systray :D This will be awesome :D

Report

9

Murz

10 years ago

Does mouse whell on icon works for you on KDE 4.5? It changes the volume?

Report

C

nik3nt3

10 years ago

Yes, it works for me (kde4.4 at home and 4.5 at the office)..

@mpd:
Thanks for your debugging. I will fix that problem tomorrow..

@volume:
Quote:Which volume does your plasmoid change in stream? As I see in pactl output, each stream has per-channel volume and base volume.
I think that better to change base volume, it have one value always, don't depend on channel number.

Hmm I never realized that there is a base-volume, but the api says:

Quote:pa_volume_t pa_sink_info::base_volume
Some kind of "base" volume that refers to unamplified/unattenuated volume in the context of the output device.
As I understand it, one cannot change that value. I use the function:

Quote:pa_context_set_sink_volume_by_index
http://0pointer.de/lennart/projects/pulseaudio/doxygen/introspect_8h.html

@bugtracker:
yes I should definitely go for one..

/nik

Report

C

nik3nt3

10 years ago

hy

your icon-theme should provide icons for:

audio-volume-high
audio-volume-muted

If your monochrome icon theme provides these icons, you will have monochrome-icons in the panel. If not you get the default oxygen-icons.
_
is kmix showing monochrom icons - i think the plasmoid uses the same icons as kmix

/nik

Report

madsheytan

10 years ago

Hey, i'm using the default plasma theme, which provides those icons and it still is the colored oxygen icon when i use it on the panel :)

Report

C

nik3nt3

10 years ago

the plasma-theme is not providing icons - the icon-theme should provide these icons...

Report

madsheytan

10 years ago

as far as I know, tray icons are plasma-theme dependent ;) You should really switch to this. :)

Report

C

nik3nt3

10 years ago

your right (new feature in kde 4.5) - I'am still running 4.4 - Will have a look at it after upgrade

/nik

Report

9

Murz

10 years ago

And one more problem:
When I change the volume in plasmoid, real stream volume is not changed if I change it in 6-channel stream (Inernal Audio Analog Surround 5.1), but if I change channels to 2 (Stereo), it change normally.

Which volume does change this plasmoid? Volume for each channel in strem or base stream volume?

Report

C

nik3nt3

10 years ago

Yes there is a problem if an output has more than 2 (stereo) channels, e.g. like in your case 5.
sorry for that (until now I only knew that this is a problem for mono-microphones(e.g. 1 channel) ).

@pulse-audio as system-service: I never tried that.. will see what I can do about that..

/nik

Report

9

Murz

10 years ago

Which volume does your plasmoid change in stream? As I see in pactl output, each stream has per-channel volume and base volume.
I think that better to change base volume, it have one value always, don't depend on channel number.

Example of output in my 5.1 channel:
Quote:$ pactl list
...
Sink #3
State: RUNNING
Name: alsa_output.pci-0000_00_14.2.analog-surround-51
Description: Internal Audio Analog Surround 5.1
Driver: module-alsa-card.c
Sample Specification: s16le 6ch 48000Hz
Channel Map: front-left,front-right,rear-left,rear-right,front-center,lfe
Owner Module: 1
Mute: yes
Volume: 0: 31% 1: 30% 2: 42% 3: 42% 4: 40% 5: 28%
0: -30.57 dB 1: -31.52 dB 2: -22.61 dB 3: -22.61 dB 4: -23.80 dB 5: -33.01 dB
balance -0.02
Base Volume: 63%
-12.00 dB
...


And I can change the base volume using values 0-65535:
Quote:$ pactl set-sink-volume 3 10000

If you try to detect number of channels and change the volume for each of it, it can give the problems that I describe here: http://bugs.kde.org/show_bug.cgi?id=254793 - if I set volume to 100% it breaks per-channel volume setup.

So, as I think, better is to change base volume and don't touch channel volumes.

pulseaudio as system service is better for me, because it can work without xorg, and I can control music via mpd before kde is loaded. And I can connect my notebook via wifi to 5.1 system without starting xorg session in main computer.

Report

9

Murz

10 years ago

And one more issue:
I use pulseaudio as system service, and veromix don't show all of playback streams, screenshot is here: http://imagebin.ca/view/kyw3og.html

It isn't shows mpd (running as service) and python streams, but show vlc.

Maybe it shows only new channels that created after plasmoid is added?

Report

9

Murz

10 years ago

No, if I restart mpd, it recreates the stream, but veromix didn't show it :(

If I use pactl list, I see all this streams, but veromix show only some of them.

Report

C

nik3nt3

10 years ago

You could try to start veromix from the console, to see if an error-message is shown:

First kill the process called
"VeromixServiceMain.py"

Then start the service in a terminal:
Quote:
~/.kde/share/apps/plasma/plasmoids/veromix-plasmoid/dbus-service/VeromixServiceMain.py

then in another terminal:
Quote:
cd ~/.kde/share/apps/plasma/plasmoids/veromix-plasmoid/

plasmoidviewer .

do you get some messages?

Report

9

Murz

10 years ago

Does your project have any public bugtracker? If not, maybe time to create it for better solving issues? For example in Google Code (http://code.google.com/p/gmail-plasmoid/) or sourceforge?

Report

9

Murz

10 years ago

If I start with already active mpd stream, I see this errors at startup time:
Quote:$ ~/.kde/share/apps/plasma/plasmoids/veromix-plasmoid/dbus-service/VeromixServiceMain.py
main loop
Pulseaudio connection ready...
Traceback (most recent call last):
File "/home/murz/.kde/share/apps/plasma/plasmoids/veromix-plasmoid/dbus-service/Pa2dBus.py", line 78, in on_sink_input_info
self.dbus.sink_input_info( index, name, muted , volume , sink.propDict() )
File "/home/murz/.kde/share/apps/plasma/plasmoids/veromix-plasmoid/dbus-service/pulseaudio/PulseSink.py", line 248, in propDict
del adict["application.process.session_id"]
KeyError: 'application.process.session_id'

Quote:$ plasmoidviewer .
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
plasmoidviewer(5776)/kdecore (services) KServiceFactory::findServiceByDesktopPath: "" not found
plasmoidviewer(5776)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
plasmoidviewer(5776)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
veromix icon installed
Outputting dbus-servie file
QGraphicsLinearLayout::removeAt: invalid index 0

Report

9

Murz

10 years ago

Version 0.8.3 - 26.10.2010 don't solve the problem for me, I created the issue about this: http://code.google.com/p/veromix-plasmoid/issues/detail?id=6

Report

9

Murz

10 years ago

I do this before mpd starts playing:
Quote:$ ~/.kde/share/apps/plasma/plasmoids/veromix-plasmoid/dbus-service/VeromixServiceMain.py
main loop
Pulseaudio connection ready...

Quote:$ cd ~/.kde/share/apps/plasma/plasmoids/veromix-plasmoid/
murz@kit:~/.kde/share/apps/plasma/plasmoids/veromix-plasmoid$ plasmoidviewer .
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
plasmoidviewer(5254)/kdecore (services) KServiceFactory::findServiceByDesktopPath: "" not found
plasmoidviewer(5254)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
plasmoidviewer(5254)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
veromix icon installed
Outputting dbus-servie file
QGraphicsLinearLayout::removeAt: invalid index 0
Couldn't find node center. Skipping rendering.
Couldn't find node center. Skipping rendering.


And after that I start mpd playback, and see in first terminal:
Quote:Traceback (most recent call last):
File "/home/murz/.kde/share/apps/plasma/plasmoids/veromix-plasmoid/dbus-service/Pa2dBus.py", line 78, in on_sink_input_info
self.dbus.sink_input_info( index, name, muted , volume , sink.propDict() )
File "/home/murz/.kde/share/apps/plasma/plasmoids/veromix-plasmoid/dbus-service/pulseaudio/PulseSink.py", line 248, in propDict
del adict["application.process.session_id"]
KeyError: 'application.process.session_id'


Hope it helps!

Report

9

Murz

10 years ago

Thank's for new version!
Middle click works perfectly! But mouse whell don't want to work :(

KDE 4.5.2, Kubuntu Maverick.

And another issie is that when I add plasmoid to panel, at first time it added full size (not iconized) but after clicking on channel image, it converts to icon.

Report

9

Murz

10 years ago

Very good plasmoid, thanks!
But can you implement feature to mute/unmute channels (select which channel must mute in settings or mute all channels) via middle-click mouse on plasmod (when it is iconized in panel)?

And will be good to change volume of favorite channel via mouse whell on plasmoid icon! Did you plan something like this?

Report

C

nik3nt3

10 years ago

Thanks for your input: It works! Will release a new version soon.

[Don't understand why it was not working the last time I tried it. Maybe a KDE 4.4 vs 4.5 difference or just my disability ]

Report

9

Murz

10 years ago

Some other plasmoids that use mouse whell:
http://kde-look.org/content/show.php/Xineramoid?content=102446
http://kde-look.org/content/show.php/Stream+Player?content=132590
http://kde-look.org/content/show.php?content=12097

Report

9

Murz

10 years ago

I think you can look at the http://kde-look.org/content/show.php/Nvidia+Brightness?content=114656 plasmoid sources to look how intercept mouse whell

Report

bigbrovar

10 years ago

While on a whole am mostly indifferent and had not even noticed the issue till u mentioned it. I think for UI consistency it would be nice if all the meter icon stays in one side and the icon same. having the meter for the default volume slider at a different position other than the applications breaks consistency somewhat. Just IMHO

Report

12345678910
14142
product-maker enriquezrene Feb 02 2016 9 excellent
product-maker toxn Jul 03 2014 9 excellent
product-maker audoban Jun 09 2014 9 excellent
product-maker nowardev Feb 19 2014 9 excellent
product-maker facsavar Jan 24 2014 9 excellent
product-maker virtualxtc Jan 03 2014 9 excellent
product-maker joplass Dec 01 2013 9 excellent
product-maker printesoi Feb 03 2013 9 excellent
product-maker voondo_double Jan 10 2013 9 excellent
product-maker chatmoa Oct 07 2012 9 excellent
product-maker maxblank Sep 17 2012 9 excellent
product-maker ObiWahn Jun 14 2012 9 excellent
product-maker RAIDENSUB Jun 12 2012 9 excellent
product-maker janhajer May 18 2012 9 excellent
product-maker EmmanuelPescosta May 16 2012 9 excellent
product-maker step-2 Apr 06 2012 9 excellent
product-maker lazx888 Apr 05 2012 9 excellent
product-maker deabru Apr 05 2012 9 excellent
product-maker remix Apr 03 2012 9 excellent
product-maker gramb Apr 01 2012 9 excellent
product-maker nowsy Mar 12 2012 9 excellent
product-maker firen Mar 06 2012 9 excellent
product-maker electron222 Feb 28 2012 9 excellent
product-maker jvherrera Feb 13 2012 9 excellent
product-maker laloch Feb 13 2012 9 excellent
product-maker s1300045 Feb 13 2012 9 excellent
product-maker maroony Feb 11 2012 9 excellent
product-maker ejrn Feb 05 2012 9 excellent
product-maker vikveli Feb 03 2012 9 excellent
product-maker google01103 Feb 01 2012 9 excellent
product-maker amigib Feb 01 2012 9 excellent
product-maker steampoweredlawngnome Jan 28 2012 9 excellent
product-maker marvn Jan 16 2012 9 excellent
product-maker schnelle Jan 14 2012 9 excellent
product-maker grayhawk Jan 11 2012 9 excellent
product-maker stathisq Jan 06 2012 9 excellent
product-maker soee Dec 27 2011 9 excellent
product-maker bendersteed Dec 13 2011 9 excellent
product-maker SycloneMedia Oct 28 2011 9 excellent
product-maker J0nas Oct 24 2011 9 excellent
product-maker heinquoi Oct 22 2011 9 excellent
product-maker naaamo2004 Oct 17 2011 9 excellent
product-maker levondavdyan Oct 11 2011 9 excellent
product-maker joetux Sep 23 2011 9 excellent
product-maker cyberconan Sep 21 2011 9 excellent
product-maker Hanau2010 Sep 18 2011 9 excellent
product-maker onurtuhta Sep 16 2011 9 excellent
product-maker NickLion Sep 15 2011 9 excellent
product-maker e1nste1n Sep 15 2011 9 excellent
product-maker tritemius Sep 02 2011 9 excellent
product-maker tcat Aug 28 2011 9 excellent
product-maker tamra Aug 28 2011 9 excellent
product-maker mindeunix Aug 12 2011 9 excellent
product-maker unknhawk Aug 06 2011 9 excellent
product-maker philopdx Aug 05 2011 9 excellent
product-maker arashrk Aug 04 2011 9 excellent
product-maker Krog Aug 04 2011 9 excellent
product-maker Fenik67 Aug 03 2011 9 excellent
product-maker pvt14 Jul 31 2011 9 excellent
product-maker emyller Jul 30 2011 9 excellent
product-maker eshalygyn Jul 28 2011 9 excellent
product-maker dgvirtual Jul 26 2011 9 excellent
product-maker unikum111 Jul 25 2011 9 excellent
product-maker tonywoolf Jul 24 2011 9 excellent
product-maker Ray-Ven Jul 11 2011 9 excellent
product-maker JanGerritJose Jul 11 2011 9 excellent
product-maker kaznovac Jun 29 2011 9 excellent
product-maker YAFU Jun 25 2011 9 excellent
product-maker D-- Jun 25 2011 9 excellent
product-maker Keksbubi Jun 23 2011 9 excellent
product-maker quippini Jun 21 2011 9 excellent
product-maker socialinux Jun 18 2011 9 excellent
product-maker EtienJ Jun 15 2011 9 excellent
product-maker dobri Jun 15 2011 9 excellent
product-maker strungoutfan78 Jun 14 2011 9 excellent
product-maker jayambe Jun 14 2011 9 excellent
product-maker tm3da May 26 2011 9 excellent
product-maker KjaB May 21 2011 9 excellent
product-maker rafalskonecki May 11 2011 9 excellent
product-maker jesterhead May 10 2011 9 excellent
product-maker fineday2love May 05 2011 9 excellent
product-maker Brutus180 Apr 29 2011 9 excellent
product-maker patrickbuchinger Apr 29 2011 9 excellent
product-maker nicotine Apr 27 2011 9 excellent
product-maker mfbnl Apr 23 2011 9 excellent
product-maker abry Apr 22 2011 9 excellent
product-maker hithirdwavedust Apr 22 2011 9 excellent
product-maker CatchTime Apr 16 2011 9 excellent
product-maker chazz557 Apr 15 2011 9 excellent
product-maker Infosoft Apr 04 2011 9 excellent
product-maker basaburu Apr 04 2011 9 excellent
product-maker vortex375 Apr 01 2011 9 excellent
product-maker alicsey Mar 30 2011 9 excellent
product-maker pascalaldo Mar 26 2011 9 excellent
product-maker phiga2 Mar 25 2011 9 excellent
product-maker visualfrank Mar 24 2011 9 excellent
product-maker quadra Mar 21 2011 9 excellent
product-maker WillS Mar 15 2011 9 excellent
product-maker Xwarman Mar 15 2011 9 excellent
product-maker 64BitRulz Mar 13 2011 9 excellent
product-maker arxus Mar 12 2011 9 excellent
product-maker bugmenot1234 Mar 11 2011 9 excellent
product-maker jumper47 Mar 08 2011 9 excellent
product-maker jeast Mar 05 2011 9 excellent
product-maker darkmas Mar 02 2011 9 excellent
product-maker pugacioff Mar 01 2011 9 excellent
product-maker kem Feb 26 2011 9 excellent
product-maker sycoso Feb 25 2011 9 excellent
product-maker Hamburger1984 Feb 09 2011 9 excellent
product-maker matejv Feb 06 2011 9 excellent
product-maker Tscheesy Feb 03 2011 9 excellent
product-maker evergreenpsyche Jan 31 2011 9 excellent
product-maker jmc88 Jan 29 2011 9 excellent
product-maker Ireyon Jan 28 2011 9 excellent
product-maker shatle Jan 28 2011 9 excellent
product-maker brdn25 Jan 25 2011 9 excellent
product-maker h31 Jan 19 2011 9 excellent
product-maker infectedsoundsystem Jan 11 2011 9 excellent
product-maker udatt Dec 29 2010 9 excellent
product-maker rudi Dec 24 2010 3 bad
product-maker cfraz89 Dec 20 2010 9 excellent
product-maker megabigbug Dec 20 2010 9 excellent
product-maker auratux Dec 08 2010 9 excellent
product-maker adibudeen Dec 05 2010 9 excellent
product-maker Tids Dec 03 2010 9 excellent
product-maker nikore90 Dec 03 2010 9 excellent
product-maker ronw Dec 02 2010 3 bad
product-maker xam Dec 02 2010 9 excellent
product-maker proDOOMman Nov 29 2010 9 excellent
product-maker ruman Nov 26 2010 9 excellent
product-maker oOSplashOo Nov 23 2010 9 excellent
product-maker franciscot Nov 23 2010 3 bad
product-maker RyanMcCoskrie Nov 20 2010 3 bad
product-maker maidis Nov 20 2010 3 bad
product-maker scsimodo Nov 20 2010 3 bad
product-maker ZardoZ84 Nov 20 2010 9 excellent
product-maker Saleel Nov 18 2010 9 excellent
product-maker TommyCZ Nov 16 2010 9 excellent
product-maker Camberwell Nov 12 2010 3 bad
product-maker molostoff Nov 10 2010 9 excellent
product-maker KDesk Nov 05 2010 9 excellent
product-maker roland82 Nov 03 2010 3 bad
product-maker cician Nov 01 2010 3 bad
product-maker gadeshi Oct 29 2010 3 bad
product-maker robyshot Oct 27 2010 9 excellent
product-maker LiShaohui Oct 26 2010 9 excellent
product-maker koko2k Oct 26 2010 9 excellent
product-maker ATAHUALPA Oct 26 2010 9 excellent
product-maker adee Oct 25 2010 3 bad
product-maker SeaJey Oct 23 2010 9 excellent
product-maker groo Oct 22 2010 3 bad
product-maker gravy Oct 21 2010 9 excellent
product-maker Murz Oct 20 2010 9 excellent
product-maker flanello Oct 16 2010 3 bad
product-maker praveesh Oct 14 2010 9 excellent
product-maker Syvolc Oct 02 2010 3 bad
Be the first to comment
markjburch
Jan 08 2020
darkchet
Aug 29 2019
Landis
Apr 17 2016
audoban
Jun 09 2014
Brutus180
Mar 08 2014
klejczklejczkl
Jul 08 2013
miawallace
Jun 24 2012
ObiWahn
Jun 14 2012
SilentOS
Jun 11 2012
bastafidli
May 15 2012
remix
Apr 03 2012
gramb
Apr 01 2012
saftsocken
Feb 20 2012
bendersteed
Feb 13 2012
amigib
Feb 13 2012
laloch
Feb 13 2012
s1300045
Feb 13 2012
Montblanc
Feb 05 2012
NahsiN
Feb 02 2012
fasiko
Jan 31 2012
aaannz
Jan 29 2012
stathisq
Jan 06 2012
soee
Dec 27 2011
ronw
Nov 25 2011
naaamo2004
Oct 17 2011
mockfrog
Aug 28 2011
quippini
Aug 10 2011
aspotashev
Jul 01 2011
albbas
Jul 01 2011
YAFU
Jun 25 2011
arxus
Mar 26 2011
deabru
Mar 26 2011
AlejandroNova
Mar 24 2011
m00nraker
Mar 22 2011
WillS
Mar 15 2011
bugmenot1234
Mar 12 2011
pugacioff
Mar 01 2011
Hamburger1984
Feb 09 2011
brdn25
Jan 25 2011
tomde
Dec 14 2010
cician
Dec 12 2010
auratux
Dec 08 2010
graygraff
Nov 13 2010
quadra
Nov 12 2010
molostoff
Nov 09 2010
ATAHUALPA
Oct 26 2010
gravy
Oct 21 2010
praveesh
Oct 14 2010
hteles
Oct 02 2010
netsurf3
Aug 31 2010
lordlukas
Aug 23 2010
vortex375
Aug 22 2010
groo
Aug 16 2010
maidis
May 18 2010
msledziona
Mar 30 2010
mrsaccess
Mar 25 2010
BLeAm
Mar 23 2010
Murz
Jan 30 2010
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.18.3
updated Jun 14 2012
added Dec 06 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 5