question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi Linus! I have ran the following command:

echo 'SUBSYSTEM=="backlight",RUN+="/bin/chmod 666 /sys/class/backlight/%k/brightness /sys/class/backlight/%k/bl_power /sys/devices/platform/ff150000.i2c/i2c-3/3-0045/tinker_mcu_bl
"' | sudo tee -a /etc/udev/rules.d/backlight-permissions.rules

Note, I ran for both the TinkerBoard and the Pi files, as all files exist on my OS. This does not fix the permissions for me.

Sidenote, I actually had to replace the %k with rpi_backlight:

echo 'SUBSYSTEM=="backlight",RUN+="/bin/chmod 666 /sys/class/backlight/rpi_backlight/brightness /sys/class/backlight/rpi_backlight/bl_power /sys/devices/platform/ff150000.i2c/i2c-3/3-0045/tinker_mcu_bl
> "' | sudo tee -a /etc/udev/rules.d/backlight-permissions.rules

as I got:

chmod: cannot access '/sys/class/backlight/%k/brightness': No such file or directory
chmod: cannot access '/sys/class/backlight/%k/bl_power': No such file or directory

Just wondering if you have any idea why both the udev rule wouldn’t work, nor the %k in that rule?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
p1r473commented, Apr 25, 2020

Not sure if it was a problem with the echo or the tee, but just manually creating the file seems to work: /etc/udev/rules.d/backlight-permissions.rules:

SUBSYSTEM=="backlight",RUN+="/bin/chmod 666 /sys/class/backlight/%k/brightness /sys/class/backlight/%k/bl_power /sys/devices/platform/ff150000.i2c/i2c-3/3-0045/tinker_mcu_bl"

Thanks!

0reactions
linusgcommented, Apr 25, 2020

Weird! Glad you got it working though, thanks for reporting back!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[GUI] Permissions GUI | Bukkit Forums
The Permissions GUI is a graphical user interface. You can configure the permissions of you server with just some buttons!
Read more >
How to Manage User Permissions From the GUI on Linux
But using the standard methods, UGO permission systems limits how you can manage permissions with multiple users or multiple groups. If you want ......
Read more >
Changing Permissions in the GUI - PTC Support
To change permissions using the Integrity Lifecycle Manager client GUI: 1. Select the project, subproject, or member you want to change permissions for....
Read more >
Create GUI users and assign user permissions - IBM
Create GUI users and assign user permissions ; Go to Services > GUI page in the IBM Spectrum Scale GUI. ; Click Groups....
Read more >
Permissions: - EconomyShopGUI
Permission nodes: · EconomyShopGUI.shop.<section> · TRUE · Access to open a specific shop section by its name (REPLACE <section> with the actual name...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found