李通洲
2c49dcceaf
Options (Library): split code
2023-10-25 16:24:24 +08:00
李通洲
8cbe3f6453
GPU (Linux): add full GPU detection support in WSL
...
With DX12 API ;)
2023-09-21 15:47:03 +08:00
李通洲
e685a00a4b
FFstrbuf: remove ffStrbufRemoveStringsV; rename ffStrbufRemoveStringsA to ffStrbufRemoveStrings
2023-07-25 17:35:09 +08:00
李通洲
ad627e0e0a
GPU (Linux): disable GPU memory size detection with libpci by default
...
Ref: #495 , #497
2023-07-13 10:03:44 +08:00
李通洲
9ab5ed9a86
GPU (Linux): detect memory; fix type detection
...
The GPU type detection is based on memory size.
For accurate results, use `--gpu-force-vulkan`
2023-06-24 13:51:01 +00: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
Carter Li
85597e4d46
CPU (FreeBSD): actually support temp detection
2023-06-22 04:06:08 +00:00
李通洲
9cb5375f30
GPU (Linux): always initialize variables
2023-06-13 11:12:31 +08:00
Linus Dierheimer
0cf114c399
CI: Try to fix build with musl
2023-06-12 15:39:17 +02:00
李通洲
c33eb8c265
GPU: support module options
2023-06-12 14:57:59 +08:00
李通洲
c7119498a3
Global: major FFstrbuf related code refactor
2023-06-10 09:15:15 +08:00
李通洲
2359b7e2f4
GPU: support JSON config
2023-06-10 09:15:15 +08:00
李通洲
56477f5ea6
GPU: be more careful to concat strings
2023-03-25 14:19:58 +08:00
李通洲
a524302ea7
GPU (Windows): use a faster implementation
2023-03-25 13:04:44 +08:00
李通洲
615b2f72ae
GPU (Linux): don't exit if libpci is failed to init
...
* Fixes #433
* Ref https://github.com/pciutils/pciutils/issues/136
2023-03-13 17:46:24 +08:00
李通洲
6ca4b5391b
Library: refactor FF_LIBRARY_LOAD to use __cleanup__
2023-02-15 14:51:04 +08:00
李通洲
64bacd2572
Vulkan: refactor directory structures
2023-02-14 17:52:58 +08:00
李通洲
662ddac050
Vulkan: detect vmem ( #416 )
2023-02-11 16:05:54 +08:00
李通洲
b90d543afc
GPU (Windows): support vmem total / usage detection #416
...
vmem usage detection is guarded behind `--allow-slow-operations`
because it's really slow sometimes
2023-02-11 16:05:54 +08:00
李通洲
edf4837ed6
GPU: refactor vendor detection code
2023-02-06 14:55:57 +08:00
Linus Dierheimer
a063cd4feb
Correctly handle zfs pools
...
#413
2023-02-01 15:56:25 +01: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
Linus Dierheimer
1a710e4094
Better GPU type detection nr2
...
#379
2023-01-12 12:56:17 +01:00
Linus Dierheimer
5a90d8b545
Better GPU type detection
...
#379
2023-01-12 12:54:04 +01:00
Linus Dierheimer
670cf6fe90
GPU selection options
...
#379
2023-01-12 11:41:07 +01:00
Linus Dierheimer
2a092de8d8
Detect data dirs at runtime
...
* Respecting the current platform
* Using them where appropiate
2023-01-08 01:41:09 +01:00
李通洲
eeb008f505
Global: replace all ".so" to FF_LIBRARY_EXTENSION
...
... no matter whether the libraries are linux specific or not
2022-12-17 12:22:11 +08:00
李通洲
772dd1e294
GPU: improve performance (Windows)
2022-11-23 15:38:59 +08:00
李通洲
100e59fd49
Temps: add options to enable detection ( disabled by default )
2022-09-26 15:29:11 +08:00
李通洲
51c70bc44a
Temps: support macOS
2022-09-26 15:29:11 +08:00
Linus Dierheimer
f5ac85c4e3
Only detect temps if --allow-slow-operations is given
2022-09-24 15:59:36 +02:00
Linus Dierheimer
98c94b01e5
Some more standard comformance
2022-09-23 11:51:16 +02:00
Linus Dierheimer
fea4a9dfd5
Fix build with ancient libpci versions
...
#248
2022-09-21 12:02:14 +02:00
Linus Dierheimer
f0cee064bd
Basic BSD support
2022-09-19 23:16:43 +02:00
Linus Dierheimer
34b273186a
FF_LIBRARY_LOAD: don't implicit create pointer
2022-09-19 18:00:19 +02:00
Linus Dierheimer
55f28ae8ff
Fix build with older libpci versions the second
2022-09-19 16:58:25 +02:00
Linus Dierheimer
fb3eb9666e
Fix build with older libpci versions
2022-09-19 16:43:43 +02:00
Linus Dierheimer
d29d99bd6d
Use pci_fill_info when possible
2022-09-19 15:54:27 +02:00
李通洲
09f3bd5a79
GPU: correct detection of Apple M1 GPU
...
Don't cheat
2022-09-16 23:43:08 +08:00
李通洲
93ac3f1971
Library: simplify macros
2022-09-12 21:10:05 +08:00
Linus Dierheimer
a926c9cf7e
Use vulkan as gpu fallback on all platforms
2022-09-09 20:43:24 +02:00
Linus Dierheimer
9466ee3e51
Even better GPU names
2022-09-09 17:53:19 +02:00
Linus Dierheimer
126c1a10bb
Correctly handle GPU names with multiple ']'
2022-09-09 17:48:55 +02:00
Linus Dierheimer
425e135bd8
Reintroduce gpu name modification
2022-09-09 17:47:16 +02:00
Linus Dierheimer
0a675fec8c
Give libpci a bigger buffer to work with
...
#224
2022-09-09 17:40:08 +02:00
Linus Dierheimer
54cb74c999
Separate gpu detection and printing logic
2022-09-05 17:42:42 +02:00