website icon indicating copy to clipboard operation
website copied to clipboard

laptop-power-management/

Open utterances-bot opened this issue 3 years ago • 26 comments

Laptop Power Management

Having Fun with Technology

https://christitus.com/laptop-power-management/

utterances-bot avatar Aug 26 '22 17:08 utterances-bot

The disabled turbo doesn't work on my Dell XPS 9300, 1065g7, tested on fedora 36 KDE. I'm thus also reaching 100C on cpu while stress test instantly.

Edit: It just resets after reboot, I'll fix this myself with cron or something

lekrsu avatar Aug 26 '22 17:08 lekrsu

Why don't you mention the thermald daemon? It is great for temperature control.

ehcatl avatar Aug 28 '22 23:08 ehcatl

Good video but Chris.... Isnt it possible in Linux to control battery thresholds Fedora??? My Asus Win10 I use Asus battery Health and set to charge arround 60% for more healthy battery when plugged in all day?

Can someone show or write what to do? Tried linux in the past many times but my privacy concerns for windows now and the furture are now so big I´m switching to Linux for good.

NebulLLA avatar Aug 30 '22 07:08 NebulLLA

Why don't you mention the thermald daemon? It is great for temperature control.

I missed it! lol, but definitely will talk about it in the future.

Good video but Chris.... Isnt it possible in Linux to control battery thresholds Fedora??? My Asus Win10 I use Asus battery Health and set to charge arround 60% for more healthy battery when plugged in all day?

Can someone show or write what to do? Tried linux in the past many times but my privacy concerns for windows now and the furture are now so big I´m switching to Linux for good.

I'll see if I can't find a project that does this, my laptop has a bios setting called adaptive battery that discharges it to 50% when plugged in and charges it up after a period of time.

ChrisTitusTech avatar Aug 30 '22 13:08 ChrisTitusTech

Thanks..... I will look to see if I got these settings in BOIS as well

NebulLLA avatar Aug 31 '22 06:08 NebulLLA

" I'll see if I can't find a project that does this, my laptop has a bios setting called adaptive battery that discharges it to 50% when plugged in and charges it up after a period of time. "

No rush and take you time. If you find anything you could make a new video for Youtube for more views and it will help many people as well but you decide ofc

Cant edit my post.. Sorry for SPAM

NebulLLA avatar Aug 31 '22 06:08 NebulLLA

So I have been playing around with auto-cpufreq and its very simple to setup and use. https://github.com/AdnanHodzic/auto-cpufreq

bers817 avatar Sep 17 '22 22:09 bers817

I'm getting this error when I try to turn off cores... and I'm running with sudo, so not sure what the probem is... any suggestions?

bash: /sys/devices/system/cpu/cpu2/online: Permission denied

sallymanda avatar Sep 20 '22 08:09 sallymanda

I'm getting this error when I try to turn off cores... and I'm running with sudo, so not sure what the probem is... any suggestions?

bash: /sys/devices/system/cpu/cpu2/online: Permission denied

This typically just needs to be run again. Sometimes I get this and re-running it does the trick.

ChrisTitusTech avatar Sep 20 '22 13:09 ChrisTitusTech

I tried again a number of times and it only worked when I switched to su with the sudo su command...

sallymanda avatar Sep 22 '22 03:09 sallymanda

According to man nproc, just nproc prints the number of processing units available to the current process, which may be less than the number of online processors. That behavior may lead to leaving more active processors than expected.

Also, each pass of the for loop used for disabling processors, nproc will print less active CPUs.

An alternative may be to use nproc --all instead.

jomarinb avatar Sep 30 '22 13:09 jomarinb

how about tlp in my opinion it's a very good program to extend battery life and the default settings are pretty well optimized to extend battery life and with tlp ui it's also quite user friendly

MarekChyra avatar Oct 14 '22 13:10 MarekChyra

how about tlp in my opinion it's a very good program to extend battery life and the default settings are pretty well optimized to extend battery life and with tlp ui it's also quite user friendly

Yeah I just discovered that, it looks promising.

sallymanda avatar Oct 17 '22 01:10 sallymanda

I also found this, but haven't tried it yet: https://github.com/pop-os/system76-power

