screen-off

Android Things: Raspberry Pi screen timeout

百般思念 提交于 2019-11-29 11:54:49
I'm building app on Raspberry Pi with Android Things and I have 7 inch touch screen , but the screen never turns off. Is it possible to set timeout like in Android phones? or force it to turn off/on. If I remove the power line and inserted again the screen, it will not work until I reboot. There are two system settings that control this process: STAY_ON_WHILE_PLUGGED_IN and SCREEN_OFF_TIMEOUT The STAY_ON_WHILE_PLUGGED_IN setting is set to BATTERY_PLUGGED_AC by default. You can programmatically change this value in your application code with the Settings API: Settings.Global.putInt

Android Things: Raspberry Pi screen timeout

流过昼夜 提交于 2019-11-28 05:25:36
问题 I'm building app on Raspberry Pi with Android Things and I have 7 inch touch screen, but the screen never turns off. Is it possible to set timeout like in Android phones? or force it to turn off/on. If I remove the power line and inserted again the screen, it will not work until I reboot. 回答1: There are two system settings that control this process: STAY_ON_WHILE_PLUGGED_IN and SCREEN_OFF_TIMEOUT The STAY_ON_WHILE_PLUGGED_IN setting is set to BATTERY_PLUGGED_AC by default. You can