Howto run Linux with resolution other than 1080p
#1
Many people seem to have issues with the fixed 1920x1060@60Hz resolution i ship my U-Boot and Linux images with. Until now you needed to be a developer to change the resultion to anything else.

This has now changed.

I created a tool which can change the resolution. Say hello to sunxi-disp-tool.

I provide a binary package for Ubuntu 16.04 Xenial Xerus (arm64) in my Ubuntu Pine64 Makers PPA.

If you do not run my Ubuntu Xenial image it is now a good time to change that. See the Ubunu 16.04 Xenial Xerus thread for download and instructions.

Other than the tool itself, you need:
- U-Boot v2014.07-4-pine64 or later
- Kernel 3.10.101-0-pine64-longsleep-39 or later

I will eventually release an updated Xenial image which has those - for now update as usual (as root) with:
Code:
bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_uboot.sh)
bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_kernel.sh)

Then you can just add the desired resolution to /boot/uEnv.txt (eg. as optargs). By default the sunxi-disp-tool looks for a Kernel parameter called disp.screen0_output_mode to be in line with other sunxi boards.

Quick instructions for 720p60 (1280x720p@60Hz):
Code:
sudo apt-get update && sudo apt-get install sunxi-disp-tool
cat <<EOF | sudo tee -a /boot/uEnv.txt
optargs=disp.screen0_output_mode=720p60
EOF
sudo reboot

For a list of supported resolutions see README.md.

I will work on other distributions as well, but you need to install it manually and integrate it manually into the boot system. I strongly advice to use my Ubuntu image.


Your feedback is most welcome.
#2
I just released a new Ubuntu Xenial image (20160507-1) which has the Kernel and tools to read output_mode from uEnv.txt pre-installed.

When you flash this image, modify uEnv.txt on the first partition by appending "optargs=disp.screen0_output_mode=720p60" at the end as new line. This will switch the HDMI resolution to 1280x720p at 60Hz during boot.

To download of the Ubuntu Xenial image see: http://forum.pine64.org/showthread.php?tid=376
#3
Hi. That is good to hear.

I guess we will never get xrandr support really right? It is just something fixed at boot time and the driver? And maybe HDMI is incapable of detecting monitor supported resolution?

Is it possible to output 16:10, 4:3, 5:4, 1:1 resolutions? Something like 2560x1600, 1920x1200, 1600x1200, 1024x768, 1280x1024, 1920x1920, etc
#4
(05-07-2016, 06:21 PM)baryluk Wrote: I guess we will never get xrandr support really right? It is just something fixed at boot time and the driver?
No it can be changed after boot.

(05-07-2016, 06:21 PM)baryluk Wrote: And maybe HDMI is incapable of detecting monitor supported resolution?
No EDID works just fine.

(05-07-2016, 06:21 PM)baryluk Wrote: Is it possible to output 16:10, 4:3, 5:4, 1:1 resolutions? Something like 2560x1600, 1920x1200, 1600x1200, 1024x768, 1280x1024, 1920x1920, etc
No - check the link above for supported resolutions of the tool. Pine64 supports a subset of those. 4K needs different kernel because of memory configuration.
#5
Top work longsleep, this works for me and I'm using a HDMI->VGA converter Big Grin

I think this is another big step forward.... I know you stated in a another thread that the non 4:3 ratio display required a lot of work, but could you let us know if this is on your list of things to do and if so is it a priority? IMHO this lack of display support (in all it's variations) must be one of the biggest blockers to the community.

look forward to hearing your thoughts....
#6
HDMI anything is not something I need at all and thus no priority especially as the driver requires a closed source library. Thus the community cannot work on improving it. Pine64 needs to release full source to make improvement even remotely possibly.
#7
Fantastic work in such a short space of time.

I'd like to see support for 1920x1200 (at 60 fps), since this is used with many high-resolution widescreen monitors. Without this, you are almost forcing everyone to upgrade to a 4K monitor!

It's a shame that Allwinner don't understand the true meaning of Open Source :-)
David Hardingham
#8
great work, much appreciated longsleep !
You can find me on IRC, Discord and Twitter


#9
Hey!

I've successfully got Ubuntu Xenial image (20160507-1) to boot and installed the desktop interface.
However when i try to add optargs=disp.screen0_output_mode=2160p the boot sequence works as intended as it is run in 1080. But when it switches to 4k output when the login dialogue is supposed to be displayed all I see is the boot console in the upper left corner and then display corruption on the lower half of the screen. Any Idea what to do?
#10
(05-17-2016, 12:11 AM)webbson Wrote: Hey!

I've successfully got Ubuntu Xenial image (20160507-1) to boot and installed the desktop interface.
However when i try to add optargs=disp.screen0_output_mode=2160p the boot sequence works as intended as it is run in 1080. But when it switches to 4k output when the login dialogue is supposed to be displayed all I see is the boot console in the upper left corner and then display corruption on the lower half of the screen. Any Idea what to do?

I thought that resolution could not be supported as longsleep stated..

(05-08-2016, 01:11 AM)longsleep Wrote: 4K needs different  kernel because of memory configuration.


Possibly Related Threads…
Thread Author Replies Views Last Post
  NEMS Linux 1.5 Released for A64/A64+, A64-LTS/SOPine, Rock64, RockPro64 (NAGIOS) Baldnerd 4 10,284 03-28-2020, 06:20 PM
Last Post: ty1911
  NEMS Linux for Pine A64 (+) Luke 1 5,610 05-09-2019, 05:42 PM
Last Post: pineadmin
  Pine Board using linux stuck during boot sequence ktaragorn 4 9,264 03-30-2019, 06:48 AM
Last Post: ktaragorn
  Gentoo Linux test image xalius 23 52,840 01-28-2019, 11:05 PM
Last Post: necrose99
  Real-time linux kernel Artyom 45 82,037 09-11-2018, 01:08 AM
Last Post: zzwpine
  linux distribution hazerty 3 6,841 04-01-2018, 02:48 PM
Last Post: dkryder
  Linux Web Server OS harcrow 2 6,350 01-30-2018, 10:26 AM
Last Post: Rustproof
  eta linux image?? firosiro 1 4,548 08-03-2017, 10:05 PM
Last Post: pfeerick
  Can I run Alpine Linux on Pine64? douglasmiranda 3 9,175 08-01-2017, 07:20 AM
Last Post: cztian
Music HOWTO: jackd on Pine64 mauritslamers 1 4,467 06-15-2017, 01:21 PM
Last Post: xalius

Forum Jump:


Users browsing this thread: 5 Guest(s)