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

DPMS not working correct

Tags: None
(comma "," separated)
User avatar
casshern
Registered Member
Posts
3
Karma
0

DPMS not working correct

Sun May 29, 2022 11:01 am
Hi :)

I built a new machine and installed Kubuntu 22.04 from scratch. Installation was flawless.

But then I noticed the display wont go to standby after hitting the time given in Energy-settings. When booting the machine it has this state:

Code: Select all
Machine:
Type: Desktop Mobo: Gigabyte model: B550I AORUS PRO AX v: x.x
serial: <superuser required> UEFI: American Megatrends LLC. v: F16d
date: 05/11/2022
Graphics:
Device-1: NVIDIA GA104 [GeForce RTX 3060 Ti Lite Hash Rate] driver: nvidia
v: 510.73.05
Display: x11 server: X.Org v: 1.21.1.3 driver:X:loaded: nvidia
gpu: nvidia resolution: 2560x1440~75Hz
OpenGL:renderer: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2
v: 4.6.0 NVIDIA 510.73.05
BOOT_IMAGE=/boot/vmlinuz-5.15.0-33-generic root=UUID=28b7ece9-c277-4830-8d33-a1ba9bc082cb ro acpi_osi=Linux quiet splash vt.hand
off=7
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000002
XKB indicators:
00: Caps Lock: off 01: Num Lock: on 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: 600 repeat rate: 25
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: 600
Colors:
default colormap: 0x20 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 Disabled


So DPMS is disabled and Standbytime is Zero (Zero disables Standby even if DPMS is enabled).

So I tried different solutions with no success: Scripts in autostart etc.

If I go to the console and type

Code: Select all
xset dpms 600


the result is:

Code: Select all
DPMS (Energy Star):
Standby: 600 Suspend: 0 Off: 0
DPMS is Enabled
Monitor is On


Problems:
1. I can't get this command into autostart working. Tried as script or .desktop.
2. Even more weird: When Standby time is reached the monitor goes to standby. After a few seconds it wakes up again and the standby timer restarts.

Where can I search for a solution?
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS

Re: DPMS not working correct

Sun May 29, 2022 11:56 am
The default way of making this work is to upgrade UEFI (which you already did afaics) and setting the boot option "acpi_osi=Linux" which you should try first.

If this does not work, how exactly did you try to autostart the xset command? Do you use plasma-wayland or X11?
User avatar
casshern
Registered Member
Posts
3
Karma
0

Re: DPMS not working correct

Mon May 30, 2022 8:18 am
Thank you for your reply. :)

The installed BIOS is up-to-date. The boot option "acpi_osi=Linux" is already set (see quote in my first post).

When installing Kubuntu 22.04 I didn't make any choices and let the installer make the decisions. As I can see it is running on X11.

I made a textfile with kate and named it "DPMS.sh". The only line written was "xset dpms 600". First I made it executable but found an error message in the log file that this is not allowed. I made a new one, this time not executable. Then I found this error message:

8.05.22 12:32 systemd-xdg-autostart-generator /home/casshern/.config/autostart/DPMS.sh:1: Assignment outside of section. Ignoring.


After some research this error says there is a section entry needed. But I don't know how to write this properly.

Earlier I tried to write a "/etc/X11/xorg.conf.d/10-monitor.conf" with proper sections according to xorg.conf, but this made the PC stuck and leaving me without a graphical user interface. Had to make a rescue stick on my old PC to delete this conf-file and get the machine up and running again :o

Update:
I went to System Settings >> Startup and Shutdown >> Background services and disabled KScreen2. This time the monitor stayed in standby. So this might the direction I have to look into. Although then I noticed another weird behavior: The indicator LED of the monitor stayed orange, but the backlight came up after some seconds and went off again after some seconds. And this goes on and on.
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS

Re: DPMS not working correct

Mon May 30, 2022 9:47 am
casshern wrote:The installed BIOS is up-to-date. The boot option "acpi_osi=Linux" is already set (see quote in my first post).

Well, I did read the cmdline but did not see the option. So I think I should update my eyes first 8-)

I made a textfile with kate and named it "DPMS.sh"…

When dealing with scripts, use a shebang, e.g. "#!/bin/sh" as first line. May help. And even if the $PATH variable may be set I prefer using the full path to avoid command not found, like /usr/bin/xset.

In this case I'll write the xset-line into my ~/.profile. I think Ubuntu has ~/.bash_profile already created, so you can use this one too. Another way would be to enter the command to sddm-scripts which will make it work before login instead of user-dependent.
Create or edit /usr/share/sddm/scripts/Xsetup and enter your xset command.

Earlier I tried to write a "/etc/X11/xorg.conf.d/10-monitor.conf" …

Also a good approach but these days it is preferred to run xorg dynamically. As you are using a NVidia-card you already may have a xorg.conf where you can make your changes. The use of nvidia-settings creates on afair.

…LED of the monitor stayed orange, but the backlight came up after some seconds and went off again after some seconds. And this goes on and on.

Check this after the xset command works. You can run `kscreen-doctor -oi` to see how KScreen sees your monitor.
User avatar
casshern
Registered Member
Posts
3
Karma
0

Re: DPMS not working correct  Topic is solved

Mon May 30, 2022 10:45 am
Ok, as for now the problem seems solved :)

After disabling KScreen2 from "System Settings >> Startup and Shutdown >> Background services" the monitor goes to sleep and stays sleeping.

The backlight issue is solved as well. It happens when connecting via Displayport. Reason maybe that the DP-cable (provided with the Acer monitor!) has a wired pin 20 which is not allowed (danger of short circuit). But before buying another cable to check this out I switched to HDMI-connection.

So, once again, thank you for your support ;D


Bookmarks



Who is online

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