distribution/packages/hardware/quirks/devices/Powkiddy x55/004-display

17 lines
454 B
Text
Raw Normal View History

2023-04-25 20:20:32 +00:00
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
# Configure default contrast saturation and hue values
for PROPERTY in brightness contrast saturation hue
do
MYVAL=$(get_setting display.${PROPERTY})
if [ -z "${MYVAL}" ]
then
MYVAL=$(drm_tool list | sed -n '/Connector: 206/,$p' | awk '/'${PROPERTY}'/ {print $5}')
2023-04-25 20:20:32 +00:00
fi
paneladj ${PROPERTY} ${MYVAL}
2023-04-25 20:20:32 +00:00
done