0

I have a 10.Or G android Oreo device

  • Resolution: 1080x1920
  • Density: 480

This question follows up from here

I'm having problem with lots of ghost touches in the very top 5 mm bar of the screen where touches will register almost 20 times in a minute. Doing the overscan doesnt help at all, because touches will still register, so I am looking to resize my screen with:

adb shell wm size 1080*1820

I dont know what to do from here because I'm receiving error:

Error: bad size 1080*1820

Help will be greatly appreciated.

  • You need to use x not * in the command. – Firelord Apr 16 at 5:03
1

You can use the overscan subcommand instead of size for achieving your objective.
The syntax is adb shell wm overscan left,top,right,bottom, where left, top, right and bottom are the coordinates relative to the actual edges of the screen. So, in your case, you should write adb shell wm overscan 0,100,0,0, to get a resolution of 1080×1820, as you have mentioned above.

Explanation: This will set your device's screen bounds to 0px from the left, 100 px from the top, 0 px from the right and 0 px from the bottom. See this image:
enter image description here

  • Thank you, the command is working, but this command reduces my screen size evenly from the top and bottom halves, after applying 1080x1820, the screen moved down by 50px from top and it moved 50px from bottom. since the area that causes the phantom touches is the top most part, is there a way to just restrict the top 50px , and save my screen real estate? – mobifz96 Apr 16 at 14:11
  • That is quite normal. The screen size will get distributed evenly across the bounds of the screen. See my edits for the solution. – Puspam Adak Apr 16 at 15:33
  • I have used the exact overscan command you have mentioned (you can see the attached link in question) but the overscan did not stop the phone from taking touches, that's why i was inclined to stop the top 100px from taking any touches. Again, help will be appreciated. Please refer to the question link given in my question. – mobifz96 Apr 16 at 16:02
  • Here is the picture of what I've encountered imgur.com/a/csiw0h8 notice how the top bar takes touches.. if you'll provide with a solution/any solution, I will be very thankful – mobifz96 Apr 16 at 16:09
  • You can try increasing the top co-ordinate of the command. You can write adb shell wm overscan 0,200,0,0 and check whether it's working or not. Because, the Phantom touches may be extending to more than 100px from the top. – Puspam Adak Apr 16 at 16:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.