Raspberry Pi 4 configuration update

The forum area for anything related to the MakerPlane Sunlight Readable Displays.

Moderator: John Nicol

Post Reply
User avatar
John Nicol
Posts: 611
Joined: 23 Nov 2011, 12:17
Contact:

Raspberry Pi 4 configuration update

Post by John Nicol »

Hi Guys,

A slight change to the configuration for Raspberry Pi 4 from the documentation put in the screen box. The web page has been updated here:

https://makerplane.org/?page_id=2792


Raspberry pi 4B PWM Screen Brightness

In Raspberry PI 4B, you need to update the wiringPi GPIO library (Raspberry PI needs to connect to the Internet)

cd /tmp
wget https://project-downloads.drogon.net/wi ... latest.deb
sudo dpkg -i -B wiringpi-latest.deb
The backlight brightness can be controlled using the following commands on raspberry PI 4B:


gpio -g mode 18 pwm
gpio pwmc 4095
gpio -g pwm 18 X


The value of X should be between 0 and 1024, with 0 being the brightest and 1024 the darkest. 

Note the change in value of gpio pwmc value to 4095
-----
John Nicol
Founder, MakerPlane
_valtsu_
Posts: 7
Joined: 29 Jun 2022, 09:59

Re: Raspberry Pi 4 configuration update

Post by _valtsu_ »

I recently installed Raspberry Pi OS (64-bit) bullseye and found out, that gpio commands won't work.
The wiringpi only supports 32bit os.
I installed this https://github.com/guation/WiringPi-arm64 (you just need to enter lines 1. and 3. from the installation example)
Now the screen brightness commands work.
User avatar
John Nicol
Posts: 611
Joined: 23 Nov 2011, 12:17
Contact:

Re: Raspberry Pi 4 configuration update

Post by John Nicol »

Thanks for that!

I am making up a new image now with the new Raspberry Pi O/S to ship with the screens and will post an update when I have done it.

John
-----
John Nicol
Founder, MakerPlane
filippo
Posts: 1
Joined: 22 Sep 2024, 13:22

Re: Raspberry Pi 4 configuration update

Post by filippo »

Code: Select all

cd /tmp
wget https://project-downloads.drogon.net/wi ... latest.deb
sudo dpkg -i -B wiringpi-latest.deb
# The backlight brightness can be controlled using the following commands on raspberry PI 4B:
 

Code: Select all


ippo@raspberrypi4:/tmp $ sudo dpkg -i -B wiringpi-latest.deb
(Reading database ... 205451 files and directories currently installed.)
Preparing to unpack wiringpi-latest.deb ...
Unpacking wiringpi:armhf (2.52) over (2.52) ...
dpkg: dependency problems prevent configuration of wiringpi:armhf:
 wiringpi:armhf depends on libc6.

dpkg: error processing package wiringpi:armhf (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.11.2-2) ...
Errors were encountered while processing:
 wiringpi:armhf
 
 
how can solve ? thanks
capt_zita
Posts: 3
Joined: 08 Nov 2024, 15:59

Re: Raspberry Pi 4 configuration update

Post by capt_zita »

Hello,

I had the same error message on my raspi 4B.

just received my new displays. I went trough all steps as said in the manual.

drivers, rotate 180 degrees, change the touch as well, BUT the touch is not working not working.

The rotation worked out, but there is not touch reaction on the screen.

Any ideas?
_valtsu_
Posts: 7
Joined: 29 Jun 2022, 09:59

Re: Raspberry Pi 4 configuration update

Post by _valtsu_ »

Do you have this line:

Code: Select all

dtoverlay=goodix
on config.txt?
capt_zita
Posts: 3
Joined: 08 Nov 2024, 15:59

Re: Raspberry Pi 4 configuration update

Post by capt_zita »

Sorry for the late reply, I didnt made all GPIOs right. Now its working perfectly.

Thanks.
Post Reply