File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ """GPU and display detection for awarding legacy hardware badges."""
2+
13import json
24import platform
35import subprocess
46from datetime import datetime
57
68def detect_gpu_and_display ():
9+ """Detects legacy GPU and display hardware and awards corresponding badges.
10+
11+ This function scans the system using lspci to detect legacy GPU and display
12+ adapters. When legacy hardware is detected, it creates badge entries for
13+ each detected device and saves them to unlocked_badges.json.
14+
15+ Supported GPU badges:
16+ - Voodoo FX (3dfx Voodoo graphics)
17+ - SLI (NVIDIA SLI)
18+ - ATI Rage Pro
19+ - Matrox
20+ - PowerVR Prophet
21+ - Amiga Warrior
22+
23+ Supported Display badges:
24+ - Hercules monochrome
25+ - CGA (Color Graphics Adapter)
26+ - XGA (Extended Graphics Array)
27+ - VGA ancestor
28+
29+ Returns:
30+ None. Results are written to unlocked_badges.json file.
31+ """
732 badges = []
833
934 try :
You can’t perform that action at this time.
0 commit comments