Carter Li
9f5046d69f
CPU/GPU (Linux): Improves CPU/GPU temp detection accuracy on Linux/Android
2025-08-28 18:58:00 +08:00
李通洲
bc05a30724
CPU (Linux): improve temp detection
...
Support Android
2025-08-28 09:29:33 +08:00
李通洲
00f163be32
CPU (Windows): detects march on WoA
...
Tested in VM
2025-08-27 09:22:02 +08:00
李通洲
68bbb2980e
CPU (macOS): detects march on Apple Silicon
2025-08-27 09:22:02 +08:00
Carter Li
dd1a799abb
CPU (Linux): detects march on aarch64
2025-08-27 09:22:02 +08:00
李通洲
588c4c0026
Chore: silense compiler warnings
2025-08-25 09:25:25 +08:00
李通洲
8b18e69980
CPU: fix building on non-x86
2025-08-23 15:28:48 +08:00
李通洲
9ae968fbd3
CPU: adds CPU microarchitecture detection for x64 and reporting
...
Fixes #1928
2025-08-23 15:17:57 +08:00
李通洲
61f2823903
Global: fixes -ffast-math compatibility
...
Unifies unset double handling using `-DBL_MAX` sentinel
Fixes #1894
2025-08-14 10:01:34 +08:00
李通洲
7f1063d09b
Revert "CPU (macOS): use CPUID for freq detection on Intel"
...
This reverts commit 7ee0e8726e .
2025-08-11 16:35:35 +08:00
Carter Li
7ee0e8726e
CPU (macOS): use CPUID for freq detection on Intel
2025-08-10 00:14:16 +08:00
李通洲
75d2c668d0
Modules: refactor module option handling for static allocation
...
Moves module option structs out of global config and removes dynamic allocation, using static buffers and size assertions for safer, simpler management.
Refactors module initialization and destruction to work with isolated option structs, eliminating the need for the previous modules container and related code.
Unifies module option header usage and updates detection logic to leverage statically-sized option buffers, improving encapsulation and maintainability.
Simplifies module function signatures and reduces coupling between modules and config.
Enhances future extensibility and reliability by enforcing max size constraints and removing unnecessary indirections.
2025-08-04 14:46:01 +08:00
Carter Li
6ec73863ab
CPU (Android): make SOC detection more loose
...
It's less accurate, but higher chance to match.
2025-07-29 09:28:41 +08:00
Carter Li
8c2f93151d
CPU (Android): add more QSD SOCs
2025-07-29 09:28:36 +08:00
李通洲
1854953d8c
Chore (Windows): move perflib_.h to somewhere global
2025-07-01 14:57:40 +08:00
apocelipes
3291a9945f
Global: add missing O_CLOEXEC to open()
2025-06-19 22:40:06 +08:00
Techflash
1e32a95f83
CPU (NetBSD): properly support PowerPC ( #1802 )
...
Some devices store their CPU name in hw.model, so check that as well
before giving up. Tested on NetBSD 10.1 evbppc/wii, and allows it to
detect the CPU as "750 (Revision 2.0)".
---------
Co-authored-by: Carter Li <CarterLi@users.noreply.github.com >
2025-06-11 00:15:40 -05:00
李通洲
9c37f1b370
CPU (Windows): use perflib.h instead of pdh.h for querying CPU temp
...
Fix #1787
2025-06-07 19:17:46 +08:00
李通洲
0cd8c6ead6
Chore: code cleanup
2025-05-30 10:33:37 +08:00
李通洲
e3592eb2c3
CPU (FreeBSD): simplify physical core count detection
2025-05-05 13:41:12 +08:00
Carter Li
305776eb94
CPU (SunOS): support physical core count and package count detection
2025-05-02 14:24:30 +08:00
李通洲
561574ae94
CPU (Windows): always use XxxW
2025-04-30 16:10:53 +08:00
李通洲
4d7b2410ef
CPU (OpenBSD): fix CPU temperature detection
2025-04-22 21:19:22 +08:00
李通洲
ec87174f30
CPU (NetBSD): add one more method to detect CPU frequency
2025-04-20 11:43:39 +08:00
李通洲
835e5b51c9
CPU (SunOS): detect CPU temp
...
Untested
2025-04-20 11:12:08 +08:00
李通洲
4eefab8ccf
CPU (Linux): fix build
2025-04-14 10:54:35 +08:00
李通洲
ba01b1e4ce
CPU (Linux): add new ARM part numbers
2025-04-14 09:27:01 +08:00
李通洲
73bc71e922
CPU (Windows): use PDH to detect thermal temp
...
No Administrator privileges needed
2025-04-12 10:47:57 +08:00
李通洲
3def466ee0
Revert "CPU (FreeBSD): remove using of freq_levels"
...
This reverts commit ed2dd8f2ec .
2025-04-05 13:54:20 +08:00
李通洲
59868c66a0
CPU (FreeBSD): don't assume one SMT group has only two threads
...
Fix #1670
2025-04-05 13:48:18 +08:00
Carter Li
e13eb05073
CPU (Linux): detect physical core count on non-x86 platforms
2025-04-05 12:08:35 +08:00
李通洲
7562e05123
Chore: fix a lot code smell
2025-03-25 22:08:50 +08:00
Techflash
7b5dc58140
CPU (Linux): fix CPU detection on some PPC platforms ( #1640 )
...
On some PowerPC devices (notably the Nintendo Wii and Nintendo Wii U),
fastfetch detects the CPU incorrectly. It goes down the code path
of 'detectSocName()', and actually matches the model of the device
itself... as the CPU model name. This is obviously incorrect, and
leads to reporting such as 'CPU: wii'. Disable this code path
alltogether on PPC to prevent this, and just let it pull from cpuinfo.
This lets it have correct CPU reporting, such as on the Wii, giving
'CPU: 750CL @ 0.73GHz'.
2025-03-25 03:05:23 -05:00
Carter Li
36a452c852
CPU (NetBSD): support non-intel CPUs
...
Fix #1573
2025-02-19 08:59:10 +08:00
François Revol
c64854804d
Haiku: 32bit fixes
...
For historical reasons int32 and int32_t are not compatible types.
2025-02-15 12:08:27 +08:00
李通洲
cbc8b1f11d
CPU (Haiku): add support
2025-02-12 00:42:55 +08:00
Carter Li
1eef6f837b
CPU: remove useless w/ Radeon 780M Graphics
2025-02-10 09:26:08 +08:00
Carter Li
99e8d1f2bb
CPU (Linux): loosely detect cpu name of unknown platform
2025-02-08 10:38:13 +08:00
Carter Li
263d2902dd
CPU (Linux): add cpu name detection for s390x
2025-02-08 10:31:06 +08:00
Carter Li
1d21d02878
CPU (Linux): support physical core count and package count detection on loongarch
2025-02-07 10:07:00 +08:00
李通洲
356501270a
CPU (Linux): detect for model name on unknown platform
2025-02-05 16:10:01 +08:00
李通洲
76710c8159
Temps (macOS): support M4x
2025-02-05 11:01:09 +08:00
李通洲
4d842ac6b6
CPU (Linux): fix build on PPC
2025-01-27 21:53:39 +08:00
李通洲
1279bbcf28
CPU (Linux): rework cpuinfo parsing
2025-01-27 13:20:51 +08:00
李通洲
f601d2d9f5
CPU (Linux): add comments
2025-01-26 09:47:31 +08:00
Carter Li
026489c934
CPU (Android): add QS8E for Galaxy
2025-01-24 10:05:24 +08:00
Carter Li
1f5e56c69e
CPU (Android): detect new QS8E
2025-01-23 19:33:42 +08:00
Carter Li
35d431dd3f
CPU (Linux): detect SOC name on RISCV
...
Fix #1519
2025-01-22 22:19:23 +08:00
Carter Li
8ceda02bbb
CPU (Linux): query SOC name in cpuinfo for aarch64
...
Fix #1510
2025-01-14 13:54:27 +08:00
Carter Li
373b4353bb
CPU (BSD): improve base freq detection
2025-01-13 15:06:18 +08:00