[GUIDE]Little trick on improvimg Nexus 9 memory issue - Nexus 9 General

Hi all,
Many of you are struggling with frequent launcher redraw issue, and me too. So I try to find out why.
That is likely cause by few reasons, including CPU power limitation (not able to handle 320ppi density screen) or not enough memory for loading high resolution assets.
Founding:
Given that Nvidia Shield Tablet, which has a similar CPU and memory volume with Nexus 9, but have a 283ppi screen.
Difference screen density may be the key to their different performances.
Android system will load hdpi instead of xhdpi assets when screen desnity is between 240 and 320.
Since hdpi assets have lower memory footprint than xhdpi assets, which the system can have more free memory for other application to run, and hence reduces the chances of redraw due to insufficiency memory.
Trade off:
Screen resolution (1536 * 2048)
Relationship between px, dp and dpi:
px = dp * (dpi / 160)
Under factory density value (dpi = 320) You have 768dp * 1024dp as logical resolution
Under a smaller density value, for example dpi = 240
You have 1024dp * 1365.3dp as logical resolution
Under a larger density value, for example dpi = 400
You have 614.4 * 819.2dp as logical resolution
Since most of the thing(text, image assets) in android are measured in dp.
TL;DR:
Lower density value > more logical resolution (dp) > "smaller and more blur text and icons" and "more working space"
Higher density value > lesser logical resolution (dp) > "larger and clearer text and icons" and "lesser working space"
For your information:
Native ppi of nexus 9 screen is 288(obtained from this formula: sqrt(1536^2 + 2048^2) / 8.9 =~287.64 )
Member @GiantAxe suggest that 316 is a good number
And I believe that any number between 280 and 319 is good. (I found it is wrong, see the update below)
Steps:
* No root access is required. Stock Rom is good to go.
1. Enable debug mode on your device.
2. On your pc/mac, switch to your adb folder.
3. adb shell wm density 316
4. Restart your Tablet and try.
Restore to origin setting:
Replace the command at step 3 with
adb shell wm density reset
Let me know if this helps!
Thanks!
[2015-10-26 update]
I am wrong!
My hypothesis on using 316 density to force Nexus 9 to load hdpi assets seems wrong.
After performing several experiments on my Nexus 9, I compose the following tables:
Code:
Official Density | Actual Density Range | Assets Resolution
120 <=131 LDPI
160 132 - 181 MDPI
240 182 - 263 HDPI
320 264 - 363 XHDPI
480 364 - 526 XXHDPI
640 >=527 XXXHDPI
I write a small program to test, you can find and compile on your own here:
https://github.com/studenttwok/DPIReader
So, I set finally set my DPI to 260, in order to force Nexus 9 to load the HDPI assets instead of XXHDPI assets.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Usually the free ram from 620MB to 720 MB, in my case.
And to reply, the performance of Nexus 9 will not increase, but the chances of application redrawn due to low memory will decrease, so you can spend less time on waiting GC and redraw to finish.
Sent from my Nexus 9 using XDA Free mobile app

Maybe this is why I've never had an issue I always run at the actual screen DPI of 288.

studenttwok said:
Hi all,
That is likely cause by few reasons, including CPU power limitation (not able to handle such 320ppi density screen) and not enough memory for loading high resolution assets.
Given that Nvidia Shield Tablet, which has a similar CPU and memory volume with Nexus 9, only have a 283ppi screen. Difference screen density may be the key to their different performances.
Click to expand...
Click to collapse
Small correction: I would note here that the Nvidia Shield Tablet uses the 32 bit version of the K1 chip, rather than the 64 bit version used in the Nexus 9. The screen resolution is also 1920x1200. The Kepler GPUs in both chips can easily handle those resolutions.
As you note , where the Nexus 9 has performance problems they are usually the result of the less than optimal amount of memory.

