Hi All!
Did search a lot about my problem and didn't find anything, sorry if I'm duplicating anyway.
My dumpsys reports that the Xperia XZ2P display has two modes but it doesn't seem to switch in any case and I couldn't find how to force it.
{"Built-in Screen
displayId 0"
uniqueId "local:129"
app 1080 x 1920
real 1080 x 1920
largest app 1080 x 1920
smallest app 1080 x 1920
mode 2
defaultMode 2
modes
[{
id=1
width=2160
height=3840
fps=60.000004
}
{
id=2
width=1080
height=1920
fps=60.000004
}]
colorMode 0
supportedColorModes
[0
7
9]
hdrCapabilities [email protected]
rotation 0
density 420 (386.366 x 384.0) dpi
layerStack 0
appVsyncOff 5833333
presDeadline 14333333
type BUILT_IN
address {port=129}
state ON
FLAG_SECURE
FLAG_SUPPORTS_PROTECTED_BUFFERS
removeMode 0}
mw size 2160x3840 makes 3/4 of the screen a touch dead zone and is a no-no.
can someone tell me where the defaultMode setting is saved or how to change it runtime?
and yes adb shell doesn't even allow to tail /system/build.prop or remount.
Thanks in advance!
Related
Ok sorry if this is more of a math question, but I am trying to figure out how to calculate the height and width of a screen using the screen size (diagonal) and aspect ratio, and my math just isn't adding up.
So lets say I have a phone that for instance has a 4.65" screen, and has a 1280x720 resolution, and I want to find out what the height and width of this screen is.
So I know that the pythagorean theorem says x^2 (width) + y^2 (height) = c^2 (diagonal) and I know that the diagonal is 4.65. (4.65^2 is 21.6225)
So I have two facts here
1:
x^2 +y^2 = 21.6225
I also know that on a 1280x720 resolution screen, that the aspect ratio is 1.77778. So I know that
2: y = 1.7778x
So if I combine these two equations, I should have this right:
x^2 + 1.778x^2 = 21.6225
If I solve for X here, I get x = 2.789, so the width of the screen should be 2.789 inches right?
Unfortunately, I know that the actual screen width is 2.28 Inches.... How come my equations above are spitting out 2.789 inches? I know it is a flaw in logic on my part...... but what is going on?
Moved
I would also like to know this, actually. Did you find a solution? Cheers
re: calculating iphone 4 aspect ratio
I was working on this same problem going in circles with just knowing the diagonal is 3.5 inches and dimensions 960px x 640 px!
Then I read that **pixels per inch** is 326 ppi !!
That should help you figure it out!
(w/out the diagonal dimension, obv.)
I would really love to see this on our phones:
http://forum.xda-developers.com/showthread.php?t=1543892
is it possible with our AOKP and CM9 builds? can a Dev please make this possible? as i think the size of our screen can really work this one out!
what do you think...
wow no one seems to care about this one....?
Looks like its just changing the DPI to one that is recognized as a tablet. Seems it's 129 for the GNex... he posted something showing a formula for finding the "magic number" for other devices.
From his post:
Code:
int shortSizeDp = shortSize * DisplayMetrics.DENSITY_DEFAULT / DisplayMetrics.DENSITY_DEVICE;
mStatusBarCanHide = shortSizeDp < 600;
full description here: http://baroqueworksdev.blogspot.com/...ice-cream.html
nexus has a width of 720 and a density of 320. shortSizeDp = 720 * 160 / 320 = 360. lower than 600, phone mode.
now put the dpi to magic number 192. shortSizeDp = 720 * 160 / 192 = 600. tadaaa, tablet mode.
Click to expand...
Click to collapse
Edit: It's also using a modded nova launcher. Not sure, however, I don't see why the launcher wouldn't work for us.
In fact, I just spent a little more time looking through this and I think it will work close to 100% with CM9 or AOKP roms. Hmmmm, just gotta find out the right DPI. (I haven't bothered, busy at work.)
Looking at DisplayMetrics:http://developer.android.com/reference/android/util/DisplayMetrics.html
There are a few preset densities which may interest us:
DENSITY_DEFAULT = 160
DENSITY_HIGH = 240
DENSITY_LOW = 120
DENSITY_MEDIUM = 160
Assuming that the above values holds true to the Sensation, then the following would give a 600 output:
DENSITY_DEFAULT = 160 (540 * 160 / 144 = 600)
DENSITY_HIGH = 240 (540 * 240 / 216 = 600)
DENSITY_LOW = 120 (540 * 120 / 108 = 600)
DENSITY_MEDIUM = 160 (540 * 160 / 144 = 600)
Still checking it out!
EDIT: Additional info - DENSITY_DEFAULT is directly linked to DENSITY_MEDIUM (DENSITY_DEFAULT = DENSITY_MEDIUM) so that explains why changes to DENSITY_MEDIUM affect the OS system wide (Not sure if this is the case in all ROMs).
Still checking, but bed time for me!!!.........
Seems we also need a modified services.jar
There is some info here: http://forum.xda-developers.com/showthread.php?t=1467051
Thread here for AOKP B33: http://rootzwiki.com/topic/23418-mod-tabletui-for-240-dpi-legacy-devices-aokp-b32b33/
Instructions state: Set density to 128 MAX & Tablet mode will be automatically activated However, since our Sensations have a screen width of 540, not 480 as most legacy devices, we may still need to find that "Magic Number"
Haven't tried it as i'm not running an AOKP based ROM but we need to know what to change in services.jar and then this should be able to be implimented in all ROMs!
Hope this helps
EDIT: The services.jar above uses the following formula: (480 * 160 / 128 = 600)
We should be able to do it using (540 * 160 / 144 = 600) 144 MAX - However, it wont hurt to try 128 since our device has a default density of 240?!
Also, don't forget to set your Font size to huge (or large) in ROM Control.
I have created a flashable zip for AOKP B33/34 which includes a Patched Launcher, Phone, Market & services.jar.
This should work on all AOKP ROMs!
This should also parse the build.prop and adjust your LCD Density to 128.
Also, don't forget to set your Font size to huge (or large) in ROM Control prior to flashing this.
I haven't tested this - I have created it blind so if you are going to try it then please make a nandroid backup first!!!
Should you try it, then Please leave feedback but don't get upset if it doesn't work for you - If it doesn't work then just restore your nandroid backup!
I hope this is of some use to someone
BTW: Flash using recovery!
Here are the Xperia Tablet Z stock wallpapers
Sent from my Sony Tablet S using xda app-developers app
thank you very much
useful for me
tanx tanx tanx
Sent from my HTC Sensation Z710e using Tapatalk 2
why wallpaper resolution is lower than 1920*1200?
Got wallpaper from system dump. May be due xda
Sent from my GT-S5830 using xda app-developers app
jumper62 said:
Here are the Xperia Tablet Z stock wallpapers
Click to expand...
Click to collapse
The posted images are not the correct resolution. The zip file linked below contains all of the XTZ's stock wallpaper images at the correct resolution of 2880 x 1920 pixels. If you want, you can add the link to your original post, after which I will remove the link from this post and edit it to say "Never mind."
XTZ_Stock_Wallpapers.zip - 56.95 MB
Cat McGowan said:
The posted images are not the correct resolution. The zip file linked below contains all of the XTZ's stock wallpaper images at the correct resolution of 2880 x 1920 pixels. If you want, you can add the link to your original post, after which I will remove the link from this post and edit it to say "Never mind."
XTZ_Stock_Wallpapers.zip - 56.95 MB
Click to expand...
Click to collapse
screen resolution of XTZ is 1200 x 1920 . Why wallpaper resolution is 2880 x 1920 pixels?
Rootk1t said:
screen resolution of XTZ is 1200 x 1920 . Why wallpaper resolution is 2880 x 1920 pixels?
Click to expand...
Click to collapse
Because when you swipe left or right to view additional home screens or switch from viewing home screens in landscape mode to viewing them in portrait mode, the tablet floats the 1920 x 1200 pixel viewable screen area (actually 1920 x 1128 in landscape mode, 1200 x 1848 in portrait mode) over the 2880 x 1920 pixel wallpaper image. Reading my post Wallpaper Template for Xperia Tablet Z may help you better understand why the XTZ's wallpaper image needs to be 2880 x 1920 pixels.
If you want to keep a fixed view of a 1920 x 1200 pixel wallpaper image (again, 1920 x 1128 in landscape mode, 1200 x 1848 in portrait mode), you will need to install a third-party app like Simple Image Wallpaper Free.
Cat McGowan said:
Because when you swipe left or right to view additional home screens or switch from viewing home screens in landscape mode to viewing them in portrait mode, the tablet floats the 1920 x 1200 pixel viewable screen area (actually 1920 x 1128 in landscape mode, 1200 x 1848 in portrait mode) over the 2880 x 1920 pixel wallpaper image. Reading my post Wallpaper Template for Xperia Tablet Z may help you better understand why the XTZ's wallpaper image needs to be 2880 x 1920 pixels.
Click to expand...
Click to collapse
Thanks for explaining. So i understood that i should manually resize all wallpapers, i want to use on tablet to 2880 x 1920 for pixel to pixel sharpness. But what will happen if i use for example walls from macbook with retina display with resolution 2880x1800? Will tablet stretch them one side to 1920 and therefore no px2px sharpness?
Rootk1t said:
Thanks for explaining. So i understood that i should manually resize all wallpapers, i want to use on tablet to 2880 x 1920 for pixel to pixel sharpness. But what will happen if i use for example walls from macbook with retina display with resolution 2880x1800? Will tablet stretch them one side to 1920 and therefore no px2px sharpness?
Click to expand...
Click to collapse
There are several different ways you could handle your situation. Without seeing the image you are talking about, here is what I think you should do to change the image from 2880x1800 to 2880x1920 without stretching the image.
Using your favorite image manipulation program (I use GIMP), do the following.
1. Set the image's background color to black.
2. Crop (not scale) the image's canvas size from 2880x1800 to 2880x1776 with X offset set to 0 and Y offset set to -12. Doing this horizontally cuts off 12 pixels from both the top and bottom of the image.
3. Increase the image's canvas size from 2880x1776 to 2880x1848 with both X and Y offsets set to 0. Doing this adds a black bar 72 pixels high to the bottom of the image. This bar will not be seen in either landscape or portrait mode because the tablet's lower opaque status bar covers it.
4. Increase the image's canvas size from 2880x1848 to 2880x1920 with X offset set to 0 and Y offset set to 72. Doing this adds a black bar 72 pixels high to the top of the image. This bar will only be seen in portrait mode but will be covered by the tablet's upper translucent status bar, so the bar being black is a good thing.
I hope I have helped you and good luck.
Another interesting thing is aspect ratio:
2880x1920 has an aspect ratio of 1.50 - 3:2
1920x1200 - 1.60 - 16:10
in many tablet reviews aspect ratio is wrongly defined as 16x10 or 16x9.
Hi there,
The link to the XTZ_Stock_Wallpapers.zip is dead, does anybody have those?
Thank you,
Alex
kwajongen said:
Hi there,
The link to the XTZ_Stock_Wallpapers.zip is dead, does anybody have those?
Thank you,
Alex
Click to expand...
Click to collapse
Reuploaded -> https://www.upload.ee/files/13323066/XTZ_Stock_Wallpapers.zip.html
Rootk1t said:
Reuploaded -> https://www.upload.ee/files/13323066/XTZ_Stock_Wallpapers.zip.html
Click to expand...
Click to collapse
Thank you!
I forgot to ask: where do I have to install the wallpapers?
I cannot find a folder called like that.
Once I know where, should I upload the full.zip or the individual images as I wish?
Thank you,
Alex
Anybody knows?
I don't have stock rom installed, so i can't tell you the exact path.
Look in this direction -> /etc/customization/content/com/sonyericsson/wallpaperpicker/wallpapers
On my Digma Plane 7594 3G tablet I have a problem with stretched (or compressed, depending on screen orientation) image.
"dumpsys display | grep DisplayInfo" (adb) output:
Code:
mDisplayInfos=
PhysicalDisplayInfo{600 x 1024, 60.0024 fps, density 1.33125, 426.386 x 149.411 dpi, secure true, appVsyncOffset 1000000, bufferDeadline 16666000}
mBaseDisplayInfo=DisplayInfo{"Встроенный экран", uniqueId "local:0", app 600 x 1024, real 600 x 1024, largest app 600 x 1024, smallest app 600 x 1024, mode 1, defaultMode 1, modes [{id=1, width=600, height=1024, fps=60.0024}], colorMode 0, supportedColorModes [], hdrCapabilities [email protected], rotation 0, density 213 (426.386 x 149.411) dpi, layerStack 0, appVsyncOff 1000000, presDeadline 16666000, type BUILT_IN, state OFF, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, removeMode 0}
mOverrideDisplayInfo=DisplayInfo{"Встроенный экран", uniqueId "local:0", app 600 x 960, real 600 x 1024, largest app 960 x 928, smallest app 600 x 568, mode 1, defaultMode 1, modes [{id=1, width=600, height=1024, fps=60.0024}], colorMode 0, supportedColorModes [], hdrCapabilities [email protected], rotation 0, density 213 (426.386 x 149.411) dpi, layerStack 0, appVsyncOff 1000000, presDeadline 16666000, type BUILT_IN, state ON, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, removeMode 0}
I guess there is a problem with "app 600 x 960, real 600 x 1024" (in mOverrideDisplayInfo).
Is it possible to change "app" values to math "real" values (if that's the problem)?
I've looked all over the web but I can't seem to find a way to change the screen size of Android TV without magisk, my screen is too stretched and I already tried my normal TV settings, no luck. Is there any other way for me to do so?
dopinder running Lineageos 20
Endex said:
I've looked all over the web but I can't seem to find a way to change the screen size of Android TV without magisk, my screen is too stretched and I already tried my normal TV settings, no luck. Is there any other way for me to do so?
dopinder running Lineageos 20
Click to expand...
Click to collapse
Resolution changing
connect your phone with pc and start adb prompt in CMD
type:
adb shell
then you can do is :
to change the resolution:
=========================
type:
wm size *your preferred resolution from the list
like:
wm size 720x1560
*here put small letter 'x' in between the resolution
to change the dpi:
==================
type:
wm density *your preffred dpi from the list
like:
wm density 269
*REBOOT phone
example:
==========
wm size 1080x2340
wm density 420
*RBOOT phone
list:
=======
Defaultu Resolution: 1080x2340 at 420 dpi
step down 1: 960x2080 (*add your desired dpi)
step down 2: 864x1872 (*add your desired dpi)
step down 3: 768x1664 (*add your desired dpi)
step down 4: 720x1560 at 269 dpi