-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Problems trying to automate the auto-toggle function #30
Comments
@Holzhaus I think you'll be in the best position to help with this ❤️ |
You say it worked perfectly when running on the terminal. As which user did you run it? As root or as your regular user? If the latter is the case, try to replace the Currently, the auto-toggle command monitors all accesses to One easy fix could be to add a command line argument where you specify a video device. That way other video devices would be ignored. But I'm not sure if the video devices have a predictable order a cross restarts. Maybe some way to specify a video device by serial number or similar would be preferable. |
Thanks for the reply.
I ran it under my admin account, using sudo. I put the user as
This sounds like a good idea to me. My latop has a built-in webcam (which I never use) in addition to the USB webcam, so being able to isolate specify the Logitech via a command would be a nifty feature. |
Please have a look at #39 and let me know if this works for your use-case. IBM not sure that the device paths are actually stable across restarts, this would also make sense to check. To find the correct path you can use |
Regarding the permission issue, check the README. If you install the udev rules you should be able to run https://github.com/timrogers/litra-rs?tab=readme-ov-file#configuring-udev-permissions-on-linux |
Adding the udev rules worked a treat, thanks. So with the #39 build, I should add |
As a follow-up, I've found that the test build works just the same as the latest release for my purposes. I've actually found that running |
First off, thanks very much for creating and maintaining this project. I was very pleased to see the recent appearance of the
auto-toggle
feature, but I am experiencing something teething problems when trying to automate it and am hoping you might be to enlighten(!) me.The auto-toggle function seems to work perfectly when run manually in a terminal, but seeing as I don't want to have to do that at every startup I tried to create a systemd service instead, using the following config:
This method seems to work at first glance but I quickly noticed that the light is being auto-toggled on even when no camera device is active, like the service is picking up on a false positive activation event (or something similar).
Can you spot anything I'm doing wrong, or would you suggest another way to go about this?
Many thanks!
System: EndeavourOS
Kernel: arch 6.6.18-1-lts
Light: Litra Glow
Camera: Logitech C920
The text was updated successfully, but these errors were encountered: