Page 1 of 1

6.12.4 64bit Knl superseded

Posted: Tue Dec 10, 2024 5:38 am
by ozsouth

This is superseded by 6.11.10, which has a modified Debian config, solving issues discussed below.


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Tue Dec 10, 2024 2:53 pm
by TerryH

Thanks ozsouth for your continued work on providing alternate solutions. I'm just reporting a a use case I have which no longer works with some newer kernels. I mainly use my laptop. I generally run it plugged in. To help with battery life I limit the battery charging to 80%.

This is achieved by a simple echo command, usually automated in the startup procedure. The command is:
echo 80 > /sys/class/power_supply/BATT/charge_control_end_threshold. The issue is, in this and some other kernels, this file doesn't exist, so I am unable to restrict the battery charging. If this is just a kernel config issue, it may assist laptop users to extend their battery life.

Note: this method is how KDE restricts Battery charging under the Advanced Power Management.


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Tue Dec 10, 2024 3:16 pm
by Marv
TerryH wrote: Tue Dec 10, 2024 2:53 pm

Thanks ozsouth for your continued work on providing alternate solutions. I'm just reporting a a use case I have which no longer works with some newer kernels. I mainly use my laptop. I generally run it plugged in. To help with battery life I limit the battery charging to 80%.

This is achieved by a simple echo command, usually automated in the startup procedure. The command is:
echo 80 > /sys/class/power_supply/BATT/charge_control_end_threshold. The issue is, in this and some other kernels, this file doesn't exist, so I am unable to restrict the battery charging. If this is just a kernel config issue, it may assist laptop users to extend their battery life.

Note: this method is how KDE restricts Battery charging under the Advanced Power Management.

Interesting, I didn't know about this capability. On my Fujitsu S761 laptop running VoidPup64 V241201 with ozsouths 6.12.3 kernel (haven't tried .4 yet) the relevant file exists and is located at /sys/class/power_supply/CMB1/charge_control_end_threshold. I can echo 80 there and it does show up when checked. Just now ran the laptop below 80%, plugged in the charger and we'll see... Yes it does seem to limit at 80%. I'll have to do some background reading.

Thanks


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Tue Dec 10, 2024 4:20 pm
by TerryH
Marv wrote: Tue Dec 10, 2024 3:16 pm
TerryH wrote: Tue Dec 10, 2024 2:53 pm

Thanks ozsouth for your continued work on providing alternate solutions. I'm just reporting a a use case I have which no longer works with some newer kernels. I mainly use my laptop. I generally run it plugged in. To help with battery life I limit the battery charging to 80%.

This is achieved by a simple echo command, usually automated in the startup procedure. The command is:
echo 80 > /sys/class/power_supply/BATT/charge_control_end_threshold. The issue is, in this and some other kernels, this file doesn't exist, so I am unable to restrict the battery charging. If this is just a kernel config issue, it may assist laptop users to extend their battery life.

Note: this method is how KDE restricts Battery charging under the Advanced Power Management.

Interesting, I didn't know about this capability. On my Fujitsu S761 laptop running VoidPup64 V241201 with ozsouths 6.12.3 kernel (haven't tried .4 yet) the relevant file exists and is located at /sys/class/power_supply/CMB1/charge_control_end_threshold. I can echo 80 there and it does show up when checked. Just now ran the laptop below 80%, plugged in the charger and we'll see... Yes it does seem to limit at 80%. I'll have to do some background reading.

Thanks

From the different path you have shown here, the file may have just been moved. I'll have to swap the kernel back in and do a search to see if it has just moved.


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Tue Dec 10, 2024 4:35 pm
by Marv

It could differ on different hardware also. I just bounced into NoblePup64 V241124 running ozsouths 6.12.4 kernel, overlayfs, and the file path and function is as it was in my previous test in Voidpup64 with the 6.12.3 kernel. Same 2nd gen i5 Fujitsu laptop.


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Tue Dec 10, 2024 5:10 pm
by TerryH
Marv wrote: Tue Dec 10, 2024 4:35 pm

It could differ on different hardware also. I just bounced into NoblePup64 V241124 running ozsouths 6.12.4 kernel, overlayfs, and the file path and function is as it was in my previous test in Voidpup64 with the 6.12.3 kernel. Same 2nd gen i5 Fujitsu laptop.

Unfortunately../charge_control_end_threshold doesn't exist when using this kernel. I did a search using fsearch (removed /sys from exclude list). I also tried with pFind.


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Tue Dec 10, 2024 5:11 pm
by TerryH
Marv wrote: Tue Dec 10, 2024 4:35 pm

It could differ on different hardware also. I just bounced into NoblePup64 V241124 running ozsouths 6.12.4 kernel, overlayfs, and the file path and function is as it was in my previous test in Voidpup64 with the 6.12.3 kernel. Same 2nd gen i5 Fujitsu laptop.

Unfortunately../charge_control_end_threshold doesn't exist when using this 6.12.4 kernel. I did a search using fsearch (removed /sys from exclude list). I also tried with pFind. I have also encountered it not existing with some other kernels.


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Tue Dec 10, 2024 11:18 pm
by ozsouth

