-
-
Notifications
You must be signed in to change notification settings - Fork 31
[Bug]: permission denied erros if ran without sudo, no config found if ran with sudo #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's probably caused by this, but you are right we can try to be better at explaining what needs to be done... |
And I've realized that we don't have udev rules documented anywhere! This is actually how it's solved in Arch package, by installing this file in the proper location, so that adding yourself to Line 42 in 3901acc
|
I don't seem to have these variables defined on my system?
and then did the usual dance around config files to add myself to
and I can confirm I am in
BUT, it still doesn't appear to have permissions to control the screen:
|
Lines 4 to 5 in 3901acc
It's part of
Great, final thing is to confirm that udev rule was applied successfully (you can look inside what it does, it just changes group owner of a file), it should look like this (if not, reboot, or maybe you installed udev rule in a wrong location, or maybe just do it by hand)
|
It was!
However after a quick reboot I am now facing another crash XD
the backtrace can be found here: https://paste.centos.org/view/fbfd811d |
Great! This is because you are using Gnome, you must change |
And please dont close the issue yet after you get it to work, there is clearly several things that must be documented better, I will use this as a reference to improve it 👍 |
looks like it did the trick. Can it still adjust my brightness based on time of day? I only really need it to get a bit dimmer during the day and a bit brighter during the night. |
actually no scratch that, I tested how annoying webcam simulation is, and it doesn't seem to affect anything aside from my webcam light blinking :D |
Yes, that will still work 👍 Make sure to use Lines 9 to 10 in 3901acc
The keys are hours, values are arbitrary, so you can do like:
And this would give you two states, night during
You need to train it after setting the config :) So suppose you use time based config above, during the day set brightness to 90% and then at night set it to 30%, and then wluma will keep setting it for you to 90% and 30% as the hour changes
|
hmm yes, it appears to work now. I'm going to add it as a user systemd service and let it run for a couple of days, will check in back later to report how well it turned out |
wluma has done something weird to my webcam. Now if I run wluma webcam light comes on and stays on, instead of blinking like it did yesterday. RUST_LOG=trace says wluma thinks it's always bright af, even if I cover the camera with my finger. All other apps just receive a black screen from it. |
Could you please create a separate ticket for this? Let's see what we can improve with regards to webcam... Also please include whether you can consistently reproduce (and if yes, some repro steps would be welcome), whether stopping wluma turns off the webcam light or it keeps shining even after exiting the app, whether running wluma without If it worked but then stopped, I imagine it's some sort of conflict with another app, webcam is a single shared resource that can only be used by one app, so if you e.g. have a video call, wluma will not be able to use webcam. |
created #41 |
Documented the need for installing udev rule when using |
Steps for reproducing the issue
~/.config/wluma/config.toml
What is the buggy behavior?
behavior when ran without sudo:
behavior when ran with sudo:
here's a link to a file with
RUST_BACKTRACE=full
when running with sudo:https://paste.centos.org/view/33b45dcf
What is the expected behavior?
I think the issue there is that when it's ran with sudo it thinks the user is root and looks for config file in
/root/.config/wluma/config.toml
Logs
Version
version 4.1.0, from the built artifact in releases folder
Environment
The text was updated successfully, but these errors were encountered: