Skip to content

Add a udev rule to set the flashlight permissions to 666

Kevin Keijzer requested to merge (removed):xenial_-_flash-udev-rule into master

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.

Merge request reports