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
  • Наука та технологія

КОМЕНТАРІ • 109

  • @Eimantasks
    @Eimantasks 5 років тому +42

    Great video as always, for us Linux noobs it's so damn useful!

  • @AlexNiebla
    @AlexNiebla 5 років тому

    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.

  • @xmaverickhunterkx
    @xmaverickhunterkx 2 роки тому +1

    I think this has gotten a lot better. I notice almost nothing different on default settings, except that the battery lasts way longer.

  • @TavoPlus
    @TavoPlus 2 роки тому

    Thank you, this video and TLP helped me to solve all my energy management problems on Ubuntu 20.04.

  • @cemcalskan994
    @cemcalskan994 5 років тому +3

    Great video. I was about to use powertop's tunables to see what is going on if I tweak.

    • @Doriandotslash
      @Doriandotslash  5 років тому +1

      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 🙂

  • @pavlospilakoutas
    @pavlospilakoutas 4 роки тому +1

    Thx man for the tutorial 👍

  • @Janus_Icon
    @Janus_Icon 4 роки тому +2

    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.

  • @hassantofaili8772
    @hassantofaili8772 5 років тому +3

    Thank you, that was helpful 👍

  • @Spiritualitydefined
    @Spiritualitydefined 4 роки тому

    using TLPUI it help, great video thanks for the tip.

  • @craigw4644
    @craigw4644 3 роки тому

    Still relevant, nice job.

  • @kelkun8628
    @kelkun8628 5 років тому +7

    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

    • @Doriandotslash
      @Doriandotslash  5 років тому +7

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

  • @jcbritobr
    @jcbritobr 3 роки тому

    Nice and usefull vídeo. Give you my thanks.

  • @ariaa8362
    @ariaa8362 5 років тому +1

    Nice video!

  • @shauryayamdagni
    @shauryayamdagni 3 роки тому

    Noice !! Very very helpful .. Thanks

  • @Naton
    @Naton 4 роки тому

    really helpful

  • @pw1187
    @pw1187 5 років тому +2

    Going to have to install this on laptop

    • @Doriandotslash
      @Doriandotslash  5 років тому +2

      It DOES make a difference! And it's really easy to setup (Just install it!)

    • @Johnvardas
      @Johnvardas 3 роки тому

      @@Doriandotslash How much difference do you see?

  • @jarilo8639
    @jarilo8639 5 років тому +3

    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.

    • @Doriandotslash
      @Doriandotslash  5 років тому +3

      Thanks for the compliment, and the great suggestion! I'll see about throwing something informative together for some good resource info :)

  • @billfawcett3691
    @billfawcett3691 5 років тому +5

    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.

    • @Doriandotslash
      @Doriandotslash  5 років тому +1

      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!

    • @billfawcett3691
      @billfawcett3691 5 років тому +1

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

    • @Doriandotslash
      @Doriandotslash  5 років тому +1

      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.

    • @billfawcett3691
      @billfawcett3691 5 років тому

      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.

  • @inteliconn995
    @inteliconn995 Рік тому

    Thanks!

  • @Robertass2000
    @Robertass2000 4 роки тому +2

    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 ?

  • @Ganguess75
    @Ganguess75 4 роки тому

    great vid thanks

  • @Primalkadias
    @Primalkadias 3 роки тому

    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 ?

  • @samdeur
    @samdeur 3 роки тому

    Can I disable everything and only use TLP to get my battery to stop charging at a certain percentage?

  • @domenico.freedom
    @domenico.freedom 6 місяців тому

    Ho ubuntu 22.04 mi vede la rete wifi e poi sul sito mi dice off line.
    Può dipendere
    da power management on
    ??
    Grazie

  • @flintstone5404
    @flintstone5404 4 роки тому

    thanks for the helpful video
    do you know if tlp works well with amd ryzen processors ?

  • @donporter8432
    @donporter8432 4 роки тому

    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!

    • @Doriandotslash
      @Doriandotslash  4 роки тому

      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.

  • @CesarPeron
    @CesarPeron 2 роки тому

    Do you recommend in addition install TLP-rdw? 🤷‍♀️

  • @ccwnoob4393
    @ccwnoob4393 2 роки тому +1

    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!

    • @sommmtoooo
      @sommmtoooo 9 місяців тому

      Wow
      Please do you mind sharing your Laptop model ?

  • @ahmedderbala5412
    @ahmedderbala5412 5 років тому +1

    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 !

    • @Doriandotslash
      @Doriandotslash  5 років тому

      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 😎

  • @elucelom
    @elucelom 3 роки тому

    scaling governor is alwasys showing performance. I'm using the instel_pstate scaling_driver. Anyone knows how to solve that problem?

  • @smorrow
    @smorrow 10 місяців тому

    Is there any way to monitor the power usage of single processes?

  • @waseemiqbal7
    @waseemiqbal7 3 роки тому

    My m.2 NVMe freezes the computer whenever making any setting changes. What are the optimum TLP power management settings for SSDs?

    • @Doriandotslash
      @Doriandotslash  3 роки тому

      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.

  • @bhavyagosai6712
    @bhavyagosai6712 2 роки тому

    How to configure the fan speed not available?

  • @primozhrovat699
    @primozhrovat699 2 роки тому

    What theme did you use in that video?

  • @animatrixSSYT
    @animatrixSSYT 3 роки тому

    How to write a script to start powertop during startup?

  • @nishant_raj312
    @nishant_raj312 3 роки тому

    My battery capacity is decreasing fast? Any idea why is it so?

  • @georgiawthrman
    @georgiawthrman 4 роки тому

    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.

    • @Doriandotslash
      @Doriandotslash  4 роки тому

      Good question. I’ve never had to tweak it, but you could always ask the developers.

  • @justicebaffour8466
    @justicebaffour8466 2 роки тому

    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

  • @developernix862
    @developernix862 5 років тому +1

    First at all I would like to know if this tool TLP it going to slow down my laptop ?

    • @Doriandotslash
      @Doriandotslash  5 років тому +1

      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.

    • @hassanfarooq29
      @hassanfarooq29 5 років тому +1

      @@Doriandotslash he meant cpu throttling by the program

  • @Comander311
    @Comander311 4 роки тому

    But I don't want to save battery, I want to use my processor at higher power, what can I do?

  • @lordnaive
    @lordnaive 4 роки тому

    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?

    • @Doriandotslash
      @Doriandotslash  4 роки тому +1

      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.

    • @lordnaive
      @lordnaive 4 роки тому

      @@Doriandotslash yes u right. It lasts around 35mins at max. I considered replacing

    • @6bOemH2gKz
      @6bOemH2gKz Рік тому

      Sounds like needing recalibration

  • @justAnotherGeeek
    @justAnotherGeeek 4 роки тому

    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

    • @Doriandotslash
      @Doriandotslash  4 роки тому +2

      Powertop should list what’s using power.

    • @justAnotherGeeek
      @justAnotherGeeek 4 роки тому +1

      @@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

  • @DirkHoeppner
    @DirkHoeppner 4 роки тому

    came here looking to find out how much power my desktop is using and once again only found laptop battery info

  • @jeansoto6046
    @jeansoto6046 3 роки тому

    What if i just installed manjaro gnome, and battery maximum capacity it's 76%? how do i fix that?

    • @Doriandotslash
      @Doriandotslash  3 роки тому +1

      If the battery only charges to 76%, you may want to replace the battery or the charging adapter.

    • @jeansoto6046
      @jeansoto6046 3 роки тому

      @@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?

  • @lightup360
    @lightup360 3 роки тому

    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?

    • @Doriandotslash
      @Doriandotslash  3 роки тому

      Did you install tlp? What distro are you using?

    • @lightup360
      @lightup360 3 роки тому

      @@Doriandotslash i installed tlp and iam using pop os on hp omen 15 laptop bro

    • @Doriandotslash
      @Doriandotslash  3 роки тому

      That’s odd. Pop must have a different package that doesn’t include it.

  • @umrinderpal
    @umrinderpal 5 років тому +2

    Can you please tell me your laptop configuration ...

    • @Doriandotslash
      @Doriandotslash  5 років тому +2

      It's an MSI GP72, i7-6700HQ with 16GB of RAM and Nvidia GTX960M.

    • @Phantom-pj1ls
      @Phantom-pj1ls 5 років тому +1

      @@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!

    • @Doriandotslash
      @Doriandotslash  5 років тому +1

      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.

  • @bearsaver7462
    @bearsaver7462 4 роки тому +1

    Does this impact performance?

    • @Doriandotslash
      @Doriandotslash  4 роки тому +3

      Not at all. When the CPU is required for tasks, it still runs at full power.

  • @SuperRohit9
    @SuperRohit9 5 років тому

    17 hours battery! which laptop u having dude!

    • @Doriandotslash
      @Doriandotslash  5 років тому +1

      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

  • @Xeno_Bardock
    @Xeno_Bardock 5 років тому +1

    Found TLPUI github.com/d4nj1/TLPUI For those who prefer GUI over terminal.

    • @Doriandotslash
      @Doriandotslash  5 років тому

      Ooo nice! I’ll have to check that out, thanks!

  • @AyushKumar-bj6yq
    @AyushKumar-bj6yq 3 роки тому +1

    how you installed photoshop in linux

    • @Doriandotslash
      @Doriandotslash  3 роки тому

      With PlayOnLinux

    • @AyushKumar-bj6yq
      @AyushKumar-bj6yq 3 роки тому

      @@Doriandotslash that's awesome
      does it completely works same as it works in windows
      I mean without any lags or something

  • @Bergwacht
    @Bergwacht 2 роки тому

    bash: systemctrl: command not found.
    so i failed in the first minute ...
    everything as always.

    • @Doriandotslash
      @Doriandotslash  2 роки тому +1

      “systemctl”
      No R

    • @Bergwacht
      @Bergwacht 2 роки тому

      @@Doriandotslash LOL dude...no wonder that nothing works when iam wiritng wrong stuff into console :D "ctrl" just makes so much sense^

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars 3 роки тому +1

    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?

  • @keyzsawake353
    @keyzsawake353 5 років тому

    install tlpui...

  • @hassanfarooq29
    @hassanfarooq29 5 років тому +1

    install TLPUI for a GUI. no need to learn these sommands

    • @Doriandotslash
      @Doriandotslash  5 років тому +1

      Definitely an option, but in 99% of cases, all you have to do is install it and use the default settings.

    • @Theckonestroh
      @Theckonestroh 4 роки тому

      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.

  • @FrankieWilde2021
    @FrankieWilde2021 2 роки тому +1

    I fuckiing hate linux for shit like this everything is 20 fucking steps to do something simple

  • @neail5466
    @neail5466 11 місяців тому

    ** 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