How to change display resolution and rotate settings? Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
tksh

How to change display resolution and rotate settings?

Post 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?
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: How to change display resolution and rotate settings?

Post 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
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
tksh

Re: How to change display resolution and rotate settings?

Post 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,
kodzin

Re: How to change display resolution and rotate settings?

Post 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
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: How to change display resolution and rotate settings?

Post 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
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
tksh

Re: How to change display resolution and rotate settings?

Post 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 :)
Post Reply