cosmic-applets icon indicating copy to clipboard operation
cosmic-applets copied to clipboard

Bug: Power applet is hidden when no battery is present, which is problematic for battery-less laptops

Open user10072023github opened this issue 6 months ago • 5 comments

Levi's summary:

If I have a laptop without a battery installed, the Power & Battery applet is hidden. This prevents me from accessing the keyboard and screen backlight brightness sliders, as well as the performance mode selector. Screenshots and 22.04 comparisons are in my comment a little ways down from here.


Original issue:

Describe the solution you'd like Hi cosmic team, thanks for the great work so far. Not implying any priority in the least but would greatly appreciate eventually a brightness adjustment slider being added to the power applet menu on the cosmic panel. I have a system76 laptop so those of us with laptops could eventually appreciate having the ability to adjust monitor brightness instead of fumbling for the keys in the dark (I use an external keyboard and really hate having to reach across my desk and touch my laptop's keys because then my keys are covered in skin oils and all that normal stuff. This is how it works at present on the now long-in-the-tooth Pop OS 22.04, I think likely because maybe GNOME DE team implemented it and Pop OS 22.04 only lightly edited the layout of GNOME or something like that. Thanks for considering.

user10072023github avatar Jun 12 '25 16:06 user10072023github

This should already be implemented: Image

Can you provide a screenshot of what your power applet menu looks like?

leviport avatar Jun 12 '25 16:06 leviport

Ok I attached a screenshot showing that the "Power and Battery Settings" applet is indeed enabled for the end segment of my cosmic panel, but does not appear on the cosmic panel up in the top-right. I think it might be due to my laptop not having my battery inside it because my laptop sits here on my desk 24/7. I don't even know where it is these days...somewhere really really buried in my closet I'll bet, so I apologize I can't test if that's the reason.

Maybe since this is indeed implemented as your screenshot shows, this is actually a bug where this cosmic applet won't show if it can't detect a battery. Again though, the brightness/power/etc settings show when I switch back over to Pop OS 22.04 even without the battery inserted. Hope the team can consider a different metric regarding when this "power and Battery settings" applet should show for folks if that is indeed what is going on...

Image

user10072023github avatar Jun 12 '25 17:06 user10072023github

Or another thought, maybe just those monitor and keyboard brightness settings could be moved to the "User Session" applet? It feels like it could fit in there nicely...

P.S. can't figure out how to change enhancement label to bug on here...maybe there isn't even a way.

user10072023github avatar Jun 12 '25 17:06 user10072023github

Alright, I see. I think the issue stems from the battery applet hiding when a battery is not present.

On a Lemur Pro (with battery connected), I see the power applet and everything inside its menu: Image

If I disconnect the battery on this Lemur, the applet disappears and makes me unable to access anything inside that menu: Image

Comparing this to Gnome on 22.04, the system menu has a battery section that is hidden when no battery is present, but the rest of the system menu remains usable. Since the brightness slider is in the system menu, but not in the battery section, it is still accessible when there is no battery. With battery: Image

Without battery: Image

I'm going to make some adjustments to this report and move it to the cosmic-applets repo. Thanks for bringing this to our attention!

leviport avatar Jun 12 '25 18:06 leviport

Really appreciate ya good sir and the rest of the team!

user10072023github avatar Jun 12 '25 20:06 user10072023github