How To Guide [No root] Disply always in 4k mode

Search This thread

MK73DS

Senior Member
Dec 25, 2014
207
36
23
Asus ZenFone 2
Samsung Galaxy S7
Phone became a bit laggy no?
I don't notice any lag, everything is still smooth at 120fps. Maybe in some games? I don't play games so I don't know.
However, it uses a bit more battery, so be careful. If you have a rooted phone, you can have a script which switches between 1080p and 1644p. If you have termux (+ widgets) and sudo installed, you can even put it as a button on the power menu ! (Quick 4k toogle)

Note : I'm not an experienced user, my script may be really unoptimized or ugly, but it works!

Bash:
#!/bin/bash

if [ "$(sudo wm size | grep Override | cut -d "x" -f 2)" == "3840" ]
then
 sudo wm size reset
 sudo wm density reset
else
 sudo wm size 1644x3840
 sudo wm density 630
fi
 
Last edited:
  • Like
Reactions: Andrew Lin

zegoo

Senior Member
Feb 21, 2010
197
32
I don't notice any lag, everything is still smooth at 120fps. Maybe in some games? I don't play games so I don't know.
However, it uses a bit more battery, so be careful. If you have a rooted phone, you can have a script which switches between 1080p and 1644p. If you have termux (+ widgets) and sudo installed, you can even put it as a button on the power menu ! (Quick 4k toogle)

Note : I'm not an experienced user, my script may be really unoptimized or ugly, but it works!

Bash:
#!/bin/bash

if [ "$(sudo wm size | grep Override | cut -d "x" -f 2)" == "3840" ]
then
 sudo wm size reset
 sudo wm density reset
