-
Notifications
You must be signed in to change notification settings - Fork 12
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
Method 2 not working, but Method 3 does #11
Comments
I might have found something. This is my status output of the script:
Seems quite cool with everthing, except that grep has a little problem. So I checked the files in
See the So I tried to correct the file to When I restart the machine, the file is in the wrong Any idea on how to investigate further, or even solve this? |
the output of my 10kwin.conf with the egpu disconnected on nobara 38 gnome: |
@Trollwut It does look like the script is having an issue parsing your 3 GPUs. I don't have a system with 3 GPUs to test so I've only tested it with 2 GPU entries. I'll look into the parsing issue. |
most likely :) I dont mind having it on any screen though. But would you have an alternative that runs on Wayland? Maybe
So I did this. I even uninstalled the script first to start from scratch. Fun fact: It even hates parsing two GPUs on my setup :D So guided setup, eGPU as primary, iGPU (not dGPU) as internal. Deactivated Method 2 and activated 3 -> works the same as with 3 GPUs selected. SDDM on integrated screen, boots into a Wayland session, but any 3D graphical program will open on the wrong GPU and result in a graphic-artifact-window. This is the KWin environment file with only 2 GPUs selected:
I will be going to sleep now, so I can only troubleshoot further tomorrow evening. This would be some
And when using Method 2 - which doesnt work for me right now - shows just the blank screen, this is the SDDM status output (which confirms its using X as backend):
I hope this is some info that might help you investigate the problem with me. I will reply tomorrow. :) Thanks in advance! |
@Trollwut In the logs from using Method 2 I think it looks like the SDDM is trying to start, but can't find a display. I think nvidia has a specific Xorg option that disables the display output on mobile GPUs and that might be applying to the eGPU as well because it's sharing the same driver. You could try using the experimental wayland SDDM backend to get around Xorg or look into changing the xorg.conf "UseDisplayDevice" option described here: https://download.nvidia.com/XFree86/Linux-x86/390.157/README/xconfigoptions.html I made a change to the git code to fix the parsing issue, could you could try installing the latest git version according to https://github.com/ewagner12/all-ways-egpu#git I've also heard of people having better luck on eGPUs with the nvidia-open driver rather than the proprietary nvidia driver but can't confirm that personally. |
Hey there! So I tested it and it seems like it works now. I still have problems rendering 3D apps, but we'll come to that. :) Ok, so here is what I did and how it went: At first, I activated SDDM's Wayland support as described in the [https://wiki.archlinux.org/title/SDDM#Running_under_Wayland](Arch Wiki). Then I used the script to uninstall itself and revert its changes. After that, I downloaded and installed your script via Git method, as you wished. I ran the guided setup, chose my eGPU and both internal GPUs. I only used Method 2 (no 3 involved) and rebooted -> This worked!!! WOOHOOO!!! I then ran the guided setup again and activated Method 2 AND Method 3 and rebooted -> It works!! And I also can use my internal display as well! :D Ok, so this just works now. Thanks for your quick support! But there still is one thing left: When opening 3D accelerated apps, like With
Is there a way to only use my eGPU for rendering? I cant seem to get it to work. My
Any other idea on how to make it work? If you need any further logs, please ask! :) |
@Trollwut For the 3D apps running on the dGPU I believe that's down to the nvidia driver side. Could you try using __NV_PRIME_RENDER_OFFLOAD_PROVIDER as noted here. I think you'll want to set it equal to NVIDIA-G1. DRI_PRIME only works with the open drivers (intel, amdgpu, and nouveau). |
Well, it works almost as it should :D So I tested your env, but it doesnt do anything for me:
It also seems that there simply is no choice:
I don't have an X config (as I thought I'm running Wayland anyway?). So maybe thats the problem, not having any X config? |
I'm now a little confused... for the sake of troubleshooting, I tried Method 1. So yes, it switched internals off, both eGPU monitors are now running bla bla bla. But after login, when I run some 3D stuff, it still wants to grab my dGPU. I thought it was switched off?
|
So I fiddled around every evening for a few hours and I'm out of ideas... things I did try:
It's always the same outcome: If I open graphics accelerated window with XWayland, I just get a window filled with graphical artrifacts. If someone has another idea, I'm open! |
@Trollwut |
Xorg was the first thing I tried (even though I wanted to end up on Wayland), just because that's the platform I know and I want my eGPU setup. Yes, there it works. With all disadvantages. :D But it works. Problem is, that I have 2 monitors on it with different refresh rates, different aspect ratio and one of them is 90 degrees tilted. This results in a veeeery laggy desktop experience (as long as anything moves on both monitors). So yes, Xorg would work, but definitely not for me. I just ordered an AMD 7900 XT, so that I can try it with that (read: Intel iGPU, nvidia dGPU, AMD eGPU). If this works as intended, I must say that it's some kind of nvidia fuckery. This would also explain why I cant find any setup like mine. There are many iGPU+eGPU setups, but never with dGPU (at least not nvidia+nvidia; mixed setups are possible, as it seems). I guess I can test it this weekend, so I will reply when I have results. :) Maybe I'll find something else to test for nvidia+nvidia, but for now I don't have any ideas left... |
IDK if you figured this out on your end, but for reference or if anyone else comes across this I'm linking a similar issue and workaround reported for an nvidia+nvidia eGPU setup. |
Hey there!
Glad that I found your script, thanks for sharing!
Trying it all on KDE Wayland, Arch Linux, script via AUR.
So I did the setup and chose my eGPU (nvidia) as primary and my two integrated (Intel + nvidia) as the integrated ones.
On the three questions after the guided setup, when I yes the Method 2 - regardless if with 3 or not - it won't work.
I have full-disk-encryption and on boot it asks for the password. It decrypts and I will always still see the "enter your password" on TTY1. I can change TTYs and fumble around there, but returning to TTY1 will still show the password prompt.
If I deactivate Method 2 and ONLY use Method 3, it kinda works.
The SDDM greeter is on my integrated screen, but after login, my eGPU monitors turn on and have a very nice wayland setup. Really nice, everything is running on the eGPU (checked via
nvidia-smi
).Problem is, that when I'm opening something else (even like
glxgears
), it will render on GPU0, which is the integrated nvidia, not the eGPU one.This results in one window that only has display artifacts in it.
Is there something I'm missing to get Method 2 (or 3) to work? Or is this a known problem?
Would an AMD GPU be less hassle?
Please tell me which information you need for troubleshooting, I'll gladly submit it. :)
The text was updated successfully, but these errors were encountered: