Carter Li
e3a698f7b1
Brightness (macOS): fixes detection for external monitor on Intel platform
2025-10-11 21:26:37 +08:00
李通洲
24459b2fbf
Brightness (macOS): enhance DDC/CI detection by enumerating all I2C buses
2025-10-10 14:24:11 +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
李通洲
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
apocelipes
3291a9945f
Global: add missing O_CLOEXEC to open()
2025-06-19 22:40:06 +08:00
李通洲
7562e05123
Chore: fix a lot code smell
2025-03-25 22:08:50 +08:00
李通洲
75da934815
Brightness: detect & print screen type
2025-02-26 09:31:09 +08:00
李通洲
a378d2ad62
Brightness (FreeBSD): fix backlight name detection
2024-12-30 11:12:06 +08:00
Carter Li
b38d7a4919
Brightness (NetBSD): don't error out if the screen idx isn't 0
2024-12-21 23:54:30 +08:00
Carter Li
9c47a3a9e7
Brightness (OpenBSD): add support
...
Requires root permission. Not tested
2024-12-21 23:54:30 +08:00
李通洲
4adf7fda28
Brightness (NetBSD): add support for builtin display
2024-12-21 23:54:30 +08:00
Carter Li
864fb918bc
Chore: silence some warnings
2024-11-22 14:20:50 +08:00
李通洲
b257134d74
Chore: introduce macro ARRAY_SIZE
2024-10-18 16:44:41 +08:00
Carter Li
1c598add39
Chore (Linux): always ignore hidden files when enumerating directories
2024-10-15 10:16:58 +08:00
李通洲
c9d539090d
Global: remove --lib-xxx support
2024-09-04 15:56:11 +08:00
Carter Li
3c9d9b3c67
Brightness (Linux): use brightness instead of actual_brightness
...
`actual_brightness` are above `max_brightness` on asahi. See also https://bugzilla.kernel.org/show_bug.cgi?id=203905
2024-07-21 12:44:31 +08:00
Carter Li
3ba899261f
Util: add ffCharIsDigit and use it
2024-05-28 15:34:59 +08:00
Carter Li
5302a82444
Fastfetch: disable dlsym function call if dlopen is disabled
2024-05-24 15:30:35 +08:00
李通洲
14d3bd89a7
Brightness (Linux): fix ddcutil 2.1 compatibility
2024-03-01 22:07:54 +08:00
李通洲
8ba031b761
Brightness (FreeBSD): don't print empty ()
2024-01-10 14:22:56 +08:00
李通洲
b6c8649cbf
macOS: improve IO service related code generally
2024-01-05 15:00:50 +08:00
李通洲
92a6b01133
Brightness (Apple): code optimise and fix mem leaks
2024-01-05 13:20:47 +08:00
Carter Li
a4f5a9af03
Brightness (Linux): show meaningfull name on asahi
2023-12-20 16:44:30 +08:00
李通洲
3fda6e425a
Global: never leak fd to child processes
2023-12-04 15:14:40 +08:00
李通洲
6f6a68f7e5
Brightness (Windows): remove hard dep of dxva2
...
Ref: https://github.com/fastfetch-cli/fastfetch/issues/623#issuecomment-1815682290
2023-11-18 15:25:47 +08:00
李通洲
f2fc92dbf7
Brightness (Linux): better ddcutil 2.x compatibility
2023-11-12 10:47:04 +08:00
李通洲
f9597eba39
Global: remove #ifndef FF_INCLUDED_* guards
2023-11-09 13:46:45 +08:00
李通洲
2c49dcceaf
Options (Library): split code
2023-10-25 16:24:24 +08:00
李通洲
7362808d5d
Brightness (Linux): fix compatibility for ddcutil 2.0
...
3rd try
2023-10-15 13:46:58 +08:00
李通洲
27cfec68ed
Brightness (Linux): fix compatibility for ddcutil 2.0
2023-10-15 12:27:38 +08:00
李通洲
d29931a91a
Brightness (Linux): fix compatibility for ddcutil 2.0
...
Ref: https://github.com/fastfetch-cli/fastfetch/issues/576#issuecomment-1763184172
2023-10-15 10:52:05 +08:00
李通洲
e9c2a43de1
Brightness: add --brightness-ddcci-sleep to set the sleep times (in ms) when sending DDC/CI requests
...
Fix #580
2023-10-14 10:04:08 +08:00
李通洲
af94596202
Revert "Brightness (Linux): allow specifying busno for ddcutil"
...
This doesn't seem to improve much performance, but increase code
complexity a lot
This reverts commit 42e87b498c .
2023-10-14 09:35:40 +08:00
李通洲
42e87b498c
Brightness (Linux): allow specifying busno for ddcutil
...
Ref: #580
2023-10-14 01:38:02 +08:00
李通洲
085d0924db
Brightness (Linux): try improving compatibility of ddcutil 2.0
...
ddcutil 2.0 increases SONAME version to `libddcutil.so.5`. More testing needed
Ref: #576
2023-10-08 10:34:01 +08:00
李通洲
90ea096ca3
macOS: don't keep variable matchDict
2023-10-07 15:51:05 +08:00
Carter Li
8795d99f79
Brightness: add DDC/CI support for Intel
...
Doesn't work for me. Need more testing
2023-10-04 14:41:06 +08:00
李通洲
26e5790a78
Brightness: report more detailed values
2023-09-19 13:25:50 +08:00
李通洲
159122eb98
Brightness (macOS): silence compiler warnings
2023-08-21 09:38:20 +08:00
李通洲
069c20be40
Brightness: don't make DDC/CI a slow operation
2023-08-19 02:16:04 -04:00
李通洲
e0c59b9395
Brightness (Linux): try detect monitor name
2023-08-10 10:39:48 +08:00
李通洲
1d1ce83567
PhycialDisplay (macOS): add support
2023-08-09 10:11:24 +08:00
李通洲
3acbe84570
Brightness (macOS): code refactor
2023-08-09 09:00:29 +08:00
李通洲
4202e618db
Brightness: improve performance
2023-07-23 13:15:22 +08:00
李通洲
1feb3915a0
Brightness (macOS): fix detecting with ddc/ci
2023-07-21 15:31:46 +08:00
李通洲
1ddecf4cdb
Brightness (Linux): work around #499
2023-07-15 13:30:10 +08:00
李通洲
d3d121a965
Brightness (Linux): use display model name as a fallback if we fail to match the display with edid
2023-07-14 11:16:05 +08:00
李通洲
98079f583c
Brightness (macOS): fix crashing when no external display connected
2023-07-09 19:32:38 +08:00
李通洲
d0ce6aabb6
Brightness (Linux): detect brightness of external monitors with DDC/CI
2023-07-09 17:22:04 +08:00
李通洲
30afe7e86b
Brightness (macOS): detect brightness of external monitors with DDC/CI
2023-07-08 23:56:44 +08:00