lxqt / lxqt-powermanagement

Power management module for LXQt
https://lxqt.github.io
GNU Lesser General Public License v2.1
26 stars 31 forks source link

Smarter power management without battery #261

Open tsujan opened 3 years ago

tsujan commented 3 years ago
  1. Battery idle time and backlight change on battery discharge are enabled without battery.
  2. There's no way to have a tray icon without battery. The tray icon is (or will be) useful for pausing idleness checks. It can also show that the power management exits.
  3. Does LXQt Power Management react to the removal or adding of battery?
tsujan commented 3 years ago

This needs a lot of work:

I might start to work on it after https://github.com/lxqt/lxqt-powermanagement/pull/260 is merged.

stefonarch commented 3 years ago

I think we should take some time to have a good approach. I was thinking about an "Laptop" section, where Lid and Battery monitor would go. It could even non be visible when there is no lid and no battery. Just an idea this.

tsujan commented 3 years ago

I think we should take some time to have a good approach.

The changes to the main code weren't as complex as I thought at first but I agree that we should find the best design in the settings code. That will require a discussion; it'll take time.

stefonarch commented 3 years ago

I just tested, removing battery when laptop is plugged in AC doesn't trigger anything, reinserting it either, restart session does disable battery monitor, restart powermanager probably too.