如何强制手机屏幕保持开启状态

我在设备上刷了Ubuntu手机,并希望在我拍摄设备的照片或video时显示屏保持打开状态。 我怎样才能做到这一点?

要么,在终端应用程序的设备上发出命令: –

stop powerd 

或者从连接到设备的计算机上安装android工具问题: –

 adb shell stop powerd 

还有另一种方法,来自: https : //wiki.ubuntu.com/Touch/Testing

 # Run this in another terminal window and leave it running to # make sure display stays on for the tests: adb shell powerd-cli display on bright