sudo envycontrol -s nvidia --force-comp --coolbits 24 from terminal.
...But i choose from the applet (Optimus GPU Switcher") "discret" or "hibrid" nothing happens...i try reboot but doesn't works, always is display nvidia on the applet.
Debian 13 Testing my system.
Thanks!
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
Sorry for the delay but I've been a bit busy. There was certainly a problem requesting root privileges.
Please try updating the widget, and let me know if it works for you now.
Sorry for the delay but I've been a bit busy. There was certainly a problem requesting root privileges. Please try updating the widget, and let me know if it works for you now.
Same problem as @JakobEdvardsson.
Widget version: 1.1.3
Distro: Arch
KDE Plasma: 5.27.6
kdesu is installed.
Are you using Wayland or X11? I did a fresh install of my distro and tried with X11 and had no issue.
Unfortunately I was not able to use envycontrol with Wayland. Nvidia mode would apply according to envycontrol but my external monitors would not work. No issues on X11.
My guess is that your not prompted to run as root user. So the application doesn't have permission. I'll have a look at it later today and see if I can figure something out. I believe that was the issue for me. I was only promoted once to run as root and accidentally pressed cancel and was not prompted again.
My guess is that your not prompted to run as root user. So the application doesn't have permission. I'll have a look at it later today and see if I can figure something out. I believe that was the issue for me. I was only promoted once to run as root and accidentally pressed cancel and was not prompted again.
That's right. Judging by the error, the widget script is trying to look for the kdesu executable file where it doesn't actually exist.
Yeah that's right. The funny thing is that I use Fedora 38 too. Previously I used pkexec instead of kdesu, but it didn't work for Nvidia mode due to an error accessing an environment variable.I'll check later to find a solution. Thanks for the feedback.
Same problem as @JakobEdvardsson. Widget version: 1.1.3 Distro: Arch KDE Plasma: 5.27.6 kdesu is installed.
The problem is that kdesu is not always in the environment variables, so I had to put the full path. Apparently the path is not the same in all distros.
@enielrodriguez Maybe, but there's usually a symbolic link to that "scary full path" in some common /usr/bin (/bin)
What if we implement kdesu path check, and substitute not a fixed string, but the result, for example of the same which kdesu?
kdesu is installed (as part of kde-cli-tools) but is not in your $PATH by default. You can access the binary from /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu.
In fact, that was what caused the error to @alu18999959g the author of this issue.
I almost forgot, I was wrong before, I use Fedora, but I tested the latest version in a Debian virtual machine. That's why it worked for me. It happens that in Fedora, as you say, the kdesu path is /usr/libexec/kf5/kdesu not /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu.
The solution goes more or less along that line that you say, check where kdesu is. I'll work on it, if you have any other ideas go ahead.