mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Fix hw check for hybrid gpu
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
(($(lspci | grep -cE 'VGA|3D|Display') >= 2))
|
||||
# supergfxctl is authoritative: in Integrated mode the dGPU is unbound and
|
||||
# hidden from lspci, so the controller count would undercount on those systems.
|
||||
if command -v supergfxctl &>/dev/null; then
|
||||
supergfxctl -s 2>/dev/null | grep -qw Hybrid
|
||||
else
|
||||
(($(lspci | grep -cE 'VGA|3D|Display') >= 2))
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user