You are not logged in.
Pages: 1
Topic closed
I want disable screen blanking if I am watching something in fullscreen(eg YouTube).
If I watching movies in offline player (VLC) there is no problem, screen not blanking. It happens when I watching online players like YT.
How can i fix them?
Offline
xset -dpmsOffline
Perhaps I wrote something wrong.
I do not want disable completely blanking screen, but only when I watching something on fulscreen.
Anyway I did it by option offtime in xorg.conf.
Offline
You should create a daemon that detects certain fullscreen windows and then issues commands to inhibit the screensaver, disable dpms, prevent standby,
Edit: Start here: https://github.com/unhammer/lightsOn
Last edited by progandy (2012-09-03 08:51:00)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
There's an app called caffeine, you might find that useful.
Link here: https://launchpad.net/caffeine
I think the package in in the AUR
Offline
Thanks progandy this script looks fine.
I added this script to my autostart in openbox, this is enough to work?
Last edited by xorgx3 (2012-09-03 10:21:11)
Offline
Nice Script! :-)
Life is pleasant. Death is peaceful. It's the transition that's troublesome. Isaac Asimov - / -
Offline
You can launch your browser by script:
#!/bin/bash
firefox &
while true
do
xdotool key shift; sleep 60
doneXdotool will be pressing shift key once a minute. Сertainly package xdotool (from community) must be installed in your sistem.
Last edited by solamir (2012-09-03 11:42:37)
Offline
You can launch your browser by script:
#!/bin/bash
firefox &
while true
do
xdotool key shift; sleep 60
doneXdotool will be pressing shift key once a minute. Сertainly package xdotool (from community) must be installed in your sistem.
solamir, if you want to paste a snippet of code, please use [ code ] tags
like thisIt makes the code more readable and - in case of longer listings - more convenient to scroll through.
Offline
Thank you, karol.
It's fixed.
Offline
Hmm, it's my again.
I like this script: https://github.com/unhammer/lightsOn
But I added it to autostart and it not working correctly. I'm using openbox.
This is my autostart :
tint2 &
sh ~/.fehbg &
conky -c ~/.conkyrc &
sleep 8 && conky -c ~/.conkyrc2 &
exec setxkbmap pl &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
#volumeicon &
sh ~/.scripts/lightsOn.sh 250 &How to do this script check fullscreen every 4 minutes?
I hope you understand what my problem is.
Offline
I have such solution: listen to sound output and if it is running - emulate a key event.
script:
#!/bin/bash
while true; do
sleep 30
RUNNING=$(pacmd list-sink-inputs | grep -w state | grep RUNNING)
if [ -n "${RUNNING}" ]; then
xdotool key shift
fi
doneand run it in .xinitrc like this:
sh /path-to-script/script-name.sh &putting this line before starting DE
yes, it's quite an old topic, but I hope my solution will be helpful for somebody
Offline
if your browser doesn't daemonize, you can just have xset before and after your browser in your launcher script, i.e.
xset -dpms
firefox
xset +dpmsLast edited by HiImTye (2018-10-20 09:48:17)
Offline
Thanks for sharing. I'm going to go ahead and close this old topic now.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1
Topic closed