sallymanda avatar Oct 18 '22 06:10 sallymanda

A question on a different line. In windows laptops after disabling GPU(Ex. Nvidia MX150) in device manager, will it still draw little power ? If so can we stop it?

Mananbh98 avatar Oct 21 '22 18:10 Mananbh98

Windows has no way to officially shut off the nvidia card... hell in Linux it pretty much requires a reboot. So, I prefer the windows method, but it does suck an extra 5W or so in standby mode.

A question on a different line. In windows laptops after disabling GPU(Ex. Nvidia MX150) in device manager, will it still draw little power ? If so can we stop it?

ChrisTitusTech avatar Oct 22 '22 05:10 ChrisTitusTech

A question on a different line. In windows laptops after disabling GPU(Ex. Nvidia MX150) in device manager, will it still draw little power ? If so can we stop it?

You can do it in linux. I'd recommend switching to linux, I switched over from Windows about 6 months ago, and it was totally worth it.

sallymanda avatar Oct 22 '22 07:10 sallymanda

How to revert back changes like Setting Min/Max Power to default and turn on all cpu cores to default

N30Z3N avatar Nov 20 '22 11:11 N30Z3N

What Im missing is disabling turbo boost. The setting is gone in the Legacy Bios(I have UEFI) and the power management. BUt thx Chris, with new thermal paste the laptop isnt goin nuts but the CPU still goes above 2.4Ghz.

BurhanBudak avatar Nov 29 '22 13:11 BurhanBudak

I recently watched your video on auto-cpufreq and started using it and removed tlp. Now I saw this. Please which suggest which is better, cpufreq vs cpupower? I dont do gaming. Mostly casual tasks and maybe 4k movies on weekends. I'm on laptop btw.

cranky-pythonista avatar Dec 22 '22 15:12 cranky-pythonista

Good video but Chris.... Isnt it possible in Linux to control battery thresholds Fedora??? My Asus Win10 I use Asus battery Health and set to charge arround 60% for more healthy battery when plugged in all day?

Can someone show or write what to do? Tried linux in the past many times but my privacy concerns for windows now and the furture are now so big I´m switching to Linux for good.

Check BAT out. It's a battery charge threshold command line tool. Supposed to replace the Windows ASUS utility and works by setting a value of either 60% or 80%

https://github.com/tshakalekholoane/bat

JimBeam5 avatar Jan 07 '23 18:01 JimBeam5

UPDATE

Fedora is now installed as my main system (tried linux severial times in the past) but I'm a real noob. In my search for more tweaks and exstention to Fedora I found Battery Health Charging extention.

It works perfect...

https://github.com/maniacx/Battery-Health-Charging

Screenshot from 2023-04-15 08-39-23

NebulLLA avatar Apr 15 '23 06:04 NebulLLA

Good video but Chris.... Isnt it possible in Linux to control battery thresholds Fedora??? My Asus Win10 I use Asus battery Health and set to charge arround 60% for more healthy battery when plugged in all day? Can someone show or write what to do? Tried linux in the past many times but my privacy concerns for windows now and the furture are now so big I´m switching to Linux for good.

Check BAT out. It's a battery charge threshold command line tool. Supposed to replace the Windows ASUS utility and works by setting a value of either 60% or 80%

https://github.com/tshakalekholoane/bat

Just saw your answer. Haven't tried it yet but will do that.

Thanks!

NebulLLA avatar Apr 15 '23 06:04 NebulLLA

so to limit charge to only 60 percent there is wiget tool in debian 12 with kde plasma it has graphical interface to do that @NebuLLA

sachinchaudhary1808 avatar Sep 05 '23 09:09 sachinchaudhary1808

My processor is 13500HX i just want 2 of the efficiency cores for when i use my laptop unplugged but the core0 is a performance core, cant shut that down any workaround?

thombre1 avatar Jun 22 '24 12:06 thombre1

My processor is 13500HX i just want 2 of the efficiency cores for when i use my laptop unplugged but the core0 is a performance core, cant shut that down any workaround?

I would say just use something like powerprofilectl don't go disabling things that will be always a hadech

sachinchaudhary1808 avatar Jun 22 '24 13:06 sachinchaudhary1808