From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Does Linux 4.16.1 blast out battery time? (9h+ -> 3h+) Date: Tue, 24 Apr 2018 10:37:26 +0200 Message-ID: <87k1sx2e61.fsf@gnu.org> References: <871sfjprn8.fsf@gmail.com> <20180413065059.6tvg2xsx722adl7i@doom> <87k1tb8srn.fsf@gmail.com> <871sfjtnuy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAtS8-0004mA-Mf for help-guix@gnu.org; Tue, 24 Apr 2018 04:37:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAtS5-0003AS-DI for help-guix@gnu.org; Tue, 24 Apr 2018 04:37:32 -0400 In-Reply-To: <871sfjtnuy.fsf@gmail.com> (Pierre Neidhardt's message of "Fri, 13 Apr 2018 15:44:13 +0530") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Pierre Neidhardt Cc: help-guix@gnu.org Hello, Pierre Neidhardt skribis: > With a bit of tweaking, I figured that enabling power management on > on "Audio codec": > > echo '1' > '/sys/module/snd_hda_intel/parameters/power_save'; > > helped a little bit. But not that much. Now on 4.14.33, I get 10h, > while on 4.16.1 I get 5h. > > There is something else. That sounds worrying. Could you report it upstream? > By the way, how do I make the above /sys/ tweak permanent on GuixSD? You could do something like: (simple-service 'my-/sys-tweaks activation-service-type #~(call-with-output-file "/sys/=E2=80=A6" (lambda (port) (display "1" port)))) That said, we should probably build a higher-level =E2=80=98/sys-tweaks-service-type=E2=80=99 where we could directly pass pai= rs of file name/values. Would you like to give it a try? Thanks, Ludo=E2=80=99.