Public bug reported:

Description:    Ubuntu 19.04
Release:        19.04

Package:
tlp:
  Installed: 1.1-2ubuntu1
  Candidate: 1.1-2ubuntu1
  Version table:
 *** 1.1-2ubuntu1 500
        500 http://pl.archive.ubuntu.com/ubuntu disco/universe amd64 Packages
        500 http://pl.archive.ubuntu.com/ubuntu disco/universe i386 Packages
        100 /var/lib/dpkg/status

This is small bug that I found when checking max possible power saving
of my laptop.

I have set AHCI_RUNTIME_PM_ON_BAT to auto on file /etc/default/tlp:

# Runtime Power Management for AHCI host and disks devices:
#   on=disable, auto=enable.
# EXPERIMENTAL ** WARNING: auto will most likely cause system lockups/data loss.
AHCI_RUNTIME_PM_ON_AC=auto
AHCI_RUNTIME_PM_ON_BAT=auto

tlp-stat -T (TLP debug log) says that enabled:

sie 31 09:01:38 mateo-PE70-7RD tlp[1694]: set_ahci_runtime_pm(0).auto: 
host=/sys/bus/pci/devices/0000:00:17.0/ata1
sie 31 09:01:38 mateo-PE70-7RD tlp[1695]: set_ahci_runtime_pm(0).auto: 
host=/sys/bus/pci/devices/0000:00:17.0/ata2
sie 31 09:01:38 mateo-PE70-7RD tlp[1696]: set_ahci_runtime_pm(0).auto: 
host=/sys/bus/pci/devices/0000:00:17.0/ata3
sie 31 09:01:38 mateo-PE70-7RD tlp[1697]: set_ahci_runtime_pm(0).auto: 
host=/sys/bus/pci/devices/0000:00:17.0/ata4

but tlp-stat says different thing:
+++ AHCI Host Controller Runtime Power Management
/sys/bus/pci/devices/0000:00:17.0/ata1/power/control = on
/sys/bus/pci/devices/0000:00:17.0/ata2/power/control = on
/sys/bus/pci/devices/0000:00:17.0/ata3/power/control = on
/sys/bus/pci/devices/0000:00:17.0/ata4/power/control = on


I have found that in file "/usr/share/tlp/tlp-functions" in line 1491 is:
            { printf '%s\n' $control $control > ${device}/power/control; } 2> 
/dev/null

what I think could be a problem. After change to this it starts to work:
            { printf '%s\n' $control > ${device}/power/control; } 2> /dev/null

Could you please check this? It seems Ubuntu 18.04 could have the same
problem (the same package).

Best Regards
Mateusz

** Affects: tlp (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842169

Title:
  AHCI Host Controller Runtime Power Management not set to powersave
  mode "auto" despite set AHCI_RUNTIME_PM_ON_BAT to "auto"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tlp/+bug/1842169/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to