Announcement

Collapse
No announcement yet.

is tlp working?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [LAPTOP] is tlp working?

    How to check whether tlp supports my laptop and is working properly?
    My laptop is

    Code:
    jagdeesh@jld-lap-HP15-kub2004:~$ inxi -b
    System:
    Host: jld-lap-HP15-kub2004 Kernel: 5.4.0-54-generic x86_64 bits: 64 
    Desktop: KDE Plasma 5.18.5 Distro: Ubuntu 20.04.1 LTS (Focal Fossa) 
    Machine:
    Type: Laptop System: HP product: HP Laptop 15-db0xxx 
    v: Type1ProductConfigId serial: <superuser/root required> 
    Mobo: HP model: 84AE v: 86.21 serial: <superuser/root required> 
    UEFI: Insyde v: F.17 date: 01/16/2019 
    Battery:
    ID-1: BAT1 charge: 41.3 Wh condition: 42.1/41.0 Wh (103%) 
    CPU:
    Dual Core: AMD Ryzen 3 2200U with Radeon Vega Mobile Gfx type: MT MCP 
    speed: 1578 MHz min/max: 1600/2500 MHz 
    Graphics:
    Device-1: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile 
    Series] 
    driver: amdgpu v: kernel 
    Display: x11 server: X.Org 1.20.8 driver: amdgpu FAILED: ati 
    unloaded: fbdev,modesetting,vesa resolution: 1920x1080~60Hz 
    OpenGL: renderer: AMD RAVEN (DRM 3.35.0 5.4.0-54-generic LLVM 10.0.0) 
    v: 4.6 Mesa 20.0.8 
    Network:
    Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
    driver: r8169 
    Device-2: Realtek RTL8723DE 802.11b/g/n PCIe Adapter driver: rtw_pci 
    Drives:
    Local Storage: total: 931.51 GiB used: 338.50 GiB (36.3%) 
    Info:
    Processes: 209 Uptime: 30m Memory: 7.50 GiB used: 1.67 GiB (22.3%) 
    Shell: bash inxi: 3.0.38 
    jagdeesh@jld-lap-HP15-kub2004:~$
    To test , in /etc/tlp.conf, modified line no. 431 & 432 as
    START_CHARGE_THRESH_BAT1=30
    STOP_CHARGE_THRESH_BAT1=80

    Then ran

    Code:
    jagdeesh@jld-lap-HP15-kub2004:~$ sudo tlp start
    [sudo] password for jagdeesh: 
    TLP started in AC mode (auto).
    jagdeesh@jld-lap-HP15-kub2004:~$ sudo tlp setcharge 30 90 BAT1
    Error: battery charge thresholds not available.
    jagdeesh@jld-lap-HP15-kub2004:~$
    Presently the battery is 98% charged and is charging. Whenever I sleep it and switch off mail switch and again start using by making power on, always charging-discharging takes place from @ 95 to 100%.
    This laptop always being at home , I don't need battery backup for it and want to maximize battery life. So want to set to charge up to 90% only when it is discharged to 30%. How to configure this and check it is working?
    Last edited by Jag59; Nov 30, 2020, 02:20 AM.

    #2
    I don't use a laptop all that often, so I'm not the expert. However, have you tried the tlp website? They have pretty comprehensive doc, at least to my eyes.
    The next brick house on the left
    Intel i7 11th Gen | 16GB | 1TB | KDE Plasma 5.27.11​| Kubuntu 24.04 | 6.8.0-31-generic



    Comment


      #3
      Originally posted by Jag59 View Post

      Code:
      jagdeesh@jld-lap-HP15-kub2004:~$ sudo tlp start
      [sudo] password for jagdeesh: 
      TLP started in AC mode (auto).
      jagdeesh@jld-lap-HP15-kub2004:~$ sudo tlp setcharge 30 90 BAT1
      [B] Error: battery charge thresholds not available.[/B]
      jagdeesh@jld-lap-HP15-kub2004:~$
      Battery thresholds are a Thinkpad-only feature in tlp
      https://github.com/linrunner/TLP/issues/444
      which leads to
      https://github.com/linrunner/TLP/issues/321

      Have you looked at your bios to see if there is a setting for this there? My Lenovo has settings for it there.
      Last edited by Snowhog; Nov 30, 2020, 10:04 AM. Reason: Add missing end of quote tag

      Comment


        #4
        Thanks jglen490 and claydoh
        Visited tlp website, seems my laptop is not supported.

        Code:
        jagdeesh@jld-lap-HP15-kub2004:~$ sudo tlp-stat -b
        [sudo] password for jagdeesh: 
        --- TLP 1.3.1 --------------------------------------------
        
        +++ Battery Features: Charge Thresholds and Recalibrate
        [B][COLOR=#FF9999]natacpi    = inactive (laptop not supported)
        tpacpi-bat = inactive (laptop not supported)
        tp-smapi   = inactive (laptop not supported)[/COLOR][/B]
        
        +++ Battery Status: BAT1
        /sys/class/power_supply/BAT1/manufacturer                   = Hewlett-Packard
        /sys/class/power_supply/BAT1/model_name                     = PABAS0241231
        /sys/class/power_supply/BAT1/cycle_count                    = (not supported)
        /sys/class/power_supply/BAT1/charge_full_design             =   3600 [mAh]
        /sys/class/power_supply/BAT1/charge_full                    =   3728 [mAh]
        /sys/class/power_supply/BAT1/charge_now                     =   3728 [mAh]
        /sys/class/power_supply/BAT1/current_now                    = (not available) 
        /sys/class/power_supply/BAT1/status                         = Full
        
        Charge                                                      =  100.0 [%]
        Capacity                                                    =  103.6 [%]
        
        jagdeesh@jld-lap-HP15-kub2004:~$

        Comment

        Working...
        X