WM command usage and LCD display icon size is not normal to solve the method

Source: Internet
Author: User

Note: The WM tool introduced by Android 4.3

WM command and how to use:

System Description:

USAGE:WM [subcommand] [options]
WM Size [reset| WxH]
WM Density [reset| DENSITY]
WM Overscan [reset| Left,top,right,bottom]

WM Size:return or override display size.

WM density:override display density.

WM Overscan:set Overscan area for display.

Explanation: The WM is a high-pass platform (MTK platform similar to the command for AM, other platforms do not touch, not very clear) the phone resolution, pixel density, display area to set the command. The number of references is less, and the following article describes how the command is used.

1. WM Size [reset| WxH]

[] The options are available. Simply executing the WM size command will get the display resolution set by the LCD itself. For example, with:

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvbg9uz3hpyw93dq==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

The WM size W x H command is set to the resolution by witch X hight. Assuming that the resolution setting is too large, the icon will become larger and vice versa. After setting the resolution, run the WM size command. Can see the resolution of the LCD itself and the overwrite resolution.

For example, with:

The WM size Reset command is to set the resolution to the LCD original resolution.

2, WM density [reset| DENSITY]

The command is used in a manner similar to the WM Size command. The function is to read, set, or reset the density value of the LCD. The density value is the PPI of the LCD.

3, WM Overscan [reset| Left,top,right,bottom]

This command is used to set and reset the display area of the LCD.

Each of the four parameters is the number of pixels that display the edge distance of the LCD left, top, right, and bottom. Like what. For screens with a resolution of 540x960. The display area can be limited to a 540x540 rectangular box by running the command WM Overscan 0,0,0,420.

Understanding the WM can solve the problem of LCD icon size display is not normal. However, these settings are temporary and appropriate for debugging to determine the problem and how to resolve it.

Permanent changes can be made in the following two ways (both under the Qualcomm platform):

Law One:

2> adb root//prompt read only filysystem run this command to get root privileges,

ADB remount

ADB Pull/system/build.prop d:\

Add a row at the end of Build.prop ro.sf.lcd_density=240

ADB push d:\build.prop/system/

ADB shell

cd/system/

chmod 644 Build.prop No change of permissions will cause the phone to not get up

Law II: Direct Change System.prop

Y:\xxxx\device\qcom\xxxx\system.prop

ro.sf.lcd_density=240 change this value, and then compile the system.img again


WM command usage and LCD display icon size is not normal to solve the method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.