LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Command for changing monitor standby time. (https://www.linuxquestions.org/questions/linux-newbie-8/command-for-changing-monitor-standby-time-4175659776/)

bendipa 08-25-2019 01:34 PM

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?

Tonus 08-25-2019 09:12 PM

Command for changing monitor standby time.
 
Hi,
I would consider reading this link :
https://wiki.archlinux.org/index.php...8GNOME_3.28.29

ondoho 08-26-2019 02:04 AM

https://www.askdavetaylor.com/change...-linux-system/
tl;dr: you need to look at both power-off and suspend times.

bendipa 08-26-2019 06:40 AM

Quote:

Originally Posted by Tonus (Post 6029446)
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 (Post 6029491)
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.

teckk 08-26-2019 09:27 AM

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.

bendipa 08-26-2019 12:53 PM

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>

ondoho 08-27-2019 02:38 AM

Quote:

Originally Posted by bendipa (Post 6029729)
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.

bendipa 08-27-2019 01:25 PM

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


ondoho 08-27-2019 01:47 PM

Quote:

Originally Posted by bendipa (Post 6030212)
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.

rnturn 08-27-2019 04:37 PM

Quote:

Originally Posted by bendipa (Post 6029324)
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...

bendipa 08-28-2019 11:23 PM

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.


All times are GMT -5. The time now is 08:47 PM.