<?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>494720</bug_id>
          
          <creation_ts>2024-10-14 07:34:00 +0000</creation_ts>
          <short_desc>The keyboard backlight OSD only works after logging out and logging back in</short_desc>
          <delta_ts>2024-12-11 17:00:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>Powerdevil</product>
          <component>general</component>
          <version>6.2.2</version>
          <rep_platform>Gentoo Packages</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>486067</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Avraham Hollander">anhollander516</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>kde</cc>
    
    <cc>m.kurz</cc>
    
    <cc>natalie_clarius</cc>
    
    <cc>nate</cc>
    
    <cc>nicolcheung521</cc>
    
    <cc>rhansen</cc>
    
    <cc>thisisarealmailbox</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>2365692</commentid>
    <comment_count>0</comment_count>
    <who name="Avraham Hollander">anhollander516</who>
    <bug_when>2024-10-14 07:34:00 +0000</bug_when>
    <thetext>SUMMARY
The keyboard backlight OSD just doesn&apos;t show up most of the time, no matter how many times I cycle it. Occasionally, it will start working again no matter how many times I cycle it. And then the next time I change my keyboard backlight brightness, it doesn&apos;t work anymore.

STEPS TO REPRODUCE
1. Adjust keyboard backlight with keyboard controls.

OBSERVED RESULT
The OSD behavior explained above.

