关闭Milestone的四个触摸键背景灯
晚上用milestone看小说时,屏幕下方的四个触摸键实在是太刺眼了。下面的方法可以将这四个触摸键背景灯关闭.
需要root权限,最好使用Gscript来执行这样方便些。
关闭
echo 0 >/sys/devices/platform/button-backlight/leds/button-backlight/brightness chmod 000 /sys/devices/platform/button-backlight/leds/button-backlight/brightness
打开
chmod 644 /sys/devices/platform/button-backlight/leds/button-backlight/brightness echo 255 >/sys/devices/platform/button-backlight/leds/button-backlight/brightness
开关LED的shell:
#! /sytem/bin/sh
mpath="/sys/devices/platform/button-backlight/leds/button-backlight/brightness"
pr=`ls -l $mpath|busybox awk '{print $1}'`
if [ $pr != "----------" ]; then
echo 0 >$mpath
chmod 000 $mpath
echo "LED closed"
else
chmod 644 $mpath
echo 255 >$mpath
echo "LED opened"
fiecho到/sys/devices/platform/button-backlight/leds/button-backlight/brightness这个文件里的值其实就是LED的亮度值,可以根据需要修改。
/sys/devices/platform/ 这个目录里还有控制键盘背景灯的相关文件可以用同样的方法设置亮度。
当然如果你想更方便一点可以下载LEDshack这个app。
第一次来! 写的不错, 新年快乐。
thing in life is to have a great aim, and the determination to attain it.