else
 sudo wm size 1644x3840
 sudo wm density 630[
fi
Hello, very intersting !
Thx
 

Yndi

Senior Member
Nov 12, 2011
257
65
Thanks for this. Very nice that I can use what I paid for!
One question though: Why set the desity to 630? Quick googling said the density is 643 and according to Google 640 is the goto number:
https://developer.android.com/training/multiscreen/screendensities (go to table 1, a bit above the middle).

With my own eye I cannot see differences between those two settings and maybe there are none, so out of curiosity, why 630?
 

UsernameNotRecognized

Senior Member
May 17, 2012
230
39
Thanks for this. Very nice that I can use what I paid for!
One question though: Why set the desity to 630? Quick googling said the density is 643 and according to Google 640 is the goto number:
https://developer.android.com/training/multiscreen/screendensities (go to table 1, a bit above the middle).

With my own eye I cannot see differences between those two settings and maybe there are none, so out of curiosity, why 630?
You will see a difference in keyboard, try it.
If you can't reproduce it I can show you.
That's a damn shame - would it be easy to make a tasker routine or something to issue those commands automatically when an app is launched?
If you're still wondering, here.


Tweak density to your liking.
Lores
Default wm = 420, small = 356 or ~85%.
Hires
Default wm = 640, small = 542 or ~85%
(You can change the wm density to the latter values if you want, I changed them.

Obviously requires root.

I'll also throw in some tasker refresh rate changes.

Very useful for when the device is mounted and I'm driving.
 

Yndi

Senior Member
Nov 12, 2011
257
65
I don't use Gboard and I have no problem with my keyboard, so I'm setting 640.

I have some lag on the smileys in the messages, but I'll take it for now. Want to change this app as well anyway.
 

kot5nik

Senior Member
IMPORTANT: This no longer works after the update to Android 12. 'wm size' resets itself to default immediately after you change it. If you know (or at least have an idea) of a possible fix - please reply, so far I'm clueless.

If you have already updated like me you can run 'wm density reset' so your phone looks normal again.
 
  • Like
Reactions: steso90

UsernameNotRecognized

Senior Member
May 17, 2012
230
39
IMPORTANT: This no longer works after the update to Android 12. 'wm size' resets itself to default immediately after you change it. If you know (or at least have an idea) of a possible fix - please reply, so far I'm clueless.

If you have already updated like me you can run 'wm density reset' so your phone looks normal again.
Thanks for the heads up. Will postpone the update for now.
 

vivan000

Senior Member
Oct 29, 2014
69
28
Saint-Petersburg
Yeah that update sucks. Basically it makes display worse than average 1080p phones (upscaled 1080p looks worse than native 1080p).

dumpsys display | grep mBaseDisplayInfo
mBaseDisplayInfo=DisplayInfo{"Built-in Screen", displayId 0", displayGroupId 0, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, FLAG_TRUSTED, real 1096 x 2560, largest app 1096 x 2560, smallest app 1096 x 2560, appVsyncOff 1000000, presDeadline 10333333, mode 4, defaultMode 1, modes
[
{id=1, width=1096, height=2560, fps=60.000004, alternativeRefreshRates=[120.00001]},
{id=2, width=1644, height=3840, fps=120.00001, alternativeRefreshRates=[60.000004]},
{id=3, width=1644, height=3840, fps=60.000004, alternativeRefreshRates=[120.00001]},
{id=4, width=1096, height=2560, fps=120.00001, alternativeRefreshRates=[60.000004]}
]
I've launched different apps (built-in video player is supposed to run at native resolution?) and it always stays at mode 4 (if I set 60 hz in settings then always mode 1).

Is there any way to switch display mode via adb command?

also always returns 1096x2560 regardless of app.

Playing with wm size I've noticed that it tries to keep aspect ratio while decreasing entered resolution to fit into what it believes to be "real" (1096x2560). So 1644x3840 becomes 1096x2560, 2000x1000 becomes 1096x548, 2000x2000 becomes 1096x1096, 2000x4000 becomes 1096x2192... Yet 2000x8000 becomes 1096x2805 (probably caps 8000 to 5120 before resize) and 1096x3840 stays 1096x3840 (but looks really blurry).

Also found "display_size_forced" in settings - global (settings put global display_size_forced) it accepts 1644x3840 but doesn't seem to do anything...
 
  • Like
  • Sad
Reactions: MK73DS and kot5nik

Clae

Member
Aug 12, 2016
25
5
Auckland
Just a thought - the way Creator Mode is worded in Android 11 suggests that it opens 4k mode for any app you add that turns on Creator Mode. Could someone confirm if this is true of not?
 

Yndi

Senior Member
Nov 12, 2011
257
65
Just a thought - the way Creator Mode is worded in Android 11 suggests that it opens 4k mode for any app you add that turns on Creator Mode. Could someone confirm if this is true of not?
I run creators mode all the time (as I did on Android 11) and it's not in 4k
 

UsernameNotRecognized

Senior Member
May 17, 2012
230
39
Meh, I decided that I didn't care enough. If someone can fix this down the road that's great, but for now I'd prefer having Android 12.

I'm more annoyed that google moved the device controls to the quick settings.
Why
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    IMPORTANT: This no longer works after the update to Android 12. 'wm size' resets itself to default immediately after you change it. If you know (or at least have an idea) of a possible fix - please reply, so far I'm clueless.

    I'll edit the post again if anything is found.
    If you have already updated like me you can run 'wm density reset' so your phone looks normal again.


    So the phone by default runs in 1096x2560 and only in select apps with appropriate content in 4k. XZ Premium did the same thing and it is possible to make always run in 4k. I've decided to try the same on 1 III and it works!
    How to:
    1. Enable USB debugging in developer settings
    2. Download and run ADB, you phone should provide the driver automatically. If not, it can be downloaded from here.
    3. Run the following commands
    Code:
    adb shell
    wm size 1644x3840
    wm density 630
    Done! Exit ADB shell by typing exit there.

    From my testing this works flawlessly with any app and the 120hz mode. My device didn't get too warm from this, battery now is at 35°C and CPU at 40. No lagging or freezes whatsoever either, everything runs smoothly in 120 fps. The only thing I noticed is that when using always-on display the phone unlock can be a bit slow sometimes, but only when unlocking with said display lit up.

    How to undo - the same as before but with these commands:
    Code:
    adb shell
    wm size reset
    wm density reset
    Please report how's your experience and battery life if you try this.
    3
    Sounds good. I'll def try it when I get my 1 iii. Does it persist between reboots?
    Yes it does. Even the reboot screen is a little bit messed up because their animation is not 4k.
    2
    Chiming in my 2cents here. Also confirming it does not work on Android 12.

    So far Android 12 is proving a real pain is the ass.

    My advice - dont bother - stay on 11 until changes are made or workarounds are resolved


    A poke to ask about Android 12 and 4k any more info?
    I'm hesitant to upgrade if Android 12 does not support 4k mode...
    2
    So one problem I found - setting the display to 4k all the time seems to skew the wireless charging targeting instructions that come up
    I hope they will fix this soon, and even add a built-in always 4k mode (fixing all the small bugs like the one you pointed out or the AoD not working properly).

    The difference between 1080p and 4k is noticeable in everyday use, especially in text. Maybe this is because I was used to a 1440p display for the past 6 years (and going back to 1080p is noticeable) but still, this phone has all these pixels, why not have an option to always use them.

    I attached some pictures taken in both modes. The filenames are self-explanatory but I am sure you will be able to find which one is 1080p and which one is 1644p. Diagonal lines especially suffer a lot at 1080p, like for example the letter 'w'. Overall, text looks very soft at 1080p compared to 1644p.
    1
    I don't really understand, how will this make the apps render in 4K?
    The screen is always displaying 4k resolution (you would have 3/4 of the screen black if it displayed only FHD resolution) but actively upscale to 4k the apps that doesn't render in 4k (so most of them).
    Or is the tweak only to make the phone render the home screen and parameters in 4k?