Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/hardware.py
AgeCommit message (Collapse)Author
2022-02-02forgot import of log()Anton Hvornum
2022-02-02forgot import of log()Anton Hvornum
2021-11-05Cleaned up all flake8 issues/warnings. Did some code cleaning as well, ↵Anton Hvornum
mostly how we called things in guided.py but also some SysCommand calls
2021-10-21Improve type hintRichard Neumann
2021-10-21Generalize CPU vendor detectionRichard Neumann
Implement has_amd_cpu() and has_intel_cpu() as partials.
2021-10-21Remove useless initialization of mem_info = {}Richard Neumann
2021-10-21Update type hintsRichard Neumann
meminfo() returns ints.
2021-09-06Merge pull request #623 from conqp/clean_hardware_importsAnton Hvornum
Remove unused import of json
2021-09-06Merge pull request #626 from conqp/refactor_meminfoAnton Hvornum
Refactor meminfo() to allow direct key access
2021-09-06Merge pull request #625 from conqp/fix_tab_indentationAnton Hvornum
Fix indentation with tabs instead of spaces
2021-09-06Fix indentation with tabs instead of spacesRichard Neumann
2021-09-06Refactor meminfo() to allow direct key accessRichard Neumann
2021-09-06Remove unused import of jsonRichard Neumann
2021-09-06Refactor cpu_model() to use cpuinfo()Richard Neumann
2021-09-06Refactor cpu_vendor() to use cpuinfo()Richard Neumann
2021-09-06Merge branch 'master' into native_cpu_detectionAnton Hvornum
2021-09-06Merge pull request #605 from CYPT71/patch-1Anton Hvornum
Update hardware.py
2021-09-06Added exception handling to check_outputAnton Hvornum
I tweaked the optimized return of check_output. Worth mentioning that `check_output()` will raise an exception `subprocess.CalledProcessError: Command 'lscpu | grep AMD' returned non-zero exit status 1.`.
2021-09-06No need for try/catch any longer.Anton Hvornum
The old behavior of SysCommand was that exit codes raised an exception, which needed to be handled by each individual caller. We now utilize `.exit_code` instead to manually detect faulty commands and raise exceptions where needed.
2021-08-20Remove excess newlineRichard Neumann
2021-08-20Rewrite CPU vendor detection functionsRichard Neumann
Use cpuinfo() function rather than a subprocess.
2021-08-20Add cpuinfo()Richard Neumann
2021-07-22Update hardware.pyCYPT71
Rewrite some function if condition is True then return true else return false, transform in return condition directly Also I don't understand why we need a try/except at line 151 and why we not write return condition ??
2021-07-16Replace for loops with comprehensionsmonosans
2021-06-09Split Nvidia so that there are two options for itDylan M. Taylor
This makes selecting an Nvidia driver simpler and makes it apparent that we support both open-source and proprietary from the initial selection.
2021-06-02Clean up graphics driver outputDylan Taylor
2021-06-02Fix my Quadro T1000 not being detectedDylan Taylor
2021-06-02Add hardware logging to beginning of installationDylan Taylor
2021-06-02Add additional hardware functionsDylan Taylor
2021-05-27Fix is_vm detection on real hardwareDylan Taylor
2021-05-18Compliment to #461 and #459: is_vm() also outputted 'kvm'. This should fix that.Anton Hvornum
2021-05-18Converted from subprocess.check_output() to SysCommand() to hide ↵Anton Hvornum
cpu_vendor() output.
2021-05-15Perform refactoring to PEP 8 naming conventionsDylan Taylor
2021-05-15f-string fixesDylan Taylor
2021-05-15Whitespace changesDylan Taylor
2021-05-15Some additional formattingDylan Taylor
2021-05-15Many more manual changesDylan Taylor
2021-05-12some type hint fixes and a bad catch fixadvaithm
2021-05-05Change graphics driver selection based on #414Dylan Taylor
2021-04-29typo: none 0 is incorrect grammarDylan M. Taylor
2021-04-29Cleaning up packages. (#374)Anton Hvornum
* Cleaning up packages. installer now relies on __packages__ definition. Which will work with external libs to more easily gather packages used by installer and profiles. * Added back the logic for the log message, where we inform if we're adding the boot loader to root or boot. * Added __package__ definition to profiles and the installer. These packages can be used as an indication from outside libraries of what could *possibly* be installed. For instance an offline-tool could source these, it would source more than it needed to, but it would give a quick rundown of what might be needed. * Removed import of __base__packages__ as it's now just __packages__ after a lot of stream-lining. * Explosion misspelling. Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-04-11Use generic_select for GPU driverDylan Taylor
Make it so there isn't a space in the key Try to simplify things more
2021-04-11Fixed PR #273. Moved the graphic drivers into hardware since they are ↵Anton Hvornum
hardware specific, in the long run maybe we move them into 'drivers' or something. And moved the user interaction from gfx_drivers into user_interactions. And removed the import from installer.py to __init__.py since we don't want to import 'global functions' in extension imports.
2021-04-07added isVM functionadvaithm
2021-04-07added hasIntelCPUadvaithm
2021-04-07added return value for functions in hardware.py plus cpuVendor functionadvaithm
2021-04-02Merging master into feature branch.Anton Hvornum
2021-04-01Simplify boolean checksRichard Neumann
2021-03-12add function to check cpu vendor to allow for cpu specific command line ↵advaithm
arguments
2021-01-25Added some basic/crude graphics checks in hardware.pyAnton Hvornum