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
2023-11-22Added nvidia-dkms when installing propri driver to (#2241)Anton Hvornum
* Added nvidia-dkms when installing propri driver to fix #2233, #2214 and #2002 * Forgot class-name infront of NvidiaDKMS
2023-09-24Refactor microcode (#2099)codefiles
2023-06-21Make Gfx driver handling saver (#1885)Daniel Girtler
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-06-05Detect more modules requiring `alsa-firmware` (#1822)codefiles
2023-06-05Move locales and cleanup menu (#1814)Daniel Girtler
* Cleanup imports and unused code * Cleanup imports and unused code * Update build check * Keep deprecation exception * Simplify logging * Move locale into new sub-menu --------- Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-05-12Install the package `alsa-firmware` if required (#1812)codefiles
2023-05-12Install the package `sof-firmware` if required (#1811)codefiles
2023-05-11Cleanup imports and unused code (#1801)Daniel Girtler
* Cleanup imports and unused code * Update build check * Keep deprecation exception * Simplify logging --------- Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-05-03Full mypy compliance and small fixes (#1777)Daniel Girtler
* Fix mypy compliance --------- Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-05-14Adds nvidia-open package as an option. (#1176)Dylan M. Taylor
* Adds nvidia-open package as an option. Apologies for making the installation even more confusing for Nvidia users. This adds an option for the new open-source kernel module for Turing or later cards, https://github.com/NVIDIA/open-gpu-kernel-modules. nvidia-open is currently in the testing repository. * Change description * Clarify that the other open option is noveau * Added a check to see if the package we include exists in testing or not, and if it does, we allow that repo and warn about it. * Forgot to put level= on log output * Adding __future__ to the top again * Expose package functions from archinstall.lib.packages to avoid explicit imports. * Trying to get menu to show additional changes * Trying a flexible option of setting the menu listings * Trying a flexible option of setting the menu listings * Revert "Trying a flexible option of setting the menu listings" This reverts commit 330080697d0b1ca9ba74f468fdcd36be7736904f. * Revert "Trying a flexible option of setting the menu listings" This reverts commit 701b105b1dd66933dacf11f0be49c521fec758fe. * Revert "Trying to get menu to show additional changes" This reverts commit b038987561ab7764f5d786c3e49789fb217419d7. * Revert "Expose package functions from archinstall.lib.packages to avoid explicit imports." This reverts commit 9244c0b1906b71074f2688210f3c46dc09cbc8c2. * Revert "Adding __future__ to the top again" This reverts commit 1679f00f2e901d093655de261bab4cee5f0a9d57. * Revert "Forgot to put level= on log output" This reverts commit 65618943880bdbddcdd3c7e3427da574d9bf7fed. * Revert "Added a check to see if the package we include exists in testing or not, and if it does, we allow that repo and warn about it." This reverts commit 652308ee40230ee8c70cf0c4f7225d1278788d4a. Co-authored-by: Anton Hvornum <anton@hvornum.se>
2022-02-02Torxed fix sys command calls (#932)Anton Hvornum
* Fixed exceptions in is_vm() and virtualization() * Added exception handling for parted in BlockDevice.free_space
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