Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/gfx_drivers.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-11 07:58:29 +0000
committerGitHub <noreply@github.com>2021-04-11 07:58:29 +0000
commit0d14b4b9dc99e519818de091533ca9fb2f2d223c (patch)
tree76e88548c260ba603dcf2eb05e2e659fc12c7c07 /archinstall/lib/gfx_drivers.py
parent3d659dead8cf06e71ad9c36db1abec3f22335414 (diff)
parent09f252d0315469ad699066279e04c4e3424ea967 (diff)
Merge pull request #273 from dylanmtaylor/patch-2
Restructure Graphics Driver Selection for 2.2.0
Diffstat (limited to 'archinstall/lib/gfx_drivers.py')
-rw-r--r--archinstall/lib/gfx_drivers.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/archinstall/lib/gfx_drivers.py b/archinstall/lib/gfx_drivers.py
index 7abb9db0..e1fb2824 100644
--- a/archinstall/lib/gfx_drivers.py
+++ b/archinstall/lib/gfx_drivers.py
@@ -1,5 +1,24 @@
import archinstall
-def select_driver(options):
+
+AVAILABLE_DRIVERS = {
+ # Sub-dicts are layer-2 options to be selected
+ # and lists are a list of packages to be installed
+ 'AMD / ATI' : {
+ 'amd' : ['xf86-video-amdgpu'],
+ 'ati' : ['xf86-video-ati']
+ },
+ 'intel' : ['xf86-video-intel'],
+ 'nvidia' : {
+ 'open source' : ['xf86-video-nouveau'],
+ 'proprietary' : ['nvidia']
+ },
+ 'mesa' : ['mesa'],
+ 'fbdev' : ['xf86-video-fbdev'],
+ 'vesa' : ['xf86-video-vesa'],
+ 'vmware' : ['xf86-video-vmware']
+}
+
+def select_driver(options=AVAILABLE_DRIVERS):
"""
Some what convoluted function, which's job is simple.
Select a graphics driver from a pre-defined set of popular options.