pwrtray: Make LCD dimming working properly
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23006 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
15e8cb8e17
commit
29d29edf7e
@ -8,7 +8,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pwrtray
|
||||
PKG_REV:=e1cf5f9d31152a383612b2298f694894584127ab
|
||||
PKG_REV:=ca4cf695f80d5d1f221f64abddb7184aad1a08c0
|
||||
PKG_VERSION:=$(PKG_REV)
|
||||
PKG_RELEASE:=1
|
||||
|
||||
@ -57,6 +57,8 @@ define Package/pwrtray/install
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pwrtray-backend $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pwrtray $(1)/usr/bin/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/pwrtray $(1)/usr/share/
|
||||
[ -e $(1)/etc/pwrtray-backendrc ] || \
|
||||
$(INSTALL_DATA) ./files/etc/pwrtray-backendrc $(1)/etc/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,pwrtray))
|
||||
|
12
Xorg/app/pwrtray/files/etc/pwrtray-backendrc
Normal file
12
Xorg/app/pwrtray/files/etc/pwrtray-backendrc
Normal file
@ -0,0 +1,12 @@
|
||||
# pwrtray-backend configuration
|
||||
|
||||
[BACKLIGHT]
|
||||
# List of auto-dimming steps.
|
||||
# idle-seconds/brightness-percent idle-seconds/brightness-percent ...
|
||||
# idle-seconds value must be growing.
|
||||
autodim_steps=10/70 20/50 25/25 30/10 35/0
|
||||
# Maximum brightness value set by the autodimmer
|
||||
autodim_max=80
|
||||
# Enable auto-dimming by default?
|
||||
autodim_default_on=1
|
||||
|
Loading…
x
Reference in New Issue
Block a user