search

Home  >  Q&A  >  body text

ubuntu下有什么软件可以在看视频的时候不进入屏保和省电模式?

ubuntu下有什么软件可以在看视频的时候不进入屏保和省电模式?

我使用caffeine却没有实际效果。

暂时使用以下的脚本(缺点是:在某些临界时刻,屏幕还是会黑一小会儿):

#!/bin/sh

while true;
do
    if test -n "`ps -e | grep plugin-containe`";then
        gnome-screensaver-command --deactivate >/dev/null && xset -dpms
    else
        xset dpms
    fi
    sleep 30
done

不知大伙有没有更好的办法。

大家讲道理大家讲道理2880 days ago514

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-21 10:57:29

    Currently, neither totem nor smplayer players have settings to prevent screensavers. I also encountered this problem, and I haven't had time to find out if there are related tools to set it up. My temporary solution is: 1. First set up the power management to ensure that automatic screen power saving, screen lock and other settings are not enabled. If it is indeed disabled, the screensaver still appears. Then proceed to step two. 2. Start xscreensaver-demo. There is an item in the third item of the File menu called: Kill Daemon. Click it directly to turn off the screensaver service. Go watch a movie. If you want to restart, select: Restart Daemon in the menu.

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-21 10:57:29

    I have a plan: during the focus event of the window, if the window is in full-screen state, disable the screensaver or something else, otherwise remove the previous disablement (if any). Awesome window manager can do it.

    reply
    0
  • Cancelreply