-
-
Notifications
You must be signed in to change notification settings - Fork 245
Add Linux support for hardware detection #313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Linux support for hardware detection #313
Conversation
- Add linux_hardware_detector.py module to gather hardware info on Linux - Detect CPU, GPU, motherboard, audio, network, storage, and Bluetooth devices - Export hardware report in Windows Hardware Sniffer compatible JSON format - Export ACPI tables from /sys/firmware/acpi/tables - Add OpCore-Simplify.sh shell script for easy execution on Linux - Update main script to handle Linux hardware export (option E) - Modified gathering_files.py to detect Linux platform - Add SysReport to .gitignore The Linux detector uses standard Linux tools (lspci, lscpu, lsusb) to gather hardware information and formats it to match the expected JSON structure used by OpCore Simplify for macOS EFI configuration. Addresses the need for Linux support discussed in issue lzhoang2801#143 and PR lzhoang2801#144.
|
Check https://github.com/lzhoang2801/Hardware-Sniffer/tree/add-linux-support. OpCore Simplify doesn't handle this. |
|
I've stopped looking into how to identify input and biometric device information on Linux. So, if anyone manages to figure that out, I'd be really glad |
|
And an update for the WiFi profile extractor for Linux, see 92aa40f#diff-172ab378304cc9396b7728519425abca9bb050a95f9bba6c7b4edea43b3cea99 |
- Improved command execution security in LinuxHardwareDetector by using argument lists instead of shell=True. - Added methods to gather input and biometric device information. - Updated validate_wifi_password method to handle different authentication types and return appropriate values. - Implemented get_wifi_password_linux method to retrieve WiFi passwords using nmcli. - Enhanced user prompts for network processing in WifiProfileExtractor.
|
Ok have a look at latest commit |
|
HI @lukebellis,
#################################################################### Loading ACPI Table(s)#################################################################### Gathering valid tables from ACPI...
Loading valid tables in /tmp/OpCore-Simplify-add-linux-hardware-detection/SysReport/ACPI... Done. Hardware report exported successfully! Press Enter to continue... -> I press Enter : #################################################################### Compatibility Checker#################################################################### Checking compatibility with macOS for the following devices: Press Enter to continue... -> I press Enter : #################################################################### An Error Occurred#################################################################### Traceback (most recent call last): Press Enter to continue... Wish You Well |
I got the same error while trying it on my machine |
|
any update on this? |
|
The PR was approved but what about the issues mentioned above? |
That's just a community feature, and in this case, it holds no value. This PR won't resolve any further issues I've encountered. If you want to use it, please use my separate branch to ensure the results |
|
Move to #400 |
Summary
This PR adds comprehensive Linux support for hardware detection in OpCore Simplify, addressing the need discussed in issue #143 and building upon the work in PR #144.
Changes
New Files
Scripts/linux_hardware_detector.py- Linux hardware detection module that gathers system information using standard Linux toolsOpCore-Simplify.sh- Shell script for easy execution on Linux systemsModified Files
OpCore-Simplify.py- Added Linux platform support in hardware report selection menuScripts/gathering_files.py- Modified to detect Linux platform and return appropriate handler.gitignore- Added SysReport directory to ignore generated reportsFeatures
✅ Hardware Detection - Detects all major components:
✅ JSON Format Compatibility - Exports hardware report in the same JSON format as Windows Hardware Sniffer, ensuring compatibility with existing OpCore Simplify code
✅ ACPI Table Export - Exports ACPI tables (DSDT, SSDT, etc.) from
/sys/firmware/acpi/tables/for OpenCore configuration✅ User Experience
Testing
Tested on Ubuntu with AMD Ryzen 9 5900X system:
Compatibility
Related Issues
This implementation provides a solid foundation for Linux users to create OpenCore EFI configurations for macOS installations.