farmerbb/SecondScreen

How do I turn off SecondScreen's profile from adb shell?

vi opened this issue · 1 comments

vi commented

Sometimes SecondScreen prevents using touchscreen (touchable area gets heavily desynched from visible area), so pressing "Turn off" button becomes a problem.

Even after rebooting the device the profile remains on until I unlock the device for the first time (auto-start programs don't auto-start until I unlock). And typing PIN or sliding the slider is not possible due to touchscreen effectively being mangled.

There should be a way to turn off profile from adb shell. Additionally it would be nice to have automatic profile turn off after countdown if confirmation button is not pressed.

#70 (comment)
Found a solution:
From adb shell, type:

wm size reset
wm density reset