Loggytronic Forum

VOMP => VOMP for Raspberry Pi => Topic started by: clausmuus on September 25, 2012, 11:01:33

Title: Volume control not working
Post by: clausmuus on September 25, 2012, 11:01:33
Hi,

the volume control don't work. It is possible to change the volume setting by keyboard, but this has no effect for the volume. Also a change of the volume by the alsamixer has no effect.

Claus
Title: Re: Volume control not working
Post by: MartenR on September 25, 2012, 21:01:20
Audio volume control is not implemented, yet, as well as muting... It is part of the change, I will do when implementing ac3 passthrough.
Anyway for the passthrough mode no volume control is possible, I have also to read how to control the receiver through hdmi cec.

Marten

Btw. Do not except change to the git too soon, I am in the middle of implementing openvg, which might take a while..
Title: Re: Volume control not working
Post by: clausmuus on September 25, 2012, 21:22:18
Thank you for this information. So I will make no updates the next days.
Do you think, it will be possible in future to set the analog output volume? OK, this is normally not important, but in my kind, I will connect a normal TFT Screen and a separate Audio system. To change the volume I want to use my remote control that also control the vompclient.

Claus
Title: Re: Volume control not working
Post by: MartenR on September 28, 2012, 07:11:33
QuoteDo you think, it will be possible in future to set the analog output volume? OK, this is normally not important, but in my kind, I will connect a normal TFT Screen and a separate Audio system.
I have to investigate this. Especially where the volume control buttons from cec are received.
But it might be that I have to make configurable, since otherwise it is possible that the volume control is changed twice.

Marten
Title: Re: Volume control not working
Post by: clausmuus on September 28, 2012, 07:51:16
Hi,
if you implement this, it will make sense, to make also the default volume (at start up) configurable.

Claus
Title: Re: Volume control not working
Post by: clausmuus on October 16, 2012, 10:25:14
Hi Marten,

only a reminder. Since the volume control now working, I only miss the additional function to set the default startup volume level.

Claus
Title: Re: Volume control not working
Post by: MartenR on October 21, 2012, 16:47:00
QuoteSince the volume control now working, I only miss the additional function to set the default startup volume level.
Will not be implemented. In the end vomp will run in the end 24 h a day like on the mvp and only turn on and off the tv signal.
So there will be no need for saving this.

In current git is the option to pass all volume control down stream to the cec or av receiver. I recommend using this option, since it also works in ac3 passthrough mode, which is now supported.

Marten
Title: Re: Volume control not working
Post by: clausmuus on October 21, 2012, 18:09:51
Hi,

it's right, that a store of the volume is not needed, if the RPI runs 24/7h, but it's bad (if I use the volume control of the vompclinet), if I start up the RPI, and the volume has 100%. In this case, I would prefer to have a default volume of 30 or 50%. I think, that nobody, who use the volume control of the vompclinet, want to have 100% on startup. And since, we don't know, what is the prefer default value, it will be good, if I can configure it.

Claus
Title: Re: Volume control not working
Post by: glotzi on October 21, 2012, 19:57:06
Quote from: MartenR on October 21, 2012, 16:47:00
Will not be implemented. In the end vomp will run in the end 24 h a day like on the mvp and only turn on and off the tv signal.
So there will be no need for saving this.
Are you sure this is the usecase for everybody? I'm using rpi with vompclient in my bedroom and I dont want to have a blinking Raspi the whole time. TV and Raspi are switched off by Steckerleiste. Yes, the raspi has less power consuption, but I think it's energy wasting to run it 24/7.
Title: Re: Volume control not working
Post by: Uwe on October 21, 2012, 20:24:54
QuoteTV and Raspi are switched off by Steckerleiste.
;D
Title: Re: Volume control not working
Post by: clausmuus on October 21, 2012, 20:29:21
I must show this immediately my wife  ;D

Claus
Title: Re: Volume control not working
Post by: glotzi on October 21, 2012, 21:34:25
Quote from: Uwe on October 21, 2012, 20:24:54
QuoteTV and Raspi are switched off by Steckerleiste.
;D

Dat is net witzsich, was heißt "Steckerleiste" auf inglisch?  :P
Title: Re: Volume control not working
Post by: Uwe on October 22, 2012, 05:45:17
Quote from: glotzi on October 21, 2012, 21:34:25
Quote from: Uwe on October 21, 2012, 20:24:54
QuoteTV and Raspi are switched off by Steckerleiste.
;D

Dat is net witzsich, was heißt "Steckerleiste" auf inglisch?  :P

--> power strip?

But it is because i use the automatic translation, sometimes he does not know the words. ;)
Title: Re: Volume control not working
Post by: MartenR on October 22, 2012, 07:10:45
I can not recommend using the switch in a cord, it is very likely that you damage the file system on your sd card.
Anyway, in current git, you can switch "off" vomp using the power key.
It is the same way the mvp was switched "off", just turning off the video signal ...
And then you can it switch on using the power key (of your remote for the cec device or your usb remote or the esc key on a keyboard).
If you handle it that way vomp will always remember the last volume.

The old behaviour can be turned on in the Makefile.
Also if you use hdmi it is strongly recommended, that you use the option in advances to give the control to cec.
In this way volume control is passed to your tv or receiver and this device will remember.