@TerryH - my laptops all seem to have /sys/class/power_supply/BAT0 (new one I got recently also has ADP0 = mains adaptor & has auto adaptive charging). Nothing under BAT0 allows me to set 80% directly. As this seems constant for my kernels, I wonder if it's elsewhere, or if there's a DOTconfig setting I could add. I'm a bit releuctant to play with that in case I cause damage.

LATER: I wonder if reading /sys/class/power_supply/BAT0/energy_full_design , multiplying that by 0.8 then
echo that to /sys/class/power_supply/BAT0/energy_full would work?
Again I'm reluctant to try & is DEFINITELY A DO AT OWN RISK thing.


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Wed Dec 11, 2024 12:00 am
by TerryH
ozsouth wrote: Tue Dec 10, 2024 11:18 pm

@TerryH - my laptops all seem to have /sys/class/power_supply/BAT0 (new one I got recently also has ADP0 = mains adaptor & has auto adaptive charging). Nothing under BAT0 allows me to set 80% directly. As this seems constant for my kernels, I wonder if it's elsewhere, or if there's a DOTconfig setting I could add. I'm a bit releuctant to play with that in case I cause damage.

LATER: I wonder if reading /sys/class/power_supply/BAT0/energy_full_design , multiplying that by 0.8 then
echo that to /sys/class/power_supply/BAT0/energy_full would work?
Again I'm reluctant to try & is DEFINITELY A DO AT OWN RISK thing.

Thanks for looking. It does appear to be kernel specific, but not a big issue. If I try a kernel and I can change the setting, I will keep it. If not I'll just revert to a kernel that meets my requirement.


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Wed Dec 11, 2024 12:01 am
by TerryH
ozsouth wrote: Tue Dec 10, 2024 11:18 pm

@TerryH - my laptops all seem to have /sys/class/power_supply/BAT0 (new one I got recently also has ADP0 = mains adaptor & has auto adaptive charging). Nothing under BAT0 allows me to set 80% directly. As this seems constant for my kernels, I wonder if it's elsewhere, or if there's a DOTconfig setting I could add. I'm a bit releuctant to play with that in case I cause damage.

LATER: I wonder if reading /sys/class/power_supply/BAT0/energy_full_design , multiplying that by 0.8 then
echo that to /sys/class/power_supply/BAT0/energy_full would work?
Again I'm reluctant to try & is DEFINITELY A DO AT OWN RISK thing.

Thanks for looking. It does appear to be kernel specific, but not a big issue. If I try a kernel and I can change the setting, I will keep it. If not I'll just revert to a kernel that meets my requirement.


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Wed Dec 11, 2024 12:42 am
by ozsouth

@TerryH - when next you find a kernel that does what you want, would you please send me the config?
(either in /boot or /proc)


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Wed Dec 11, 2024 1:37 am
by TerryH
ozsouth wrote: Wed Dec 11, 2024 12:42 am

@TerryH - when next you find a kernel that does what you want, would you please send me the config?
(either in /boot or /proc)

Since my earlier posts, I see that peebee has 5 days ago also included 6.12 in the kernel kit. I downloaded it and also the 6.6 usrmerge kernels. After testing both in bookwormpup64 the charge_control_end threshold is not included. I'm currently using the newly released bookwormpup64 10.0.9 with kernel 6.1.119. when running with this kernel does allow me to set the threshold limit.


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Wed Dec 11, 2024 2:12 am
by ozsouth

@TerryH I looked at the DOTconfigs. Many battery & charger entries - specific models. Although I have more enabled in 6.12.4 than 6.1.119 has, some are missing. Would you please post (if not in your 6.1.119 setup, in 6.12.4 or another kernel your desired file is NOT in) the result of:
cat /sys/class/power_supply/BAT*/model_name


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Wed Dec 11, 2024 2:51 am
by TerryH
ozsouth wrote: Wed Dec 11, 2024 2:12 am

@TerryH I looked at the DOTconfigs. Many battery & charger entries - specific models. Although I have more enabled in 6.12.4 than 6.1.119 has, some are missing. Would you please post (if not in your 6.1.119 setup, in 6.12.4 or another kernel your desired file is NOT in) the result of:
cat /sys/class/power_supply/BAT*/model_name

The model_name is UX425. I checked in the DOTconfigs for both your 6.12.2 and the 6.1.119 included in BWP 10.0.9, neither specifically include that string.


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Wed Dec 11, 2024 3:15 am
by ozsouth

@TerryH -aha! Needed module is asus_nb_wmi . 6.1.119 has it; I've never had it.
see: https://github.com/cforrester1988/asus-charge-control (for info - we don't need the app).
If you run (in 6.1.119): lsmod | grep asus
I'm pretty sure that module will be loaded. I've had difficulty getting that module to compile.
Check your pm's for a test kernel.


Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Posted: Wed Dec 11, 2024 3:55 pm
by TerryH
ozsouth wrote: Wed Dec 11, 2024 3:15 am

@TerryH -aha! Needed module is asus_nb_wmi . 6.1.119 has it; I've never had it.
see: https://github.com/cforrester1988/asus-charge-control (for info - we don't need the app).
If you run (in 6.1.119): lsmod | grep asus
I'm pretty sure that module will be loaded. I've had difficulty getting that module to compile.
Check your pm's for a test kernel.

Due to some excellent problem analysis and solving, the kernel issue I was having with some newer kernels has been solved. Thank you once again for your efforts to assist users.