开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Adding Brightness Control to your sBITX #sBitx #sBITX_v3


 

Hello.

Here is a way to add a controllable backlight controller app for your sBITX with a Raspberry Pi display. This works great on my v3 and reduces power consumption while I am using the web app or VNC.

Follow instructions here and install the package.


Adding a shortcut for the GUI.


 

Also to be safe, the GUI should be changed to limit the backlight to 5% minimum.

This is accomplished by modifying gui.py in "/home/pi/.local/lib/python3.7/site-packages/rpi_backlight"


? ? window = Gtk.Window(title="rpi-backlight GUI")
? ? scale = Gtk.Scale(
? ? ? ? orientation=Gtk.Orientation.HORIZONTAL,
? ? ? ? adjustment=Gtk.Adjustment(
? ? ? ? ? ? value=backlight.brightness,?lower=5, upper=100, step_increment=1


?


 

This is a great solution.
It took me a little more time to understand how it works to implement all this at the beginning of May.
In my case, with the brightness reduced to 30%, the device uses 6-7 Watts of power (0.48A...0.54A at 12.5V supply voltage) depending on use.
With the current limit of 6.00 A, this can go up to 70 W when broadcasting. The transmission current consumption is mostly 4...5A.
--
Gyula HA3HZ


 

You can also do this from a terminal without an app.
  • Reduce screen brightness
    • sudo sh -c "echo nnn > /sys/class/backlight/rpi_backlight/brightness"
    • where nnn is a number from 1 to 255. I set mine down to 80, which is much better for my eyes and reduced power draw from 1.2 A to .9 A.
This was posted some time ago and is in the WIKI sBITX How To
I keep a text file on the Pi desktop with handy commands and copy and paste them into a terminal.

Consider adding useful things to the How To.
--
73
??? Bob? KD8CGH


 

On Thu, Dec 28, 2023 at 06:40 AM, Bob Benedict, KD8CGH wrote:
Consider adding useful things to the How To.

I've been doing some of that while couch surfing...? It is at?/g/BITX20/wiki/30883

I am trying to keep it short by referring back to useful posts using the?link?format, in this example to refer back to this thread.

I also try to keep 'sBITX Topics' under?/g/BITX20/wiki/Home?up-to-date when I see new stuff posted.

At the end of that page you find:

Adding to the Wiki

The idea is that any one of us can update the info, wiki editing is very straight forward.

?
--
Regards,
Dave, N1AI


 

Thanks for posting the Wiki links, Dave. I am new to the SBITX platform coming from a uBITX v6. Much appreciated to everyone posting links, tips, and tricks for this awesome piece of kit.


rdg
 

Thanks Dave. ?So much info is buried in the email repository but it’s seemingly difficult to unearth it. ?How many of us are building our own private knowledge base?

73
Roy



Sent from for iOS


On Thu, Dec 28, 2023 at 14:29, JJ - W9JES via groups.io <w9jes@...> wrote:
Thanks for posting the Wiki links, Dave. I am new to the SBITX platform coming from a uBITX v6. Much appreciated to everyone posting links, tips, and tricks for this awesome piece of kit.


 

Taking inspiration from others on the group and trying other builds... I decided to create my own Backlight Control application for the sBitx. I've attempted to make it very easy to install and use without complicated install procedures for those who simply want to use their sBitx.

You can visit my GitHub page for the files and instructions.?


- JJ


 

开云体育

JJ, GitHub is asking for a user name and pass word.

Barry

?

Sent from for Windows

?

From: JJ - W9JES
Sent: Thursday, January 18, 2024 6:57 PM
To: [email protected]
Subject: Re: [BITX20] Adding Brightness Control to your sBITX #sBitx #sBITX_v3

?

Taking inspiration from others on the group and trying other builds... I decided to create my own Backlight Control application for the sBitx. I've attempted to make it very easy to install and use without complicated install procedures for those who simply want to use their sBitx.

You can visit my GitHub page for the files and instructions.?


- JJ

?


 

On Thu, Jan 18, 2024 at 07:09 PM, barry halterman wrote:
JJ, GitHub is asking for a user name and pass word.
That's odd.

Here's the important parts of the page:


?
--
Regards,
Dave, N1AI


 

开云体育

Yup, entered it verbatim with the terminal and got request? for user name and PW from GitHub.

Barry

?

Sent from for Windows

?

From: Dave, N1AI
Sent: Thursday, January 18, 2024 7:22 PM
To: [email protected]
Subject: Re: [BITX20] Adding Brightness Control to your sBITX #sBitx #sBITX_v3

?

On Thu, Jan 18, 2024 at 07:09 PM, barry halterman wrote:

JJ, GitHub is asking for a user name and pass word.

That's odd.

Here's the important parts of the page:


?
--
Regards,
Dave, N1AI

?


 

On Thu, Jan 18, 2024 at 07:43 PM, barry halterman wrote:
Yup, entered it verbatim with the terminal and got request? for user name and PW from GitHub.
Sorry, but I've never seen that before after cloning countles github repos, and am not seeing it with this one.

$ git clone https://github.com/drexjj/sBITX-Backlight.git
Cloning into 'sBITX-Backlight'...
remote: Enumerating objects: 44, done.
remote: Counting objects: 100% (44/44), done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 44 (delta 20), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (44/44), 59.76 KiB | 1.99 MiB/s, done.
Resolving deltas: 100% (20/20), done.
?
Maybe post a photo, perhaps I'll spot something...
?
--
Regards,
Dave, N1AI


 

Hmm. This is new to me as well. I have never authenticated to GH from my sBitx using the browser to associate any type of key or login requirement. I transfer the files over via SCP to my main PC and upload from there.?


 

开云体育

JJ, et al

I was able to install the brightness control this morning. Github did NOT ask for authentication.

TU

Barry

?

Sent from for Windows

?

From: JJ - W9JES
Sent: Thursday, January 18, 2024 9:01 PM
To: [email protected]
Subject: Re: [BITX20] Adding Brightness Control to your sBITX #sBitx #sBITX_v3

?

Hmm. This is new to me as well. I have never authenticated to GH from my sBitx using the browser to associate any type of key or login requirement. I transfer the files over via SCP to my main PC and upload from there.?

?


 

开云体育

Could some sort of malware be involved in the issue the gentleman is having?

Gordon KX4Z


On Jan 19, 2024, at 04:52, barry halterman <kthreebo@...> wrote:

?

JJ, et al

I was able to install the brightness control this morning. Github did NOT ask for authentication.

TU

Barry

?

Sent from for Windows

?

From: JJ - W9JES
Sent: Thursday, January 18, 2024 9:01 PM
To: [email protected]
Subject: Re: [BITX20] Adding Brightness Control to your sBITX #sBitx #sBITX_v3

?

Hmm. This is new to me as well. I have never authenticated to GH from my sBitx using the browser to associate any type of key or login requirement. I transfer the files over via SCP to my main PC and upload from there.?

?


rdg
 

I change screen brightness of the 7” screen as follows…

the brightness can be adjusted using:

echo n > /sys/class/backlight/rpi_backlight/brightness

where?n?is some value between 0 and 255.





Sent from for iOS


On Fri, Jan 19, 2024 at 04:26, Gordon Gibby via groups.io <docvacuumtubes@...> wrote:
Could some sort of malware be involved in the issue the gentleman is having?

Gordon KX4Z


On Jan 19, 2024, at 04:52, barry halterman <kthreebo@...> wrote:

?

JJ, et al

I was able to install the brightness control this morning. Github did NOT ask for authentication.

TU

Barry

?

Sent from for Windows

?

From: JJ - W9JES
Sent: Thursday, January 18, 2024 9:01 PM
To: [email protected]
Subject: Re: [BITX20] Adding Brightness Control to your sBITX #sBitx #sBITX_v3

?

Hmm. This is new to me as well. I have never authenticated to GH from my sBitx using the browser to associate any type of key or login requirement. I transfer the files over via SCP to my main PC and upload from there.?

?


 

See this post..?/g/BITX20/message/108137

He was able to resolve the issue.. There is no malware in the code whatsoever. I wrote it using

"sudo sh -c "echo nnn > /sys/class/backlight/rpi_backlight/brightness"
where?nnn?is a number from 1 to 255.?

And made a slider bar to write the value.


- JJ


 

开云体育

JJ I wasn’t thinking it was in the code I was thinking it was in his computer.?


On Jan 19, 2024, at 13:27, JJ - W9JES <w9jes@...> wrote:

?See this post..?/g/BITX20/message/108137

He was able to resolve the issue.. There is no malware in the code whatsoever. I wrote it using

"sudo sh -c "echo nnn > /sys/class/backlight/rpi_backlight/brightness"
where?nnn?is a number from 1 to 255.?

And made a slider bar to write the value.


- JJ


 

开云体育

Guys, The problem was resolved and I suspect I fat fingered something last evening… I even tried more than once. Anyway, this morning? I was able to get it loaded and it runs. I could have put in a dash instead of a underscore or what ever. The OS is very picky on how things are entered I am finding out the hard way.

Sorry? to have raised a red flag.

73

Barry

?

Sent from for Windows

c

From: Gordon Gibby
Sent: Friday, January 19, 2024 2:17 PM
To: [email protected]
Subject: Re: [BITX20] Adding Brightness Control to your sBITX #sBitx #sBITX_v3

?

JJ I wasn’t thinking it was in the code I was thinking it was in his computer.?



On Jan 19, 2024, at 13:27, JJ - W9JES <w9jes@...> wrote:

?See this post..?/g/BITX20/message/108137

He was able to resolve the issue.. There is no malware in the code whatsoever. I wrote it using

"sudo sh -c "echo nnn > /sys/class/backlight/rpi_backlight/brightness"
where?nnn?is a number from 1 to 255.?

And made a slider bar to write the value.


- JJ

?


 

Please see the following thread for future updates going forward. This app has been consolidated to a new repository. Thank you.?/g/BITX20/message/108459?


-JJ