So after updating I noticed that gnome’s preserve battery health is missing and also checked tlp-stat -b and got this output (note that battery threshold in both gnome settings and tlp was working perfectly for years so the hardware is supported)
Really appreciate if you can help me fix this issue.
EDIT: Looks like its a problem with the kernel version 7.1.3 and a reported bug here.
I use an Asus Vivobook S15 (M3502) which is much older than the laptop which the bug has been reported for but I suspect many asus laptops are affected.
EDIT2: It was actually a upower problem and updating it to version 1.91.3 fixed everything.
--- TLP 1.10.1 --------------------------------------------
+++ Battery Care
Plugin: asus
Supported features: none available
Driver usage:
* natacpi (asus_wmi) = inactive (laptop not supported)
+++ Battery Status: BAT0
/sys/class/power_supply/BAT0/manufacturer = OEM
/sys/class/power_supply/BAT0/model_name = K340258
/sys/class/power_supply/BAT0/cycle_count = 0 (or not supported)
/sys/class/power_supply/BAT0/charge_full_design = 5895 [mAh] ( 67669 mWh)
/sys/class/power_supply/BAT0/charge_full = 3681 [mAh] ( 42254 mWh)
/sys/class/power_supply/BAT0/charge_now = 2996 [mAh] ( 34391 mWh)
/sys/class/power_supply/BAT0/current_now = 870 [mA] ( 9987 mW)
/sys/class/power_supply/BAT0/status = Discharging
Charge = 81.4 [%]
Capacity = 62.4 [%]