-
Notifications
You must be signed in to change notification settings - Fork 59
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
ERROR: The current user does not have permission for operation #53
Comments
I tried figuring this out yesterday, I think there was another issue opened here which could run it if they ran xorg as root, however it's a pretty ugly workaround. What ended up working for me was adding
The biggest issue with this script is that if you enable the script to run at boot, it will fail. Your graphical environment has to be running before the service will work. There are different options to make this work, depending on what setup you have, here are two options: https://unix.stackexchange.com/questions/397853/how-to-set-a-systemd-unit-to-start-after-loading-the-desktop I'm using i3, but if you're using a DE you might be able to start it with xsession. My solution is really hacky and would be nice if someone else had a cleaner fix. **also forgot to add, im using the AUR package, thats why it's called nfancurve instead of temp.sh |
AERDU, thank you very much for your answer! I tried your solution and it works just perfect for service autostarting. But I still have in my log: Oct 20 12:23:02 v01k-desktop systemd[661]: Started Nfancurve service. As I said, the fan speed level changes well even with this error. I'm sorry, but I don't understand a little bit this moment that you wrote: "...and created another one you run at root". I'm not very experienced with Linux services and don't understand how to run service with --user as root. Please clarify this moment for me. Thank you! P.S. I'm also using i3 and the package from AUR. |
move the .service file to |
Oh, thank you! I thought about it, but wasn't sure it is the right way :) And what do you think about why this error appeared after the last Arch update? Could it be related to the latest Nvidia driver? |
There's another nvidia fan controller at https://github.com/foucault/nvfancontrol that states: keep in mind that my solution does NOT start X11 as root (at least it shouldn't unless setting $DISPLAY to :0 in a root session somehow elevates xorg). I'm also not sure why you got it after a recent update, v465 was awhile ago unless you use DKMS or something. |
AERDU, thank you very much for clarifying this problem for me. Yes, it is very strange that I got this error after a recent update, because I always update my system, maybe weekly or even more often. But now everything works fine, and then we'll see, maybe the developer will make some changes. Thanks again! |
Tiny improvement I made recently, instead of setting the service on a timer I just set it to restart if it exits with an error code:
This should fix the issue instantly, and don't forget to |
Hello, thanks for your help here. I had the same issue too.
But i still had the following errors in journalctl
I resolved it by adding another line in the shell script : Indeed
I do not really like it, because normally (before the export above) EDIT : it also works when i add Have you faced this issue too ? |
My logs are free from any errors related to
I use ly , it probably just runs |
Hello! First of all, thank you for your work!
I have been using this script for a year, maybe more, without any problems. Without problems it still works, but after the last Arch update it shows "ERROR: The current user does not have permission for operation" on every line when changing the fan speed level. But everything works fine and the fan speed changes. I tried running it as a script or as a service, it's the same in the log. With sudo there is no this error.
Because it works well it is not a big problem, but I want to understand what is causing this Error. Thank you!
My specs:
GPU: GTX 1650 Super (Palit StormX) with single fan.
OS: Arch
Kernel: 6.0.2-arch1-1
Driver version: 520.56.06
The text was updated successfully, but these errors were encountered: