Skip to content
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

[QUESTION] #174

Open
Xdavius opened this issue Jul 11, 2024 · 6 comments
Open

[QUESTION] #174

Xdavius opened this issue Jul 11, 2024 · 6 comments
Labels
question Further information is requested

Comments

@Xdavius
Copy link

Xdavius commented Jul 11, 2024

Hi,

Now that 555 drivers are released and Wayland is working, is there a possibility to use envycontrol with Wayland ? (Is it works on Wayland as it works on X11)

Thanks for spending time to answer.

Regards.

@Xdavius Xdavius added the question Further information is requested label Jul 11, 2024
@bayasdev
Copy link
Owner

@Xdavius I've been out of the loop but AFAIK the primary GPU selection on Wayland is DE/WM specific

@klmcwhirter
Copy link
Contributor

My experience has been, as @Xdavius mentioned that at least with Fedora Workstation up to 39, because Wayland is implemented via the Xwayland adapter - envycontrol seems to work fine.

Note my testing has not been extensive - I am not a gamer and do not use an external monitor, for example.

But I did do a project using Pytorch that needs CUDA support and also was using integrated mode primarily for quite a while to try to stretch battery life.

Once X11 is completely dropped in version 41 I believe things will change. Even getting the nvidia driver installed in version 40 has been dicey for me. So the situation will need to be monitored closely once version 41 is released.

But realistically, I have stopped using envycontrol at this point in favor of the stock, out-of-the-box hybrid mode which works fine for me. I just gave up on the battery life pursuit. I simply just expect to keep my laptop plugged into power except for brief excursions unplugged - less than 2 hours.

@Xdavius
Copy link
Author

Xdavius commented Jul 17, 2024

@Xdavius I've been out of the loop but AFAIK the primary GPU selection on Wayland is DE/WM specific

I have found something but I don't know if it can be useful for envycontrol.

You can add theses lines to /etc/environment to force the use of the Nvidia GPU by default

DRI_PRIME=pci-0000_01_00_0
VK_LAYER_NV_optimus=NVIDIA_only
GLX_VENDOR_LIBRARY_NAME=nvidia

Maybe it needs more investigations to have the switch option on your app.

Maybe it's not useful for you but, I share the info in case :)

@klmcwhirter
Copy link
Contributor

@Xdavius, Just getting back over here and seeing this now ...

I did something similar by adding GLX_*, etc. env vars to my local bash rc subsystem (I process a dir of scripts to keep things organized and backed up).

I could see things like VS Code and a few other apps start using the discrete GPU. For kitty I had to add this line to a custom ~/.local/share/applications/kitty.desktop file:
PrefersNonDefaultGPU=true

But then kitty (which I no longer use - come on ghostty!) started to use the discrete GPU as well.

FYI - this is on Fedora WS 41 with Wayland.

Of course, doing these things is beyond what envycontrol is currently doing. But in my case I just set them once and forget them. I no longer switch to integrated mode. I gave up on battery life.

But I love having a GPU for doing math, etc. I am not a gamer at all. But, I cannot see myself buying a laptop in the future without a discrete GPU. I am sold.

@tegridyfarmer
Copy link

I have been using Fedora Linux 41 KDE Plasma with propietary drivers without issurs on Wayland. I can use the vaapi hwdec in MPV. And external screens + audio works great.

@bayasdev
Copy link
Owner

I have been using Fedora Linux 41 KDE Plasma with propietary drivers without issurs on Wayland. I can use the vaapi hwdec in MPV. And external screens + audio works great.

Amazing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants