From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Does Linux 4.16.1 blast out battery time? (9h+ -> 3h+) Date: Tue, 24 Apr 2018 18:47:12 +0530 Message-ID: <87d0yo3fs7.fsf@gmail.com> References: <871sfjprn8.fsf@gmail.com> <20180413065059.6tvg2xsx722adl7i@doom> <87k1tb8srn.fsf@gmail.com> <871sfjtnuy.fsf@gmail.com> <87k1sx2e61.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAxow-00049O-9J for help-guix@gnu.org; Tue, 24 Apr 2018 09:17:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAxos-0005Cx-70 for help-guix@gnu.org; Tue, 24 Apr 2018 09:17:22 -0400 In-reply-to: <87k1sx2e61.fsf@gnu.org> 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > That sounds worrying. Could you report it upstream? I'll will. After further investigation, it turns out that nouveau keeps crashing in loop, which overwhelms the kernel. Everything is extremely unresponsive, I suppose because the kernel scheduler cannot allocate much time to the user land processes. This explains the power drain. `dmesg' shows a sequence of [nouveau] errors in loop, but I haven't managed to capture it so far because the system freezes too soon. >> 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)))) I just tried your suggestion and it results in a kernel panic (on Linux 4.15). I get a "No such file or directory" error. I suppose that is because the service is run too early. > That said, we should probably build a higher-level > =E2=80=98/sys-tweaks-service-type=E2=80=99 where we could directly pass p= airs of file > name/values. > > Would you like to give it a try? Sure, whenever I have some more free time (in a week or so). =2D- Pierre Neidhardt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlrfLlgACgkQm9z0l6S7 zH/Dqgf+LdSCQg7CDjjn6HfVgC5JUgTP6Gn24otS/zpvSksMaXD8DPhu9hqucbl5 Z0uRopnT/OEBLz9vPZ95tHVmi/CeOpAhpKGSlyERmLdNHHJBGyrBXkIMmOab2VUY t1vwxnejL7Hb89ifRc2CyznUDrMydQYiFZSEp5PXEzXqYKZTloaREZo+YThgbY7a OPBbCMtOOblG+UdPCChKGheNIzF1DHz/nL4lXeNPJKNsI3IF2vuGgC0Jw8fGH/fe QVkmvoPSHL9ROTrxACSxQEzyu19hFkKp9dpT8zi3lis6B/hD61PcUH3zAjvHQLkw ypuOtMKH0R2sxQJ8PHJARfIi2G6RUQ== =2Vet -----END PGP SIGNATURE----- --=-=-=--