ChrisTitusTech / website

My HUGO Website that I use for Videos, Blogs, and Redirects
75 stars 44 forks source link

laptop-power-management/ #36

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Laptop Power Management

Having Fun with Technology

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

lekrsu commented 1 year ago

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

ehcatl commented 1 year ago

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

NebulLLA commented 1 year ago

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.

ChrisTitusTech commented 1 year ago

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.

NebulLLA commented 1 year ago

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

NebulLLA commented 1 year ago

" 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

bers817 commented 1 year ago

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

5p4r74cu5 commented 1 year ago

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

ChrisTitusTech commented 1 year ago

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.

5p4r74cu5 commented 1 year ago

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

jomarinb commented 1 year ago

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.

MarekChyra commented 1 year ago

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

5p4r74cu5 commented 1 year ago

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.

5p4r74cu5 commented 1 year ago

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

Mananbh98 commented 1 year ago

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 commented 1 year ago

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?

5p4r74cu5 commented 1 year ago

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.

N30Z3N commented 1 year ago

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

BurhanBudak commented 1 year ago

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.

cranky-pythonista commented 1 year ago

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.

JimBeam5 commented 1 year ago

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

NebulLLA commented 1 year ago

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 commented 1 year ago

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!

sachinchaudhary1808 commented 9 months ago

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

thombre1 commented 6 days ago

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?

sachinchaudhary1808 commented 6 days ago

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