* Old rpi_backlight driver is no longer used on recent kernel versions. Regulator driver is used for backlight instead. * Change the backlight path and implement scaling to support the official Raspberry Pi 7" DSI Touch Display & Touch Display 2. * The original Touch Display has max brightness of 255 while the new Touch Display 2 has 31.
12 lines
407 B
Plaintext
12 lines
407 B
Plaintext
on early-boot
|
|
chown system system /sys/class/backlight/11-0045/brightness
|
|
chown system system /sys/class/backlight/11-0045/max_brightness
|
|
chmod 660 /sys/class/backlight/11-0045/brightness
|
|
chmod 440 /sys/class/backlight/11-0045/max_brightness
|
|
|
|
service vendor.light-default /vendor/bin/hw/android.hardware.light-service.rpi
|
|
class hal
|
|
user system
|
|
group system
|
|
shutdown critical
|