Page 1 of 1

How to change display resolution and rotate settings?

Posted: Mon Jan 23, 2017 8:21 pm
by tksh
Hi, I have started to use DietPi v133 on my PINE A64 (2GB) and installed LXDE, Chromium and Japanese fonts via below link. It works well.

May dietpi save Pine64 ; watch youtube via chromium
http://forum.pine64.org/showthread.php?tid=2921

But my DVI-connected display (through HDMI-DVI adapter) is SXGA (1280x1024, 5:4) size and I have rotated it 270 degrees. System does not adjusted automatically. So texts on CLI and graphics on GUI are displayed incorrect ratio, and rotated.

I can rotate a screen only in GUI in this way...
Add line `Option "Rotate" "CCW"` to `Section "Device"` of `/etc/X11/xorg.conf`
but this is not enough to solve the problem because graphics are still displayed incorrect ratio.

Anyone know how to change display resolution and rotate settings fundamentally?

Re: How to change display resolution and rotate settings?

Posted: Tue Jan 24, 2017 2:13 pm
by Fourdee
Hi,

I believe the resolution can be changed in /DietPi/uEnv.txt:

Code: Select all

optargs=disp.screen0_output_mode=1080p60
Full list of supported resolutions here:
https://github.com/longsleep/sunxi-disp ... tput-names

Re: How to change display resolution and rotate settings?

Posted: Wed Jan 25, 2017 8:49 am
by tksh
Thank you for your suggestion. I tried it. But it does not solved my problem that using 1280x1024 resolution display.
And I found the thread that longsleep noticed about no supported resolutions including 1280x1024.
http://forum.pine64.org/showthread.php? ... 05#pid8905
It is good for me to know it. Thanks,

Re: How to change display resolution and rotate settings?

Posted: Wed Mar 08, 2017 2:05 pm
by kodzin
Hello.
Test this config.
/DietPi/config.txt

#hdmi_safe=1
display_rotate=1
#disable_overscan=1
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
#framebuffer_width=1280
#framebuffer_height=720
#hdmi_force_hotplug=1
#hdmi_group=1
#hdmi_mode=1
#hdmi_drive=2
#config_hdmi_boost=4
#sdtv_mode=2
monitor
monitor

Re: How to change display resolution and rotate settings?

Posted: Fri Mar 10, 2017 5:23 pm
by Fourdee
kodzin wrote:Hello.
Test this config.
/DietPi/config.txt
This will only have an effect on Raspberry Pi's. The Pine A64 does not use this file, only /DietPi/uEnv.txt

Re: How to change display resolution and rotate settings?

Posted: Fri Mar 10, 2017 5:54 pm
by tksh
Fourdee wrote:
kodzin wrote:Hello.
Test this config.
/DietPi/config.txt
This will only have an effect on Raspberry Pi's. The Pine A64 does not use this file, only /DietPi/uEnv.txt
Fourdee, thanks a lot. I am testing it and confused just now.
kodzin, also thank you for paying attention to my issue :)