energy saving mode still working when playing movie on VLC player

Hi guys,

When I play movie on VLC player, the energy saving mode still working. It’s really annoying me when I’m watching movie, cus’ the energy saving mode dim display every x minutes.
I checked both option “Inhibit power management…” and “Disable screen saver” but still not working.

But when I play movie on Kaffein, everything is ok, the energy mode saving mode is dead.

So how can I fix this?

Thanks for your helps!

Which openSUSE, which desktop?

omg, sorry, i forgot.

I’m using OpenSUSE 12.2, KDE 4.9

Workaround

before running vlc. You can reset the usual screen blanking behavior with
xset s on

refer:- https://bbs.archlinux.org/viewtopic.php?pid=853687#p853687

There should be a plasmoid gadget or widget to this i guess.I have an inhibit button(extension) on panel in GNOME 3.4.2

Turn off the screensaver and check these settings
https://dl.dropbox.com/u/10573557/12.2_Misc/power-settings-kde4.9.png

On 01/15/2013 02:26 AM, n00bvn wrote:
> OpenSUSE 12.2, KDE 4.9

go into Personal Settings - Configure Desktop » Hardware » Power
Management » Global Settings and look to see which Profile Assignment is
active when you play a movie (AC power plugged in or not) and then go to
Power Profiles and select that profile (Performance or Power Save) and
adjust the “Dim Display” and “Screen Energy Savings” and “Suspend
Session” settings to a value you like (mine are set for over 100 minutes
each)

all of that is to say: apparently your VLC’s controls do not
work…maybe you should check if there is a bug logged on it…


dd http://tinyurl.com/DD-Caveat

I do not want it dim display for many times like that. Cus’ I still want the computer run power saving.

Maybe I should play movie in Kaffein or SMPlayer, instead of VLC. I think it might be a bug of VLC player.

Thanks you guys anyway!

I always use smplayer

No need to switch off screensaver and/or power management energy saver, just head to *~/.config/vlc/vlcrc *and remove the # in the file for VLC to disable screensaver while playing video:



# Inhibit the power management daemon during playback (boolean) inhibit=0 ... 
# Disable screensaver (boolean) 
disable-screensaver=0

Very strange that it is not enabled by default; who need the screensaver while watching videos!
Plus I think the global policy of KDE 4.10 is still not followed by some apps, which also needs to be resolved.

If the above doesn’t work see the following link, very easy:

https://forums.opensuse.org/english/get-technical-help-here/applications/478144-screen-goes-blank-kde-4-9-1-opensuse-12-2-a.html

I usually use SMPlayer for videos but for Blu-Rays and DVDs, I use VLC for those. Earlier, meaning within the time frame of OS 12.2, I have had the impression that every time I have upgraded VLC (Packman upgrades) I had to remove the VLC folders in .config and .local/share to get rid of the screen-saver issue, and that would solve it. I’m not sure how accurate that assumption is as I haven’t paid too much attention to how it has behaved; however, I ran an upgrade yesterday and deleted the folders to watch a film (DVD), the film played through fine without any screen-saver issues, but this evening the screen-saver ticked in again:question:

  Strange behaviour but, and whether my assumption was right or not, by removing the old VLC profile I can watch a film in VLC without being annoyed by the screen-saver; however this, now at least, seems to be limited, perhaps to the present running session only? Altering the option within VLC itself does not seem to do anything e.g. by enabling the screen-saver and turning it off again makes no difference in my experience. The screen-saver is by the way disabled by default, though obviously not in the actual sense.

SMPlayer/Mplayer does not have this issue on my system (my systems specifics are listed in the signature field).

Just a remark on the topic.

Cheers

VLC uses xdg-screensaver for disabling the screensaver, which seems to be buggy.
This should be fixed in VLC 2.1.0 because it disables the screensaver directly then.
But I don’t know when this will be released.

See also: #4739 (Screensaver activated while watching a movie under GNOME 3) – VLC](http://trac.videolan.org/vlc/ticket/4739)

OK
Do you know if this differs from the method used by MPlayer? I Had a brief look at the thread you linked to also but it was a bit unclear to me if the xdg problem applied to KDE as well?

AFAIK MPlayer inserts fake keypresses into the input stream regularly and thus should work with every DE. (But that can cause other issues)

I Had a brief look at the thread you linked to also but it was a bit unclear to me if the xdg problem applied to KDE as well?

Yes, the problem affects KDE as well. On certain versions it worked though… (by chance?)

OK, thank you:)

Until vlc 2.1 is released, you can fake user activity with this script. You can run it through the kde power management module.

#!/bin/bash

#fake user activity to prevent screen from shutting off when vlc is playing
VLC_STATUS=`qdbus org.mpris.MediaPlayer2.vlc /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlaybackStatus`
if  "$VLC_STATUS" == "Playing" ]]; then
  qdbus org.kde.screensaver /ScreenSaver SimulateUserActivity
  exit
fi

Thank you, I might try that:)