在应用切换EDID后,需要执行拉高拉低GPIO的操作,否则RK3588项目分辨率显示不正确,具体方法贴出来:
private Thread myThread;
public void setHdmi_OP_TYPEC_GPIOUPDOWN() {
myThread=null;
myThread= new Thread(new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
try {
writeValueToKernel("sys/class/hdmirx/hdmirx/status", "off");
Log.d(TAG,"setHdmi_OP_TYPEC_GPIOUPDOWN====off");
Thread.sleep(500);
writeValueToKernel("sys/class/hdmirx/hdmirx/status", "on");
Log.d(TAG,"setHdmi_OP_TYPEC_GPIOUPDOWN====on");
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
myThread.start();
}