Project

General

Profile

Feature #2596

3.4: On-demand configuration of power-management

Added by M H almost 10 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-01-05
Due date:
% Done:

0%

Estimated time:

Description

Since many users have problems with continuity counter errors that seems to be caused by power-management it should be possible to be able to reconfigure the power-management settings before a subscription (stream, recording) starts and after the last active subscription ends.

For discussion see:
See also: https://tvheadend.org/boards/5/topics/12920?r=14575#message-14575


Files

patch_3.4.diff (7.91 KB) patch_3.4.diff Patch based on tvheadend 3.4 M H, 2015-01-05 23:06
webui.png (114 KB) webui.png Screenshot from webui in tvheadend 3.4 M H, 2015-01-05 23:07
pre.sh (137 Bytes) pre.sh Shell-Script in order to set power-management to max performance before subscription starts M H, 2015-01-05 23:08
post.sh (132 Bytes) post.sh Shell-Script in order to set power-management back to preferred mode after last subscription ends M H, 2015-01-05 23:08

Related issues

Copied to Bug #3967: GIT HEAD: Failed to compile due to failing to compile ffmpegNew2015-01-05

Actions

History

#1

Updated by Jaroslav Kysela almost 10 years ago

  • Subject changed from On-demand configuration of power-management to 3.4: On-demand configuration of power-management
#3

Updated by W Trainer almost 9 years ago

I too am having continuity counter errors that seem to be caused by power-management.

This issue causes pixelation in the live stream and the recorded stream. After an episode of pixelation, the sound sometimes drops out and does not return for the rest of the recording!!

It seems to happen when the server load gets too high. After reading this issue posted by MH i ran the following command on all 4 of my CPUs:

sudo cpufreq-set -c 0 -g performance

Now i don't get any errors (although it is still early days). But like MH, i don't want my CPU running at full-whack, unless there is an active tvheadend stream.

Is there any chance of this great feature being added to a future version, or a similar patch for version 4.0.8-3 ?

Thanks very much!!!


Server setup:- Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-28-generic x86_64), Tvheadend 4.0.8-3~gc870eb9~precise, Tuner card - TBS6284 DVB-T2/T (latest drivers)

#4

Updated by B C almost 9 years ago

disable C6/C7 power states in your BIOS and everything should be fine

#5

Updated by W Trainer almost 9 years ago

B C wrote:

disable C6/C7 power states in your BIOS and everything should be fine

Thanks for your reply. Disabling C6/C7 in the bios seems to leave my CPU running at 3.6Ghz

Having this #2596 feature would be of real benefit, as you can toggle the CPU profile between "performance" and "ondemand" when a stream starts or stops, respectively.


CPU:- AMD A8-5600K APU with Radeon(tm) HD Graphics

#6

Updated by B C almost 9 years ago

oh I have no idea about AMD CPUs, but I don't think it should completely disable power management as these are just enhaced states (and on Intel it did only draw a little bit more power).
Regarding the patch, it is imho a driver problem and not tvh's fault.

#7

Updated by B C almost 9 years ago

BTW, there is nothing like C6/C7 for AMD A8-5600k

#8

Updated by W Trainer almost 9 years ago

BTW, there is nothing like C6/C7 for AMD A8-5600k

Not looked into this, but there was definitely a C6 option in my bios, and disabling it made my CPU run at full whack.

However, this has not fixed the CC errors.

There have been more driver releases on the TBS site since i last posted, so am going to try them out next.

#9

Updated by B C almost 9 years ago

also try https://github.com/ljalves/linux_media/wiki

they sometimes do work better.

#10

Updated by Alfred Zastrow almost 9 years ago

I also would like to get this feature. Newer low power intel cpu's like this one:

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 76
model name : Intel(R) Pentium(R) CPU N3700 @ 1.60GHz
stepping : 3
microcode : 0x33c
cpu MHz : 2472.903
cache size : 1024 KB
physical id : 0
siblings : 4
[...]

are only able to switch between "performance" or "powersafe". On-demand is not avaible anymore.
My server is running 24/h an I could save some power with "powersave" during idle times.

br
Alfred

#11

Updated by B C almost 9 years ago

Alfred, I'm running my Digital-Devices cards in powersafe mode w/o any problems, my complete system draws <11W with 4 tuners and kodi running when idle. What troubles do you experience?

#12

Updated by Anonymous about 8 years ago

  • Copied to Bug #3967: GIT HEAD: Failed to compile due to failing to compile ffmpeg added

Also available in: Atom PDF