李通洲
0b94ff5adb
CPU (Windows): detect core count of different core types
2024-05-17 21:31:24 +08:00
李通洲
ab2268a927
CPU (macOS): detect core count for different core types
2024-05-17 16:47:26 +08:00
Carter Li
1421627a47
CPU (Linux): detect core count for different core types
2024-05-17 08:35:22 +00:00
李通洲
6439921f85
Smbios (Windows): check if getting SMBIOS data succeeds
2024-05-11 18:07:56 +08:00
李通洲
fef3100fd7
Smbios: add struct layout check
2024-05-11 15:05:43 +08:00
李通洲
8721cc1ab5
CPU (Windows): silence compiler warnings
2024-04-30 14:43:12 +08:00
李通洲
115b293ff5
CPU (Windows): fix silly bug...
2024-04-27 23:27:16 +08:00
李通洲
81fb146869
CPU (Windows): detect max CPU freq with CPUID instruction
...
Note this only works when Hyper-V is not enabled
Ultimately fixes #800 #812 #815
2024-04-27 23:07:12 +08:00
李通洲
aa58a0999d
CPU (Windows): try detecting invalid data in SMBIOS
...
Work around #800
2024-04-21 17:59:14 +08:00
Carter Li
f8cbe4c008
GPU (Linux): improve detection performance of Apple Silicon
2024-04-18 19:58:38 +08:00
李通洲
f902e3b3d8
CPU (Android): don't detect manufactor of Qualcomm as ARM
2024-03-17 19:19:33 +08:00
Carter Li
55ae3a7dbd
CPU (FreeBSD): don't display 0.00 GHz
2024-03-15 11:15:23 +08:00
李通洲
c9dd858ce3
CPU (Linux): bing cpuMHz back
...
It's used in WSL
2024-03-14 20:40:40 +08:00
李通洲
2e201eaaf7
CPU: bring min frequency back & code optimizations
2024-03-14 19:24:03 +08:00
李通洲
7c54dcba69
CPU (Linux): fix detection when .../base_frequency doesn't exist
2024-03-14 10:32:34 +08:00
李通洲
7e04e23528
CPU: rename min frequency to base frequency
2024-03-13 23:42:59 +08:00
李通洲
8d779f68f3
CPU: detect base frequency
2024-03-13 23:41:11 +08:00
李通洲
4a7e60ef57
CPU (Linux): don't crash if /sys/devices/system/cpu/cpufreq/ doesn't exist
...
Ref: #750
2024-03-07 21:31:23 +08:00
Carter Li
979f7d19b1
CPU (Linux): fix max / min frequency detection for multi policy systems
2024-02-29 10:20:50 +08:00
李通洲
3a96ade423
CPU (Linux): don't segfault if we fail to find Vendor ID in lscpu
...
Fix #718
2024-02-13 19:08:44 +08:00
Carter Li
cbf203901b
CPU (Linux): code refactor
2024-01-31 14:36:00 +08:00
Carter Li
ab625497ce
CPU (Linux): code refactor
2024-01-31 13:28:18 +08:00
Yussef Dalton
83532b68dd
CPU (Linux): use marketing name on Asahi Linux
2024-01-31 11:02:41 +08:00
李通洲
3992d85eb6
CPU (Linux): show vendor if no model name available
2024-01-18 15:16:46 +08:00
李通洲
5096180e92
CPU (Linux): don't access out-of-bound memory
2024-01-18 15:06:47 +08:00
李通洲
640fa146c1
CPU (Windows): only use smbios to detect maximum speed
...
Because some virtual machines report invalid information
2024-01-06 18:00:59 +08:00
李通洲
1621484c96
CPU (Windows): don't report 30GHz in VMware
2024-01-06 17:11:26 +08:00
李通洲
d8297d296e
CPU (Windows): use ThreadCount if GetLogicalProcessorInformationEx() fails
2024-01-06 17:11:26 +08:00
李通洲
1d35811253
Windows: make SMBIOS data a singleton
2024-01-06 17:11:26 +08:00
李通洲
fe0b43d92d
CPU (Windows): detect the actual maximum frequency
2024-01-06 17:11:26 +08:00
李通洲
b6c8649cbf
macOS: improve IO service related code generally
2024-01-05 15:00:50 +08:00
李通洲
bb489f9af3
Common: get rid of detection/internal.h
2023-12-30 18:13:54 +08:00
李通洲
54bd4346ec
Temps (macOS): rename functions
2023-12-27 08:46:49 +08:00
李通洲
f319a80dc5
CPU (Linux): if we failed to detect the number of physical cores, assume all logical cores are physical
2023-12-26 13:40:41 +08:00
李通洲
60f5cc9079
CPU (Linux): don't print -
2023-12-26 13:34:58 +08:00
Carter Li
dd3b3f22ba
CPU (Linux): detect multi cpu models by lscpu
...
Supports asahi linux
2023-12-26 11:20:40 +08:00
李通洲
adc506d2b3
GPU: fix clock frequency detection and overall tidy
2023-12-20 19:13:00 +08:00
李通洲
f20b6d4387
Temps (macOS): support Apple M3
2023-12-08 16:10:10 +08:00
李通洲
f9597eba39
Global: remove #ifndef FF_INCLUDED_* guards
2023-11-09 13:46:45 +08:00
李通洲
f8eabdd8a6
Battry (Linux): try detecting cycle count and temperature
2023-11-06 19:08:17 +08:00
matoro
40d6d0b7b5
CPU (Linux): quirks for MIPS platforms ( #590 )
...
CPU name is in "cpu model" field on MIPS. Also, /proc/cpuinfo contains
an "isa" field, but rather than being a single string like RISC-V it is
instead a space-separated list of every ISA flavor that the chip is
compatible with. Since these are mostly incremental, just make the
cpuISA value set to the last one.
Before:
```
$ fastfetch --structure "cpu" --logo none
CPU: mips1 mips2 mips3 mips4 mips5 mips32r1 mips32r2 mips64r1 mips64r2 (16)
```
After:
```
$ fastfetch --structure "cpu" --logo none
CPU: Cavium Octeon II V0.10 mips64r2 (16)
```
2023-10-22 22:09:43 -05:00
李通洲
e7df94495c
Temp (FreeBSD): improve CPU temp detection
2023-10-10 13:41:08 +08:00
李通洲
90ea096ca3
macOS: don't keep variable matchDict
2023-10-07 15:51:05 +08:00
李通洲
767f99cffa
CPU (Linux): only try lscpu on Linux
...
Since `lscpu` is a program of `util-linux`
2023-09-27 15:11:05 +08:00
李通洲
7caa8d4618
CPU (Linux): try detecting CPU name using lscpu
...
Fix #567
2023-09-27 15:05:26 +08:00
李通洲
e4c1ec916b
FFstrbuf: change ffStrbufToUInt16 to more general function ffStrbufToUInt
2023-09-26 09:52:10 +08:00
李通洲
fe9fcd603b
CPU (Windows): fix possible memory errors
2023-09-08 10:11:57 +08:00
李通洲
d8b2151143
CPU (macOS): support Apple Silicon frequency detection
2023-09-08 10:11:56 +08:00
李通洲
904c9eb3c4
CPU (macOS): code refactor
2023-09-08 10:11:31 +08:00
李通洲
28e412b79d
CPU: add JSON printing support
2023-09-05 15:29:46 +08:00