If you want a different behaviour, you have to write a patch yourself, if the quality is acceptable, I will put it into git.

Marten
Title: Re: Volume control not working
Post by: clausmuus on October 22, 2012, 09:30:06
Hi Marten,

my Problem with this is, that I don't know were (and with witch function) to set the startup volume. Also I don't know, how to add this to the setup and to store it. I think it would be only a small think for you, but a big think for me.
But I have a new idea. I think, if I use the hdmi audio out, it's right to use a default volume of 100% (ok, in my case this is also bad, because if I switch the hdmi source, I must also change the volume on the TV from 50% to 10% to have the same level, but this is maybe only my problem), but if I use the analog out (as I plan for the bad room), and I connect speakers that have no volume control (as I also plan), than I have a problem, if I can not set up the default volume, and it is set to 100%.
I think it will be the best solution, if I can set up a different default startup volume for analog output and hdmi output. The hdmi default volume should be 100%, the analog default level should be 70%. I also use this setup for the xineliboutput front end on PCs after a long discussion about the best preset values for this both cases.
It will be grate, if you can help us with this, since it seems, that also other users has the same problem as I with a not change able default volume.

Claus
Title: Re: Volume control not working
Post by: clausmuus on October 22, 2012, 09:58:45
Quote from: MartenR on October 22, 2012, 07:10:45
I can not recommend using the switch in a cord, it is very likely that you damage the file system on your sd card.
Anyway, in current git, you can switch "off" vomp using the power key.
It is the same way the mvp was switched "off", just turning off the video signal ...
And then you can it switch on using the power key (of your remote for the cec device or your usb remote or the esc key on a keyboard).
I think, this behaviour is grate. But I need a small extension, if it's not already included.
I need to call a script, if the vompclient go into (and before leave) the power save mode. It's necessary, because e.g. I want to disable the connected dvb devices (or set them also in a power save mode), since some of them needs a lot of power. Or I will shutdown and wakeup the vdr server, it it's not a local vdr.
Is it possible, e.g. to add a command line option, to define such a function, that than will be called with the argument "suspend" or "resume" (or two different command line options)? This will also make it possible to call a shutdown script, if somebody prefer to shutdown the RPI.

Claus
Title: Re: Volume control not working
Post by: MartenR on October 22, 2012, 13:25:09
There is no clean way in the architecture of vomp to implement this quickly.
Of course you can patch in command.cc the function turning on and of the signal and execute a command line script.
Search for signaloff and signalon in command.cc and you can modify it for your needs.

QuoteOr I will shutdown and wakeup the vdr server, it it's not a local vdr.
The shutdown of the vdr server should go through a time out. There should be some wol code inside vomp, I do not know if it currently activated though.


Marten
Title: Re: Volume control not working
Post by: hondansx on October 22, 2012, 19:17:57
Quote from: clausmuus on October 21, 2012, 18:09:51
Hi,

it's right, that a store of the volume is not needed, if the RPI runs 24/7h, but it's bad (if I use the volume control of the vompclinet), if I start up the RPI, and the volume has 100%. In this case, I would prefer to have a default volume of 30 or 50%. I think, that nobody, who use the volume control of the vompclinet, want to have 100% on startup. And since, we don't know, what is the prefer default value, it will be good, if I can configure it.

Claus

Because of this, I have implemented this in my bedroom on my Hauppauge. If wanted, I can post a patch.

Walter
Title: Re: Volume control not working
Post by: clausmuus on October 22, 2012, 20:30:30
Yes, please post the Patch.

Claus
Title: Re: Volume control not working
Post by: hondansx on October 22, 2012, 20:43:38
Quote from: clausmuus on October 22, 2012, 20:30:30
Yes, please post the Patch.

Claus

You can set the Volume from 0-20 in your vomp-00-xx-xx-xx-xx-xx.conf

[TV]
Volume = 8

96_volume  under patches http://www.russle.net/vomp (http://www.russle.net/vomp)
Title: Re: Volume control not working
Post by: MartenR on October 23, 2012, 12:51:03
Will probably not work, the volume set is only recognized on raspberry, while playing sth back.

Marten
Title: Re: Volume control not working
Post by: hondansx on October 24, 2012, 17:23:50
@Marten
I do not own any raspberry yet, but it is maybe  time to get one. Which remote do you use or can you recommend one?
Title: Re: Volume control not working
Post by: clausmuus on October 24, 2012, 21:16:05
Quote from: MartenR on October 22, 2012, 07:10:45
Anyway, in current git, you can switch "off" vomp using the power key.
It is the same way the mvp was switched "off", just turning off the video signal ...
And then you can it switch on using the power key (of your remote for the cec device or your usb remote or the esc key on a keyboard).
How can I check, if the power off signal will be send to the vompclient? If I press the power button, the TV will switch off. So I can not see, If the vompclient will also switch off the video out.

Claus
Title: Re: Volume control not working
Post by: MartenR on October 25, 2012, 07:21:22
You could place a log message into doStandby() in command.cc.
Btw on my tv I have to use the special power button for the connected device not the tv power button.

Marten
Title: Re: Volume control not working
Post by: clausmuus on October 25, 2012, 18:47:37
Hi,

now I have create a patch, to set up the default startup volume. You can found it here: http://www.minidvblinux.de/svn-3/vompclient/trunk/src/15_vompclient_volume.patch

Claus