EXPECTED RESULT
The OSD works 100% of the time.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.15
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.3-20R5-sched-ext (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
I&apos;m 99.999% sure this is a &quot;broken for me&quot; issue caused by my heavily customized Gentoo installation. A major pain to troubleshoot because it isn&apos;t reliably reproducible and eliminating variables requires mass recompiling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2367054</commentid>
    <comment_count>1</comment_count>
    <who name="potato">thisisarealmailbox</who>
    <bug_when>2024-10-17 21:28:18 +0000</bug_when>
    <thetext>I have a similar issue and have commented in bug #486067. On my system I can get the OSD to show up by logging out and back in. Is that also the case for you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2367095</commentid>
    <comment_count>2</comment_count>
    <who name="Avraham Hollander">anhollander516</who>
    <bug_when>2024-10-18 01:57:32 +0000</bug_when>
    <thetext>(In reply to potato1112 from comment #1)
&gt; I have a similar issue and have commented in bug #486067. On my system I can
&gt; get the OSD to show up by logging out and back in. Is that also the case for
&gt; you?

You&apos;re right. I didn&apos;t notice that connection. It works after logging out and logging back in, but not after a reboot.

I doubt this is a race condition because it&apos;s not like SDDM passes any of this onto the session. (Worth noting that I&apos;m using SDDM in Wayland mode with kwin_wayland.) Something else is going awry. I&apos;ve updated the title to reflect this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2367096</commentid>
    <comment_count>3</comment_count>
    <who name="Avraham Hollander">anhollander516</who>
    <bug_when>2024-10-18 02:02:27 +0000</bug_when>
    <thetext>Restarting SDDM after boot does not fix the issue. Only log out and log in. It looks like the two of us have the same problem, and it is a different problem than #486067.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2369962</commentid>
    <comment_count>4</comment_count>
    <who name="Avraham Hollander">anhollander516</who>
    <bug_when>2024-10-28 17:23:42 +0000</bug_when>
    <thetext>This is still broken on Plasma 6.2.2. I just switched my system from systemd back to OpenRC (for unrelated reasons, it&apos;s amazing that Gentoo just lets you do that in place) and it&apos;s still broken. So that&apos;s more evidence that this probably isn&apos;t a race condition because the startup of the system as well as the desktop (Plasma on systemd makes use of the systemd --user instance; OpenRC does not support user instances so the generic /etc/xdg/autostart mechanism is used instead)  is totally different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2372120</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-11-05 21:01:09 +0000</bug_when>
    <thetext>During the time when you&apos;re experiencing the bug, does the keyboard brightness item fail to appear in the Battery and Brightness widget? And after you log out and back in, does it appear there?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2372132</commentid>
    <comment_count>6</comment_count>
    <who name="Avraham Hollander">anhollander516</who>
    <bug_when>2024-11-05 21:34:04 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #5)
&gt; During the time when you&apos;re experiencing the bug, does the keyboard
&gt; brightness item fail to appear in the Battery and Brightness widget? And
&gt; after you log out and back in, does it appear there?

Yes and yes, I didn&apos;t see that before. So this is not just a problem with the OSD code.

I just tried killing and restarting plasmashell, as well as running kwin_wayland --replace and then starting a new plasmashell. Neither of those fixed the problem.

I took a look at powerdevil/daemon/controllers/keyboardbrightnesscontroller.cpp and saw it&apos;s using UPower (duh), so I figured maybe restarting the upower service would make it work. It did not.

So where in the chain could this be?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2372822</commentid>
    <comment_count>7</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-11-08 19:44:27 +0000</bug_when>
    <thetext>I don&apos;t know, but hopefully one of the Powerdevil folks will be able to help.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2372852</commentid>
    <comment_count>8</comment_count>
    <who name="potato">thisisarealmailbox</who>
    <bug_when>2024-11-08 20:57:14 +0000</bug_when>
    <thetext>It likely doesn&apos;t help, but in case it does, my experience is the same as above, OSD and keyboard brightness item in brightness widget don&apos;t appear until logging out and back in. I&apos;m on Plasma 6.2.3, Frameworks 6.7.0, Qt 6.8.0, Kernel 6.11.6 in case that matters also.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2372867</commentid>
    <comment_count>9</comment_count>
    <who name="Avraham Hollander">anhollander516</who>
    <bug_when>2024-11-08 21:28:23 +0000</bug_when>
    <thetext>(In reply to Alex B from comment #8)
&gt; It likely doesn&apos;t help, but in case it does, my experience is the same as
&gt; above, OSD and keyboard brightness item in brightness widget don&apos;t appear
&gt; until logging out and back in. I&apos;m on Plasma 6.2.3, Frameworks 6.7.0, Qt
&gt; 6.8.0, Kernel 6.11.6 in case that matters also.

It would be helpful to know what distribution you&apos;re using. I&apos;m on a very customized Gentoo, which is the epitome of nonreproducibility. Are you on Gentoo too?


I&apos;m gonna try installing Fedora and seeing if it&apos;s broken there too. It works totally fine on Fedora 40/41 on my 2012 A1466 MacBook Air.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2372916</commentid>
    <comment_count>10</comment_count>
    <who name="Avraham Hollander">anhollander516</who>
    <bug_when>2024-11-08 23:09:50 +0000</bug_when>
    <thetext>Forgot to mention that I tried a new, clean user and it didn&apos;t help.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2372923</commentid>
    <comment_count>11</comment_count>
    <who name="potato">thisisarealmailbox</who>
    <bug_when>2024-11-08 23:49:04 +0000</bug_when>
    <thetext>(In reply to anhollander516@gmail.com from comment #9)
&gt; (In reply to Alex B from comment #8)
&gt; &gt; It likely doesn&apos;t help, but in case it does, my experience is the same as
&gt; &gt; above, OSD and keyboard brightness item in brightness widget don&apos;t appear
&gt; &gt; until logging out and back in. I&apos;m on Plasma 6.2.3, Frameworks 6.7.0, Qt
&gt; &gt; 6.8.0, Kernel 6.11.6 in case that matters also.
&gt; 
&gt; It would be helpful to know what distribution you&apos;re using. I&apos;m on a very
&gt; customized Gentoo, which is the epitome of nonreproducibility. Are you on
&gt; Gentoo too?
&gt; 
&gt; 
&gt; I&apos;m gonna try installing Fedora and seeing if it&apos;s broken there too. It
&gt; works totally fine on Fedora 40/41 on my 2012 A1466 MacBook Air.

I&apos;m using EndeavourOS/Arch. This install is pretty new and I&apos;m not using any special packages or customization (but one) for plasma or its components that can&apos;t be done in the system settings panel. The only non-default configuration related to plasma that I have is sddm set to run under wayland instead of x11.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2372936</commentid>
    <comment_count>12</comment_count>
    <who name="Avraham Hollander">anhollander516</who>
    <bug_when>2024-11-09 01:57:11 +0000</bug_when>
    <thetext>(In reply to Alex B from comment #11)
&gt; (In reply to anhollander516@gmail.com from comment #9)
&gt; &gt; (In reply to Alex B from comment #8)
&gt; &gt; &gt; It likely doesn&apos;t help, but in case it does, my experience is the same as
&gt; &gt; &gt; above, OSD and keyboard brightness item in brightness widget don&apos;t appear
&gt; &gt; &gt; until logging out and back in. I&apos;m on Plasma 6.2.3, Frameworks 6.7.0, Qt
&gt; &gt; &gt; 6.8.0, Kernel 6.11.6 in case that matters also.
&gt; &gt; 
&gt; &gt; It would be helpful to know what distribution you&apos;re using. I&apos;m on a very
&gt; &gt; customized Gentoo, which is the epitome of nonreproducibility. Are you on
&gt; &gt; Gentoo too?
&gt; &gt; 
&gt; &gt; 
&gt; &gt; I&apos;m gonna try installing Fedora and seeing if it&apos;s broken there too. It
&gt; &gt; works totally fine on Fedora 40/41 on my 2012 A1466 MacBook Air.
&gt; 
&gt; I&apos;m using EndeavourOS/Arch. This install is pretty new and I&apos;m not using any
&gt; special packages or customization (but one) for plasma or its components
&gt; that can&apos;t be done in the system settings panel. The only non-default
&gt; configuration related to plasma that I have is sddm set to run under wayland
&gt; instead of x11.

I&apos;m also running SDDM on Wayland. But it&apos;s fine on my MacBook with Fedora, so I don&apos;t think that&apos;s relevant. You could test with SDDM Xorg if you want. I can&apos;t test without rebuilding a ton of stuff with USE=X; I have X11 supoort disabled at compile time where possible because I&apos;m using Wayland and don&apos;t need it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2372938</commentid>
    <comment_count>13</comment_count>
    <who name="potato">thisisarealmailbox</who>
    <bug_when>2024-11-09 02:17:53 +0000</bug_when>
    <thetext>
&gt; I&apos;m also running SDDM on Wayland. But it&apos;s fine on my MacBook with Fedora,
&gt; so I don&apos;t think that&apos;s relevant. You could test with SDDM Xorg if you want.
&gt; I can&apos;t test without rebuilding a ton of stuff with USE=X; I have X11
&gt; supoort disabled at compile time where possible because I&apos;m using Wayland
&gt; and don&apos;t need it.

I just went and removed the configuration file I created to make SDDM run under wayland, restarted a few times to try it out, and the result is the same each time. No OSD or slider in the widget until logging out and back in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2375365</commentid>
    <comment_count>14</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-11-18 18:43:11 +0000</bug_when>
    <thetext>*** Bug 495476 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2380360</commentid>
    <comment_count>15</comment_count>
    <who name="Richard Hansen">rhansen</who>
    <bug_when>2024-12-11 06:50:31 +0000</bug_when>
    <thetext>(In reply to anhollander516@gmail.com from comment #3)
&gt; It looks like the two of us have the same problem, and it is a different
&gt; problem than #486067.

How does this differ from #486067?  This looks like the exact same issue to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2380431</commentid>
    <comment_count>16</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-12-11 17:00:16 +0000</bug_when>
    <thetext>Indeed, it does appear to be the same issue.

*** This bug has been marked as a duplicate of bug 486067 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>