$ adb shell
root@xxx:/ # cd /sys/class/display/HDMI
cd /sys/class/display/HDMI
root@xxx:/sys/class/display/HDMI # ls
ls
3dmode
audioinfo
color
connect
debug
enable
mode
modes
monspecs
name
power
property
scale
subsystem
type
uevent
root@xxx:/sys/class/display/HDMI # cat connect
cat connect //HDMI是否连接
1
root@xxx:/sys/class/display/HDMI # cat enable
cat enable //HDMI使能
1
root@xxx:/sys/class/display/HDMI # cat mode
cat mode //HDMI当前分辨率
1366x768p-60
root@xxx:/sys/class/display/HDMI # cat modes
cat modes //HDMI支持的所有分辨率
auto
1920x1080p-60
1920x1080p-50
1366x768p-60
1280x720p-60
1280x720p-50
720x576p-50
720x480p-60
|