Bug 406246

Summary: KDE powermanagement enabled in Xvnc session
Product: [Plasma] plasmashell Reporter: dpecka
Component: Power management & brightnessAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: major CC: dpecka, natalie_clarius, nate
Priority: NOR    
Version First Reported In: 5.18.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description dpecka 2019-04-05 09:53:48 UTC
Hello Geeko's minions and all other KDE minions and fellows,

I've found relatively severe problem. If you run vnc session for other user with all defaults (kde plasma is your default DE), then powermanagement in this session will work like on dev/ttyX session and logind won't affect which session is currently in focus so result will be that kde will mercilessly sleep your laptop (or dim screen or lock screen or they will take whatever action is there) while you're working on when Xvnc session runs in background and it's without input.

This is in my opinion buggy behaviour.

Howto-reproduce:

happens in 100% case, just:

useradd -m testuser
su - testuser -c 'vncserver :10'

^^ it will normally do default powermanagement actions even when you don't launch `vncviewer localhost:10' ..

regards, dan




EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-06-16 19:23:04 UTC
Hi dpecka,
Thanks for the bug report, and I'm sorry we weren't able to get to this until now. A lot has changed since the issue was reported; can I ask you to check and see if it still happens in Plasma 6.3.5 or later? Thanks a lot!
Comment 2 Bug Janitor Service 2025-07-01 03:47:31 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 dpecka 2025-07-01 11:41:20 UTC
Hello,

sorry, I don't have KDE 6.3 .. We have in openSUSE Leap 5.27.x

Can you please test it yourself ? It's very easy and obvious what is happening and back in the day when I was reporting the issue it was just 100% reproducible out of the box ...

thanks and regards, ~dan
Comment 4 Nate Graham 2025-08-19 22:47:47 UTC
Thanks, I can reproduce it.

However this isn't a Plasma problem; it's up to apps to inhibit power management. You can also do it yourself by prefixing a CLI command with `kde-inhibit`. So the VNC viewer needs to do this itself.