Unfortunately I recently stumbled upon hardware issues with my OnePlus One. About 1 inch (2,5 cm) of the display and the soft buttons stopped working suddenly. The display itself is fully intact, but it does not respond to any touch events or gestures anymore. As this leaves the device unusable for most interactions, I desperately searched for a solution on how to disable the defect part of the display. Especially as interaction with the on-screen nav bar is not possible due to the unresponsive 1 inch (2,5cm) high display part. So I basically had to find a way how to “push” the on-screen nav bar up a bit.
Fortunately there is a command for Android’s Window Manager available, that is capable to resize, cut and customize your device’s display settings.
usage: wm [subcommand] [options] wm size [reset|WxH] wm density [reset|DENSITY] wm overscan [reset|LEFT,TOP,RIGHT,BOTTOM]
Running the following command over the ADB (or via Terminal Emulator) is a simple workaround that helped me using my OnePlus One again:
wm overscan 0,0,0,142
Additionally decreasing the density through the settings (Display & lights > screen > LCD density
) or the wm
command helped compensating for the lost display area.
wm density 360