<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7105&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Brightness module?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7105</link>
		<description><![CDATA[The most recent posts in Brightness module?.]]></description>
		<lastBuildDate>Tue, 18 Mar 2025 13:01:00 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Brightness module?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54979#p54979</link>
			<description><![CDATA[<p>Nice tools, zapper!<br />Thanks for mentioning <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (delgado)]]></author>
			<pubDate>Tue, 18 Mar 2025 13:01:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54979#p54979</guid>
		</item>
		<item>
			<title><![CDATA[Re: Brightness module?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54975#p54975</link>
			<description><![CDATA[<p>light and set color temperature also known as sct or xsct are good ways to do brightness.</p><p>And if you use a window manager, in some you can have it start its command once you login.</p><p>light -S 75</p><p>xsct 2000 1.0 </p><p>those are ones I tend to use for battery life and to ease the pain on my eyes.</p>]]></description>
			<author><![CDATA[dummy@example.com (zapper)]]></author>
			<pubDate>Tue, 18 Mar 2025 05:16:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54975#p54975</guid>
		</item>
		<item>
			<title><![CDATA[Re: Brightness module?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54971#p54971</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... a boot action aimed at restoring the brightness ...</p></div></blockquote></div><p>Quite so.<br />That&#039;s exactly what it is.</p><p>[rant]<br />And why would that need to be so?<br />I have never needed any of that.</p><p>My three monitors have always had the same brightness values at boot.<br />One of the SyncMasters 940n has over 70K hours uptime so had to recap it last week but the tubes are a bit dim so a cold environment will make it bit dimmer at boot time, but it only takes a minute or so to get right. </p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... a comfort utility.</p></div></blockquote></div><p>Sure, I guess you could call it that.<br />But when it is needlessly foisted on the user and root cannot removed it by the usual means, it immediately turns into a nuisance.</p><p>As you know, the list of crap like that in today&#039;s Linux distributions is endless.<br />[/rant]</p><p>Thanks for your comment.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 17 Mar 2025 07:46:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54971#p54971</guid>
		</item>
		<item>
			<title><![CDATA[Re: Brightness module?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54969#p54969</link>
			<description><![CDATA[<p>I&#160; believe it would merely be a boot action aimed at restoring the brightness at boot up to a level that got captured at power down. So, a comfort utility. But I&#039;m sure one can expand the concept to any level of complication and introduce all sorts of knick-knack with elaborate justifications <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> and then you can add steak knives to that...</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Mon, 17 Mar 2025 01:56:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54969#p54969</guid>
		</item>
		<item>
			<title><![CDATA[Re: Brightness module?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54965#p54965</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... don&#039;t think you can get rid of it.</p></div></blockquote></div><p>I looked all over and found nothing, just links to fiddling around with power management settings.&#160; 8^/</p><p>But not on how to remove the %&amp;$# <span class="bbc">brightness</span> service.<br />Which probably exists because of crappy and unreliable PM applications.</p><p>All I can say with <span class="bbs">absolute</span> a high degree of certainty is that I had nothing to do with the <span class="bbc">brightness</span> service not running in my Devuan Daedalus box.</p><p>Had I been aware of it, I would have tried to get rid of the damn thing <em>ipso facto</em>.</p><p>Like I said, monitor controls have always worked well enough for me.<br />As far as I am concerned, this <span class="bbc">brightness</span> service is just another solution looking for a problem.<br />No wonder it is enabled by default and it will not respond to any of the the usual <span class="bbc">service</span> commands.<br />ie: start|stop|restart|reload|force-reload|status which (BTW) are specified in the script.&#160; </p><p>In any case, some update/upgrade in the long list that have worked on my file system from <span class="bbc">Jesse</span> to <span class="bbc">Daedalus</span> had the common sense of doing away* with <span class="bbc">/etc/init.d/brightness</span> and leaving <span class="bbc">/etc/init.d/brightness.dpkg-dist</span> in its place and in doing so, kept the <span class="bbc">brightness</span> service from being loaded.</p><p>I concluded that it was probably just a name change, so I did the same thing on my headless Devuan Chimaera VM.<br />And achieved the same result.&#160; 8^)</p><p>Now, the <span class="bbc">service --status-all</span> request does <span class="bbu">not</span> include <span class="bbc">brightness</span>.</p><div class="codebox"><pre><code>~# service --status-all
 [ - ]  bootlogd
 [ - ]  bootlogs
 [ - ]  bootmisc.sh
 [ - ]  checkfs.sh
--- snip ---
~#</code></pre></div><p>I have looked over the logs and found no error.<br />Is there any special place I should look?</p><p>I think we can chalk one up for basic common sense.<br />Because ...<br /><span class="bbu">Wthf</span> does the <span class="bbc">brightness</span> service have to do running in a headless VM?</p><p>Better yet ...<br /><span class="bbu">Wthf</span> does the <span class="bbc">brightness</span> service have to do running in any Linux <span class="bbu">by default</span>?</p><p>Please let me know if I have overlooked something.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 16 Mar 2025 16:53:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54965#p54965</guid>
		</item>
		<item>
			<title><![CDATA[Re: Brightness module?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54858#p54858</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>brightness.dpkg-dist is the saved copy of a new config file when the old one was kept in place</p></div></blockquote></div><p>Starts to make sense.</p><p><span class="bbc">/etc/init.d/brightness.dpkg-dist</span> belongs to what is today a Daedalus installation.</p><p>But (IIRC) started as Jessie (!) and was dist-upgraded to ASCII and eventually Beowulf.<br />Then to a backported kernel and when Beowulf was about to be archived, almost directly to Daedalus via Chimaera.<br />This because the XFCE upgrade in Chimaera generated a totally unusable desktop environment.</p><p>I have to say that compared to anything MS branded I have had to deal with, it was smooth as silk.&#160; 8^ )</p><div class="quotebox"><blockquote><div><p>... if you have brightness.dpkg-dist but not brightness, then something is wrong.</p></div></blockquote></div><p>I don&#039;t recall <em>ever</em> seeing <span class="bbc">brightness</span> in the list of services printed out by <span class="bbc">service --status-all</span>, much less messing with <span class="bbc">debconf</span> which I don&#039;t have a clue about.</p><p>I checked my Asus 1000HE netbook (runs on a 32bit Chimaera) and <span class="bbc">service brightness status</span> properly reports current and saved brightness and intel brightness levels and just like in my Chimaera VM, it cannot be stopped or started. But then it is only one LCD monitor, my Daedalus box runs three monitors with two NVidia cards with brightness levels controlled individually via the monitors&#039; screen controls </p><p>My guess is that it does not report anything with <span class="bbc">service brightness status</span> because it is a headless VM.<br />ie: no monitor.</p><p>So the problem (if one at all) would be the lack of a <span class="bbc">brightness</span> service in my Daedalus installation, situation I cannot account for.<br />That said, besides the curiosity it generates, I have not experienced any issues.</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>Sorry, I have no other answers.</p></div></blockquote></div><p>No problem, I look around and see if I catch something worth reporting.<br />If not, I&#039;ll may well leave it at that.</p><p><span class="bbu">Edit</span>:<br />I just realised that Daedalus is the first version of Devuan in which I installed the nouveau drivers for my NVidia cards.<br />Had no choice as there was no clear way to get the OEM drivers working in Linux.</p><p>Maybe that has something to do with the module not being present?</p><p>Thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 10 Mar 2025 18:23:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54858#p54858</guid>
		</item>
		<item>
			<title><![CDATA[Re: Brightness module?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54853#p54853</link>
			<description><![CDATA[<p>*.dpkg-dist is the saved copy of a new config file when the old one was kept in place. I think if you have brightness.dpkg-dist but not brightness, then something is wrong. Converseley, *.dpkg-old is the old version that&#039;s saved when it gets replace with the new one. I think you only get that when you tell debconf to use the package maintainer&#039;s (new) version rather than the old version that you modified from the default.</p><p>Sorry, I have no other answers.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Mon, 10 Mar 2025 16:00:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54853#p54853</guid>
		</item>
		<item>
			<title><![CDATA[Re: Brightness module?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54849#p54849</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><div class="codebox"><pre><code>$ apt-file find init.d/brightness</code></pre></div></div></blockquote></div><p>Yes, I had already found it there.</p><p>My Daedalus installation <em>also</em> has it:</p><div class="codebox"><pre><code>~$ locate brightness
/etc/init.d/brightness.dpkg-dist
/etc/systemd/system/brightness.service
--- snip --- 
~$</code></pre></div><p>But it is <span class="bbu">not</span> a in the service status printout:</p><div class="codebox"><pre><code>~$ sudo service --status-all | grep brightness
 [ ? ]  alsa-utils
 [ ? ]  binfmt-support
 [ ? ]  hwclock.sh
 [ ? ]  kmod
 [ ? ]  lpd
 [ ? ]  mount-configfs
 [ ? ]  networking
 [ ? ]  vboxautostart-service
~$ </code></pre></div><p>Q1: why do all these other services show up when I am not asking <span class="bbc">grep</span> to find them? </p><p>Then this is the script I find in <span class="bbc">/etc/init.d</span>:</p><div class="codebox"><pre><code>~$ ls /etc/init.d/ | grep brightness
brightness.dpkg-dist
~$ </code></pre></div><p>Q2: why it is being started in my Chimaera headless VM but not in my Daedalus desktop installation?</p><p>The Chimaera VM does not have the same name for the <span class="bbc">/etc/init.d/brightness.dpkg-dist</span> script.</p><div class="codebox"><pre><code>root@chimaera:~# ls /etc/init.d | grep brightness
brightness
root@chimaera:~# </code></pre></div><p>&#160; </p><p>The script in the Chimaera VM indicates the usage:</p><div class="codebox"><pre class="vscroll"><code>root@chimaera:~# cat /etc/init.d/brightness
#!/bin/sh
### BEGIN INIT INFO
# Provides:          brightness
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: Save and restore brightness level between restarts.
# Description:       This script saves the brightness level between restarts.
#                    It is called from the boot, halt and reboot scripts.
### END INIT INFO

readonly SAVEFILE_PREFIX=/var/lib/initscripts/brightness

. /lib/init/vars.sh
. /lib/lsb/init-functions

do_invoke() {
	local rv=0 rc
	# ACPI (without explicit label)
	do_$1 &#039;&#039; \
	    /sys/class/backlight/acpi_video0/brightness \
	    /sys/class/backlight/acpi_video0/max_brightness
	rc=$?
	test $rc -lt $rv || rv=$rc
	# Intel
	do_$1 intel \
	    /sys/class/backlight/intel_backlight/brightness \
	    /sys/class/backlight/intel_backlight/max_brightness
	rc=$?
	test $rc -lt $rv || rv=$rc
	# could insert others using the same scheme here
	return $rv
}

do_status() {
	local label=$1 knob=$2 max=$3 file=$SAVEFILE_PREFIX${1:+.$1}
	test -e &quot;$knob&quot; || return 0

	MSG=&quot;Current${label:+ $label} brightness level is $(cat &quot;$knob&quot;)&quot;
	if test -f &quot;$file&quot;; then
		log_success_msg &quot;${MSG}, saved value is $(cat &quot;$file&quot;)&quot;
		return 0
	fi
	log_failure_msg &quot;${MSG}, there is no saved value&quot;
	return 4
}

do_start() {
	local label=$1 knob=$2 max=$3 file=$SAVEFILE_PREFIX${1:+.$1}
	test -e &quot;$knob&quot; || return 0

	test x&quot;$VERBOSE&quot; = x&quot;no&quot; || \
	    log_action_begin_msg Initialising $label brightness level

	if test -f &quot;$file&quot;; then
		cat &quot;$file&quot; &gt;&quot;$knob&quot;
	else
		cat &quot;$max&quot; &gt;&quot;$knob&quot;
	fi
	local rv=$?
	test x&quot;$VERBOSE&quot; = x&quot;no&quot; || log_action_end_msg $rv
	return $rv
}

do_stop() {
	local label=$1 knob=$2 max=$3 file=$SAVEFILE_PREFIX${1:+.$1}
	test -e &quot;$knob&quot; || return 0

	test x&quot;$VERBOSE&quot; = x&quot;no&quot; || \
	    log_action_begin_msg Saving $label brightness level
	cat &quot;$knob&quot; &gt;&quot;$file&quot;
	local rv=$?
	test x&quot;$VERBOSE&quot; = x&quot;no&quot; || log_action_end_msg $rv
	return $rv
}

case $1 in
(start|restart|reload|force-reload)
	do_invoke start
	;;
(stop)
	do_invoke stop
	;;
(status)
	do_invoke status
	;;
(*)
	echo &gt;&amp;2 &quot;Usage: $0 {start|stop|restart|reload|force-reload|status}&quot;   ##########   &lt;----
	exit 3
	;;
esac
root@chimaera:~#</code></pre></div><p>What is going on?</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 10 Mar 2025 12:06:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54849#p54849</guid>
		</item>
		<item>
			<title><![CDATA[Re: Brightness module?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54848#p54848</link>
			<description><![CDATA[<div class="codebox"><pre><code>$ apt-file find init.d/brightness
initscripts: /etc/init.d/brightness</code></pre></div><p>I don&#039;t think you can get rid of it. You&#039;re not the only one who never noticed this.</p><div class="codebox"><pre><code># Short-Description: Save and restore brightness level between restarts.
# Description:       This script saves the brightness level between restarts.
#                    It is called from the boot, halt and reboot scripts.</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Mon, 10 Mar 2025 10:52:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54848#p54848</guid>
		</item>
		<item>
			<title><![CDATA[Brightness module?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54847#p54847</link>
			<description><![CDATA[<p>Hello:</p><p>I run Pi-hole in a headless Devuan Chimaera VM in my box:</p><div class="codebox"><pre><code>root@chimaera:~# uname -a
Linux chimaera 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
root@chimaera:~# </code></pre></div><p>The last Pi-hole upgrade (to 6.0.4) had a small issue and I had to remove the <span class="bbc">apparmor</span> service (which was <em>not</em> running) for the upgrade to complete properly. Jury is still out there as to what was going on so it is a matter to be dealt with in another thread.</p><p>The thing is that while going over the service status list I found one which I did not know about and had never seen before:</p><div class="codebox"><pre><code>root@chimaera:~# service --status-all
--- snip ---
 [ - ]  brightness
--- snip ---
root@chimaera:~# </code></pre></div><p>I have no idea how it got there.</p><p>I see it is all over:</p><div class="codebox"><pre><code>root@chimaera:~# locate brightness
/etc/init.d/brightness
/etc/rc0.d/K01brightness
/etc/rc6.d/K01brightness
/etc/rcS.d/S12brightness
/etc/systemd/system/brightness.service
/usr/src/linux-headers-5.10.0-9-amd64/include/config/leds/brightness
/usr/src/linux-headers-5.10.0-9-amd64/include/config/leds/brightness/hw
/usr/src/linux-headers-5.10.0-9-amd64/include/config/leds/brightness/hw/changed.h
root@chimaera:~# </code></pre></div><p>But this is a headless VM installation and I never installed a desktop.<br />And it is certainly not a laptop.</p><p>The problem is that I cannot get rid of it.<br />Or do <em>anything</em> with it:</p><div class="codebox"><pre><code>root@chimaera:~# service brightness status
root@chimaera:~# 
root@chimaera:~# service brightness start
root@chimaera:~# 
root@chimaera:~# service brightness stop
root@chimaera:~# </code></pre></div><p>Where did this come from?<br />How can I get rid of it?</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 10 Mar 2025 09:05:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54847#p54847</guid>
		</item>
	</channel>
</rss>
