-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
Reworked GPU driver installations for x86 systems #6273
Conversation
Conflict resolved. |
Indeed GitHub has some troubles currently: |
@MichaIng Not sure what this means?
|
Awesome! Looks very good, I'll also do some test Steam installs on an old Laptop with Intel GPU. I think it does not support Vulkan, but good for testing the options in general an interesting to see what Steam with Proton does if Vulkan is not supported but the library installed.
|
Just curious, but since computers can have more than 1 GPU (most common would be Intel iGPU and Nvidia dGPU, but any combination of AMD dGPU, AMD iGPU, Intel iGPU, Intel dGPU, and Nvidia dGPU would theoretically be possible), is there a way to install drivers for 2 of them at once? If using this, would it also be possible to use a DietPi script to switch between the active GPU (though with drivers installed Steam at least should be able to decide which one to use)? |
That is indeed not possible anymore with this PR. I think it is a very rare case that one makes actually use of two different GPUs, so didn't bother. But there may be indeed multi-monitor cases which would benefit from two driver sets when setup properly. I've never worked with such, so no idea if/how applications or X11 would handle this when really two different GPUs are used with their own API libraries and in case own DDX. Do you think we should preserve this and basically keep the "install/uninstall"-each style menu we had before or make a checkbox menu from it to allow multi-select? |
Conflict resolved. |
Yep. Although most high end laptops will have 2 GPU's. Onboard GPU (Intel CPU+GPU) and dedicated GPU. However, as I have no access to this hardware, I am unable to impliment and/or test any of it. I also believe they require additional configuration for their use and switching support in DietPi would need to be added as @ravenclaw900 mentioned. Maybe down the line we could add "Combo" driver stacks and support this with comminuty effort. However, I believe for now, simply getting a single dedicated and functional driver install fully supported in DietPi should be the goal? |
Retests
Intel:
General | Manual driver installs, removals, custom etc:
|
I have a couple of really old laptops that have Intel + Nvidia and Intel + AMD, and my current desktop has AMD + Nvidia, so I wouldn't call it uncommon to have a lower-power GPU and a dedicated GPU. It looks like there's a built-in way to switch between used GPU, as long as both drivers are installed (https://www.kernel.org/doc/html/latest/gpu/vga-switcheroo.html). I'd be happy to try setting this up in a separate PR. |
That is right, most CPUs (is that right wording in this context, AMD called it APUs...) have an integrated GPU nowadays, also on desktop systems. But if a dedicated GPU is present, I guess it is in very uncommon that the integrated GPU is ever used.
Good idea, so we have a simple tested single-stack selection for now and add multi-stack selection once we know how it can generally be used and can then also check whether there are package conflicts between the stacks and how to resolve them best. Another thing, to not forget it, is that I think some generic FLOSS stack would be nice, so using only Mesa drivers, including Mesa Vulkan and mesa-va-drivers. Shall we add the latter to the AMD stack? Generally AMD supports it. Nvidia btw as well if the FLOSS nouveau driver is used. Uff that makes me think again whether there should be a free vs non-free toggle for every vendor stack 😄, if someone finds time to test and compare it and if we find a way to implement it without making it too complicated. |
Thinking about it, should we rename the function EDIT: I'll make the changes now. 🈯
EDIT3: Probably safer to do it after all DietPi-Software installs (https://github.com/Fourdee/DietPi/blob/dev/dietpi/dietpi-software#L13867) Then check for Xserver (or Desktop/Steam)?. Avoid any conflict by ensuring Xserver is installed 1st, before GPU driver? |
Note to self, idea (got side tracked lol): Replace
Example use
|
@MichaIng |
Offer GPU driver install at end of Software installs
Great work, many thanks! I tested it on a Laptop and applied some fine tuning to the menus (see last commits). |
Legend 👍. |
Reworked GPU driver installations for x86 systems.
This provides better control of GPU drivers for DietPi, adding support for Vulkan and resolves issues with Steam Proton. Users will be prompted to select a driver package during DietPi-Update.: #6262
Testing:
ToDo:
AMD test.
Docs to enable proton (disabled by default):
Enable Steam Play for all other titles