studenttwok said:
Hi all,
Many of you are suggesting from frequent launcher redraw issue.
That is likely cause by few reasons, including CPU power limitation (not able to handle such 320ppi density screen) and not enough memory for loading high resolution assets.
So I try to loader my nexus 9 screen density setting from 320 to 318.
318 is my pick and you can try any number between 280 and 319.
For your reference:
Native ppi of nexus 9 screen is 288(obtained from this formula: sqrt(1536^2 + 2048^2) / 8.9 =~287.64 )
System is expected to load the hdpi instead of xhdpi assets, and this seems improve the situation a lot.
Given that Nvidia Shield Tablet, which has a similar CPU and memory volume with Nexus 9, only have a 283ppi screen. Difference screen density may be the key to their different performances.
Steps:
1. Enable debug mode on your device.
2. On your pc/mac, switch to your adb folder.
3. adb shell wm density 318
4. Restart your Tablet and try.
Restore to origin setting:
Use
Replace the command at step 3 with
adb shell wm density reset
Let me know if this helps!
Thanks!
Sent from my Nexus 9 using XDA Free mobile app
Click to expand...
Click to collapse
This made things snappier for me and no lag after hrs of use, good find man. Running 318 also.

This works for my device too. Even chrome is snappier. Thank you.

@studenttwok Is there a way to confirm that the change in density actually goes into effect? I have tried the solution by setting the density to 288 but I cannot see a difference neither graphically nor in performance.

billgs said:
@studenttwok Is there a way to confirm that the change in density actually goes into effect? I have tried the solution by setting the density to 288 but I cannot see a difference neither graphically nor in performance.
Click to expand...
Click to collapse
Everything gets smaller. It's impossible to not notice

I tried 318 but in the play store I already saw some icons that were pretty big and stretched out, didn't like it. Not terrible I guess but not sure if it's worth it for me.

Jensiehh said:
I tried 318 but in the play store I already saw some icons that were pretty big and stretched out, didn't like it. Not terrible I guess but not sure if it's worth it for me.
Click to expand...
Click to collapse
288 looks fine for me. Try that.

billgs said:
@studenttwok Is there a way to confirm that the change in density actually goes into effect? I have tried the solution by setting the density to 288 but I cannot see a difference neither graphically nor in performance.
Click to expand...
Click to collapse
You can use this command:
adb shell wm density
adb will show you the current density setting
The reason for me to pick 318 is it tends to 320 and try to preserve as many details as I can, and can force system to load hdpi assests instead of xhdpi. (319 is odd number and I don't' like it, personal preference)
You can try what @knitler suggests, use 288. It may look huge different in that density(everything is becoming noticeable smaller), but it may look good since image assets and font size are much more balanced.
@Jensiehh
I notice that as well, and again, personal preference matter

studenttwok said:
You can use this command:
adb shell wm density
adb will show you the current density setting
The reason for me to pick 318 is it tends to 320 and try to preserve as many details as I can, and can force system to load hdpi assests instead of xhdpi. (319 is odd number and I don't' like it, personal preference)
You can try what @knitler suggests, use 288. It may look huge different in that density(everything is becoming noticeable smaller), but it may look good since image assets and font size are much more balanced.
@Jensiehh
I notice that as well, and again, personal preference matter
Click to expand...
Click to collapse
288 is too small. You can pick the density on AICP and I got mine on 304. I'm diggin it. Increase the icon size on Nova and you're good! Thanks for the info.

This actually made typing for me in portrait a lot more bearable for me! And able to multitask!

Thx for the post, only thing i have noticed is swiftkey goes crazy in its size, just change keyboard to google insted.
will keep a eye on performance

I put it on 288 and it looks surprisingly good. I expected it to be much worse than 318, but it's not really the case. The icons in the play store were still a little stretched out, but they seem sharper than on 318.
So what has it really changed? It seems the rest is a little smaller? Not that much that it's disturbing though.

I went 240 and it was awesome for me before i sold my tablet. Try it

Just thought I'd mention that there's a huge difference between the nVidia shield CPU and the Nexus 9 CPU. Nexus 9 dual core Denver CPU isn't used in any other device, and is a completely unique architecture where as the Shield CPU uses (4 cores + 1) off the shelf ARM cores.

Can the wm density command be done through a terminal command?
Edit: It does via SU.

So far so good for me - will see how it behaves of the weekend but everything certainly feels snappier for me.

Much appreciated, seems to really help the N9!

I get this:
Code:
C:\Users\ix\Desktop>adb shell
[email protected]:/ # wm density
Error type 2
android.util.AndroidException: Can't connect to window manager; is the system running?
at com.android.commands.wm.Wm.onRun(Wm.java:81)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.wm.Wm.main(Wm.java:46)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:251)
1|[email protected]:/ #
The same happens when I issue this command as root from the terminal from inside device. When I say "wm density" there as a default user it replies "Physical density 320" but this user does not have permission to change this value.
Any ideas what can be the reason?

