Linux monitor turns off

Linux Mint Forums

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

Monitor turns off

Post by linmin2021 » Tue Dec 07, 2021 2:04 am

Linux Mint 19 is installed on the computers. Every day after turning on, after 10 minutes, 1 to 5 monitors turn off if nothing is moved on them. The principle of shutdown is unclear to me, that is, any monitors can be turned off. I only noticed, perhaps, those on which no one worked for 1 day are disconnected. If, after turning on the computers, you walk and do something on each, for example, move the mouse, then none of them turns off. I do this so that they do not turn off. Screensavers, food looked — did not find anything. What could be the reason?

A simple click on the keyboard and the mouse does not turn on the monitor — you need to press: first Ctrl + Alt + F12, then Ctrl + Alt + F7

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Re: Monitor turns off

Post by sealgair » Tue Dec 07, 2021 4:13 am

Hi, sounds like power management settings are set to turn off screen after 10 minutes. Open your home menu and type Power Management (or whatever language pack you are using) and check/adjust accordingly.

Re: Monitor turns off

Post by linmin2021 » Tue Dec 07, 2021 4:41 am

sealgair wrote: ⤴ Tue Dec 07, 2021 4:13 am Hi, sounds like power management settings are set to turn off screen after 10 minutes. Open your home menu and type Power Management (or whatever language pack you are using) and check/adjust accordingly.

I wrote it » Screensavers, food looked — did not find anything. » It’s not working. But anyway I watched it again. It’s much more difficult here

  • Important Notices
  • ↳ Rules & Notices
  • ↳ Releases & Announcements
  • ↳ Main Edition Support
  • ↳ Beginner Questions
  • ↳ Installation & Boot
  • ↳ Software & Applications
  • ↳ Hardware Support
  • ↳ Graphics Cards & Monitors
  • ↳ Printers & Scanners
  • ↳ Storage
  • ↳ Sound
  • ↳ Networking
  • ↳ Virtual Machines
  • ↳ Desktop & Window Managers
  • ↳ Cinnamon
  • ↳ MATE
  • ↳ Xfce
  • ↳ Other topics
  • ↳ Non-technical Questions
  • ↳ Tutorials
  • Debian Edition Support
  • ↳ LMDE Forums
  • ↳ Beginner Questions
  • ↳ Installation & Boot
  • ↳ Software & Applications
  • ↳ Hardware Support
  • ↳ Networking
  • ↳ Tutorials
  • ↳ Other Topics & Open Discussion
  • ↳ LMDE Archive
  • Interests
  • ↳ Gaming
  • ↳ Scripts & Bash
  • ↳ Programming & Development
  • Customization
  • ↳ Themes, Icons & Wallpaper
  • ↳ Compiz, Conky, Docks & Widgets
  • ↳ Screenshots
  • ↳ Your Artwork
  • Chat
  • ↳ Introduce Yourself
  • ↳ Chat about Linux Mint
  • ↳ Chat about Linux
  • ↳ Open Chat
  • ↳ Suggestions & Feedback
  • International
  • ↳ Translations
  • ↳ Deutsch — German
  • ↳ Español — Spanish
  • ↳ Français — French
  • ↳ Italiano — Italian
  • ↳ Nederlands — Dutch
  • ↳ Português — Portuguese
  • ↳ Русский — Russian
  • ↳ Suomi — Finnish
  • ↳ Other Languages
  • ↳ Čeština-Slovenčina — Czech-Slovak
  • ↳ Magyar — Hungarian
  • ↳ 日本語 — Japanese
  • ↳ Polski — Polish
  • ↳ Svenska — Swedish
  • ↳ Українська — Ukrainian
Читайте также:  Make linux disk image

Powered by phpBB® Forum Software © phpBB Limited

Источник

Display Power Management Signaling

DPMS (Display Power Management Signaling) enables power saving behaviour of monitors when the computer is not in use. The time of inactivity before the monitor enters into a given saving power level, standby, suspend or off, can be set as described in DPMSSetTimeouts(3) . Note that DPMS was developed for CRT monitors, and on LCD displays, there is normally no difference between the standby, suspend and off modes.

Setting up DPMS in X

Note: As of Xorg 1.8 DPMS is auto detected and enabled if ACPI is also enabled at kernel runtime.

