<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=7001&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Screen Brightness app for SysTray?]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=7001</link>
		<description><![CDATA[The most recent posts in Screen Brightness app for SysTray?.]]></description>
		<lastBuildDate>Wed, 08 Jan 2025 09:02:07 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53974#p53974</link>
			<description><![CDATA[<p>I meant the setting for the gamma. For example, if you set it to 0.8 and then run the script again, the gamma settings window comes up and shows the value as 1.4 instead of 0.8. </p><p>If you need the desktop to come up at a decreased brightness, you could add the one-liner script that was posted above in your startup applications.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Wed, 08 Jan 2025 09:02:07 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53974#p53974</guid>
		</item>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53972#p53972</link>
			<description><![CDATA[<p>@fsmithred - Works great!!</p><p>Were you referring to the <strong>last setting</strong> for the Gamma or the Brightness?</p><p>What&#039;s usually the best way, with Yad, to store the Brightness value that can later be retrieved by a bash script using xrandr on startup?</p><p>Thanks!!</p>]]></description>
			<author><![CDATA[dummy@example.com (mtbvfr)]]></author>
			<pubDate>Wed, 08 Jan 2025 06:57:21 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53972#p53972</guid>
		</item>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53950#p53950</link>
			<description><![CDATA[<p>@mtbvfr - you don&#039;t need to comment out any lines for the gamma settings. If you want to play with the gamma settings, just click on the gamma button when the window comes up and you can adjust it. If you run it a second time, it won&#039;t show your last setting. I obviously don&#039;t understand how it works.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Tue, 07 Jan 2025 14:56:56 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53950#p53950</guid>
		</item>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53949#p53949</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Although xbindkeys and xdotool are installed on my Daily Driver, there wasn&#039;t any .xbindkeysrc in my Home directory. sad</p><p>Is there any other directory where such a configuration file exists?</p></div></blockquote></div><p>You are supposed to create it in your ~ directory though like most of these things. I would imagine the option exists to start the program specifying another location for the config file passed as option at startup. The reference file for it lives at the /usr/share/doc/xbindkeys/examples/xbindkeysrc copy that to your ~/.xbindkeysrc then edit for your changes.</p><div class="codebox"><pre><code>alias afl=&#039;apt-file list&#039;
root@9600k:~# afl xbindkeys
xbindkeys: /etc/xdg/autostart/xbindkeys.desktop
xbindkeys: /usr/bin/xbindkeys
xbindkeys: /usr/bin/xbindkeys_autostart
xbindkeys: /usr/bin/xbindkeys_show
xbindkeys: /usr/share/doc/xbindkeys/BUGS
xbindkeys: /usr/share/doc/xbindkeys/NEWS.Debian.gz
xbindkeys: /usr/share/doc/xbindkeys/NEWS.gz
xbindkeys: /usr/share/doc/xbindkeys/README.Debian
xbindkeys: /usr/share/doc/xbindkeys/README.gz
xbindkeys: /usr/share/doc/xbindkeys/TODO
xbindkeys: /usr/share/doc/xbindkeys/changelog.Debian.gz
xbindkeys: /usr/share/doc/xbindkeys/changelog.gz
xbindkeys: /usr/share/doc/xbindkeys/copyright
xbindkeys: /usr/share/doc/xbindkeys/examples/xbindkeysrc
xbindkeys: /usr/share/doc/xbindkeys/examples/xbindkeysrc-combo.scm
xbindkeys: /usr/share/doc/xbindkeys/examples/xbindkeysrc.scm
xbindkeys: /usr/share/doc/xbindkeys/examples/xbindkeysrc1
xbindkeys: /usr/share/doc/xbindkeys/examples/xbindkeysrc2
xbindkeys: /usr/share/man/man1/xbindkeys.1.gz
xbindkeys: /usr/share/man/man1/xbindkeys_autostart.1.gz
xbindkeys: /usr/share/man/man1/xbindkeys_show.1.gz
xbindkeys: /usr/share/menu/xbindkeys</code></pre></div><p>Edit: The script I use in the KDE autostart system setting to start it up on login.</p><div class="codebox"><pre><code>zeus@9600k:~$ cat bin/xbindkeys.sh 
#!/bin/bash
# enable it on login if xbindkeys is installed.
if [ -f &quot;/usr/bin/xbindkeys&quot; ]; then
        xbindkeys
fi</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Tue, 07 Jan 2025 13:47:02 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53949#p53949</guid>
		</item>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53946#p53946</link>
			<description><![CDATA[<div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>This one is a little fancier</p></div></blockquote></div><p>Thanks mate, I will give it a go mañana.</p><p>Should I comment out the lines referring to gamma?</p><p>Ah, I see, I think. You are only using <strong>select_brightness</strong> in the Main Procedure.</p>]]></description>
			<author><![CDATA[dummy@example.com (mtbvfr)]]></author>
			<pubDate>Tue, 07 Jan 2025 10:54:42 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53946#p53946</guid>
		</item>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53945#p53945</link>
			<description><![CDATA[<p>This one is a little fancier and requires yad to be installed. It gives you a graphical slider. I&#039;m not sure I did the gamma parts right and I never use that.</p><div class="codebox"><pre class="vscroll"><code>#!/usr/bin/env bash
# set_bright3b

set -x

# Set these names according to what xrandr tells you.
# For a single monitor, comment out the second xrandr command
# at the bottom of the script.

monitor_1=&quot;LVDS-1&quot;
monitor_2=&quot;&quot;

get_current_values () {
	
	current_bright=$(xrandr --verbose | grep -m1 Brightness | cut -d&quot;.&quot; -f2)
	
	if  [ &quot;$current_bright&quot; = 0 ] ; then
		let current_bright=&quot;9&quot;
	fi
	
	current_gamma=$(xrandr --verbose |grep -m1 Gamma | cut -d&quot;:&quot; -f3)
	gamma1=&quot;$current_gamma&quot;
}

select_brightness () {
	
	br1=$(yad --scale --title=Brightness --width=300 --min-value=2 --max-value=10  --value=&quot;${current_bright:0:1}&quot; \
		--mark=2:2  --mark=3:3 --mark=4:4 --mark=5:5 --mark=6:6 --mark=7:7 --mark=8:8 --mark=9:9 --mark=10:10 \
		--page=1 --button=OK:0 --button=&quot;Gamma&quot;:1 --button=Exit:2)
		
		exit_code=&quot;$?&quot;
		
		if [[ $exit_code -eq 1 ]] ; then
			br1=&quot;${current_bright:0:1}&quot;
			select_gamma
		elif [[ $exit_code -eq 2 ]] ; then
			exit 0
		fi
}

select_gamma () {
	gm1=$(yad --form --field=Gamma:NUM &quot;${current_gamma}\!0.5..1.5\!0.1\!1&quot;)
	gamma1=&quot;${gm1:0:3}&quot;
}

get_current_values
select_brightness

if [ &quot;$br1&quot; = 10 ] ; then
	bright1=&quot;1.0&quot;
	bright2=&quot;1.0&quot;
else
	bright1=&quot;0.$br1&quot;
	bright2=&quot;$bright1&quot;
	# Uncomment the following 3 lines if monitor2 should be less bright.
	#br2=&quot;$br1&quot;
	#(( br2-=1 ))
	#bright2=&quot;0.$br2&quot;
fi

xrandr --output &quot;$monitor_1&quot; --brightness &quot;$bright1&quot; --gamma &quot;${gamma1}:${gamma1}:${gamma1}&quot;
#xrandr --output &quot;$monitor_2&quot; --brightness &quot;$bright2&quot; --gamma &quot;${gamma1}:${gamma1}:${gamma1}&quot;

exit 0</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Tue, 07 Jan 2025 10:34:00 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53945#p53945</guid>
		</item>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53944#p53944</link>
			<description><![CDATA[<p>Complete removal by Synaptic occurred without error.</p><p>Installation using apt produced the same error in Post #33.</p><p>Although xbindkeys and xdotool are installed on my Daily Driver, there wasn&#039;t any <strong>.xbindkeysrc</strong> in my Home directory. <img src="http://dev1galaxy.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><p>Is there any other directory where such a configuration file exists?</p><p>It may have been MX17 or MX18 I was using that.</p><p>I can&#039;t remember, now, how I got my head around this stuff.</p><p>Is there better documentation on the use of xbindkeys than the following page?</p><p><a href="https://wiki.archlinux.org/title/Xbindkeys" rel="nofollow">https://wiki.archlinux.org/title/Xbindkeys</a></p><p>Section <strong>2.2 Backlight control</strong> I find interesting but I find Section 5 confusing as it refers to <strong>xmodmap</strong>.</p><p>I am wondering if I could use XF86MonBrightnessUp and XF86MonBrightnessDown in the graphical Settings Editor for xfconf.</p>]]></description>
			<author><![CDATA[dummy@example.com (mtbvfr)]]></author>
			<pubDate>Tue, 07 Jan 2025 10:31:16 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53944#p53944</guid>
		</item>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53937#p53937</link>
			<description><![CDATA[<p>light and xsct work for me</p><p>if you use certain window managers, you can autostart it&#160; too when you log in.</p><p>Actually edit:</p><p>I just noticed I didn&#039;t read the title carefully enough.</p><p>My bad...</p>]]></description>
			<author><![CDATA[dummy@example.com (zapper)]]></author>
			<pubDate>Tue, 07 Jan 2025 02:45:20 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53937#p53937</guid>
		</item>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53934#p53934</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>If using xbindkeys and xdotool</p></div></blockquote></div><p>Thanks for reminding me about those. It must be like 7+ years when I did something with those when I bought a Micro$oft Natural Keyboard with the &quot;Wave&quot; style key layout. It has 5 extra keys that can be programmed for whatever. I stopped using it because I prefer the layout of the Home-End-Delete-PageUp-PageDown and Multimedia Keys of my 2004 Micro$oft Natural Multimedia PS/2 keyboard for which I bought a Perixx PS/2 to USB adapter. It also has much better Build Quality.</p><p>I may even have it setup on this MX 19.4 installation I&#039;m on and still using as my Daily OS. I will look into it later. What would be good is to be able to prompt the User for a value.</p>]]></description>
			<author><![CDATA[dummy@example.com (mtbvfr)]]></author>
			<pubDate>Tue, 07 Jan 2025 01:58:35 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53934#p53934</guid>
		</item>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53933#p53933</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>It doesn&#039;t install correctly in MX neither, see post #33.</p></div></blockquote></div><p>Damn missed that way to early in the morning to be replying.</p><div class="quotebox"><blockquote><div><p>If Devuan created a Brightness Adjustment Applet using xrandr, that would solve the problem.</p><p>Using xrandr --output LVDS --brightness 0.5 for example reduces the brightness by half.</p></div></blockquote></div><p>Perfect time to scratch your own itch as the saying goes in Linux. Create a file with these contents.</p><div class="codebox"><pre><code>#!/bin/bash

# A script to halve the brightness of the display
xrandr --output LVDS --brightness 0.5</code></pre></div><p>Make it executable.</p><div class="codebox"><pre><code>chmod +x /path/to/brightness.sh</code></pre></div><p>Put it in your home bin directory if you use one or /usr/local/bin so it will be in the PATH then<br />brightness.sh used in a shell will execute the command. If using xbindkeys and xdotool you should be able to map it to a key shortcut to just have it done with that shortcut. Or perhaps a .desktop file can be made to run the command via a click on its icon. Just a couple of ways of doing it and as I say scratching your own itch. I have dozens of little scripts I run all the time from my cloning/backup one that will clone or backup my running system to media conversion, file copying to other machines, the list is endless.</p>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Mon, 06 Jan 2025 23:36:31 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53933#p53933</guid>
		</item>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53931#p53931</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Now there is thought now I think of it,</p></div></blockquote></div><p>It doesn&#039;t install correctly in MX neither, see post #33.</p><p>Just looked at the Devuan environment and there is no /proc/acpi/toshiba directory at present, only the /proc/acpi.</p><p>I noticed the Laptop running cooler when using Devuan also.</p><p>I will try Complete Removal from Synaptic again and then reinstalling using apt in the Devuan environment and see if the output is different to MX</p><p>The post by Mavrik on 8th, 2007, 11:43 AM and some following ones on the following page are interesting.</p><p><a href="https://ubuntuforums.org/archive/index.php/t-316358.html" rel="nofollow">https://ubuntuforums.org/archive/index. … 16358.html</a></p><p>In a search for &quot;Phoenix BIOS 1.70 acpi&quot; I found the following pages:</p><p><a href="https://support.dynabook.com/support/viewContentDetail?contentId=1401578" rel="nofollow">https://support.dynabook.com/support/vi … Id=1401578</a></p><p><a href="https://support.dynabook.com/support/viewContentDetail?contentId=1991832" rel="nofollow">https://support.dynabook.com/support/vi … Id=1991832</a></p><p>Others to look at too.</p><p>The Fn Key only works with the F10 and F11 Keys on my Sister&#039;s Laptop which are for using the overlayed Numpad. Windoze XP was installed on the original Hard Drive and there is a Windows Vista Capable sticker near the Fingerprint reader,</p><p>She told me that with Win XP, there is a Brightness Adjustment feature in Settings.</p><p>If Devuan created a Brightness Adjustment Applet using xrandr, that would solve the problem.</p><p>Using <strong>xrandr --output LVDS --brightness 0.5</strong> for example reduces the brightness by half.</p>]]></description>
			<author><![CDATA[dummy@example.com (mtbvfr)]]></author>
			<pubDate>Mon, 06 Jan 2025 22:01:28 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53931#p53931</guid>
		</item>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53920#p53920</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Would that have been done by the use of modprobe?</p></div></blockquote></div><p>It is responsible for loading the module for use by the installed programs. Looks like there is some bug in the Devuan then if it installs and works fine in the MX. Both do not use the systemd garbage so have that in common but apparently not enough for the same package to work on both OSs.</p><p>Edit: Now there is thought now I think of it, does the package from Devuan install without errors on the MX or the other way around will the MX install on the Devuan. If they both use the same libraries/dependencies&#160; they should be interchangeable.</p>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Mon, 06 Jan 2025 11:29:20 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53920#p53920</guid>
		</item>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53919#p53919</link>
			<description><![CDATA[<p>Interesting page:</p><p><a href="https://bugs.launchpad.net/ubuntu/+source/fnfx/+bug/127611" rel="nofollow">https://bugs.launchpad.net/ubuntu/+sour … bug/127611</a></p><p>My Sister&#039;s Laptop has a Phoenix BIOS 1.70.</p><p>I noticed today that the Laptop seems to be running cooler now.</p>]]></description>
			<author><![CDATA[dummy@example.com (mtbvfr)]]></author>
			<pubDate>Mon, 06 Jan 2025 11:05:10 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53919#p53919</guid>
		</item>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53918#p53918</link>
			<description><![CDATA[<p>I tried installing on MX Linux 24.3 with <strong>apt install</strong> after doing <strong>modprobe</strong> and <strong>lsmod</strong> and the following output before which there were no errors as there was when I installed on Devuan with synaptic:</p><div class="quotebox"><blockquote><div><p>Setting up fnfxd (0.3-18) ...<br />Starting Toshiba hotkeys utils: FnFX Daemon v0.3 (c) 2003, 2004 Timo Hoenig &lt;thoenig@nouse.net&gt;</p><p>fatal error: Could not open /proc/acpi/toshiba/keys.<br />Please make sure that your kernel has enabled the Toshiba option in the ACPI section.<br />For more information read the documentation and/or <a href="http://fnfx.sf.net/index.php?section=doc#kernel" rel="nofollow">http://fnfx.sf.net/index.php?section=doc#kernel</a>.</p><p>invoke-rc.d: initscript fnfxd, action &quot;start&quot; failed.<br />dpkg: error processing package fnfxd (--configure):<br /> installed fnfxd package post-installation script subprocess returned error exit status 1<br />Errors were encountered while processing:<br /> fnfxd</p></div></blockquote></div><p>I can&#039;t find any reference to /proc/acpi/toshiba/keys in the files in the .deb file.</p><p>/proc/acpi/toshiba was created today. Would that have been done by the use of modprobe?</p><p>I&#039;ve started searching on &quot;Could not open /proc/acpi/toshiba/keys&quot;.</p>]]></description>
			<author><![CDATA[dummy@example.com (mtbvfr)]]></author>
			<pubDate>Mon, 06 Jan 2025 10:26:27 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53918#p53918</guid>
		</item>
		<item>
			<title><![CDATA[Re: Screen Brightness app for SysTray?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53916#p53916</link>
			<description><![CDATA[<p>In Post #29 I had deleted <strong>/etc/init.d/fnfxd</strong>.</p><p>Why was it not installed again?</p><p>What&#039;s the best way to do a complete removal and purge so that I can reinstall using apt instead?</p>]]></description>
			<author><![CDATA[dummy@example.com (mtbvfr)]]></author>
			<pubDate>Mon, 06 Jan 2025 07:05:00 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53916#p53916</guid>
		</item>
	</channel>
</rss>
