screen resolution 1920x480

Post Reply
rowhi
Posts: 9
Joined: Thu Apr 08, 2021 2:24 pm
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 5 times
Been thanked: 1 time
Contact:

screen resolution 1920x480

Post by rowhi »

Hi there
I have odroid c4 with ubuntu and lcd screen with resolution 1920x480@60. By default screen is portrait mode, but I want landscape. Tried custombuild modeline from Modeline Calculator (arachnoid.com), it doesn't work

hdmimode=custombuilt
modeline= "1920,480,29820,71570,60,1920,1968,2160,2400,480,481,484,497,0,0,1"

help me please to start screen in landscape mode.

User avatar
tobetter
Posts: 7805
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 431 times
Been thanked: 1210 times
Contact:

Re: screen resolution 1920x480

Post by tobetter »

Can you please share the product details or URL?
Also will you provide the output of cat /proc/cmdline when OS is running?
By the way, what's the OS are you running?
These users thanked the author tobetter for the post:
rowhi (Thu Apr 08, 2021 6:56 pm)

rowhi
Posts: 9
Joined: Thu Apr 08, 2021 2:24 pm
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: screen resolution 1920x480

Post by rowhi »

Can you please share the product details or URL?
this one
https://aliexpress.ru/item/100500188874 ... cAEALw_wcB
Also will you provide the output of cat /proc/cmdline when OS is running?
root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait rw console=ttyS0,115200n8 no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=custombuilt cvbsmode=576cvbs max_freq_a55=1908 maxcpus=4 voutmode=hdmi modeline=1920,480,29820,71570,60,1920,1968,2160,2400,480,481,484,497,0,0,1 disablehpd=false cvbscable=0 overscan=100 monitor_onoff=false logo=osd0,loaded hdmitx=cec3f sdrmode=auto enable_wol=0
By the way, what's the OS are you running?
Ubuntu MATE 20.04 desktop image from hardkernel site

User avatar
odroid
Site Admin
Posts: 37412
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1798 times
Been thanked: 1145 times
Contact:

Re: screen resolution 1920x480

Post by odroid »

Your display has 480x1920 portrait native resolution and your symptom is very normal.
There is no hardware accelerated rotator function in the Amlogic SoC either.
So you need to rotate the framebuffer with software.

Is there 'xorg.conf' file in the OS image?
If yes, just add the following item into the file and it will work.

Code: Select all

Section "Monitor"
	Identifier	"Default Monitor"
	Option		"Rotate" "left"
EndSection
These users thanked the author odroid for the post:
rowhi (Thu Apr 08, 2021 6:56 pm)

rowhi
Posts: 9
Joined: Thu Apr 08, 2021 2:24 pm
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: screen resolution 1920x480

Post by rowhi »

'xorg.conf' is not present in the OS image
when i try to create it with Xorg -configure command, there is a error

Code: Select all

No devices to configure.  Configuration failed.

User avatar
odroid
Site Admin
Posts: 37412
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1798 times
Been thanked: 1145 times
Contact:

Re: screen resolution 1920x480

Post by odroid »

This user could rotate the screen by adding a .conf file into /usr/share/X11/xorg.conf.d/
viewtopic.php?f=207&t=38728

This is a minimal sample config file, which can be copied to /usr/share/X11/xorg.conf.d/99-odroidc4.con

Code: Select all

Section "Device"
        Identifier      "FBDEV"
        Driver          "fbdev"
        Option          "fbdev" "/dev/fb0"
        Option          "Rotate" "CCW"
        Option          "SwapbuffersWait" "true"
        Option          "alpha_swap" "true"
EndSection
And, restart lightdm.
sudo service lightdm restart

Try that and let us know the result.
These users thanked the author odroid for the post:
rowhi (Thu Apr 08, 2021 6:46 pm)

rowhi
Posts: 9
Joined: Thu Apr 08, 2021 2:24 pm
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: screen resolution 1920x480

Post by rowhi »

it works, thank you!
another one question: how can I fix screen shaking?
https://www.youtube.com/watch?v=tdo5Xx4N8OI

User avatar
odroid
Site Admin
Posts: 37412
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1798 times
Been thanked: 1145 times
Contact:

Re: screen resolution 1920x480

Post by odroid »

It seems that HDMI clock timing was not accurate for that resolution.

We need a raw EDID information of your display to find a proper HDMI PLL clock configuration.
Generate an EDID file and attach it.

Code: Select all

odroid@odroid:~$ cat /sys/class/amhdmitx/amhdmitx0/rawedid  > /media/boot/480x1920-edid.bin
BTW, was it shaking before rotate the screen too?

rowhi
Posts: 9
Joined: Thu Apr 08, 2021 2:24 pm
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: screen resolution 1920x480

Post by rowhi »

