-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry Pi 5 #60
Comments
I can confirm this error on the RPI5 which has 2 display/camera ports. Plugging into Display 1 creates 4-0045 and into Display 0 creates 6-0045 - The 10-0045 seems to be a Pi4 artifact which only has 1 display port. My messy fix to rpi_backlight-2.6.0 init.py (Tested on Pi5 but not tested on Pi4 or Pi3 with earlier versions of Raspbian) is: _BACKLIGHT_SYSFS_PATHS = { This library will probably not work correctly if you plug in 2 displays. |
Just ran into the same issue, and came to the same conclusions as the posters above. |
If anyone wants to make a PR that would be most welcome :) There already is dynamic detection of which base directory to use, this should be simple to add. |
I've just installed my official raspberry pi touchscreen onto my new raspberry pi 5. I kept getting this error:
After some digging around a bit it looks like neither of these two folders exist on my rpi5:
/sys/class/backlight/rpi_backlight
/sys/class/backlight/10-0045
Instead, there is a folder called
/sys/class/backlight/4-0045
I was able to get it working when I changed the __init__.py files as follows:
Whilst this worked for me, I have no idea how to implement a general solution for all pi models.
The text was updated successfully, but these errors were encountered: