Clean up graphics driver output
This commit is contained in:
parent
118cc17eb2
commit
3e505d4321
|
|
@ -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]:
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ archinstall.log(f"Hardware model detected: {archinstall.sys_vendor()} {archinsta
|
|||
archinstall.log(f"Processor model detected: {archinstall.cpu_model()}", level=logging.DEBUG)
|
||||
archinstall.log(f"Memory statistics: {archinstall.mem_available()} available out of {archinstall.mem_total()} total installed", level=logging.DEBUG)
|
||||
archinstall.log(f"Virtualization detected: {archinstall.virtualization()}; is VM: {archinstall.is_vm()}", level=logging.DEBUG)
|
||||
archinstall.log(f"Graphics devices detected: {archinstall.graphics_devices()}", level=logging.DEBUG)
|
||||
archinstall.log(f"Graphics devices detected: {archinstall.graphics_devices().keys()}", level=logging.DEBUG)
|
||||
|
||||
# For support reasons, we'll log the disk layout pre installation to match against post-installation layout
|
||||
archinstall.log(f"Disk states before installing: {archinstall.disk_layouts()}", level=logging.DEBUG)
|
||||
|
|
|
|||
Loading…
Reference in New Issue