BTW, was it shaking before rotate the screen too?
yes
Generate an EDID file and attach it
done
Attachments
480x1920-edid.7z
(350 Bytes) Downloaded 11 times

User avatar
odroid
Site Admin
Posts: 37412
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1798 times
Been thanked: 1145 times
Contact:

Re: screen resolution 1920x480

Post by odroid »

Okay. Give us several days to find a solution.

lsc1117
Posts: 222
Joined: Thu Aug 22, 2013 12:46 am
languages_spoken: english
Location: South Korea
Has thanked: 3 times
Been thanked: 27 times
Contact:

Re: screen resolution 1920x480

Post by lsc1117 »

@rowhi,

Can you try this modeline?
modeline= "480,1920,66280,116280,60,480,510,540,570,1920,1926,1932,1938,1,1,1"

If the screen still shakes, you can try this.
modeline= "480,1920,74250,116280,60,480,510,540,638,1920,1926,1932,1938,1,1,1"
Last edited by lsc1117 on Fri Apr 09, 2021 12:43 pm, edited 3 times in total.
These users thanked the author lsc1117 for the post:
rowhi (Fri Apr 09, 2021 2:28 pm)

lsc1117
Posts: 222
Joined: Thu Aug 22, 2013 12:46 am
languages_spoken: english
Location: South Korea
Has thanked: 3 times
Been thanked: 27 times
Contact:

Re: screen resolution 1920x480

Post by lsc1117 »

I have determined the modeline values from your 480x1920-edid.bin.

Code: Select all

Detailed mode: Clock 66.280 MHz, 480 mm x 1920 mm
                480  510  540  570 ( 30  30  30)
               1920 1926 1932 1938 (  6   6   6)
               +hsync +vsync
               VertFreq: 60.000 Hz, HorFreq: 116.281 kHz
But how did you determine modeline value? I can't find 29.820 MHz pixel clock from you 480x1920-edid.bin.
These users thanked the author lsc1117 for the post:
rowhi (Fri Apr 09, 2021 2:29 pm)

rowhi
Posts: 9
Joined: Thu Apr 08, 2021 2:24 pm
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: screen resolution 1920x480

Post by rowhi »

But how did you determine modeline value?
this modeline determinated at modeline calculator with 1920x480 resolution, in file modeline determinated at "autodetect=true" mode
Can you try this modeline?
will try in a few hours and tell you results
Last edited by rowhi on Fri Apr 09, 2021 3:08 pm, edited 1 time in total.

rowhi
Posts: 9
Joined: Thu Apr 08, 2021 2:24 pm
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: screen resolution 1920x480

Post by rowhi »

If the screen still shakes, you can try this.
modeline= "480,1920,74250,116280,60,480,510,540,638,1920,1926,1932,1938,1,1,1"
it works! thank you!

User avatar
odroid
Site Admin
Posts: 37412
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1798 times
Been thanked: 1145 times
Contact:

Re: screen resolution 1920x480

Post by odroid »

Thank you for the confirmation. :D

Can you please take a picture of the Ubuntu Mate desktop UI on that screen?
We probably need a ultra-wide display for our internal projects.

rowhi
Posts: 9
Joined: Thu Apr 08, 2021 2:24 pm
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: screen resolution 1920x480

Post by rowhi »

odroid wrote:
Fri Apr 09, 2021 2:43 pm
Thank you for the confirmation. :D

Can you please take a picture of the Ubuntu Mate desktop UI on that screen?
We probably need a ultra-wide display for our internal projects.
sure)
red rectangle in right side is on protect film. Awaiting touch film for this screen at nex week for my project
Attachments
photo_2021-04-09_11-13-09.jpg
photo_2021-04-09_11-13-09.jpg (92.59 KiB) Viewed 377 times
photo_2021-04-09_11-12-55.jpg
photo_2021-04-09_11-12-55.jpg (82.05 KiB) Viewed 377 times
photo_2021-04-09_11-13-19.jpg
photo_2021-04-09_11-13-19.jpg (105.57 KiB) Viewed 377 times
photo_2021-04-09_11-13-14.jpg
photo_2021-04-09_11-13-14.jpg (97.37 KiB) Viewed 377 times

User avatar
odroid
Site Admin
Posts: 37412
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1798 times
Been thanked: 1145 times
Contact:

Re: screen resolution 1920x480

Post by odroid »

Thank you for the nice pictures. Looks gorgeously wide. :o

Once you test the touch screen overlay, please share the result when you have time.

rowhi
Posts: 9
Joined: Thu Apr 08, 2021 2:24 pm
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: screen resolution 1920x480

Post by rowhi »

odroid wrote:
Fri Apr 09, 2021 3:54 pm
Once you test the touch screen overlay, please share the result when you have time.
Hi, I reicived touchscreen this morning, it works good, but now I trying to calibrate it)
These users thanked the author rowhi for the post:
odroid (Mon Apr 12, 2021 5:37 pm)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests