https://bugs.kde.org/show_bug.cgi?id=502110

            Bug ID: 502110
           Summary: Power profile widget does not reflect actual profile
                    at login unless plasmashell is restarted
    Classification: Plasma
           Product: plasmashell
           Version: git-stable-Plasma/5.27
          Platform: Kubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Power and Battery  widget
          Assignee: plasma-b...@kde.org
          Reporter: alexandre.mar...@aimen.es
                CC: k...@privat.broulik.de, natalie_clar...@yahoo.de
  Target Milestone: 1.0

When logging in as a domain user (e.g. alexandre.martin@domain.local), the
power profile plasmoid in the KDE system tray always shows "Balanced" at login,
even though the actual profile may be different.

Clicking to change the profile causes the UI slider to immediately snap back to
"Balanced", but the change is correctly applied in the system — as confirmed
by:

    powerprofilesctl

After manually restarting plasmashell using:

    kquitapp5 plasmashell && kstart5 plasmashell

…the power profile widget then shows the correct profile and allows changes as
expected.

This issue does NOT happen with local users, and only seems to affect domain
users (possibly due to special characters like `.` or `@` in usernames, or
timing delays at session startup).

---

🧪 Steps to reproduce:
1. Log in as a domain user (e.g. alexandre.martin@domain.local).
2. Open the battery widget.
3. Try changing the power profile.
4. Observe that the slider reverts visually, but `powerprofilesctl` confirms
the change.
5. Restart plasmashell manually → the UI syncs correctly from that point on.

---

✅ Workaround:
Automatically restart plasmashell with a delay after login:
    sleep 10 && kquitapp5 plasmashell && kstart5 plasmashell

---

💡 Suggested cause:
Race condition between plasmashell and powerdevil/power-profiles-daemon at
session start. The widget doesn’t resync once powerdevil becomes fully ready.

---

🛠️ System info:
- OS: Kubuntu 22.04 / 23.10
- KDE Plasma: [tu versión]
- Session: X11
- Login: domain user (via SSSD)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to