Linux系统一段时间自动黑屏,ubuntu 系统在播放视频时,一段时间后黑屏

本文提供了多种方法来禁用Linux系统的显示器节能设置,包括编辑xorg配置文件、使用gconftool工具和运行特定的命令等。这些方法可以帮助用户解决显示器意外进入睡眠状态的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Solution 1:

Edit /etc/X11/xorg.conf file using the following command

sudo vi /etc/X11/xorg.conf

Section "Monitor"

Identifier    "Generic Monitor"

Option        "DPMS"

EndSection

and add the following lines

Section “ServerFlags”

#other options can go here

Option “BlankTime” “0″

Option “StandbyTime” “0″

Option “SuspendTime” “0″

Option “OffTime” “0″

EndSection

Save and exit the file

Solution 2

Edit /etc/X11/xorg.conf file using the following command

sudo vi /etc/X11/xorg.conf

This effectively disables power management on your monitor Settings

Section “Monitor”

#other options can go here

Option “DPMS” “false”

EndSection

Save and exit the file and restart your machine

Solution 3

gconftool-2 --set  /apps/gnome-screensaver/idle_activation_enabled --type=bool  false

gconftool-2 --set /apps/gnome-power-manager/ac_sleep_display --type=int 0

Solution 4

gnome-screensaver-command –inhibit

Solution 5

gnome-screensaver-comand –poke

Solution 6

xset s off

xset -dpms

Solution 7

xset dpms 0 0 60

#60 is the seconds

References:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值