李通洲
c8e4de9831
CPU (Linux): silence complier warnings
2024-08-15 19:40:39 +08:00
Carter Li
6b6827b915
CPU (Linux): also detect CPU name for arm32
2024-08-15 15:24:13 +08:00
李通洲
7447a95299
CPU (Linux): better ARM cpu name detection
2024-08-15 15:05:18 +08:00
Carter Li
df4350666a
CPU (Linux): embed the arm part codes of lscpu
...
Fix #1175
2024-08-12 10:25:54 +08:00
Carter Li
fa0007ac6f
CPU (Android): add SD 4s Gen 2
2024-07-31 08:58:03 +08:00
李通洲
f91be6442d
Android (Linux): detect MTK CPU part name
2024-07-26 08:46:34 +08:00
李通洲
9f9a5ba39a
Android (Linux): report Snapdragon SOC marketing name
2024-07-25 10:33:06 +08:00
李通洲
d282050130
CPU: support display frequency in MHz
2024-07-17 14:09:06 +08:00
Carter Li
c0de618177
CPU: remove support of min freq detection
2024-07-17 10:19:12 +08:00
李通洲
b308ded1e1
Global (Linux): silence some compiler warnings
2024-06-05 16:11:52 +08:00
Carter Li
3ba899261f
Util: add ffCharIsDigit and use it
2024-05-28 15:34:59 +08:00
Carter Li
2d4e7f10c4
CPU: add option --show-pe-core-count
2024-05-21 09:21:03 +08:00
李通洲
264b6794f3
CPU (Linux): detect bios limited frequency and print it by default
...
To match neofetch's behavior
Fix #947
2024-05-20 18:35:10 +08:00
李通洲
81485baadb
CPU: better compatibility for Intel CPUs
2024-05-19 22:18:07 +08:00
李通洲
7946e69a66
CPU: print core count for different core types
2024-05-18 18:08:38 +08:00
Carter Li
1421627a47
CPU (Linux): detect core count for different core types
2024-05-17 08:35:22 +00: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
李通洲
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
李通洲
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
李通洲
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
李通洲
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
李通洲
92b1d74d12
CPU (Android): better CPU name detection
...
at least for Xiaomi
2023-07-27 20:46:11 +08:00
李通洲
5fcf5b7f64
CPU (Linux): tidy
2023-07-27 16:16:09 +08:00
Piotr Kubaj
63fbaa146c
CPU: properly detect CPU on POWER
...
Excerpt for a thread from /proc/cpuinfo:
processor : 0
cpu : POWER9, altivec supported
clock : 3800.000000MHz
revision : 2.2 (pvr 004e 1202)
Without this patch, the following is printed for a CPU:
CPU: CPU (64) @ 3.8 GHz
With it, there is:
CPU: POWER9, altivec supported (64) @ 3.8 GHz
2023-07-12 19:54:09 +08:00
李通洲
d0f093c567
Global: make FFinstance instance a global variable
...
As discussed in https://github.com/fastfetch-cli/fastfetch/discussions/473
2023-06-24 17:28:05 +08:00
李通洲
56effcb189
CPU: use module options
2023-06-12 10:33:28 +08:00
李通洲
c7119498a3
Global: major FFstrbuf related code refactor
2023-06-10 09:15:15 +08:00
李通洲
f205982ae5
CPU: support JSON config
2023-06-10 09:15:15 +08:00
Linus Dierheimer
a1ea7804f3
IO: Separate platform specific implementations
2023-01-28 12:40:12 +01:00
Linus Dierheimer
2c51d55ba2
IO: don't require posix specific stuff for ffPathExists
2023-01-28 11:52:23 +01:00
李通洲
f640102b0e
CPU (Linux): fix compiler warnings
2023-01-21 14:03:57 +08:00
李通洲
6f4bdafb0c
Temp: fix severial issues. Fixes #398
...
1. Temp detection has been gated behind of `--*-temp`. Don't make it a slow operation
2. According to [the kernel doc](https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface ), `temp1_input` is millidegree Celsius, which should be divided by 1000
3. There is no `/sys/class/hwmon/hwmon3/device/class` on my laptop, but `/sys/class/hwmon/hwmon3/device/device/class`. Need to confirm with @LinusDierheimer
4. Small code optimizations
2023-01-21 06:18:19 +08:00