LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-25-2019, 12:34 PM   #1
bendipa
Member
 
Registered: Aug 2018
Posts: 35

Rep: Reputation: Disabled
Command for changing monitor standby time.


Machine: Dell Vostro PC, System: Ubuntu 18.04, Desktop: Gnome 3.28 running Wayland.

Is there a command within Linux so that my monitor goes into standby after a fixed period of idle time?

I know with the GUI I can set the idle time for up to 15 mins through the Settings-->Power selection. But supposing I want to set this period longer, eg 20 mins. I've looked at xrand and xset options, but neither seem to give any examples of actually doing this, and I would have expected it to be a common query, but no-one appears to asked it. I'm using Gnome 3.28 on Wayland.

Also is there a way of making this setting indefinite rather than just for a session?
 
Old 08-25-2019, 08:12 PM   #2
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,397
Blog Entries: 3

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Command for changing monitor standby time.

Hi,
I would consider reading this link :
https://wiki.archlinux.org/index.php...8GNOME_3.28.29
 
Old 08-26-2019, 01:04 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
https://www.askdavetaylor.com/change...-linux-system/
tl;dr: you need to look at both power-off and suspend times.
 
Old 08-26-2019, 05:40 AM   #4
bendipa
Member
 
Registered: Aug 2018
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Tonus View Post
Hi,
I would consider reading this link :
https://wiki.archlinux.org/index.php...8GNOME_3.28.29
A lot of useful info about some gdm settings but nothing related to my question.

Quote:
Originally Posted by ondoho View Post
https://www.askdavetaylor.com/change...-linux-system/
tl;dr: you need to look at both power-off and suspend times.
No help I'm afraid. Article shows config by GUI. I asked if there was a command to do the equivalent and if so what it might be.

Last edited by bendipa; 08-26-2019 at 05:50 AM.
 
Old 08-26-2019, 08:27 AM   #5
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,103
Blog Entries: 6

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Look at man xset

I've used it to turn off (Energy Star) features, and not sleep.
Code:
xset -dpms
xset s off
Look at xset q to see where you are now. So that you can put it back.

Standby in 5 seconds, suspend in 10, off in 15
Code:
xset dpms 5 10 15
I just tried that, it's works here.
 
Old 08-26-2019, 11:53 AM   #6
bendipa
Member
 
Registered: Aug 2018
Posts: 35

Original Poster
Rep: Reputation: Disabled
Hi,

With <xset q> amongst other output it's showing:

DPMS (Energy Star):
Display is not capable of DPMS
.

So does that rule out the use of xset for this particular purpose, since it looks like what you did only applies to DPMS monitors?

Edit: My monitor specs mention Vesa compatibility, so not sure why I'm getting the "not capable of DPMS" message with <xset q>

Last edited by bendipa; 08-26-2019 at 12:01 PM.
 
Old 08-27-2019, 01:38 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by bendipa View Post
My monitor specs mention Vesa compatibility, so not sure why I'm getting the "not capable of DPMS" message with <xset q>
output of
Code:
lspci -k
xrandr
xset q
please.
 
Old 08-27-2019, 12:25 PM   #8
bendipa
Member
 
Registered: Aug 2018
Posts: 35

Original Poster
Rep: Reputation: Disabled
Output of lspci -k
Code:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09)
	Subsystem: Dell Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller
	Kernel driver in use: ivb_uncore
	Kernel modules: ie31200_edac
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09)
	Subsystem: Dell Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
	Kernel driver in use: i915
	Kernel modules: i915
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
	Subsystem: Dell 7 Series/C210 Series Chipset Family USB xHCI Host Controller
	Kernel driver in use: xhci_hcd
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
	Subsystem: Dell 7 Series/C216 Chipset Family MEI Controller
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
	Subsystem: Dell 7 Series/C216 Chipset Family USB Enhanced Host Controller
	Kernel driver in use: ehci-pci
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
	Subsystem: Dell 7 Series/C216 Chipset Family High Definition Audio Controller
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1c.3 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 4 (rev c4)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
	Subsystem: Dell 7 Series/C216 Chipset Family USB Enhanced Host Controller
	Kernel driver in use: ehci-pci
00:1f.0 ISA bridge: Intel Corporation H77 Express Chipset LPC Controller (rev 04)
	Subsystem: Dell H77 Express Chipset LPC Controller
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich
00:1f.2 SATA controller: Intel Corporation 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
	Subsystem: Dell 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode]
	Kernel driver in use: ahci
	Kernel modules: ahci
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
	Subsystem: Dell 7 Series/C216 Chipset Family SMBus Controller
	Kernel modules: i2c_i801
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)
	Subsystem: Dell RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
	Kernel driver in use: r8169
	Kernel modules: r8169
Output of xrandr
Code:
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
XWAYLAND0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
1920x1080     59.96*+
Output of xset q
Code:
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:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  0
Colors:
  default colormap:  0x23    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  /usr/share/fonts/X11/misc,/usr/share/fonts/X11/Type1,built-ins
DPMS (Energy Star):
  Display is not capable of DPMS
 
Old 08-27-2019, 12:47 PM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by bendipa View Post
Code:
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
XWAYLAND0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
1920x1080     59.96*+
Interesting, never seen that before. If you're running wayland, xrandr and xset won't be any help.
And me neither, sorry.
 
Old 08-27-2019, 03:37 PM   #10
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,795

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by bendipa View Post
Machine: Dell Vostro PC, System: Ubuntu 18.04, Desktop: Gnome 3.28 running Wayland.

Is there a command within Linux so that my monitor goes into standby after a fixed period of idle time?

I know with the GUI I can set the idle time for up to 15 mins through the Settings-->Power selection. But supposing I want to set this period longer, eg 20 mins. I've looked at xrand and xset options, but neither seem to give any examples of actually doing this, and I would have expected it to be a common query, but no-one appears to asked it. I'm using Gnome 3.28 on Wayland.
Just curious but don't any of the Gnome screensavers help?

Anyway, I'd say you were closest when you said "xset". But that likely doesn't work with Wayland and little Googling indicates that that's a "no" which, frankly, doesn't surprise me. (Can't confirm this, personally, being an Xorg user.)

Try this (found via Googling "xset +Wayland"):

https://askubuntu.com/questions/9673...nt-to-xset-led

(See the bottom of that post for something that might help you out.)


Good luck...
 
Old 08-28-2019, 10:23 PM   #11
bendipa
Member
 
Registered: Aug 2018
Posts: 35

Original Poster
Rep: Reputation: Disabled
It seems that running Wayland is the problem. If I switch back to X11 then the output for xrandr and xset q is very different, and DPMS for my monitor is now shown as enabled, which is more like it.

It's easy for me to revert back to using Xorg. It's only recently that I discovered Wayland because one time I was accidentally logged into it, and realised I couldn't get certain things to work. But when I finally twigged what my issue was, and read up about Wayland, it said that security was better than with Xorg. So I've stuck with using it since. Maybe it's not such a good idea.

Last edited by bendipa; 08-28-2019 at 10:28 PM.
 
  


Reply

Tags
screensaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Changing the time out for monitor to go to standby (ACPI?) stf92 Slackware 2 07-22-2012 07:45 AM
PAM time restrictions - changing Time.conf so it gets time from sql table noodlesoffire Linux - Newbie 1 04-04-2010 04:41 PM
changing monitor standby settings madonion87 Linux - Newbie 7 11-30-2005 03:40 AM
disable monitor standby vapz Linux - General 2 08-30-2003 12:01 PM
monitor wont switch to standby/suspend mode quest4knowledge Linux - General 1 08-13-2003 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration