Bug 353538 - screen switches off when playing video in VLC or even when screen blanking is switched off
Summary: screen switches off when playing video in VLC or even when screen blanking is...
Status: RESOLVED WORKSFORME
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 5.4.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Development Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-04 20:24 UTC by Martin Steigerwald
Modified: 2016-04-30 10:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Steigerwald 2015-10-04 20:24:40 UTC
I had this in KDE SC 4 times already.

During playback of a movie with VLC the screen switches off after a while. This even happens when I disable screen blanking and screen switching off in *all* of the powerdevil energy profiles.

Reproducible: Always

Steps to Reproduce:
1. Play a movie with VLC.

Or

1. Disable screen blanking and switching off in all profiles.

Actual Results:  
Screen still blanks.

Even tough while playing a movie with VLC powerdevil plasma applet actually reported that VLC inhibits power saving.

Expected Results:  
Screen does not blank.

In KDE SC 4.14 times this helped:

martin@merkaba:~/bin#130> cat noblank.sh 
#!/bin/sh
while true; do qdbus org.kde.screensaver /ScreenSaver SimulateUserActivity ; sleep 60 ; done


But with Plasma 5 this script has no effect. The method is still available though.

Additionally I tried xset -dpms but it had no effect either.

I use activities, but none of it has special energy saving settings. So I expect the global settings to apply.



This happens on ThinkPad T520 with two screens:

martin@merkaba:~> phoronix-test-suite system-info

Phoronix Test Suite v5.2.1
System Information

Hardware:
Processor: Intel Core i5-2520M @ 3.20GHz (4 Cores), Motherboard: LENOVO 42433WG, Chipset: Intel 2nd Generation Core Family DRAM, Memory: 16384MB, Disk: 300GB INTEL SSDSA2CW30 + 480GB Crucial_CT480M50, Graphics: Intel HD 3000 (1300MHz), Audio: Conexant CX20590, Monitor: P24T-7 LED, Network: Intel 82579LM Gigabit Connection + Intel Centrino Advanced-N 6205

Software:
OS: Debian unstable, Kernel: 4.3.0-rc3-tp520-btrfstrim+ (x86_64), Desktop: KDE Frameworks 5, Display Server: X Server 1.17.2, Display Driver: intel 2.99.917, OpenGL: 3.3 Mesa 11.0.2, Compiler: GCC 5.2.1 20150911, File-System: btrfs, Screen Resolution: 3840x1080
Comment 1 Kai Uwe Broulik 2015-11-23 16:07:10 UTC
Could it be that some driver or low level service is turning off the screen? 

Can you run qdbus --system --literal org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.ListInhibitors and see whether "PowerDevil" is listed there?
Comment 2 Martin Steigerwald 2016-04-29 17:10:38 UTC
This works now when I disable both powermanagement and screen locker.

Of course it would be nice if it detects VLC playing a video, but thats probably something to report with VLC developers to tell Plasma to suspend screen blanking (suspending locking… might be a security issue, if any app can easily do that).
Comment 3 Kai Uwe Broulik 2016-04-29 17:29:58 UTC
Thanks for reporting back. However if battery monitor reports that vlc blocks power management it shouldn't dim the screen and here this also works fine, especially since disabling pm globally works.
Comment 4 Martin Steigerwald 2016-04-30 10:20:41 UTC
Thanks, Kai. Well, I have no idea about it then. I bet I wait till I get a more consistent versioning state. I do use Debian Sid/Experimental packages + self compiled KF5 from some weeks ago (in order to use self-compiled KDEPIM). I think I wait till Qt 5.6.1 arrives in Debian with more up-to-date KF5 + Plasma 5 packages and a new recompile of the self-compiled stuff (or even just using packages). And see from there. I do not have this movie watching scenario every day, so… it can take some time for me to gather more data. What I would be interested in would be how I can find out more about why it wouldn´t work? Any logs or debug tools I can run in such a case?
Comment 5 Kai Uwe Broulik 2016-04-30 10:31:38 UTC
If you run kded5 from console PowerDevil should print debug output like "vlc requested inhibition" and then "enforcing inhibition" but if battery lists the inhibition I'm rather clueless as to why it still turns off the screen.