You are not logged in.
Pages: 1
Topic closed
Both of these work:
sudo chmod +s /usr/bin/lightand also, I gather is the proper fix:
echo "$USER ALL=(ALL) NOPASSWD: /bin/systemctl restart NetworkManager" >> /etc/sudoers.d/$USER----------
lightnow requires sudo to run, after my last update.
This is annoying because it breaks my sway scripts to change my backlight.
Is there a way around having to use sudo for light, or is there an altrnative I can use?
Thank you!
Last edited by aretheybackfrom711yet (2020-04-01 23:44:36)
Thinkpad E485 | Ryzen 5 2500U + Vega 8
wayland | sway | waybar
Offline
You can still use sudo - just put an entry in your sudoers file so that running light doesn't require a password...
Offline
sudo chmod +s /usr/bin/light
Now your scripts should work
Last edited by ewaller (2020-04-01 20:42:46)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Online
@ewaller - Won't that break every time the light package is updated?
Offline
The big change in the new version was https://github.com/haikarainen/light/pull/109/files
Why doesn't udev work, though? https://github.com/haikarainen/light#permissions
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
And guess what's in the light PKGBUILD.
Just add your user to the video group.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Just add your user to the video group.
I was attempting to give the OP the benefit of the doubt, since supposedly it worked before this update. Though maybe that is what the security update fixed -- users outside of the needed group having the ability to use it anyway.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Thanks guys, got two good answers
Thinkpad E485 | Ryzen 5 2500U + Vega 8
wayland | sway | waybar
Offline
Hi, I am digging that thread out since in my newest attempt to switch to sway I stumbled over the same issue.
Light used to work without sudo and now it doesn't.
Since the last comment mentioned it should be sufficient to just add the user to group video I am a bit confused as my user is already in group video but that didn't helped.
EDIT:
I'm sorry, nevermind. After a reboot it worked. Maybe some reload command would have been sufficient too.
Last edited by Simaryp (2021-01-02 11:19:33)
Offline
Closing this old solved topic.
Offline
Pages: 1
Topic closed