Linux Power Management & Monitoring with TLP & Powertop
Вставка
- Опубліковано 12 чер 2024
- How to install, configure and use TLP in Linux to help extend your battery life. I also go over how to view your consumption, and do a bit of monitoring in Powertop.
Commands used in the video:
Check for running tlp : sudo systemctl status tlp
System info : sudo tlp-stat -s
PCI info : sudo tlp-pcilist
USB info : sudo tlp-usblist
Show config : : sudo tlp-stat -c
Show everything : sudo tlp-stat
Show thermal info : sudo tlp-stat -t
Show processor info : sudo tlp-stat -p
Show battery info : sudo tlp-stat -b
Show refreshing battery info : watch sudo tlp-stat -b
My Patreon : / doriandotslash
Music by MrGamer (@AndreasRohdin): / gamermachine - Наука та технологія
Great video as always, for us Linux noobs it's so damn useful!
Thanks! Just hoping it helps 😁
I have been ages waiting (to know about) for a solution of efficient power consumption for Linux laptops. I have already enabled TLP in one of my laptops and like very much how it works. Thanks for the very good video.
I think this has gotten a lot better. I notice almost nothing different on default settings, except that the battery lasts way longer.
Thank you, this video and TLP helped me to solve all my energy management problems on Ubuntu 20.04.
Great video. I was about to use powertop's tunables to see what is going on if I tweak.
Thank you! Yes I find tlp alone does a great job. The only issue is sometimes the sound popping which I mentioned in the video along with how to fix it. Thanks for the comment 🙂
Thx man for the tutorial 👍
Thanks for the video, this was really useful and easy to follow. Btw I was wondering if updating the distro or system would in anyway cause tlp to disable itself and not run automatically on boot? Obviously its checkable, but it could be easy diagnostic to forget after an update.
Thank you, that was helpful 👍
You're welcome :)
using TLPUI it help, great video thanks for the tip.
Glad it helped!
Awesome!
Still relevant, nice job.
Thank you!
Did you return to KDE? If so, why did you leave Gnome?
Anyways, thats a nice video, that should go in the library of any linux user
No I've been with Gnome for a few weeks now. I haven't really bothered trying KDE anymore because I can't get rid of the flickering in recordings. Thanks for the compliment :)
Nice and usefull vídeo. Give you my thanks.
Glad it was helpful!
Nice video!
Thank you :)
Noice !! Very very helpful .. Thanks
Thanks! 👍
really helpful
Going to have to install this on laptop
It DOES make a difference! And it's really easy to setup (Just install it!)
@@Doriandotslash How much difference do you see?
Another great video.
You should do a video on managing the OS. Windows has a task/resource manager and such but the closest thing linux has to that is the default top command. But that doesn't show GPU, network or disc usage really. I would love to see a video on those that topic as well. Probably add a conky video on top of it as well.
Thanks for the compliment, and the great suggestion! I'll see about throwing something informative together for some good resource info :)
Hi Dorian./
Thank you for your informative video. I was the 13th person to give it a thumbs up, hope that's not unlucky. As I live 'off grid', power consumption is a vital issue for me, hence I use my Chromebook - a lot!
Would it be possible to put the commands for tlp in your comments section immediately below the video and yes I am being lazy B-)
Further to this, do you think swapping my lap-top hard drive for an SSD would noticeably change the laptop power consumption?
Thanks again.
Hey Bill! Yes I've posted the commands in the description :)
As for the SSD, it can be unnoticeable depending on how much your system uses the HDD. SDD's actually use more power than HDD, but for a shorter amount of time and go to a much lower consumption rate much faster than mechanical drives. I will always recommend SSD's to anyone, although they are quite a big pricier per GB. Thanks for the comment and the thumbs up!
Thanks for posting the commands, I will see if tlp ekes out the battery time on my poor old Acer laptop.
I would never have guessed that SSD's consume more power than spinning disks, I obviously need to do more research. However the read/write speed improvement (even though connected via an old SATA port) would seem to justify the expense, or at least that is what I will tell my wife! B-)
Let me know if you see an improvement, I’d be interested in knowing. As for the SSD’s, again it depends on usage. If you’re spending lots of time reading articles or using a word editor or something, then you’ll save battery for sure because the SSD will be idle and in low-power mode. But if you’re active and using the hard drive a lot, then it will consume a bit more power.
Hi Dorian, it turns out that LPM is installed by default on MX17.1. I consulted the/an(?) LPM web site and it seems the config file is the default, so no quick and easy answers there! As I keep off my laptop due to its battery life I only play with LPM when updating the OS. I will keep on tinkering and let you know if I improve anything via LPM.
Thanks!
I have noticed ubuntu somehow capable to manage battery consumption using tlp way better then arch or pure debian stable. No mater what I did powertop on ubuntu reads 3.5 Watt consumption and other distros 7 Watt. Very notable difference and hotter and poor battery life. Might be kernel or some other options require to play with. Anyone has an idea ?
great vid thanks
Thank you :)
can anyone tell me how much extra time we can buy using TLP or Power Top separately, which on which one Is better by the way ?
Can I disable everything and only use TLP to get my battery to stop charging at a certain percentage?
Ho ubuntu 22.04 mi vede la rete wifi e poi sul sito mi dice off line.
Può dipendere
da power management on
??
Grazie
thanks for the helpful video
do you know if tlp works well with amd ryzen processors ?
I haven't tried it
Anything on core management? I want to turn on or off cores and/or change their priority. Haven't been able to figure it out on my own. I NEED more good videos like this one. Thanks!
Thanks Donald. I've never looked into that but I'm sure it's quite possible. But do you mind me asking why you would want to do this? Just curious as to the application of such a thing.
Do you recommend in addition install TLP-rdw? 🤷♀️
before TLP, battery remaining = 3hrs 55min, after install and reboot = 9hrs 29 min! no reduction in performance but maybe because I just do word processing, spreadsheets, and internet. thank you!
Wow
Please do you mind sharing your Laptop model ?
Hi, because of u i switched from linux mint xfce to manjaro gnome . Im a mobile app and game developer so I need my nvidia card to run smoothly . every thing looks ok except i cannot find how to install the nvidia temperature applet !
Glad to know it works well! For the indicator, go to extensions.gnome.org and search “Nvidia GPU temperature indicator” and activate it. If you’ve never used Gnome extensions before, watch my video on the explanation here ua-cam.com/video/FA8sLNFIYhE/v-deo.html
If you have any questions, let me know! Thanks 😎
scaling governor is alwasys showing performance. I'm using the instel_pstate scaling_driver. Anyone knows how to solve that problem?
Is there any way to monitor the power usage of single processes?
My m.2 NVMe freezes the computer whenever making any setting changes. What are the optimum TLP power management settings for SSDs?
NVMe drives are sensitive to low voltage. I know there were issues because of this if you tried to use certain drives in a Pinebook Pro because it doesn’t provide enough voltage.
How to configure the fan speed not available?
What theme did you use in that video?
How to write a script to start powertop during startup?
My battery capacity is decreasing fast? Any idea why is it so?
I noticed that most users are using tlp to improve the performance of the laptop when there is no power and users are on battery. The question I have is whether tlp can be adjusted to trick the system the laptop is unplugged but it is not. The reason is because my laptop runs off my solar batteries. I can monitor my solar batteries thru software and wish to software manage the power usage on my laptop without having to plug/unplug the cord.
Good question. I’ve never had to tweak it, but you could always ask the developers.
Hello everyone, after using this command"
Check for running tlp : sudo systemctl status tlp" - tha's the response "● tlp.service
Loaded: masked (Reason: Unit tlp.service is masked.)
Active: inactive (dead)" HELP
First at all I would like to know if this tool TLP it going to slow down my laptop ?
No. It is a very simple package that runs small simple background tasks. Even on the slowest computer with the least amount of RAM, you wouldn't notice a difference with it running.
@@Doriandotslash he meant cpu throttling by the program
But I don't want to save battery, I want to use my processor at higher power, what can I do?
You can uninstall tlp if you want to.
Hi Dorian, I clicked this video since I am facing issues with my laptop battery. I ran watch sudo tlp-stat -b and saw my capacity is at 7.5% . My battery is just 2 years old (so is my laptop). Should I consider replacing or something else can be done?
Hi. Well, it is possible that the software is incorrect. 7.5% seems very low, and at that rate, it would only be lasting you less than 30 minutes. If that's the case then yes, replace it. But if you still get a good amount of time on battery, then it should be fine.
@@Doriandotslash yes u right. It lasts around 35mins at max. I considered replacing
Sounds like needing recalibration
my idle power consumption is around 10000 mw, how can i find out what is consuming so much power and make changes, any help would be appreciated
Powertop should list what’s using power.
@@Doriandotslash yes it was mostly the GTX graphics on my system. Installed recommended graphics and turned off GTX ... It's much better now ... Thanks for your time
came here looking to find out how much power my desktop is using and once again only found laptop battery info
What if i just installed manjaro gnome, and battery maximum capacity it's 76%? how do i fix that?
If the battery only charges to 76%, you may want to replace the battery or the charging adapter.
@@Doriandotslash What if i tell u , i switch to my mac os ssd just to be sure about battery life and in mac os shows me 100% of baterry when manjaro only detect 76% as maximum?
hi dorian i need help
at 2:48 i am not able to pci list
its showing only tlp-rdw tlp-stat
can you help me?
Did you install tlp? What distro are you using?
@@Doriandotslash i installed tlp and iam using pop os on hp omen 15 laptop bro
That’s odd. Pop must have a different package that doesn’t include it.
Can you please tell me your laptop configuration ...
It's an MSI GP72, i7-6700HQ with 16GB of RAM and Nvidia GTX960M.
@@Doriandotslash damn! I got an MSI GE62 2QD Apache Pro with same specs and under Windows I get more than 2hs but with xubuntu I get 1h and 30m or less... Im gonna try now with tlp!
Let me know how it works out! Also, you need to have Optimus drivers installed properly if you have Hybrid graphics, otherwise your Nvidia GPU will be always on and kill your battery fast.
Does this impact performance?
Not at all. When the CPU is required for tasks, it still runs at full power.
17 hours battery! which laptop u having dude!
Haha, it's a 17" MSI GP72 Leopard Pro. The battery does last a very long time if I'm just editing documents, but not 17 hours heheh
Found TLPUI github.com/d4nj1/TLPUI For those who prefer GUI over terminal.
Ooo nice! I’ll have to check that out, thanks!
how you installed photoshop in linux
With PlayOnLinux
@@Doriandotslash that's awesome
does it completely works same as it works in windows
I mean without any lags or something
bash: systemctrl: command not found.
so i failed in the first minute ...
everything as always.
“systemctl”
No R
@@Doriandotslash LOL dude...no wonder that nothing works when iam wiritng wrong stuff into console :D "ctrl" just makes so much sense^
I use manjaro as well but I don't have the "/etc/default/tlp" file, but I have "/etc/tlp.conf" file, and the man page has this
/etc/tlp.conf
System-wide user configuration file, uncomment parameters here to override default settings and customization files below.
/etc/default/tlp
Obsolete system-wide configuration file. DO NOT USE this file, it is evaluated only when /etc/tlp.conf is non-existent.
but the "tlp.conf" is completely commented and is about 500 lines, so should I just uncomment everything or only the things which you suggest?
Night Fury This video was from 2 years ago so I would follow what the man pages say since things likely changed
@@Doriandotslash okay
install tlpui...
install TLPUI for a GUI. no need to learn these sommands
Definitely an option, but in 99% of cases, all you have to do is install it and use the default settings.
GUI uses battery always has. That is why half you call us geeks. Test power consumption of Ubuntu versus Manjaro openbox watch resources to load and run system go down. All the Graphical user interface with fancy icons eats up battery.
I fuckiing hate linux for shit like this everything is 20 fucking steps to do something simple
You're obviously not the target audience
@@jonathancormack Who is?
** unfortunatly the last updated comment is not working / stable....
plz refer to this video
to limit the battery charging limit
ua-cam.com/video/VxIKFf8I1kg/v-deo.html
and to fix the battery issue you have to
shut down >> unplug the charger>> remove the battery >> hold down power button for 10 -15 sec >> replug the batt >> boot into ubuntu > plug the charger.
-----------------------------
Is is a very good option to half charge the battery for Max life span
BAT1/charge_full > 8:25
Thank you I have been looking for this.
Still I am unsure why my charger is not being detected, though the battery charges (light indicators)
(its a bug in Upower, power management in ubuntu).
*update - newer ver has start and stop charging thresholds.
use command -------
sudo nano /sys/class/power_supply/BAT0/charge_control_end_threshold
change the value in the text editor >>>> press (ctrl+o) to save >>> press (ctrl+x) to exit text editor
use command -----------(to varify)
sudo tlp-stat -b