DietPi + RPi 4 + HyperPixel 4

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
stefanvidev
Posts: 2
Joined: Wed Mar 18, 2020 10:50 pm

DietPi + RPi 4 + HyperPixel 4

Post by stefanvidev »

Hi!

Just tried out DietPi, runs great (decreased my boot times by 3 x)!

However, I'm trying to get the HyperPixel 4 (touchscreen LCD) running, and I am failing to achieve that. Installation on regular Raspbian was dead easy by just running the provided installation script.

The installation script is here: https://github.com/pimoroni/hyperpixel4 ... install.sh

I immediately noticed that editing /boot/config.txt does nothing as we need to edit /DietPi/config.txt instead. I have rectified that, but still not working. I am assuming some of the other assumptions that the script makes of where certain things should be is wrong. Could someone please help me out (essentially by pointing out what the script is doing wrong and fixing it or at least pointing me in the right direction)?

The other thing I noticed is that the init script requires the python library RPi, which is not installed by default. This is easy to rectify.

EDIT:
Delving a little deeper I noticed that the hyperpixel-rotate utility expects the existence of the following files:
UDEV_FILE="/etc/udev/rules.d/98-hyperpixel4-calibration.rules"
DISP_FILE="/usr/share/dispsetup.sh"

which don't seem to exist in the filesystem. The UDEV_FILE seems to be generated by the rotate utility, so it makes sense it's not there since the service etc. seems to not be running.

Any help would be very much appreciated!

Thanks!
User avatar
Joulinar
Posts: 2059
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi + RPi 4 + HyperPixel 4

Post by Joulinar »

Hi,

just some generell thinks:

Yes indeed config.txt needs to be maintained within /DietPi/ . Reason is that it is located on RamDisk. During reboot, this file will be written down to disk /boot/ . So it will overwrite original /boot/config.txt :) Anyway this will change with next release v6.29 ;)

python can be simply installed by using diepi-software. Reason for python not being available is, that DietPi is an extrem lean version of Raspbian Lite for Raspberry SBC's. Means quite a lot of packages purged if they are not needed for basic functions ;)

Regarding the /usr/share/dispsetup.sh it seems something that is generated by xrandr Screen Configuration tool. But I'm not 100% sure honest to be.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
stefanvidev
Posts: 2
Joined: Wed Mar 18, 2020 10:50 pm

Re: DietPi + RPi 4 + HyperPixel 4

Post by stefanvidev »

Hi!

So after some tinkering, I got it to work.

Fixing the location of the config.txt file + installing the RPi.GPIO library for python (I had python installed previously) + adding dtoverlay=vc4-fkms-v3d to the config.txt manually solved any issues that there may have been.

Thanks for the help, hopefully this will be helpful to someone else down the line.
User avatar
Joulinar
Posts: 2059
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi + RPi 4 + HyperPixel 4

Post by Joulinar »

Hi,

just for clarification:

what do you mean by > Fixing the location of the config.txt ??

yep indeed dtoverlay=vc4-fkms-v3d is needed for RPi4 graphics. But could have been activated using dietpi-config
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply