Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/hardware.py
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-06-02 21:43:46 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-06-02 21:43:46 -0400
commit3e505d4321a6593574bfbcb468803ae5266ffb01 (patch)
treee81a4a0510b9bcd0cfb74ba53ae6ef3d65253bab /archinstall/lib/hardware.py
parent118cc17eb210a29b61406f6a5bd7d68cbc0744eb (diff)
Clean up graphics driver output
Diffstat (limited to 'archinstall/lib/hardware.py')
-rw-r--r--archinstall/lib/hardware.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/archinstall/lib/hardware.py b/archinstall/lib/hardware.py
index 66dfd3d0..45e042db 100644
--- a/archinstall/lib/hardware.py
+++ b/archinstall/lib/hardware.py
@@ -81,20 +81,20 @@ def graphics_devices() -> dict:
for line in SysCommand("lspci"):
if b' VGA ' in line or b' 3D ' in line:
_, identifier = line.split(b': ', 1)
- cards[identifier.strip().lower().decode('UTF-8')] = line
+ cards[identifier.strip().decode('UTF-8')] = line
return cards
def has_nvidia_graphics() -> bool:
- return any('nvidia' in x for x in graphics_devices())
+ return any('nvidia' in x.lower() for x in graphics_devices())
def has_amd_graphics() -> bool:
- return any('amd' in x for x in graphics_devices())
+ return any('amd' in x.lower() for x in graphics_devices())
def has_intel_graphics() -> bool:
- return any('intel' in x for x in graphics_devices())
+ return any('intel' in x.lower() for x in graphics_devices())
def cpu_vendor() -> Optional[str]: