You are not logged in.
My screen goes blank after 15 minutes of inactivity even when I'm playing a video file in VLC. Here's my "xset q":
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000002
XKB indicators:
00: Caps Lock: off 01: Num Lock: on 02: Scroll Lock: off
03: Compose: off 04: Kana: off 05: Sleep: off
06: Suspend: off 07: Mute: off 08: Misc: off
09: Mail: off 10: Charging: off 11: Shift Lock: off
12: Group 2: off 13: Mouse Keys: off
auto repeat delay: 250 repeat rate: 25
auto repeating keys: 00ffffffdffffbbf
fadfffefffedffff
9fffffffffffffff
fff7ffffffffffff
bell percent: 0 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 2/1 threshold: 4
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 0 cycle: 0
Colors:
default colormap: 0x22 BlackPixel: 0x0 WhitePixel: 0xffffff
Font Path:
/usr/share/fonts/X11/misc,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,built-ins
DPMS (Energy Star):
Standby: 0 Suspend: 0 Off: 900
DPMS is Enabled
Monitor is On
I have already set "Blank after" and "Put to sleep after" to "Never" in the XFCE Power Manager and "Switch off after" to 15 minutes.
Somewhere I saw a solution which mentioned to add "Hidden=true" in the light-locker.desktop which solved the problem but it prevented the locking after 15 minutes of inactivity which is undesirable for me.
So, how can I prevent the screen from being shut off after 15 minutes of inactivity when playing a media file in VLC while still locking and shutting off in case of "normal" inactivity?
Last edited by DrCooper (2016-05-21 19:16:04)
Offline
Have you tried Presentation Mode in the power manager?
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Have you tried Presentation Mode in the power manager?
I don't see that option in the XFCE Power Manager.
Offline
^ R Click the powermanager icon in the systray.
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
This is a desktop so there is no icon in the systray.
Offline
See if this fix is relevant for your situation: http://crunchbang.org/forums/viewtopic. … 81#p439381
(Searching indicates it is a long-standing vlc bugginess. Anyway, I use mpv instead )
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Try this:
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/dpms-enabled -s false
This disables dpms.
Then start vlc
When finished, enable dpms again.
I have not tested this.
If it works,you can create a wrapper script for vlc, with the vlc command in between disable and enable, if you understand what I mean.
Let us know if it works
Offline
Try installing xscreensaver
Explanation buried away in here:
https://bugs.launchpad.net/ubuntu/+sour … ug/1309744
I think BunsenLabs has xdg-utils installed already, make sure your system has that package.
Offline
I think the dpms is the key here. Needs to be disabled. But I'm sort of surprised that VLC offers no option to keep the screen alive while playing
"I have not failed, I have found 10,000 ways that will not work" -Edison
Offline
Try this:
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/dpms-enabled -s false
This disables dpms.
It works!
If it works,you can create a wrapper script for vlc, with the vlc command in between disable and enable, if you understand what I mean.
I will surely need help on how to do that.
I think BunsenLabs has xdg-utils installed already, make sure your system has that package.
Yes, xdg-utils is installed.
Offline
Example here, found after a google search
#!/bin/bash
#Disable modes
/usr/bin/xset -dpms &
/usr/bin/xset s off &
#Open VLC
/usr/bin/vlc "$@"
#Re-enable modes
/usr/bin/xset dpms
/usr/bin/xset s on
exit
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Example here, found after a google serach
#!/bin/bash #Disable modes /usr/bin/xset -dpms & /usr/bin/xset s off & #Open VLC /usr/bin/vlc "$@" #Re-enable modes /usr/bin/xset dpms /usr/bin/xset s on exit
Umm... Where do I add this?
Offline
damo wrote:Example here, found after a google serach
#!/bin/bash #Disable modes xset -dpms & xset s off & #Open VLC vlc "$@" #Re-enable modes xset dpms xset s on exit
Umm... Where do I add this?
(I've removed the '/usr/bin/' from the paths, which should be redundant)
Use it the same way as any bash script. Save it in your $PATH, eg '~/bin/myvlc', and make it executable;
The "$@" represents the parameters passed to the script, so run it with:
myvlc /path/to/mediafile
You will have to investigate how to start media filetypes with the script instead of the default executable.
Or use mpv instead, as I implied earlier
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
You will have to investigate how to start media filetypes with the script instead of the default executable.
This was pretty simple. Edit the Debian Alternative for bl-media-player to use "~/bin/myvlc.sh" instead of the default "vlc". Now opening any media file with the bl-media-player will trigger that script turning off DPMS while VLC is running.
(Maybe implement this in the next release so that new users don't have to worry about this?)
Last edited by DrCooper (2016-05-21 18:04:30)
Offline
...
(Maybe implement this in the next release so that new users don't have to worry about this?)
What about all those users who don't have a problem, and don't want Display Power Management Signalling disabled?
Glad you got it fixed though - please add [SOLVED] to the title (edit your first post)
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
This was pretty simple. Edit the Debian Alternative for bl-media-player to use "~/bin/myvlc.sh" instead of the default "vlc".
This is the way to go for anyone who wants to change their default app if it's a bl-alternative. All the mime-type associations should continue to work as-is.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
I think the dpms is the key here. Needs to be disabled. But I'm sort of surprised that VLC offers no option to keep the screen alive while playing
Actually, VLC does offers these options:
Tools -> Preferences -> All -> Advanced -> Inhibit the power management daemon during playback
Tools -> Preferences -> All -> Video -> Disable screensaver
It just doesn't seem to work with the BL Setup (xfce4-power-manager and light-locker)
What about all those users who don't have a problem, and don't want Display Power Management Signalling disabled?
Given that BL ships with VLC as the default media player and it doesn't handles power management out of the box, I don't see why not?
Offline
....
damo wrote:What about all those users who don't have a problem, and don't want Display Power Management Signalling disabled?
Given that BL ships with VLC as the default media player and it doesn't handles power management out of the box, I don't see why not?
Is it established that others have the same problem, or just with your system? AFAIK you are the only person who has raised this issue. If it turns out to be a common problem then it is something to consider.
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
(I've removed the '/usr/bin/' from the paths, which should be redundant)
Use it the same way as any bash script. Save it in your $PATH, eg '~/bin/myvlc', and make it executable;
The "$@" represents the parameters passed to the script, so run it with:myvlc /path/to/mediafile
You will have to investigate how to start media filetypes with the script instead of the default executable.
actually, if you leave the absolute paths, you can save it as ~/bin/vlc, and it will Just Work without any further adjustments.
Offline
^ Provided ~/bin comes before /usr/bin in your PATH!!!!
Offline