Add the following to a file in /etc/X11/xorg.conf.d/ in the Monitor section:

Add the following to the ServerFlags section, change the times (in minutes) as necessary:

Option "StandbyTime" "10" Option "SuspendTime" "20" Option "OffTime" "30"

Note: If the «OffTime» option does not work, use screen blanking instead, which will keep the monitor turned on with a black image. Alternatively, change «blanktime» to «0» to disable screen blanking

To disable DPMS, change /etc/X11/xorg.conf.d/10-monitor.conf as below:

Section "Monitor" Identifier "LVDS0" Option "DPMS" "false" EndSection Section "ServerFlags" Option "StandbyTime" "0" Option "SuspendTime" "0" Option "OffTime" "0" Option "BlankTime" "0" EndSection Section "ServerLayout" Identifier "ServerLayout0" EndSection

Modify DPMS and screensaver settings with a command

It is possible to turn off your monitor with the xset command which is provided by the xorg-xset package.

Command Description
xset s off Disable screen saver blanking
xset s 3600 3600 Change blank time to 1 hour
xset -dpms Turn off DPMS
xset s off -dpms Disable DPMS and prevent screen from blanking
xset dpms force off Turn off screen immediately
xset dpms force standby Standby screen
xset dpms force suspend Suspend screen

To query the current settings:

. Screen Saver: prefer blanking: yes allow exposures: yes timeout: 600 cycle: 600 DPMS (Energy Star): Standby: 600 Suspend: 600 Off: 600 DPMS is Enabled Monitor is On

See xset(1) for all available commands.

  • XScreenSaver and xfce4-power-manager use their own DPMS settings and override xset configuration. See XScreenSaver#DPMS and blanking settings and Xfce#Display blanking for more information.
  • If using the command manually in a shell you may need to prefix it with sleep 1; for it to work correctly, for example sleep 1; xset dpms force off
  • xset dpms 0 0 0 , which sets all the DPMS timeouts to zero, could be a better way to «disable» DPMS, since the effect of -dpms would be reverted when, for example, turning off the screen with xset dpms force off .
  • If using xset in xinitrc does not work, specify settings within a file in /etc/X11/xorg.conf.d/ . See #Setting up DPMS in X for details.
Читайте также:  Remove linux headers generic

DPMS interaction in a Linux console with setterm

The setterm utility issues terminal recognized escape codes to alter the terminal. Essentially it just writes/echos the terminal sequences to the current terminal device, whether that be in screen, a remote ssh terminal, console mode, serial consoles, etc.

setterm Syntax: (0 disables)

$ setterm --blank [0-60|force|poke] $ setterm --powersave [on|vsync|hsync|powerdown|off] $ setterm --powerdown 28
  • Console blanking alone does not enable DPMS power saving. Console blanking is disabled by default. [1]
  • setterm —powerdown does not seem to have any effect when the APM_DISPLAY_BLANK kernel configuration option is not enabled. [2]
  • Console blanking can also be enabled by the consoleblank kernel parameter. See the kernel documentation for details.

Pipe the output to a cat to see the escapes

$ setterm --powerdown 2>&1 | exec cat -v 2>&1 | sed "s/\\^\\[/\\\\033/g"

Pipe the escapes to any tty (with write/append perms) to modify that terminal

$ setterm --powerdown 0 >> /dev/tty3

Note: >> is used instead of > . For permission issues using sudo in a script or something, you can use the tee program to append the output of setterm to the tty device, which tty’s let appending sometimes but not writing.

Bash loop to set ttys 0-256

$ for i in ; do setterm --powerdown 0 >> /dev/tty$i; done; unset I;

See also

Источник

External monitor turns off for several seconds every 5-10 minutes

I’m using Ubuntu 16.04 installed on Lenovo ThinkPad T500 laptop with two external monitors connected via display and VGA ports. I think the issue started after I upgraded to Ubuntu 16.04. But I’m not sure about this. Occasionally at some random moment one of the monitors turns off. It looks like there is no signal on the monitor. In 2-5 seconds the monitor turns on. This might happen several times in a row with small delays or might not happen for a long time. Both monitors might turn off at the same time or one by one. I do not understand why this happens. Either I do not understand what should I do to reproduce the issue. Last time (a moment before I wrote this) this happened when I switch to a different tab in Google Chrome and pause YouTube music video. But when I try to do the same one more time the issue is not reproduced. I kept using the computer all the time looking at the screen and writing this question at the moment when issue happened I failed to find any signs of the issue in the logs. My issue looks close to Monitor turning off randomly Ubuntu 13.10 with the differences that only one monitor might turn off instead of two and they turn on automatically. By coincidence I’ve entered the command xset -q and pressed enter key right at the moment when the monitor turned off. I waited for several seconds and saw the result

