The source project of this merge request has been removed.
Add a udev rule to set the flashlight permissions to 666
Recently, indicator-power was updated to include more sysfs paths, so it could also work on non-Qualcomm devices. However, the toggle does not work on the PinePhone, because the permissions of the file in question (/sys/class/leds/white:flash/brightness
) are set to 644, and it is owned by root. Because indicator-power
runs as the phablet
user, it cannot change this.
This commit adds a udev rule to set the flashlight permissions to 666. This allows the toggle in indicator-power to work.