tuxedocomputers / tuxedo-control-center

A tool to help you control performance, energy, fan and comfort settings on TUXEDO laptops.
GNU General Public License v3.0
486 stars 63 forks source link

Bug: Battery charging profile resets when updating any profile #381

Open Mi-La opened 2 months ago

Mi-La commented 2 months ago

TUXEDO Control Center 2.1.8, tuxedo-tomte & tuxedo-keyboard installed

Steps to reproduce

  1. Open TCC -> Settings -> Battery charging options -> Change the profile (e.g. set to Stationary use)
  2. Go to Profile -> Edit some custom profile (can be even unused) - e.g. just modify "Set brighteness on profile activation" -> Save changes
  3. Go to Settings -> Battery charging options -> The value is back on the previous value (if it was Full capacity, it's Full capacity again)

Expected behavior

The settings will remain the same as was set in step 1.

Workaround

Reboot after changing the charging profile (after step 1). Then the value becomes persistent.

Notes

After step 1, the following command reports the correct value.

$ cat /sys/devices/platform/tuxedo_keyboard/charging_profile/charging_profile`
stationary

After step 2 it reports the original value (e.g. high_capacity).