$ xset -q Keyboard Control: auto repeat: on key click percent: 0 LED mask: 00000000 XKB indicators: 00: Caps Lock: off 01: Num Lock: off 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: 500 repeat rate: 33 auto repeating keys: 00ffffffdffffbbf fadfffefffedffff 9fffffffffffffff fff7ffffffffffff bell percent: 50 bell pitch: 400 bell duration: 100 Pointer Control: acceleration: 5/1 threshold: 5 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/Type1,built-ins DPMS (Energy Star): Standby: 0 Suspend: 0 Off: 0 DPMS is Enabled Monitor is On 

What can I do to investigate the issue? What log files should I check? I failed to find any signs of the issue anywhere in the system. Is this a known issue? I might describe it wrong when searching for it and thus failed to find it. How can I understand if it is a hardware or software issue? I might install Windows and see if the issue happens with Windows or not. But may be there might be an option to check this using Ubuntu. What can I do to prevent the issue? Update: Following suggestion in the answer I tried to do the following to reduce the refresh rate on my screens. I had a refresh rate 59.95 Hz and decided to change it to 58 Hz. Identify existing refresh rate

$ cvt 1920 1200 58 \# 1920x1200 57.93 Hz (CVT) hsync: 72.01 kHz; pclk: 185.50 MHz Modeline "1920x1200_58.00" 185.50 1920 2048 2248 2576 1200 1203 1209 1243 -hsync +vsync 
$ xrandr --newmode "1920x1200_58.00" 185.50 1920 2048 2248 2576 1200 1203 1209 1243 -hsync +vsync 
$ xrandr --addmode DP1 1920x1200_58.00 $ xrandr --addmode DP2 1920x1200_58.00 
$ xrandr --output DP1 --mode 1920x1200_58.00 $ xrandr --output DP2 --mode 1920x1200_58.00 
$ xrandr --query Screen 0: minimum 8 x 8, current 3840 x 1248, maximum 32767 x 32767 eDP1 connected (normal left inverted right x axis y axis) 1920x1080 60.00 + 59.93 1680x1050 59.95 59.88 1600x1024 60.17 1400x1050 59.98 1600x900 60.00 1280x1024 60.02 1440x900 59.89 1280x960 60.00 1368x768 60.00 1360x768 59.80 59.96 1152x864 60.00 1280x720 60.00 1024x768 60.00 1024x576 60.00 960x540 60.00 800x600 60.32 56.25 864x486 60.00 640x480 59.94 720x405 60.00 640x360 60.00 DP1 connected 1920x1200+0+48 (normal left inverted right x axis y axis) 518mm x 324mm 1920x1200 59.95 + 1920x1080 60.00 1600x1200 60.00 1680x1050 59.95 1280x1024 60.02 1280x960 60.00 1024x768 60.00 800x600 60.32 640x480 60.00 720x400 70.08 1920x1200_58.00 57.93* DP2 connected primary 1920x1200+1920+0 (normal left inverted right x axis y axis) 518mm x 324mm 1920x1200 59.95 + 1920x1080 60.00 1600x1200 60.00 1680x1050 59.95 1280x1024 60.02 1280x960 60.00 1024x768 60.00 800x600 60.32 640x480 60.00 720x400 70.08 1920x1200_58.00 57.93* HDMI1 disconnected (normal left inverted right x axis y axis) HDMI2 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis) 

I’m checking if the issue repeats or not now. If it does not this means that I’ve got the solution and I’ll mark it as answer. I still do not know how to permanently store these settings, I guess I should add a new file to the /usr/share/X11/xorg.conf.d folder following recommendations in this document. I’m going to study this when I see that the issue is fixed.

Читайте также:  Операционная система станка чпу ос linux

Источник

Оцените статью
Adblock
detector