Related

[Q] Smaller font (Working?)

Okay, great device... but really annoying that most apps don't make use of the extra real estate on the screen. Most apps are just blown up versions of for example the Galaxy S2 apps. Meaning most apps are the same but 5.3/4.2 = 1.26 times bigger That's at least a pity The contacts app displays the same amount of contacts on a screen as the Galaxy S2 or S but... with a 1.26 x bigger font (compared to the S2) and 5.3/4=1.33 (lol) x bigger font compared to the Galaxy S
Fortunately there seems to be a setting in the accessibility settings that allows the user to decrease the font in some stock apps. Unfortunately this doesn't work. At least not on my device. Anyone got this working?
And yes, ICS would be a great improvement for such a big screen device.
Is that possible to set another density for the device (maybe you have to root it first)?
siamchen said:
Is that possible to set another density for the device (maybe you have to root it first)?
Click to expand...
Click to collapse
You'd have to root it first, and then push the density down. Not ideal, as some apps then run in a box on the screen, but it does make for smaller fonts, and you can cram more widgets on the screen etc.
I run my HD2 at 160, but then again I have had my eyes lasered!
Root
Go to system/build.prop
Open in editor
change the value of lcd from 240 to 192
See the difference.
U can always go back
All apps wont be scaled to the new lcd value.
eg: TW in sgsII does not scale.
However i always used this value and did not use TW.
Looks very interesting but I'm afraid that I'm not s pro
Sent from my HTC Desire S using XDA App
density change doesn't address the question
Hey ho wait..... this wasn't the question. So does the fontsize changing option work for you guys?
appelflap said:
Hey ho wait..... this wasn't the question. So does the fontsize changing option work for you guys?
Click to expand...
Click to collapse
I think change the font size setting in gingerbread is for display text in text editor or web browser instead of the launcher and most other application as they have their own fixed font size. You cannot do anything to those applications as they has been programmed that way.
siamchen said:
I think change the font size setting in gingerbread is for display text in text editor or web browser instead of the launcher and most other application as they have their own fixed font size. You cannot do anything to those applications as they has been programmed that way.
Click to expand...
Click to collapse
With stock apps I mean the Samsung apps. In the accessibility settings there's an option to change the font size "in the following applications: S planner, Email, Contacts and Messaging" (as stated in the accessibility settings)
Unfortunately this setting doesn't work on my jk4 rom. Maybe others have luck on other roms. Seems like a very usuable option for the note.
drgopoos said:
Root
Go to system/build.prop
Open in editor
change the value of lcd from 240 to 192
See the difference.
U can always go back
All apps wont be scaled to the new lcd value.
eg: TW in sgsII does not scale.
However i always used this value and did not use TW.
Click to expand...
Click to collapse
My lcd.density (or so) was set to 320 on stock!
I changed it to 280 and the system looks now nicer!
Actually, I measured the tab and my calculation would be around 270-280 dpi.
Has anybody other/better data?
By the way, 1st problem after changing lcd density is in S Memo! Background seem to have a fixed 'smaller size' which are then placed wrongly
Another impact: The email-widget does not fit on screen any more (using Launcher Pro) ... Hope in ICS they will fix some of those screen size problems!
fscherz said:
My lcd.density (or so) was set to 320 on stock!
I changed it to 280 and the system looks now nicer!
Actually, I measured the tab and my calculation would be around 270-280 dpi.
Has anybody other/better data?
By the way, 1st problem after changing lcd density is in S Memo! Background seem to have a fixed 'smaller size' which are then placed wrongly
Another impact: The email-widget does not fit on screen any more (using Launcher Pro) ... Hope in ICS they will fix some of those screen size problems!
Click to expand...
Click to collapse
I didn't try it myself yet but I bet it will give a whole lot of trouble with almost every Samsung app on this xhdpi device. Like HTC, they exactly target the screen for which they write software. Unlike most android apps in the market, targeting screens with different specs isn't important. Scaling isn't a requirement for these stock apps. ICS will not solve the problem, because it is still up to the developer which screens will be targeted.
Anyway, back to the original question, I think it is safe to conclude that the font setting doesn't work for anyone. So it is a bug.
I have rooted my phone and tried to use Spare Parts to change the font size to Extremely Small. It works instantly and make the application much more usable. But, there is a problem: The font size will change back to Normal after few hours by itself. Anyone has the same problem?
siamchen said:
I have rooted my phone and tried to use Spare Parts to change the font size to Extremely Small. It works instantly and make the application much more usable. But, there is a problem: The font size will change back to Normal after few hours by itself. Anyone has the same problem?
Click to expand...
Click to collapse
that method also won't scale down graphics to match the smaller fonts. LCD Density Changer accomplishes that and works well.

