백라이트 즉시 적용 동작 개선
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user