백라이트 즉시 적용 동작 개선

This commit is contained in:
seo
2026-07-23 01:15:41 +09:00
parent 286914fc1f
commit 8cea4105eb
4 changed files with 53 additions and 18 deletions
+3
View File
@@ -3700,6 +3700,9 @@ function touch_display_set_runtime(array $input): array
$maxBrightness = touch_display_read_int($backlightPath . '/max_brightness') ?? 255;
$brightness = max(0, min($maxBrightness, (int)($input['brightness'] ?? $maxBrightness)));
$enabled = touch_display_bool($input['backlight_enabled'] ?? '1');
if (!$enabled) {
$brightness = 0;
}
touch_display_write_value($backlightPath . '/brightness', (string)$brightness);
if (is_writable($backlightPath . '/bl_power') || is_readable($backlightPath . '/bl_power')) {