diff --git a/device/friendlyelec/nanopi3/display_settings.xml b/device/friendlyelec/nanopi3/display_settings.xml new file mode 100644 index 00000000000..66fca4a9e54 --- /dev/null +++ b/device/friendlyelec/nanopi3/display_settings.xml @@ -0,0 +1,12 @@ + + + + + + diff --git a/device/rockchip/common/device.mk b/device/rockchip/common/device.mk index 7f293f851a8..dff57b879b1 100644 --- a/device/rockchip/common/device.mk +++ b/device/rockchip/common/device.mk @@ -821,10 +821,10 @@ endif PRODUCT_PACKAGES += \ libbaseparameter -USE_PRODUCT_DISPLAY_SETTINGS := $(shell test -f $(TARGET_DEVICE_DIR)/displays/display_settings.xml && echo true) +USE_PRODUCT_DISPLAY_SETTINGS := $(shell test -f $(TARGET_DEVICE_DIR)/display_settings.xml && echo true) ifeq ($(strip $(USE_PRODUCT_DISPLAY_SETTINGS)), true) PRODUCT_COPY_FILES += \ - $(TARGET_DEVICE_DIR)/displays/display_settings.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display_settings.xml + $(TARGET_DEVICE_DIR)/display_settings.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display_settings.xml else PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/display_settings.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display_settings.xml diff --git a/device/rockchip/common/rootdir/init.rk30board.rc b/device/rockchip/common/rootdir/init.rk30board.rc index 62cffb16da0..0a149a3d080 100644 --- a/device/rockchip/common/rootdir/init.rk30board.rc +++ b/device/rockchip/common/rootdir/init.rk30board.rc @@ -129,6 +129,7 @@ on boot # backlight chown system system /sys/class/backlight/rk28_bl/brightness chown system system /sys/class/backlight/backlight/brightness + chown system system /sys/class/backlight/pwm-backlight/brightness # for hdmi chown root system /sys/class/display/HDMI/enable @@ -143,8 +144,8 @@ on boot chmod 0664 /sys/class/graphics/fb0/bcsh chmod 0664 /sys/class/graphics/fb0/dsp_lut - chown system graphics /sys/class/graphics/fb0/scale - chmod 0664 /sys/class/graphics/fb0/scale + chown system graphics /sys/class/graphics/fb0/scale + chmod 0664 /sys/class/graphics/fb0/scale chown system system /sys/mali400_utility/utility chmod 0664 /sys/mali400_utility/utility @@ -320,7 +321,7 @@ service shutdownanim /system/bin/bootanimation shutdown service rk_store_keybox /vendor/bin/rk_store_keybox class main - oneshot + oneshot #vts audio property on property:vts.native_server.on=1