From unknown Fri Mar 29 08:16:31 2024 X-Loop: owner@bugs.devuan.org Subject: bug#617: initscripts: brightness init script sets brightness to zero, thus blanking laptop display Reply-To: Martin Steigerwald , 617@bugs.devuan.org Resent-From: Martin Steigerwald Resent-To: devuan-bugs@lists.dyne.org Resent-CC: Devuan Developers X-Loop: owner@bugs.devuan.org Resent-Date: Thu, 23 Dec 2021 13:50:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.devuan.org X-Devuan-PR-Message: followup 617 X-Devuan-PR-Package: initscripts X-Devuan-PR-Keywords: References: <163396916488.2227.13166665119512005807.reportbug@om.lichtvoll> <16580662.aHbKO4Mz0p@ananda> <163396916488.2227.13166665119512005807.reportbug@om.lichtvoll> Received: via spool by 617-submit@bugs.devuan.org id=B617.164026728820118 (code B ref 617); Thu, 23 Dec 2021 13:50:02 +0000 Received: (at 617) by bugs.devuan.org; 23 Dec 2021 13:48:08 +0000 Delivered-To: devuanbugs@dyne.org Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.16) for (single-drop); Thu, 23 Dec 2021 13:48:08 +0000 (UTC) Received: from mail.lichtvoll.de (luna.lichtvoll.de [194.150.191.11]) by vm6.ganeti.dyne.org (Postfix) with ESMTP id 98B0FF6047C for <617@bugs.devuan.org>; Thu, 23 Dec 2021 14:47:24 +0100 (CET) Received: from ananda.localnet (unknown [IPv6:2001:a62:1a75:1f00:b5cf:25f3:6fdc:5810]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail.lichtvoll.de (Postfix) with ESMTPSA id 065DD334FE9; Thu, 23 Dec 2021 14:47:21 +0100 (CET) From: Martin Steigerwald To: Mark Hindley Cc: 617@bugs.devuan.org, Jacob Lundberg Date: Thu, 23 Dec 2021 14:47:19 +0100 Message-ID: <4705134.hTFNdjQnqM@ananda> In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Authentication-Results: mail.lichtvoll.de; auth=pass smtp.auth=martin2 smtp.mailfrom=martin@lichtvoll.de X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Mark, Mark Hindley - 22.12.21, 12:47:55 CET: > On Wed, Dec 22, 2021 at 11:19:17AM +0100, Martin Steigerwald wrote: > > I'd really welcome this after I "bricked" another device due to > > exactly this bug. I needed to put GRML to an USB stick and boot > > from there in order to recover. > > How does the attached patch look? Are you able to test? I tested on a ThinkPad laptop with Intel graphics: Without patch: root@somehost:/var/lib/initscripts# cat brightness.intel 512 root@somehost:/var/lib/initscripts# /etc/init.d/brightness stop root@somehost:/var/lib/initscripts# cat brightness.intel 0 With patch: root@somehost:/var/lib/initscripts# echo 512 > brightness.intel root@somehost:/var/lib/initscripts# cat brightness.intel 512 root@somehost:/var/lib/initscripts# /etc/init.d/brightness stop root@somehost:/var/lib/initscripts# cat brightness.intel 512 I think it should work. Thanks, -- Martin