Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #82726

Bug#894906: linux-cpupower: provide a systemd service and a default config file

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Francesco Poli <invernomuto@paranoici.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#894906: linux-cpupower: provide a systemd service and a default config file
Date Sat, 15 Jun 2024 17:00:01 +0200
Message-ID <IPD2N-38un-9@gated-at.bofh.it> (permalink)
References <vBcuZ-4Bk-1@gated-at.bofh.it> <IOCBQ-2sbV-13@gated-at.bofh.it> <vBcuZ-4Bk-1@gated-at.bofh.it> <IOCBQ-2sbV-13@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Sat Jun 15 14:51:13 2024
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score 1.539
Reply-To Francesco Poli <invernomuto@paranoici.org>, 894906@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Kernel Team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 894906
X-Debian-Pr-Package linux-cpupower
X-Debian-Pr-Keywords patch
X-Debian-Pr-Source linux, linux-grsec, linux-tools
X-Mailer Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
MIME-Version 1.0
Content-Type multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA512"; boundary="Signature=_Sat__15_Jun_2024_16_48_58_+0200_/I7+OGUxYiF248QQ"
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1842405
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 148
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Pavel Kreuzt <pkreuzt@gmail.com>
X-Original-Date Sat, 15 Jun 2024 16:48:58 +0200
X-Original-Message-ID <20240615164858.f38019c1e49dfb90805db25a@paranoici.org>
X-Original-References <152293191771.2813.9891916718354984301.reportbug@Sirte.Hades> <20240612220910.45f60a68ff8d065240a2b500@paranoici.org> <152293191771.2813.9891916718354984301.reportbug@Sirte.Hades> <20240612220910.45f60a68ff8d065240a2b500@paranoici.org>
Xref csiph.com linux.debian.bugs.dist:1200985 linux.debian.kernel:82726

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, 12 Jun 2024 22:09:10 +0200 Francesco Poli wrote:

[...]
> Is there room for improvement?
> Yes, I think there is.
> For instance, the script /usr/libexec/cpupower could be translated to
> POSIX shell, getting rid of its bashisms.

Here we go, I modified the script by translating it to POSIX shell,
dropping a couple of options that seem to no longer exist in cpupower,
and by making ignore all other frequency options, if FREQ is set.

I correspondingly modified the defaults file.

Please find attached the three updated files.

Tested on one of my systems, where I purged cpufrequtils and installed
linux-cpupower and then I issued the following commands:

  # install -m 644 cpupower.default /etc/default/cpupower
  # install -m 755 cpupower.sh /usr/libexec/cpupower
  # install -m 644 cpupower.service /usr/lib/systemd/system/
  # systemctl daemon-reload
  # systemctl enable cpupower.service

The systemd service runs at boot and sets everything needed with
cpupower (as configured in /etc/default/cpupower ).

Once again, please accept the "patch" and incorporate the files (or
further enhanced versions of them) into linux-cpupower.

Thanks for your time and dedication!
Bye.


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE

Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#894906: linux-cpupower: provide a systemd service and a default config file Francesco Poli <invernomuto@paranoici.org> - 2024-06-12 22:20 +0200
  Processed: Re: linux-cpupower: provide a systemd service and a  default config file "Debian Bug Tracking System" <owner@bugs.debian.org> - 2024-06-12 22:40 +0200
  Bug#894906: linux-cpupower: provide a systemd service and a default config file Francesco Poli <invernomuto@paranoici.org> - 2024-06-15 17:00 +0200
    Bug#894906: linux-cpupower: provide a systemd service and a default config file Francesco Poli <invernomuto@paranoici.org> - 2024-07-04 23:30 +0200
      Bug#894906: linux-cpupower: provide a systemd service and a default config file Francesco Poli <invernomuto@paranoici.org> - 2024-07-13 13:10 +0200

csiph-web