Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Things: Set screen resolution

I have a small screen attached to my Raspberry Pi and according to the documentation for the screen:

Write the image to a TF card and append the following lines to the config.txt file which is located in the root of your TF card:

max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0

You must make sure that there are no spaces on either side of the equal sign.

But I can't do this on the Android Things drive, as the disk image is not readable

like image 520
Quintin Balsdon Avatar asked Jan 08 '17 15:01

Quintin Balsdon


People also ask

How do I force my Android screen resolution?

Most modern Android devices will give you the option to adjust screen resolution in the Display options or Settings. To get there, look for the gear-like icon on the applications menu. It should be labeled as Settings. You can also swipe down and click on the Settings app from the drop-down menu.

How can I change my screen resolution on Android?

1 Go to the Settings menu > Display. 2 Tap on Screen resolution. 3 Select a resolution by sliding the circle. Tap on Apply once you have selected your preferred screen resolution.


1 Answers

The original answer was found HERE, and my saviour gave his answer HERE

Create a mounting position:

mkdir ~/mnt/sd

Mount the sd card:

sudo mount -t msdos /dev/disk2s1 ~/mnt/sd

Make changes to the config.txt, in my case:

max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0

To unmount:

sudo umount ~/mnt/sd/
like image 125
Quintin Balsdon Avatar answered Sep 29 '22 12:09

Quintin Balsdon