This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Enable and Disable Standby via Konsole (Powerdevil)

Tags: None
(comma "," separated)
User avatar
halmholz
Registered Member
Posts
14
Karma
0
Hello,

I am running Kubuntu 16.04 on my desktop PC. Usually I want my system to go to sleep (standby) after 10 minutes of inactivity which works fine. But in some cases I would like to disable standby as long as a certain program is running, for example if a large download is in progress.

From what I understand, in Kubuntu the energy-saving options are handled by a program called "powerdevil". And it is possible for programs to inhibit sleep mode - if they happen have this feature implemented.

Unfortunately I could not find any documentation of powerdevils command-line options.

My question is: Is it possible to disable and enable (or inhibit) standby-mode via konsole / bash commands?

Best regards!
User avatar
Rog131
Registered Member
Posts
828
Karma
10
halmholz wrote:Hello,

I am running Kubuntu 16.04 on my desktop PC. Usually I want my system to go to sleep (standby) after 10 minutes of inactivity which works fine.
.
.
.
My question is: Is it possible to disable and enable (or inhibit) standby-mode via konsole / bash commands?


Image

Screen (X) energy saving:

Code: Select all
man xset

NAME
       xset - user preference utility for X

       -dpms   The -dpms option disables DPMS (Energy Star) features.

       +dpms   The +dpms option enables DPMS (Energy Star) features.

       dpms flags...
               The  dpms  option  allows  the DPMS (Energy Star) parameters to be set.  The
               option can take up to three numerical values, or the `force'  flag  followed
               by  a DPMS state.  The `force' flags forces the server to immediately switch
               to the DPMS state specified.  The DPMS state can be one of `standby',  `sus‐
               pend',  `off', or `on'.  When numerical values are given, they set the inac‐
               tivity period (in units of seconds) before the three  modes  are  activated.
               The first value given is for the `standby' mode, the second is for the `sus‐
               pend' mode, and the third is for  the  `off'  mode.   Setting  these  values
               implicitly enables the DPMS features.  A value of zero disables a particular
               mode.


Command:
Code: Select all
xset dpms force off

will turn the screen off.


Suspend session: AskUbuntu - How can I suspend/hibernate from command line?: https://askubuntu.com/questions/1792/ho ... mmand-line


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]