Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[SOLVED] How do I permanently disable screen blanking?

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
melinuxfool
n00b
n00b
Posts: 12
Joined: Mon Mar 22, 2010 3:03 am

[SOLVED] How do I permanently disable screen blanking?

  • Quote

Post by melinuxfool » Wed Aug 26, 2020 3:03 am

I'm using xorg-server-1.20.8-r1, and plasma-desktop-5.19.4 with kernel 5.8.3 at the moment. Within Plasma, under System Settings --> Power Management --> Activity Settings, I have "Never turn off the screen" and "Never shut down the computer or let it go to sleep" both enabled. I do not have xscreensaver installed. I also have the following script in ~/.config/autostart-scripts, and the executable bit is set.

Code: Select all

#/bin/bash
xset s off
xset -dpms
However, every time I power off the screen, screen blanking gets reenabled, either when I turn it back on while it is still off, I don't know which. The desired setting does seem to persist when I reboot the system, however. Is there a system setting I can modify somewhere that just flat out turns this off forever and for always? I have no need of this feature and absolutely hate it with the fire of a thousand suns, as it always seems to remind me of its existence when I'm right in the middle of watching a long video online.

Running xset q when I first boot the system confirms that the screensaver is off (timeout is 0) and that DMPS is disabled, but if I turn off just the screen (it's actually a TV that it's plugged into via HDMI) and leave it for a while, the timeout setting gets reset to 900, and the screen will go blank again after 15 minutes of no input from the keyboard or mouse, which of course happens all the time when I'm watching videos.
Last edited by melinuxfool on Wed Aug 26, 2020 1:00 pm, edited 2 times in total.
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Wed Aug 26, 2020 3:16 am

I don't know if it's going to change anything beside remove the need for a script but personally I have it set in my xorg.conf.d:

Code: Select all

Section "ServerFlags"
        Option "BlankTime" "0"
EndSection
And I don't disable DPMS nor use xset, never seen blanking/screensaver/settings-reset no matter how much I turn off my monitor. But I don't use KDE so no idea what it does in that regard, hopefully its users will have a better answer to give you.

Edit: Well, if xorg is doing a full reset (for some reason, could be a driver-specific thing) then it'll read its configs again and the above could help. If KDE or something else is changing settings, then probably not.
Top
melinuxfool
n00b
n00b
Posts: 12
Joined: Mon Mar 22, 2010 3:03 am

  • Quote

Post by melinuxfool » Wed Aug 26, 2020 1:00 pm

Ionen wrote:I don't know if it's going to change anything beside remove the need for a script but personally I have it set in my xorg.conf.d:

Code: Select all

Section "ServerFlags"
        Option "BlankTime" "0"
EndSection
And I don't disable DPMS nor use xset, never seen blanking/screensaver/settings-reset no matter how much I turn off my monitor. But I don't use KDE so no idea what it does in that regard, hopefully its users will have a better answer to give you.

Edit: Well, if xorg is doing a full reset (for some reason, could be a driver-specific thing) then it'll read its configs again and the above could help. If KDE or something else is changing settings, then probably not.
Thank you very much! That seems to have worked.
Top
vitaly-zdanevich
Tux's lil' helper
Tux's lil' helper
Posts: 106
Joined: Sun Dec 01, 2019 4:40 pm
Location: Belarus
Contact:
Contact vitaly-zdanevich
Website

  • Quote

Post by vitaly-zdanevich » Tue Jul 04, 2023 6:41 am

Ionen wrote:I have it set in my xorg.conf.d:
It can be any filename in /etc/X11/xorg.conf.d ?
Top
Post Reply

4 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic