<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>499034</bug_id>
          
          <creation_ts>2025-01-23 02:57:09 +0000</creation_ts>
          <short_desc>New account on Wayland session with Display Port sets monitor brightness to 100% rather than reading hardware brightness level</short_desc>
          <delta_ts>2025-01-27 21:19:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Power management &amp; brightness</component>
          <version>6.2.5</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>494408</dup_id>
          <see_also>https://bugs.kde.org/show_bug.cgi?id=499035</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>amdfan12</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>jgqehj55</cc>
    
    <cc>jpetso</cc>
    
    <cc>nate</cc>
    
    <cc>xaver.hugl</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2391811</commentid>
    <comment_count>0</comment_count>
    <who name="">amdfan12</who>
    <bug_when>2025-01-23 02:57:09 +0000</bug_when>
    <thetext>SUMMARY
- Creating a new account on KDE and using the Wayland session will result in your monitor&apos;s brightness being set to 100%, not respecting the monitor&apos;s existing brightness setting. The problem doesn&apos;t seem to exist on the X11 session. I first noticed this with OpenSUSE, which uses X11 by default. In the X11 session, my monitors&apos; brightness level remained at their initial values. When I tried switching to the Wayland session, both monitors immediately were set to 100% brightness.

A fresh install of Fedora KDE Edition also resulted in the same behavior. Fedora KDE uses Wayland by default, and upon first login, both monitors were immediately set to 100% brightness. 

Once you set your brightness to the desired level, it remembers it. However creating a new account will result in 100% brightness again.

STEPS TO REPRODUCE
1. Create new account on KDE
2. Log into new account using Wayland with a Display Port monitor

OBSERVED RESULT
Monitor&apos;s brightness will automatically get set to 100%, regardless of what the prior brightness setting was.

EXPECTED RESULT
Monitor&apos;s brightness should remain what its original value was

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 41/OpenSUSE Tumbleweed
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
Pixio PX275h monitors connected via Display Port
Radeon 5700XT</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392026</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-01-23 15:56:40 +0000</bug_when>
    <thetext>Same deal as Bug 499035; it&apos;s intentional that brightness is a subjective user preference and not a systemwide thing, so it doesn&apos;t make sense to inherit a different user&apos;s brightness setting in a new user account.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392177</commentid>
    <comment_count>2</comment_count>
    <who name="">amdfan12</who>
    <bug_when>2025-01-24 00:48:10 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #1)
&gt; Same deal as Bug 499035; it&apos;s intentional that brightness is a subjective
&gt; user preference and not a systemwide thing, so it doesn&apos;t make sense to
&gt; inherit a different user&apos;s brightness setting in a new user account.

Hi Nate, I will agree with you if you were talking about a mobile situation, like a tablet or a laptop where brightness is expected to change. But this is a desktop situation, and I will STRONGLY disagree that it&apos;s ever appropriate to override the ***hardware&apos;s settings*** in a desktop environment. Desktop users typically have much less variable ambient lighting, and will spend time adjusting or calibrating their monitors to a preferred level and leave them be.

It is a big problem that KDE is *making changes to my hardware settings* without asking my permission/consent to do so. I spent a lot of time calibrating and adjusting my monitors to how I liked them, and KDE Wayland blew my calibration away by adjusting the brightness without asking. If it weren&apos;t for the fact I had the brightness value written down, I would have been out of luck.

This is very much a bug, since no other modern operating system overrides brightness levels like that:
- Windows does not override my monitor&apos;s set hardware brightness level on new install, or account creation
- The latest edition of Ubuntu (running Wayland) does not override my monitor&apos;s set hardware brightness level on new install, or account creation.
- The latest edition of Linux Mint does not override my monitor&apos;s brightness level on new install or account creation

To add some additional perspective: It costs money to have monitors professional calibrated. It can be anywhere from $500/monitor or more in a professional setting to have someone come out and professionally calibrate and certify your monitor. If a production studio (photography, video, whatever) gets,  10 workstations, calibrates them, and then hires 10 people to use them - KDE would cost them $5,000 in blown calibrations the moment they create user accounts for those employees. 

This is *wrong* behavior. The OS should never change my *hardware settings* on a desktop machine without asking. Ever. No other OS or desktop environment does this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392705</commentid>
    <comment_count>3</comment_count>
    <who name="">2wxsy58236r3</who>
    <bug_when>2025-01-26 15:04:21 +0000</bug_when>
    <thetext>Maybe try disabling DDC/CI in your monitor&apos;s setting (I suppose professional monitors are more likely to have this setting) as a workaround?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392737</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-01-26 18:13:29 +0000</bug_when>
    <thetext>I agree we shouldn&apos;t override the hardware&apos;s *default* brightness setting. But is that actually what we&apos;re doing?

In other words, if you have a monitor that&apos;s set to 25% brightness by default the first time you plug it in, and you change it to 50% in your current user account, and then you create a new user account, is it getting set to 100% in the new user account? Or 50%?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392739</commentid>
    <comment_count>5</comment_count>
    <who name="">amdfan12</who>
    <bug_when>2025-01-26 18:30:11 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #4)
&gt; I agree we shouldn&apos;t override the hardware&apos;s *default* brightness setting.
&gt; But is that actually what we&apos;re doing?
&gt; 
&gt; In other words, if you have a monitor that&apos;s set to 25% brightness by
&gt; default the first time you plug it in, and you change it to 50% in your
&gt; current user account, and then you create a new user account, is it getting
&gt; set to 100% in the new user account? Or 50%?

Here&apos;s an example:
- Through my monitor&apos;s built in controls and on-screen-display, I manually set the monitor&apos;s brightness to 30%
- If I boot into Windows, Ubuntu or KDE X11, the monitor&apos;s brightness remains at 30%. KDE X11 will even acknowledge the monitor&apos;s brightness being 30% in the brightness tray icon
- Creating and then logging into a new account on Windows, Ubuntu, or KDE X11 will respect the 30% brightness level the monitor already has set.

- A fresh install of an OS with KDE Wayland will *not* respect the monitor&apos;s already existing hardware brightness level. First log-in on Fedora KDE or Tumbleweed with a KDE Wayland will force the monitor to 100% brightness. If I manually go into my monitor, and reset the brightness to 30%, or set the brightness to 30% using the tray slider, it will remember it.
- If I create a new account and log in to that new account, or re-install the OS, it will override my brightness settings back to 100%, even though I already turned them back to 30% prior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2393032</commentid>
    <comment_count>6</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-01-27 21:02:34 +0000</bug_when>
    <thetext>Ok yeah, those do seem like bugs, or undesirable features (if considered intentional).

I wonder if it might be hardware-specific, though. On my system, if I set the brightness to 50% (a value of 128 in `/sys/class/backlight/*/brightness`) and log into a newly created user account, the brightness is at 50%/128; the value was not changed to 100% as you&apos;re seeing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2393036</commentid>
    <comment_count>7</comment_count>
    <who name="Jakob Petsovits">jpetso</who>
    <bug_when>2025-01-27 21:14:45 +0000</bug_when>
    <thetext>We fixed this for 6.3.0, Plasma on Wayland (i.e. KWin+PowerDevil) will now read and adopt the brightness level of a display that hasn&apos;t been seen before.

It will still ignore any subsequent changes through the monitor&apos;s OSD menu, but that&apos;s a different issue we&apos;ll have to resolve later.

*** This bug has been marked as a duplicate of bug 494408 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2393039</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-01-27 21:19:54 +0000</bug_when>
    <thetext>Aha, no wonder I couldn&apos;t reproduce it on master!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>