KDE-Manjaro Testing release issue with display dimming after resume from sleep

Hi,

I have recently switched from stable to testing release (following the instructions on Manjaro Wiki) and I noticed a strange behavior with screen dimming.

When PC resumed from sleep the display brightness was not restored. It stayed as it was just before the PC goes to sleep. [EDIT] Meaning, it retained the dim state not the normal brightness setting [/EDIT]

I checked the settings in KDE but nothing indicated something different compared to stable release which I was using for more than two months.

Finally I ended up replacing ddcutil with the Dev version (2.2.7) from git. Now the problem seems solved.

I think it would be nice to include the latest dev version into AUR just in case.

AUR is Arch User Repository - it is unsupported with Arch Linux and Manjaro Linux.

Yes I know that. My post intended to help other users with the same issue and inform the developers/maintainers for the problem with the ddcutil.

Perhaps i’m a bit confused. First ddcutil is part of Arch and not yet flagged outdated, see Arch Linux - ddcutil 2.2.6-1 (x86_64)

Second, ddcutil-git is already in the AUR and should pick up the latest whatever is available in the git repo.

1 Like

This is what I see in the software package manager

I don’t know if it pulls the latest no matter what. Does it ?

You shouldn’t use the AUR if you aren’t familar with the build process and don’t check the build files, ie, the PKGBUILD script. Notice there are two AUR entries ddcutil-git and ddcutil-dev-git for whatever it is worth - please do yourself a favour and read the PKGBUILD scripts.

1 Like

I didn’t use AUR, I just cloned the repo locally and built it. As for the first AUR package it uses 2.2.0-dev the second one it’s not obvious to me what it does but I think it always clones the latest stable.

But in any case, what’s your suggestion for someone who faces an issue with the functionality of the system ?

Try running the following command when the dimming issue occurs:

systemctl --user restart plasma-powerdevil

Note: I haven’t tested it for dimming, as I don’t have my screen dim automatically. However, the brightness control sometimes becomes disabled in my system tray, and the above command always brings it back.

1 Like

Hi Scott,

well, for what it worth, before replacing ddcutil (which eventually solved the problem) I had to logout in order to restore brightness which probably does what you suggest. But I think that dealing with the root cause of the problem is the best solution.

I have red too many posts all over the internet complaining about ddcutil, is there any alternative ?

I would need to understand the problem first.

So it was restored or how should it behave? I mean restoring means restore the last brightness value - last before going to sleep. Should it recall some other value? Also i’m on unstable and i don’t see this issue.

You could try disabling the brightness control in System Settings → Display & Monitor → Display Configuration:

That means you won’t be able to adjust your brightness via the brightness widget in the system tray; the Night Light feature shouldn’t be affected as it only changes the color temperature, not the brightness.

That’s what I did. I searched the forums I see similar issues mentioning ddcutil, I decided to replace it as the most probable culprit.

This is the setting that dims the display

So do you suggest that is normal for the display to retain the dimming state indefinitely after resuming ?

Sorry, i meant really myself. I didn’t understand what you meant.

You didn’t say this so far. Now i know what you mean. Sorry i’m not so good at reading other people’s minds.

I have the same settings though, and my monitor isn’t dimmed after sleeping :man_shrugging:

Yes I tried that and the problem remained. Only logout and login again restored brightness. Nevertheless, I didn’t change the brightness using the widget but rather the OSD menu of the display.

Scotty does though… :slightly_smiling_face:

My monitor doesn’t support ddc/ci. Anyway the dim state should go away when hitting a key or moving the mouse. So, you’re saying this isn’t the case. The monitor keeps the dimmed state as its new brightness setting? I can’t reproduce this on my system.

The reason why I mentioned restarting the plasma-powerdevil service is that it seems to have issues detecting some screens properly when resuming the system from sleep or hibernate. Maybe it only happens for certain screen models, or possibly it depends on how they are connected (mine is connected via HDMI, and I often lose the brightness setting upon resuming).

So, plasma-powerdevil can successfully detect the screen to dim it before eventually suspending or hibernating the system. However if the screen has powered down, then it can’t detect the current brightness of the screen when resumed, so it stays dimmed. Restarting the plasma-powerdevil service should fix that, as the screen is now properly powered up and the system can now detect its brightness.

Maybe also browse through your journal for powerdevil-related entries, especially ones after you have just resumed your system:

journalctl | grep -Ei "suspend|resume|hibernate|sleep|powerdevil"
2 Likes

Exactly.

@scotty65

Could you please help me understand something that I just noticed?

I just disabled “Control hardware brightness with DDC/CI” and I’m now able to change brightness using the widget which wasn’t possible with the above setting enabled. Is this the expected behavior or the other way around ?

I use a HDMI to DVI cable to connect my monitor (GPU → HDMI → DVI → Monitor) but that same setup had no issues with the manjaro stable with ddcutil 2.2.6. Everything started as soon as I switched to Manjaro Testing with ddcutil 2.2.6.

Most likely the upcoming DDCUtil will fix it. From its changelog:

ddcutil Release Candidate 2.2.7-rc1 is now available for testing. It contains several important bug fixes for KDE PowerDevil in the handling of display connection and disconnection and transient loss of access permissions for /dev/i2c devices. It can be downloaded from the githut ddcutil repository For details, see the announcement: FR: print 'Failed to find connector name for' to stderr · Issue #598 · rockowitz/ddcutil · GitHub.

5 Likes

I’ve never disabled it, so I was only making an assumption on what would happen when it is un-ticked.

Hopefully the upcoming release of ddcutil v2.2.7 will fix these long-standing plasma-powerdevil issues.

OK Thanks Scott.

For me it is solved already as I installed 2.2.7-dev from git but given that the only thing changed between stable and testing is the KDE plasma it may be well assumed that it’s finally their (KDE) problem not ddcutil as I initially thought.

Anyway, let’s call it solved.

2 Likes