Changing the DPI/screen density - AT&T LG G6 Questions & Answers

I have already made my display size as small as it will go via the phone's Settings, but I want it smaller. I have tried the advice command (adb shell wm density 560 && adb reboot) and it doesn't work. Has anyone else tried this?

You need root , and its impossible to root it right now

lyall29 said:
I have already made my display size as small as it will go via the phone's Settings, but I want it smaller. I have tried the advice command (adb shell wm density 560 && adb reboot) and it doesn't work. Has anyone else tried this?
Click to expand...
Click to collapse
Just from your laptop or pc you can do it , just first install drivers and then om cmd and write:
adb shell wm density *** and hit enter put what ever dpi you want instead of the stars

Related

busybox & Windows command prompt & colors & ls

ok... so, I've loaded my custom ROM and it contains busybox... I do like the extra functions that busybox offers over the stock Android "toolbox", so I don't really want to disable the commands like ls... I'd just like to turn the colors off.
Here's what I've found in my researches...
1) I can always
Code:
ls --color=never
but that is a lot of extra typing that I'm just not willing to do.
2) I can now SSH into my phone with putty and the colors are nice... but if I'm doing this over the cell modem (even EVDO), it's not too responsive (probably has some to do with currently running applications, syncs, and so forth)
3) I can use Droid Explorer and open a command shell from there, and the colors are nice... but Droid Explorer takes a lot longer to load than adb shell and the nice thing about being at my command prompt is if I need to push, pull, or remount (I understand I can always manually remount,rw and remount,ro from any shell, but adb makes it really easy to do with less typing) quickly... I can exit out of the shell, do the command, and go right back into the shell.
4) I can use Better Terminal Emulator on the phone... again... colors nice (I think you're seeing a theme here) but the typing is excruciating for long commands, and God forbid you make 1 typo... for quick things it's cool and to do a command while not at my computer, it's great.
5) If I were running Windows 95 (or maybe even XP), I could just use ansi.sys and do it. However, I've found that the only way ansi.sys works in a command prompt is to use COMMAND.COM and not CMD... plus you have to set CONFIG.NT to "dosonly" mode and include the driver in there... the biggest problem with all that is that adb will NOT run in DOS only mode. I even tried to adb shell from within a Cygwin command prompt (that already has colors enabled) but all the ansi color codes were lost.
So.... Here's my dilemma... I want colors when I'm not coming in through the Windows command prompt and adb shell. However, I want to disable the colors when I'm coming in through adb shell. I would probably settle for a different way to shell in from Windows 7 than the ones listed above.
I think I remember from my freshman year of college when they tried to teach me Unix, that you can set "default" command line switches for applications. For example, if you always wanted ls to do -l, then someplace you could set that as a default. I read on another post (possibly another forum) that somebody suggested editing .profile to do an alias of a command... something like
Code:
alias dir='ls --color=never'
but the problem with that is there's no .profile and there's no home directory for root or shell.
I even read that the standard ls uses an environment variable LS_OPTIONS, but I don't think that the stock Android ls uses it, and I can't get busybox to use it - plus, it'd be a pain to type that in every time I do an adb shell.
Does anybody have any suggestions or tips or any way to do this? If the alias will work, I'd be happy with that. I could then set dir to no color and keep ls with color. I could maybe even remap a command to do a ls -l all the time.
Thanks in advance.
This was what I ended up doing under Windows 7: http://softkube.com/blog/ansi-command-line-colors-under-windows/
This works for me:
Code:
export LS_COLORS=none
ls

Window Manager can't change resolution

When doing
Su wm size 1080x1920 it brings the error that I can't change while system is running is there a work around? How do I send a script if the system is turning off?
Root - init.d
raul4916 said:
When doing
Su wm size 1080x1920 it brings the error that I can't change while system is running is there a work around? How do I send a script if the system is turning off?
Click to expand...
Click to collapse
Was actually able to by just as soon as it boots go to adb shell with pc and running wm will be fine

Change app icon grid

Is there a way to change the grid size of the homescreen without using another launcher? I would like to have 5 app in one line.
Thanks for the help!
yeah if you are rooted. simply go to /system/build.prop and look for ''ro.sf.lcd_density=480'' and change it to 440 or 430.
Actually you don't have to be rooted. All you need is adb and few commands:
Take a note on your current density
Code:
adb shell dumpsys display | grep mBaseDisplayInfo
there will be density: parameter (it is the current one)
In order to change screen's density:
Code:
adb shell wm density $density
Replace $density with desired value (e.g. 480).
To get back to default execute following command:
Code:
adb shell wm density reset
Make sure to reboot your phone after making changes for them to be reflected.
Not that these settings change density of the screen. Some applications may behave incorrectly with values other than default.
bablu048 said:
yeah if you are rooted. simply go to /system/build.prop and look for ''ro.sf.lcd_density=480'' and change it to 440 or 430.
Click to expand...
Click to collapse
460 dpi is a must try!

Change dpi?

Any way to change the phones dpi without root?
ya,
adb shell wm density 560 && adb reboot
from a pc with adb, 560 is the dpi it gets changed to
ya but that will mess up some of the apps that don't support that dpi. with root people are using xposed to change dpi per application to avoid this.

[ADB] Fullscreen 'Edge' Handle

I was always annoyed by how small the edge screen is even at its largest, so I crawled through the Global settings through ADB and found a setting that seemed relevant "edge_handle_size_percent"
I ran the command
Code:
adb shell settings put global edge_handle_size_percent 100.00
with ADB from a computer, I then opened the edge menu (Still the old size and position) and when I went into handle settings, it had become fullsize. This may also work on the Note and S7 series as well as ported roms, I have only tested this on my S8+.
Let me know if it worked for you! Screenshot as proof below.
original edge default settings ?
worked for me!
hasanben35 said:
original edge default settings ?
Click to expand...
Click to collapse
If I recall correctly, its around 37%
However if you adjust the slider in the settings, it'll pop straight back to normal values
PS C:\Users\hasanben35\Desktop\platform-tools> adb devices
List of devices attached
ce------------------------- device
PS C:\Users\hasanben35\Desktop\platform-tools> adb shell
dream2lte:/ $ adb shell settings put global edge_handle_size_percent 100.00
/system/bin/sh: adb: not found
help
hasanben35 said:
PS C:\Users\hasanben35\Desktop\platform-tools> adb devices
List of devices attached
ce------------------------- device
PS C:\Users\hasanben35\Desktop\platform-tools> adb shell
dream2lte:/ $ adb shell settings put global edge_handle_size_percent 100.00
/system/bin/sh: adb: not found
help
Click to expand...
Click to collapse
There is no need to run the adb shell command first. Its an all in one command. Just fire up adb and input it all.
Pedroc1999 said:
There is no need to run the adb shell command first. Its an all in one command. Just fire up adb and input it all.
Click to expand...
Click to collapse
Thanks work
Great to hear! Any S7/S6/N8/N7 users able to confirm?
I'll let you know shortly, I didn't read the whole forum and moved the slider and you guessed it!!! Back to default it went ....SOOOOOO I'm running the new command and will let you know very shortly

Categories

Resources