No root and want to modify your DPI? You can!

Make use of that super saturated 2k panel!
1. Download the Android SDK
2. Extract it to a desired location
3. Navigate through the extraction to SDK > Platform Tools
4. SHIFT+RIGHT CLICK anywhere inside this folder and click "open command window here"
6. Make sure you have the correct drivers for your phone
5. Turn on USB Debugging and plug your phone into the computer
6. Tell your phone to trust the computer
7. In the command window, run the following command but replace *** with the desired DPI (I use 540)
Adb shell wm density ***
8. Reboot phone to have changes fully take effect.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is wonderful news. Do you know what the stock DPI was?
isosunrise said:
This is wonderful news. Do you know what the stock DPI was?
Click to expand...
Click to collapse
Tis 640
PizzaSauce said:
Tis 640
Click to expand...
Click to collapse
Isn't 640 DPI better than 540? What do you gain from changing it to less dots per inch? Bit of a n00b since I always left displays stock on phones.
will.bates94 said:
Isn't 640 DPI better than 540? What do you gain from changing it to less dots per inch? Bit of a n00b since I always left displays stock on phones.
Click to expand...
Click to collapse
It changes the dots per inch.
The benefit is you can fit way more stuff on the screen and force apps into tablet mode on a non tablet device.
E. G. Dpi is 640 and the dialer may display 5 contacts. You change the DPI to 540 and it may display 7-8 on the same screen. It is almost necessary with a phone this big unless you have bad eye site because the phone utilizes the screen real estate so badly in Stock dpis
will.bates94 said:
Isn't 640 DPI better than 540? What do you gain from changing it to less dots per inch? Bit of a n00b since I always left displays stock on phones.
Click to expand...
Click to collapse
The setting determines what size the phone will make elements on the screen.
If the DPI setting is low like that, the device thinks it's a tablet and will scale things smaller for the bigger screen.
The device knows the screen's resolution. The device needs a setting to scale screen elements to a good size for the size of the screen.
So lower DPI effectively tricks the phone into thinking the screen is bigger than 5.7" and scales elements smaller for the bigger screen.
kimdoocheol said:
It changes the dots per inch.
The benefit is you can fit way more stuff on the screen and force apps into tablet mode on a non tablet device.
E. G. Dpi is 640 and the dialer may display 5 contacts. You change the DPI to 540 and it may display 7-8 on the same screen. It is almost necessary with a phone this big unless you have bad eye site because the phone utilizes the screen real estate so badly in Stock dpis
Click to expand...
Click to collapse
I SEE what you are saying! I was thinking we were reducing the amount of dots or pixels that will be used in the display, overall changing the resolution! Thanks for clearing that up bruh.
@PizzaSauce thanks man, this cleared up a lot. Thank god you made this happen, first time with a note and it felt like I was on a Playskool phone from fisher price.
will.bates94 said:
I SEE what you are saying! I was thinking we were reducing the amount of dots or pixels that will be used in the display, overall changing the resolution! Thanks for clearing that up bruh.
Click to expand...
Click to collapse
Yeah, you got it. If root ever comes out definitely get xposed framework and app settings which allows individual dpi settings for apps. I'm guessing this workaround does it on everything, which is still really cool cause the only way I know to do it manually is by editing the build.prop. Similar to how you can add capacitive buttons
Dialer app is missing logo and things seem odd. Can't add anymore apps to the screen, everything is just more smushed together. Running ART should I wipe cache via SDK?
Nothing is lined up either.
will.bates94 said:
Dialer app is missing logo and things seem odd. Can't add anymore apps to the screen, everything is just more smushed together. Running ART should I wipe cache via SDK?
Nothing is lined up either.
Click to expand...
Click to collapse
I noticed the stock dialer thing too. Ended up using a different dialer app; ExDialer w/ Android L theme
I don't know about not being able to add apps, I use Nova launcher though.
Not sure about the ART thing, I'm on Dalvik myself
Does this chance persist through reboots?
Just a heads up, the stock samsung apps bug out when you change the DPI. They are still usuable but for instance the dialer and camera apps no longer use the entire screen.
Dan1909 said:
Does this chance persist through reboots?
Click to expand...
Click to collapse
It will persist until you manually change it or do a factory reset
bobbarker2 said:
Just a heads up, the stock samsung apps bug out when you change the DPI. They are still usuable but for instance the dialer and camera apps no longer use the entire screen.
Click to expand...
Click to collapse
If a lower DPI setting is more important than using stock apps, there's a lot of great replacements out there.
If not, you're better off waiting for root and Xposed
AWESOME!!! Everything looks so much better now. The camera and phone thing is a bit annoying, but worth it to have everything else look so good. Thank you
Thank you, this was one of the only things i missed about my rooted Note 3.
Main reason for missing root on this phone. Thank you so much for sharing this information!
One of the four things I wanted root for
Thank you so much!
The dialer doesn't bother me in the least, but does any one know how to change the default camera (it is not in the default app settings) I found a great alternative, DSLR Camera, but I can't set it to be the default camera on the lock screen.
Thanks again!
Thanks! The size of this phone is pretty useless without this. The stock apps look weird but still work fine.
Can you post some pics of the stock apps? I ran like a 300DPI on my N3 and would like to see how the stock apps look when changed.
Sent from my SM-N910V using XDA Free mobile app

