Saving Power on a Linux Laptop
Вставка
- Опубліковано 26 чер 2024
- Stop using TLP, indicator-cpufreq, and powertop! This new package will blow your mind and SAVE POWER on ANY linux laptop!
Github Project: github.com/AdnanHodzic/auto-c... .
►► Digital Downloads ➜ www.cttstore.com
►► Reddit ➜ / christitustech
►► Titus Tech Talk ➜ / titustechtalk
►► Twitch ➜ / christitustech - Наука та технологія
This is what Linux UA-cam channels are best at. Thanks, Chris. Do these types of video more.
You got it 😉
@@ChrisTitusTech you owe me a laptop charger, this program makes cpu run above the Maximum frequency, and the laptop charger smoked and got damaged
@@marcg3923 XD XD XD
@@marcg3923😂😂😂 you should have bot installed TLP
So happy you covered this package. Adnan deserves the recognition for his work. Such a underrated and unknown gem.
@@AdnanHodzic I appreciate you!
@@AdnanHodzic 😲😲😲😲😲 wow
Thought you were going to install through snap. Don't scare me like that lmao.
😂
What's wrong with snaps?
@@EdwardSnowden125 Other people complains that its slow and forced updates. For me its the snap store being proprietary and being shoved by Canonical. In the end its Linux, do what the hell you want, you own your OS
edit : pretty sure Chris has a video about it
I love how its just in the aur
@@EdwardSnowden125 nothing, some people just have Windows PTSD
I was frustrated with my laptop for lack of battery life, followed your suggestion and man I am loving it, Thanks Chris 👍
Great video.
Would be also cool to see some kind of benchmark of battery and performance. With/without all those utillities.
Thanks!
It's been a while since I have had a laptop... until recently. You're a life saver, Chris. Running that on my 11.6 inch Asus with Kali. Thanks!
Thanks Chris for shining some light on this project. I will be trying this very soon on my old Dell ultralight which has a small battery.
Recently revived my 2013 laptop with Solus. Glad I found this guide to make the lappy act close to "latest". Thanks Chris.
Ever since I started using this yesterday, I've gotten MUCH more battery life than before
Thanks Chris!
how much extra hours did you get?
Don't need power saving when your battery is dead..
sure, you save money on your energy bill and can buy a new battery. :D
Oh, you still do in order to preserve your HWs life. No need to go full blast all the time - heat is a b*tch
Battery sounds like bloatware
Yeah, my laptop been running without a battery for months now 😅
Thank you, Chris. Huh. I've never had any problem on refurbished Thinkpads and so on. I'll look into this.
New to me, just finished install and working like a charm ...Thanx Chris :)
Awesome!. Thank you Chris!
I hope I'll have a chance to test it soon. Thanks for this showcase.
Before to install auto-cpufreq my cpu usage it was always at over 50% when i was watching youtube, but now is around 10-14% that's amazing. Also the battery life improved 2x.
My motivation to switch to arch has grown even further after reading your comment❤
i am thinking of installing Mint.
currently my windows OS gives me around 5-6 hours of SOT , will using this AutoFreq and Mint give me equivalent or better battery life with same performance ?
@@Shubhampalzyit switched from power saving to performance depending what you're doing, so you'll get equivalent performance for less power usage
A great video Chris, I miss when you made helpful videos like this, please keep them coming!
Awesome video chris, been using auto-cpufreq for a while, but recently came across power-profiles-daemon. It's a similar project that tries to use the D-Bus to set power-profiles to save power.
what about C-States on Linux? do these work on linux side of things? because my idle temps on linux never go below 41 C degrees, while they drop to 34 C on Windows
gr8 tip, Chris! Using it on laptop from now on... !
Keep things like this coming ;)
"it works with tlp" means turbo boost stays on when both tlp and autocpufreq is installed. Additionally tlp manages usb power and other things to increase battery life.
what about if tlp, autofreq and powertop is installed? 🤪🤪🤪
@@fuseteam I stopped using TLP. I Tested my machine with: TLP-powertop (powertop itself does nothing, what really worth is the tunnable tab), TLP-autocpu-freq and with auto-cpufreq-powertop. After the tests I decided to uninstall TLP, because I got the best battery and performance with just powertop-auto-cpufreq. What I really use to configure the powertop advices is "tuned-adm" which can be installed with the "tuned-utils" package. I created the powertop profile with one utility in that package and I configure the scripts with most of the "Tunnables" proposed by Powertop (I DON'T use all the advices, there are some of them that I detected provoke bad behaviors in my laptop, for example, I was having issues with the "tuned" bluetooth because after suspending my machine I was not able to connect anything (so I removed that part of the powertop script).
@@orrotico1177 oh interesting find, thanks for sharing
@@burhanbudak6041 I tested it too, however, Slimbook battery is based in TLP. It was like another UI for TLP. At this moment, I am just using just the scripts generated with powertop, and some scripts I created to get the cpu in the lower freq possible and boost always disabled (of course, this when the laptop is ik battery mode). In my case, it is more important to keep the consumption as low as possible, over the performance. Auto-cpufreq is still installed in my machine, in case I need to enable it again in some specific moment.
i am thinking of installing Mint.
currently my windows OS gives me around 5-6 hours of SOT , will using this AutoFreq and Mint give me equivalent or better battery life with same performance ?
Fantastic! Thank you for sharing this - just what I've been looking for!
I am not sure I agree with what Chris is saying in this one.
I used autocpufreq on Arch with a relatively minimal hyprland install. I couldn't get my laptop under 8W idle.
Now I use TLP with nixos and hyprland, and I go down to 4W with usable brightness when idle.
Under small offline workload (i.e. taking notes with Marktext and a few Evince windows open), it draws 5-6W. My battery is old and only has 35-40Wh left out of the 59 it had, yet the laptop can handle 4-5h of low workload just fine.
For reference I have an i5-9300H
PS: for those who say this kind of technology is useless, I ain't sure about that, as out of the box after any install, the laptop usually draws 11-14W!
Wonderful utility! My charger/power brick was as warm as a lightbulb in my hands. Hoping for cooler temps! I've installed it and will evaluate over next few days.
do you still have to charge it often or did it 'multiply' your battery life
@@mart2942 It should multiply your battery life. It is hard for me to judge precisely as I use suspend mode a lot. I tend to work on my laptop a few minutes and then suspend power by closing the laptop lid. In my case, one charge lasts all day. However, I'm not a typical user. Since I use my laptop intermittently, and since I'm mostly using it to write things down, I find it annoying to be using all that power for no good reason. Hence my appreciation of this utility.
i am thinking of installing Mint.
currently my windows OS gives me around 5-6 hours of SOT , will using this AutoFreq and Mint give me equivalent or better battery life with same performance ?
Hard to say. There are settings you can tinker with such as having the screen fade after a few minutes when you step away from your computer. Hard to say if this helps in your situation as I don't know how continuously you use your computer. Might take more tinkering to get what you want --- if it is possible. Not like Windows where one setting takes care of it all.
Awesome video and package :). Thanks for sharing Chris!
This is amaaazing 🙂 !! This tool just completely change my battery life with Linux. This tool must be shared all over the Linux community. The power save is a huge constraint for users when they consider to switch to Linux on a laptop. Thank you so much for this video. TLP does nothing compared to this tool....
I actually used to just undervolt my cpu and gpu using tuxclocker and amd-clocks and boy did it help power consumption noise but more importantly battery life went from around 3-3.5hrs to a full fat 8hrs while web browsing and lightly threaded work and from 2 hrs to about 4hrs when under full load and this is without losing a drop of performance.....I'll definitely check this out thank you Chris for this (all of the testing was done on my asus dash 15)
did you do that with what CPU models exactly? intel? ryzen? APU? mine is 3500U...
can you share what commands did you use to achieve that?
@@FeelingShred Yeah I'm curious about this. Undervolting my AMD cpu seems tedious and has many dependencies.
@@finnk1289 yeah, you can notice how these linux guys are so "compassionate" and how they love the "open source" mentality only when it benefits them
@@finnk1289 2 months gone by and the guy disappears, it's not willing to share what commands he used to achieve the results
Good to know. Laptops still have challenges due to having screen backlights and touchpads. When a manufacturer (like Synaptics) does not play ball with the Linux Kernel developers, user experience can really suffer.
Hey Chris, could you revisit this topic just as a sanity check and perhaps focus on VM / LXC / Docker use so as to reduce host system and server demand? Seems like this could be really useful to further improve performance/energy pull for such scenarios.
Thanks Chris, gonna install that on my Garuda install
This is why I like this guy , he gives ways you can't find easily
Great Tip! Saw You posted on Graham Stephan's Channel. I come here for the Tech tips here and there for the finance. I appreciate the help Chris. Glad you didn't install with a snap lol You did a great job at explaining, as does the git hub page for the project. Do you still run Graphene OS on one of your phones? All the best!
It's great. So much helpful. One more thing which terminal are you(he) using???
Ehi, Chris, nice video!
The only downside of auto-cpufreq is that it slows down a little bit everything, even on performance mode. But it's normal for what it does. It'd be great if he add some toggle to completely disable it, maybe through a systray icon or some nice shortcut
The power was one of the main issues I noticed moving to linux, thanks for find the solution and share it with us .. nowadays everthing is moving towards the "on the go" life style, so this is a great step towards that, again thank you so much 😄
I'm using a mobile web browser instead of the youtube app so I cant correct the typo mistakes, so excuse me in that 😜
i am thinking of installing Mint.
currently my windows OS gives me around 5-6 hours of SOT , will using this AutoFreq and Mint give me equivalent or better battery life with same performance ?
@@Shubhampalzy what can I say! I'm facing problems installing the app, earlier I did not have this problem but now I don't know how to resolve it ... I'm using Debian. So instead now I'm using tlp, I still need time to get a real sense of how long the batteries last but honestly it feels forever 😄
Thanks, it was a nice piece of info. Hey Chris, can you do a video on steam os?
much needed video. Thanks a lot
Got it going, thank you CHris
Thank you Chris👍🏾. I noticed that linux is power when I was no longer working from home.
YOU ARE A LIFE SAVER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This is so relevant
Been waiting a long time
Thank you very much for the video. Also, what do you think about Red Hat's "TuneD" service? I've noticed that it consumes a relevant amount of RAM, and I wonder if it is worth the use of it.
I've used this in the past. Just a heads up: TLP does NOT disable turbo boost unless you specify it in the config file.
I install tlp on all my machines to better control the max/minimum frequencies. You should read the config file from top to bottom, i never heard about TLP sucking because it turns off turbo boost
isn't it dangerous locking up AMD Ryzen chips into the lowest possible frequency? I think I read something about that somewhere, memory is fuzzy
turbo boost is disabled by default on battery mode.
just great video sir you are my favorite UA-camr and I feel you have thought me a lot. I have a dual boot of Manjaro and Windows 10 and I just prefer using Linux for any work, Just love it
Hi Chris, love what your doing and love my beastly gaming pc but its no good for music production so I use a Mac for this job. Any chance you can do a debloat video for Mac, I hate the dock and it would be great to have the trash in the menubar.
This literally improved my battery life by nearly 50%. I'm so happy, definitely subscribing for more content!
can you tell me how many hours of battery life you would get before using this tool and how many hours of battery life you get now and also how many hours of battery life were you able to get while using windows cuz i'm planning to switch from windows to ubuntu
on my laptop
please reply to the above comment mate.
i have the same doubts
@@p21072 For my particular Dell XPS 13Plus I was able to add around 2+ hours to my already 7+ hours on Windows.
This video was the need of the hour.
I use Linux and I was looking for this video.
thanks.
i am thinking of installing Mint.
currently my windows OS gives me around 5-6 hours of SOT , will using this AutoFreq and Mint give me equivalent or better battery life with same performance ?
I have learnt more from your videos. Thank you!
I was completely frustrated from sometime due to the power consumption of linux and I gave up my hopes. Then this video dropped. Thy Saviour. Thank you
And did the battery standby improve after using this? I feel like it doesn't help much.
Thanks Chris! for the tip
Thank You for this awesome information.
Amazing!! It works perfectly fine, I have used the installation script with Fedora 35
Thanks Chris, that's a fantastic hint.
Donated to the developer - everyone should do who is using it.
Thanks for the informative video.
Thank you for this Chris as my laptop can only run for 3 hours on battery with Linux Mint! So I will give this a try. :)
update on the subject? did it work?
my Ryzen laptop idles at 41 C degrees on Linux but it goes down to 34 C degrees on Windows 10... something tells me that the cpu is not being able to rest properly on linux
@@FeelingShred im a little late but have u tried using vsync?
I ended up switching back to Windows 10 for a myriad of other reasons that Linux wasn't able to get their shit together... But anyway, battery life also sucks on Windows 10, I found the problem is with AMD chips in general, it's so curious to me their marketing team seems to focus on this "low power consumption" trend, but when you really notice it your battery rarely lasts more than 2 and a half hours... even my 2009 laptop achieved more battery life than this... AWFUL...
same reason why people have been avoiding the Steam Deck as well: AMD chips are DOGSHIT at battery life (despite of being Low Power) Something is wrong with their engineering
Thank you so much Chris ❤️❤️👍😊
Hi Chris, I have a question I would like to ask, does auto-cpufreq set which GPU to use depending on the power plan your computer is currently using?
…and here I thought I’d have to muddle my way through tlp. Thanks for this 👍
Thanks for posting this, will install on my Lenovo running Pop!_OS.
That video probably saved my laptop! Thanks Chris
did it work? what cpu model?
Looking for this , thanks
Thanks for the tip!
When I suggest linux os to any of my friends they just point out power management issues as the barrier to shift into linux but from now on I will suggest this video for them😎
Thanks alot man
Thanks for this useful video! :)
Thank you, thank you, thank you. I thought TLP was the only program that was saving power. This program is amazing.
E6410 max ram and processor (qm). Thank you! This works. I don't know why distros don't have this as an option. My big problem was the Heat just watching a UA-cam video on 720. I'm rediscovering just how well built the hardware is. I have bhodi Linux and it's been so much fun. Done with 11 and it's crap!
I have been using custom ACPID rules to change the scaling governor, but this seems much easier. Just install, enable and forget
Good and useful. Thanks.
if i had a penny for every time CT made a useful informative vid.
Thank you for the tip! Testing this package now on my Surface Pro 7 on Ubuntu :)
did it work? so few people come back here providing their reports
Thx for the video. Could have included the configuration over /etc/auto-cpufreq
Installation from AUR was a breeze. Fingers crossed. The included 'monitor' is a nice touch. Going to test with Battery Bench.
Since I'm using a laptop just for work, this tool along with TLP is working really great, I have my PC gamer and a PS5 for gaming puporses. So I don't care much about turbo boost. Thanks for sharing this Chris.
Installed Arch on an old HP probook for noob learning purposes. Def a must have pkg thanks for the great tip!
I switched to MATE from GNOME a few months ago and it increased the battery life dramatically
I am using xfce - no complaints too.
Interestingly I had this project starred on the hub for ages but never got around to it. I might test it on my recently liberated(from google skynet) chromebook to compare it with my current powertop and TLP setup :)
Love your channel, thank you soooooo much!!!!!
Thank you for this!
This is just great. Thank you Chris! My Asus Vivobook now lasts forever :D
I am using it for a while now. Works great!
Can you make a video about configuring UPS monitoring on Linux? Mainly, how to showdown the computer on power loss.
Thanks!
I bet there's loads of programs like that cause almost all data centers have UPSes and you can't shut off all servers at once
Hi, Chris, what do you think about new Fedora? Seems like it's a new trend)
Rocking Ubuntu 22.04LTS on my Lenovo ThinkPad T61 💪😎
Aww ye! Thanks for the tip sir. Will give it a spin on my pi4.
great video buddy
Wonderful! Just now I need to figure out how to use my Integrated GPU instead of the dedicated one to save more battery
For Ubuntu, Linux Mint and Pop OS, there is a dedicated tool that should already be installed. It's a simple right click on the icon and select which GPU to use. For all Arch based distro's (including Arch Linux) there is optimus-manager. This needs a bit of user configuration plus some trial and error, but once working you can switch between GPU's with a simple terminal command. There is also a GUI for optimus-manager, however I've never felt the need to install it.
This is from a Nvidia user's POV, I'm not sure if the same applies to AMD users
Since you intend to not use it then you can just disable it in your firmware settings.
This can be done with either through your boot interface or mashing the correct key on boot. BUT there's a sure option which is rather easy: 1. open up your terminal. 2. type "sudo systemctl reboot --firmware-setup.
Once you're in your UEFI firmware settings (or BIOS but probably UEFI these days.) go to the appropriate setting (changes between laptops so google yours) and simply change it to UMA graphics/Integrated graphics from probably either Discrete graphics/Switchable graphics.
Hope this helps
I wish they add an option on the welcome screen for this for newbies this would help a lot! maybe as an advanced optik for laptops?
This looks like the same type of governor toolset that the Android kernel uses. If not the same, then similar. I wouldn't be surprised if you could recompile it with several governors originally made for Android loaded into it. I'd run the OnDemand governor for running on battery, myself, but powersave works as well, locking down the frequencies even when there is a load that could use the power.
1 year late but isn't the android kernel just a slightly modified linux kernel 💀
what amazes me is that windows 11 is so bloated that my laptop has shorter battery lifetime on it than in debian without any of this packages
Is the daemon for systemd only, or does it also run on other init systems?
Thanks, computer Lars! (you look kind of like Lars Ulrich but less douchy). I have been running PopOs to get my 3 year old gaming laptop to work properly. It never worked right on Winblows. I learned how to use linux in cs classes several years ago but battery on laptops has always been a problem. I am having to use this slightly old gaming laptop as my computer for freelance web development until I earn enough to justify an ultrabook purchase. It's nice to get more than 15 minutes out of it now. Once again thanks.
thanks I had to deal with overheating issues for both windows and linux on my laptop and never thought about setting lower cpu frequency.
did it work? I'm having problems with this
@@FeelingShred Unfortunately didn't. It is some hardware problem with my laptop.
@@wr1805 Yeah, I just found out that the guy on the video was using an Intel CPU, which naturally have mechanisms for power saving. For AMD Ryzen CPU like mine, there's little hope. Can't have more than 3 and a half hours battery time on Linux. Haven't tested on Windows yet, but I notice the Ryzen cools down to lower temps on Windows, so there's a difference in how the chip is used.
What are you using to make your terminal show those tools at the bottom? Current directory, user, date, time…
Great video...! I have an optimus laptop (intel + nvidia), and I don't quite understand. If I choose, install only auto-cpufreq the turbo boost allways it be turn off, but when I want to play a game or render with kdenlive, the turbo boost will automatically turn on..?
Cheers for this.
is there a way to configure it so it would use even less cpu? or disable animations on battery ?
just tried it as I was watching your video, im impressed pretty good utility ill give it a spin for the week and see what happens! I'm on tumbleweed
Soo, what was your experience like?
@@kentamammadli8009 it definetly does not make window movement jittery and its exactly as it says it only adjusts based on what is happening on the pc. This utility does turn off turbo boost and downclocks but only when not required. battery life is great, is just as if i was using tlp tbh. soo yes this is good. I'm on opensuse tumbleweed.
Ok this one convinced me.... I am a new subscriber....
I've viewed a few of your videos from time to time....
I have an older Toshiba laptop.. I recently installed Linux Mint on it...
Put in the cellar ... set it up so that I could ssh to it... so far so good..
Went down there today and the fan is running full speed... plenty of
heat coming out of it... and it's not doing anything....I only plan
to use it as a simple web server, so I don't need a lot of CPU.
Installed auto-cpufreq... set the default in the config file for
power saver mode when plugged in... Just checked... fan on low speed now!!!
(My actual problem is probably more related to the battery... If the system
is trying to continually charge a near dead battery... that could add up to the
heat and high fan speed... so this is a nice work around..I'll still probably replace the
battery anyway.. )
Thanks very much... for a easy to understand and implement video...
i am thinking of installing Mint.
currently my windows OS gives me around 5-6 hours of SOT , will using this AutoFreq and Mint give me equivalent or better battery life with same performance ?
So, in short, the key is to use the auto cpu frequency package?
Is it possible to turn off some cpu cores like we can do with cell phone cpu's?
Would you recommend it for use on a work laptop? I would really benefit from such tool, but not if this comes with a price such as security vulnerabilities.
Last week I just changed the GPU to Intel HD from Nvidia because I don't need nvidia most of the time. And usage time increased by 50 percent.
Another problem that I just noticed on Linux a few weeks ago:
Seems like the system does not switch back after you unplug power cable out of the power outlet (AC Adapter, charger) After I unplug the cable and plug it back, I noticed my Ryzen APU seems to be locked down in "battery save" mode which results in a lot of stuttering on the desktop and internet browser for example
I would actually like to use a balanced power mode (like in Windows) on my Linux Desktop-PC, yes to save power in idle and low load. I wonder if I can somehow enforce that with this tool.
To some extent you can set it by using tlp alone.