6.12.4 64bit Knl superseded

Moderator: Forum moderators

Post Reply
ozsouth
Posts: 1651
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 251 times
Been thanked: 744 times

6.12.4 64bit Knl superseded

Post by ozsouth »

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

Last edited by ozsouth on Sat Dec 21, 2024 3:21 am, edited 3 times in total.
TerryH
Posts: 676
Joined: Mon Jun 15, 2020 2:08 am
Has thanked: 169 times
Been thanked: 171 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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.

New Laptop - ASUS ZenBook Ryzen 7 5800H Vega 7 iGPU / 16 GB RAM

User avatar
Marv
Posts: 463
Joined: Fri Dec 20, 2019 3:09 am
Has thanked: 213 times
Been thanked: 127 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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

My pups: LxPupSc64 and Voidpup64 with LXDE ydrv and synaptics touchpad drivers, both using small savefiles for customizations. Ydrv based NoblePup64 and Fossapup64-small (both LXDE/PCManFM with no savefiles). No fdrvs throughout. :thumbup2:

TerryH
Posts: 676
Joined: Mon Jun 15, 2020 2:08 am
Has thanked: 169 times
Been thanked: 171 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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.

New Laptop - ASUS ZenBook Ryzen 7 5800H Vega 7 iGPU / 16 GB RAM

User avatar
Marv
Posts: 463
Joined: Fri Dec 20, 2019 3:09 am
Has thanked: 213 times
Been thanked: 127 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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.

My pups: LxPupSc64 and Voidpup64 with LXDE ydrv and synaptics touchpad drivers, both using small savefiles for customizations. Ydrv based NoblePup64 and Fossapup64-small (both LXDE/PCManFM with no savefiles). No fdrvs throughout. :thumbup2:

TerryH
Posts: 676
Joined: Mon Jun 15, 2020 2:08 am
Has thanked: 169 times
Been thanked: 171 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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.

New Laptop - ASUS ZenBook Ryzen 7 5800H Vega 7 iGPU / 16 GB RAM

TerryH
Posts: 676
Joined: Mon Jun 15, 2020 2:08 am
Has thanked: 169 times
Been thanked: 171 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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.

New Laptop - ASUS ZenBook Ryzen 7 5800H Vega 7 iGPU / 16 GB RAM

ozsouth
Posts: 1651
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 251 times
Been thanked: 744 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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.

TerryH
Posts: 676
Joined: Mon Jun 15, 2020 2:08 am
Has thanked: 169 times
Been thanked: 171 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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.

New Laptop - ASUS ZenBook Ryzen 7 5800H Vega 7 iGPU / 16 GB RAM

TerryH
Posts: 676
Joined: Mon Jun 15, 2020 2:08 am
Has thanked: 169 times
Been thanked: 171 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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.

New Laptop - ASUS ZenBook Ryzen 7 5800H Vega 7 iGPU / 16 GB RAM

ozsouth
Posts: 1651
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 251 times
Been thanked: 744 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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)

TerryH
Posts: 676
Joined: Mon Jun 15, 2020 2:08 am
Has thanked: 169 times
Been thanked: 171 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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.

New Laptop - ASUS ZenBook Ryzen 7 5800H Vega 7 iGPU / 16 GB RAM

ozsouth
Posts: 1651
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 251 times
Been thanked: 744 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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

TerryH
Posts: 676
Joined: Mon Jun 15, 2020 2:08 am
Has thanked: 169 times
Been thanked: 171 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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.

New Laptop - ASUS ZenBook Ryzen 7 5800H Vega 7 iGPU / 16 GB RAM

ozsouth
Posts: 1651
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 251 times
Been thanked: 744 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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.

TerryH
Posts: 676
Joined: Mon Jun 15, 2020 2:08 am
Has thanked: 169 times
Been thanked: 171 times

Re: 6.12.4 64bit Kernel USRMERGE Overlayfs-only

Post 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.

New Laptop - ASUS ZenBook Ryzen 7 5800H Vega 7 iGPU / 16 GB RAM

Post Reply

Return to “Kernels”