How to Change DPI of Honor 8 Without Root Using ADB

How to Change DPI of Honor 8 Without Root Using ADB​For anyone looking to experiment with the DPI settings on the Honor 8, I'll give you a quick tutorial on how to do that. You can also check out screenshots of different DPI settings to see which one you want to go with.
Before you get started it's important to know what the default DPI is so that you can revert back to that if anything goes wrong. In ADB, type the command adb shell dumpsys display and you'll see that the default density is 480.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now to change your DPI, here is the command you'll want to put into ADB.
adb shell wm density *insert density here* && adb reboot
DPI set at 200
DPI set at 300
DPI set at 400
DPI set at 500 (fail)
DPI set at 600 (fail)
Looks like you don't want to go over 500 because it causes app crashes and messes up the UI. Between 300-480 is the sweet spot.
Let me know if you get stuck or have any questions.
Thanks, but I read somewhere else that you can change the resolution from software (like the note 7)
PalakMi said:
Thanks, but I read somewhere else that you can change the resolution from software (like the note 7)
Click to expand...
Click to collapse
Yes. But it only changes the resolution to 720p which means less pixels and doesn't look good, it's more for saving battery not to reduce density(dpi) of the screen. Correct me if I'm wrong.
BudaBang said:
Yes. But it only changes the resolution to 720p which means less pixels and doesn't look good, it's more for saving battery not to reduce density(dpi) of the screen. Correct me if I'm wrong.
Click to expand...
Click to collapse
You're correct
It's a shame Huawei doesn't add the option it has on phones with 5.5 inch screens (like the Nova Plus and Honor 5X) as surely the user can decide for themselves if they'd like smaller icons etc.
I assume Nougat will add support natively?
jonmorris said:
It's a shame Huawei doesn't add the option it has on phones with 5.5 inch screens (like the Nova Plus and Honor 5X) as surely the user can decide for themselves if they'd like smaller icons etc.
I assume Nougat will add support natively?
Click to expand...
Click to collapse
I hope so
I've settled for 440. What I don't understand is that on the S7 regular zoomed UI used to be 640 and Condensed is 570, while on the Honor 8 regular is 480 but I can't quite figure out what would be the equivalent of 570 on S7. I do realize the values are probably different because of the differrent resolution screens, ie. QHD vs FHD.
Don't forget screen size
PalakMi said:
Don't forget screen size
Click to expand...
Click to collapse
just use
wm size 1920x1080 for example
RatchetPanda said:
just use
wm size 1920x1080 for example
Click to expand...
Click to collapse
I meant like 5", 5.5" etc
RatchetPanda said:
just use
wm size 1920x1080 for example
Click to expand...
Click to collapse
what would this command cause?
MaTiCeK- said:
what would this command cause?
Click to expand...
Click to collapse
Change the resolution
Thanks very much for this fantastic mod.
Just migrated from an iPhone 5s, and frankly I was pissed off that despite having a large device, instead of being able to view more content, everything on the screen was huge. Setting the dpi to 400 fixed this.
is there something i missed i tried different dpi settings 300, 320, 380, 400 but when i use my smart cover, the notification and nav bar disappears as wel as that the smartview doesnt display correctly, thx in advance
edit: played with it some more and cant go lower than 420 (i tink its a sign ) but anytthing below that just makes the smartview not workeble and de nav bar disappears
On EMUI 5 it's possible to set the DPI from the phone settings (that's an android 7 feature actually).
I got used to DPI 420 on my nexus 5X, after changing honor 8 to the same, I feel right at home!
DrGreenway said:
How to Change DPI of Honor 8 Without Root Using ADB​For anyone looking to experiment with the DPI settings on the Honor 8, I'll give you a quick tutorial on how to do that. You can also check out screenshots of different DPI settings to see which one you want to go with.
Before you get started it's important to know what the default DPI is so that you can revert back to that if anything goes wrong. In ADB, type the command adb shell dumpsys display and you'll see that the default density is 480.
View attachment 3877074
Now to change your DPI, here is the command you'll want to put into ADB.
adb shell wm density *insert density here* && adb reboot
DPI set at 200
View attachment 3877078View attachment 3877079View attachment 3877080
DPI set at 300
View attachment 3877082View attachment 3877083View attachment 3877084
DPI set at 400
View attachment 3877086View attachment 3877087View attachment 3877088
DPI set at 500 (fail)
View attachment 3877092
DPI set at 600 (fail)
View attachment 3877093
Looks like you don't want to go over 500 because it causes app crashes and messes up the UI. Between 300-480 is the sweet spot.
Let me know if you get stuck or have any questions.
Click to expand...
Click to collapse
When I do this the navigation area stays large but the buttons shrink. What am I doing wrong
I see an option under Developer Options > Drawing > Smallest width . It was preset to 360, I changed it to 400(or whatever dpi you want to ).
Just wanted to share. I don't know if this is the correct way to set dpi, but my screen density sure reduced.
Edit : It doesn't set dpi , it sets dp(density independent pixel) . I found a formula on the Android documentation : https://developer.android.com/guide/practices/screens_support.html
It says px = dp*(dpi/160)
Px is the no. Of physical pixels (relates to the resolution of the screen which is fixed )
Dp is the virtual pixel unit which can be set in the developer options (smallest width)
Dpi is the screen density .
yalokiy said:
On EMUI 5 it's possible to set the DPI from the phone settings (that's an android 7 feature actually).
I got used to DPI 420 on my nexus 5X, after changing honor 8 to the same, I feel right at home!
View attachment 4000993
Click to expand...
Click to collapse
Great tip (and yes, I hit the Thanks Button), but I still have a question:
I just got my Honor 8 this weekend. The screen is great, and with the above I can easily customize the overall appearance.
The only problem is that as soon as I got the phone up and running, I noticed that the home screen icons (particular look really large and "cartoonish" for a phone with a relatively high resolution screen.
I realize the look is part of EMUI 5.
Adjusting this seems to help the size, but it has more of an effect on everything else than on the icons (actually homescreen, dock and app tray). I set the home screen to 5x5, which also helps, but the dock and app tray still look really big.
Is there anything else I can do to set the size of the icons in the tray or the dock?
Linuxslate said:
Great tip (and yes, I hit the Thanks Button), but I still have a question:
I just got my Honor 8 this weekend. The screen is great, and with the above I can easily customize the overall appearance.
The only problem is that as soon as I got the phone up and running, I noticed that the home screen icons (particular look really large and "cartoonish" for a phone with a relatively high resolution screen.
I realize the look is part of EMUI 5.
Adjusting this seems to help the size, but it has more of an effect on everything else than on the icons (actually homescreen, dock and app tray). I set the home screen to 5x5, which also helps, but the dock and app tray still look really big.
Is there anything else I can do to set the size of the icons in the tray or the dock?
Click to expand...
Click to collapse
Try changing the theme . That usually changes the style (and sometimes) the size of icons .
Thanks! Tried this today on my Honor 8, works like a charm with DPI 420.

DPI scaling not working

So after using the adb command
Code:
adb shell wm density 480 && adb reboot
my DPI has changed, but for some reason certain elements of my display have become larger and blurry. For instance my music player widget controls are 3x as large as they should be, and my clock widget is also large and blurry. Changing the DPI back to 560 fixes this, but I was wondering if anyone had encountered this problem.
TCZaro said:
So after using the adb command
my DPI has changed, but for some reason certain elements of my display have become larger and blurry. For instance my music player widget controls are 3x as large as they should be, and my clock widget is also large and blurry. Changing the DPI back to 560 fixes this, but I was wondering if anyone had encountered this problem.
Click to expand...
Click to collapse
I'm assuming you're not rooted or don't have closed seeing as mentioned using ADB. What are you changing the DPI for? If you had xposed(only available on Marshmallow and below) you could use the module "app settings" to change the DPI for just the apps or widgets you need..? This is partly just a shot in the dark, I'm not super knowledgable on the resolutions and why certain elements get bigger.
TCZaro said:
So after using the adb command
my DPI has changed, but for some reason certain elements of my display have become larger and blurry. For instance my music player widget controls are 3x as large as they should be, and my clock widget is also large and blurry. Changing the DPI back to 560 fixes this, but I was wondering if anyone had encountered this problem.
Click to expand...
Click to collapse
Are you trying to change your screen resolution to 1080p? Did you change it first, then your DPI?
Spencervb256 said:
I'm assuming you're not rooted or don't have closed seeing as mentioned using ADB. What are you changing the DPI for? If you had xposed(only available on Marshmallow and below) you could use the module "app settings" to change the DPI for just the apps or widgets you need..? This is partly just a shot in the dark, I'm not super knowledgable on the resolutions and why certain elements get bigger.
Click to expand...
Click to collapse
Correct. I'm not sure if I want to go through the xposed process, but I might have to use a method of changing the dpi if this doesn't work.
aybarrap1 said:
Are you trying to change your screen resolution to 1080p? Did you change it first, then your DPI?
Click to expand...
Click to collapse
No, I'm just changing the DPI (stock DPI makes everything way to large on the screen). I think I want to keep my resolution the same.
TCZaro said:
So after using the adb command
Code:
adb shell wm density 480 && adb reboot
my DPI has changed, but for some reason certain elements of my display have become larger and blurry. For instance my music player widget controls are 3x as large as they should be, and my clock widget is also large and blurry. Changing the DPI back to 560 fixes this, but I was wondering if anyone had encountered this problem.
Click to expand...
Click to collapse
You can try using tasker [paid] (7 day free trial) to send the command you are using through adb, but to send the command for whatever apps you are using...for example maybe changing the density of the clock app would affect the widget and fix it? If you're rooted you could try it out and see how that goes, sorry if it seems like I'm grasping haha.
Here is what you would do in tasker:
[CODE
Profile: Application → select app fro DPI scaling
Task: Action: Code → Run Shell
Command: wm density <DPI>
Check Use Root
Exit task: Action: Code → Run Shell
Command: wm density reset
Check Use Root[/CODE]
TCZaro said:
So after using the adb command
Code:
adb shell wm density 480 && adb reboot
my DPI has changed, but for some reason certain elements of my display have become larger and blurry. For instance my music player widget controls are 3x as large as they should be, and my clock widget is also large and blurry. Changing the DPI back to 560 fixes this, but I was wondering if anyone had encountered this problem.
Click to expand...
Click to collapse
Did you try reinstall these apps?
Or
Remove & add again widgets?
Code:
adb shell wm density 480 && adb reboot
It works, but unfortunately it will break some apps (like Twitter, Contacts, etc.)
So far, the only way to do it properly is with root and apps like textdroider_dpi or editing the build.prop
Don't forget to
Code:
adb shell wm density reset
before.

Could someone PLEASE post screens of S8+ with custom LCD density using ADB?

Hi everyone!
I was planning on getting the Note 8, and wanted to see how the UI / stock apps handle a custom LCD density using ADB. So because the S+ is so close to the Note 8 in size, I thought this would be my best indication on how TW / SE handles a custom LCD density.
I find that the "Display Size" settings in Display dont shrink things down quite enough for me. To give you an idea, I set my OnePlus 3T's density to 289, from stock 480.
I wanted to know what the lowest number you could set the LCD density using the "adb shell wm density xxx" before the keyboard / chrome kick into "tablet mode" where it shows tabs and the keyboard changes to the strange tablet mode.
Could someone please change their LCD density real quick and show me a few screens of the dialer, settings, and random screens? I would greatly appreciate it!!!
You can just change the density at a granular level in the OS on the fly by enabling Developer Options and changing the Minimum Width value under the Drawing section. The higher the value, the smaller the the content on your display will be. I have mine set at 490 dp.

Categories

Resources