[Bug 2046688] [NEW] powertop generates incorrect file in /var/cache/powertop

Ryan Harper 2046688 at bugs.launchpad.net
Mon Dec 18 03:10:21 UTC 2023


Public bug reported:

1.

# lsb_release -rd
Description:	Ubuntu 22.04.3 LTS
Release:	22.04

2.

# apt-cache policy powertop
powertop:
  Installed: 2.14-1build1
  Candidate: 2.14-1build1
  Version table:
 *** 2.14-1build1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status

3.

powertop.service runs correctly, and powertop --auto-tune works

4.

powertop.service status shows inactive/dead, powertop --auto-tune says
it will start once it's run for th e mine time.

The issue is that powertop generates this file:

root at thiolized:/var/cache/powertop# ls -al 
total 4
drw-------  2 root root   36 Dec 17 20:58 .
drwxr-xr-x 17 root root 4096 Dec 17 20:58 ..
-rw-r--r--  1 root root    0 Dec 17 20:58 saved_results.powertop


but, the systemctl service and powertop tool is looking for

/var/cache/powertop/saved_parameters.powertop


Please patch the powertop program to either generate saved_results.powertop, or change it look for saved_results.powertop.

Note, a simple symlink is sufficient to fix the service.

ln -s saved_results.powertop saved_parameters.powertop

# ls -al
total 4
drw-------  2 root root   69 Dec 17 21:07 .
drwxr-xr-x 17 root root 4096 Dec 17 20:58 ..
lrwxrwxrwx  1 root root   22 Dec 17 21:07 saved_parameters.powertop -> saved_results.powertop
-rw-r--r--  1 root root    0 Dec 17 21:09 saved_results.powertop

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: powertop 2.14-1build1
ProcVersionSignature: Ubuntu 6.2.0-39.40~22.04.1-generic 6.2.16
Uname: Linux 6.2.0-39-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
CloudArchitecture: x86_64
CloudID: none
CloudName: none
CloudPlatform: none
CloudSubPlatform: config
CurrentDesktop: GNOME
Date: Sun Dec 17 20:59:35 2023
InstallationDate: Installed on 2023-12-17 (0 days ago)
InstallationMedia: Ubuntu-Server 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20231217)
SourcePackage: powertop
UpgradeStatus: No upgrade log present (probably fresh install)

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


** Tags: amd64 apport-bug jammy uec-images

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

Title:
  powertop generates incorrect file in /var/cache/powertop

Status in powertop package in Ubuntu:
  New

Bug description:
  1.

  # lsb_release -rd
  Description:	Ubuntu 22.04.3 LTS
  Release:	22.04

  2.

  # apt-cache policy powertop
  powertop:
    Installed: 2.14-1build1
    Candidate: 2.14-1build1
    Version table:
   *** 2.14-1build1 500
          500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
          100 /var/lib/dpkg/status

  3.

  powertop.service runs correctly, and powertop --auto-tune works

  4.

  powertop.service status shows inactive/dead, powertop --auto-tune says
  it will start once it's run for th e mine time.

  The issue is that powertop generates this file:

  root at thiolized:/var/cache/powertop# ls -al 
  total 4
  drw-------  2 root root   36 Dec 17 20:58 .
  drwxr-xr-x 17 root root 4096 Dec 17 20:58 ..
  -rw-r--r--  1 root root    0 Dec 17 20:58 saved_results.powertop

  
  but, the systemctl service and powertop tool is looking for

  /var/cache/powertop/saved_parameters.powertop

  
  Please patch the powertop program to either generate saved_results.powertop, or change it look for saved_results.powertop.

  Note, a simple symlink is sufficient to fix the service.

  ln -s saved_results.powertop saved_parameters.powertop

  # ls -al
  total 4
  drw-------  2 root root   69 Dec 17 21:07 .
  drwxr-xr-x 17 root root 4096 Dec 17 20:58 ..
  lrwxrwxrwx  1 root root   22 Dec 17 21:07 saved_parameters.powertop -> saved_results.powertop
  -rw-r--r--  1 root root    0 Dec 17 21:09 saved_results.powertop

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: powertop 2.14-1build1
  ProcVersionSignature: Ubuntu 6.2.0-39.40~22.04.1-generic 6.2.16
  Uname: Linux 6.2.0-39-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.5
  Architecture: amd64
  CasperMD5CheckResult: pass
  CloudArchitecture: x86_64
  CloudID: none
  CloudName: none
  CloudPlatform: none
  CloudSubPlatform: config
  CurrentDesktop: GNOME
  Date: Sun Dec 17 20:59:35 2023
  InstallationDate: Installed on 2023-12-17 (0 days ago)
  InstallationMedia: Ubuntu-Server 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20231217)
  SourcePackage: powertop
  UpgradeStatus: No upgrade log present (probably fresh install)

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




More information about the foundations-bugs mailing list