Changing screen resolution on Linaro

9,829 views
Skip to first unread message

Norbert

unread,
Dec 17, 2012, 6:52:15 PM12/17/12
to cubie...@googlegroups.com
Hello,

I'm trying  to change resolution. Right now its 1280 x 720 and I would like to change it.

I don't have this file /etc/X11/xorg.conf and when I tried to created it with "Xorg -configure" I'm getting an error "No devices to configure"

I'm not sure where this  resolution is coming from,

Is there any ways to change it ? 

Thanks

Floris Bos / Maxnet

unread,
Dec 17, 2012, 7:44:28 PM12/17/12
to cubie...@googlegroups.com
On 12/18/2012 12:52 AM, Norbert wrote:
I'm not sure where this  resolution is coming from,

Is there any ways to change it ?

It is stored in script.bin on the FAT partition of the SD card.
Tools to decode (bin2fex) and encode (fex2bin) that file: https://github.com/linux-sunxi/sunxi-tools

Look for screen0_output_mode. Possible values when using the HDMI connector:

0:480i
1:576i
2:480p
3:576p
4:720p50
5:720p60
6:1080i50
7:1080i60
8:1080p24
9:1080p50
10:1080p60
11:pal
14:ntsc




Yours sincerely,

Floris Bos

Norbert

unread,
Dec 17, 2012, 9:27:35 PM12/17/12
to cubie...@googlegroups.com
Thank you,  it worked !

Norbert

unread,
Dec 17, 2012, 9:28:19 PM12/17/12
to cubie...@googlegroups.com
Thank you,,, it worked !

Bastiaan van den Berg

unread,
Dec 18, 2012, 3:37:49 AM12/18/12
to cubie...@googlegroups.com
On Tue, Dec 18, 2012 at 1:44 AM, Floris Bos / Maxnet <b...@je-eigen-domein.nl> wrote:
It is stored in script.bin on the FAT partition of the SD card.
Tools to decode (bin2fex) and encode (fex2bin) that file: https://github.com/linux-sunxi/sunxi-tools

Look for screen0_output_mode. Possible values when using the HDMI connector:

Wait, so I can never put the cubieboard on 1366×768 for the HDMI output? :(

Meh :(

--
buZz

RomanNV

unread,
Dec 18, 2012, 4:07:15 AM12/18/12
to cubie...@googlegroups.com
Hmmm...
Raspberry PI is support much more resolutions without problems.
So I hope that is temporary troubles.

вторник, 18 декабря 2012 г., 6:44:28 UTC+6 пользователь Floris написал:
Message has been deleted

Galaxis

unread,
Jan 20, 2013, 10:16:18 AM1/20/13
to cubie...@googlegroups.com
Just my 2cts: The Allwinner A10 may have good specifications, but after reading allot on Allwiner / sunxi I'm not getting my hopes up on decent usability. As widely supported development board having full HDMI & DVI connectivity go with the Pi. As media box, don't go with either one! Still looking forward to play with the Cubieboard though :)

Simos Xenitellis

unread,
Jan 20, 2013, 2:45:04 PM1/20/13
to cubie...@googlegroups.com
On Sat, Jan 5, 2013 at 10:05 AM, Anton Bondar <an...@zebooka.com> wrote:
> Hi Floris!
>
>> Look for screen0_output_mode. Possible values when using the HDMI
>> connector:
>>
>> 0:480i
>> 1:576i
>> 2:480p
>> 3:576p
>> 4:720p50
>> 5:720p60
>> 6:1080i50
>> 7:1080i60
>> 8:1080p24
>> 9:1080p50
>> 10:1080p60
>> 11:pal
>> 14:ntsc
>
>
> Where can I find more info about what is screen0 and screen1 and what is
> screenX_output_type?
> ALso what is disp_mode?
>

These mode numbers are probably interpreted by u-boot to usable resolutions.
Therefore, check the source code of u-boot. You may need to recompile
u-boot and add more resolutions.

Simos

Floris Bos / Maxnet

unread,
Jan 20, 2013, 7:29:59 PM1/20/13
to cubie...@googlegroups.com
On 05.01.2013 10:05, Anton Bondar wrote:
> Where can I find more info about what is SCREEN0 and SCREEN1 and what
> is SCREENX_OUTPUT_TYPE?

Believe you have a screen0 and a screen1 if you have for example both a
LCD screen connected and HDMI output.
No point in chaning any of those settings when you only use the HDMI
connector.

> I'm asking, because my monitor absolutely surely can recognize some
> output (i've checked default android from NAND, though it has funny
> YCrCb colors), but for my debian installation I can no see anything
> (it says no signal), while using projection device everything was
> output correctly at 720p 50Hz.

Latest kernel source does EDID and supports more modes, so you might
want to see if that works better.
Also supports setting mode through kernel parameters instead of
script.bin
See Linux-sunxi mailinglist or github for details on those patches.


Yours sincerely,

Floris Bos

Alessandro Recchi

unread,
Jan 25, 2013, 9:20:53 AM1/25/13
to cubie...@googlegroups.com
can i modify script.bin when the sd is in the cubieboard? or i have to put the sd in my pc everytime?

Simos Xenitellis

unread,
Jan 25, 2013, 10:06:48 AM1/25/13
to cubie...@googlegroups.com
On Fri, Jan 25, 2013 at 4:20 PM, Alessandro Recchi <ale.r...@gmail.com> wrote:
> can i modify script.bin when the sd is in the cubieboard? or i have to put
> the sd in my pc everytime?
>

I think you can; the script.bin is being read once when you boot up
your Cubieboard.

Simos

Martin Wild

unread,
Jan 25, 2013, 10:12:26 AM1/25/13
to cubie...@googlegroups.com
Yes,you can! You can even delete your kernel files while your cubie is running,just make sure you install a new one before restarting! :) ( no,seriously, this works!)

Regards, Martin

Floris Bos

unread,
Jan 25, 2013, 10:31:46 AM1/25/13
to cubie...@googlegroups.com
On 01/25/2013 03:20 PM, Alessandro Recchi wrote:
> can i modify script.bin when the sd is in the cubieboard?

Yes, you can.
Just mount /dev/mmcblk0p1 somewhere.

And if you only want to change the resolution, and are running a recent
kernel, it is also possible to specify the resolution as extra kernel
parameter in uEnv.txt/boot.scr instead of in script.bin


E.g. for 1024x768 DVI mode add to the bootargs line:

disp.screen0_output_mode=1024x768p60 hdmi.audio=0

Choose highest mode automatically using EDID, and fall back to HDMI 720p
mode if EDID is not available:

disp.screen0_output_mode=EDID:1280x720p60 hdmi.audio=EDID:0

--
Yours sincerely,

Floris Bos

Alessandro Recchi

unread,
Jan 25, 2013, 12:18:28 PM1/25/13
to cubie...@googlegroups.com

thanks for the answers!

i spent the all afternoon trying to find the right resolution for my screens (i have 3 different hdmi tv of three different brands) and i found a weird problem with one of them.

i found out that the only resolution that work is 720p60 and 1080p60, with 720p i can't see all the screen (like if there was zoom active) and with 1080p i see ok but on the bottom half of the tv there are a lot of purple and green rows and dots (i took i picture so you can better understand what i mean)

can somebody help?

ps. 1080p work well in an other tv

PsychoDealer

unread,
Jan 25, 2013, 1:28:32 PM1/25/13
to cubie...@googlegroups.com
Can someone explain how to update cubie's mali gpu drivers with the latest here: https://github.com/ssvb/xf86-video-sunxifb   ??? I am very rookie at this linux-kernel etc.. think

Craig Hastie

unread,
Jan 25, 2013, 1:32:27 PM1/25/13
to cubie...@googlegroups.com

Are you using hdmi sound, seem to remember someone sayimg they had to chamge sound config to remove the purple line's.
Not sure though as still waiting on my board.
Craig

--
You received this message because you are subscribed to the Google Groups "Cubieboard" group.
To unsubscribe from this group, send email to cubieboard+...@googlegroups.com.
Visit this group at http://groups.google.com/group/cubieboard?hl=en.
 
 

acb

unread,
Feb 11, 2013, 11:10:44 AM2/11/13
to cubie...@googlegroups.com
Is there a list of legal mode strings? I have a 7" 800x480 HDMI monitor and have been unable to get anything less than 1280x720 displaying on it (scaled down). Can the A10 do resolutions below 720p?

Lawrence Sheed

unread,
Feb 11, 2013, 11:29:13 AM2/11/13
to cubie...@googlegroups.com
Lowest I've been able to get on mine so far is 640x480.

I have a set of fb.modes for that here I made for use in user mode.-

http://www.cubieforums.com/index.php/topic,50.0.html

May or may not work on your particular screen.
I'll probably have another go at working on lower resolutions, but if you get something that works, do let me / us all know :)

Use with fbset.


If you are passing to kernel, do note that you'll need to compile those resolutions into the EDID settings.

https://github.com/linux-sunxi/linux-sunxi/blob/sunxi-3.0/drivers/video/sunxi/hdmi/hdmi_core.c has these resolutions, so these should be available -

use as EDID


{ HDMI1440_480I, 13500000, 1, 720, 480, 858, 119, 19, 62, 525, 18, 4, 3, 1, 0, 0 },
{ HDMI1440_576I, 13500000, 1, 720, 576, 864, 132, 12, 63, 625, 22, 2, 3, 1, 0, 0 },
{ HDMI480P, 27000000, 0, 720, 480, 858, 122, 16, 62, 525, 36, 9, 6, 0, 0, 0 },
{ HDMI576P, 27000000, 0, 720, 576, 864, 132, 12, 64, 625, 44, 5, 5, 0, 0, 0 },
{ HDMI720P_50, 74250000, 0, 1280, 720, 1980, 260, 440, 40, 750, 25, 5, 5, 0, 1, 1 },
{ HDMI720P_60, 74250000, 0, 1280, 720, 1650, 260, 110, 40, 750, 25, 5, 5, 0, 1, 1 },
{ HDMI1080I_50, 74250000, 0, 1920, 1080, 2640, 192, 528, 44, 1125, 20, 2, 5, 1, 1, 1 },
{ HDMI1080I_60, 74250000, 0, 1920, 1080, 2200, 192, 88, 44, 1125, 20, 2, 5, 1, 1, 1 },
{ HDMI1080P_50, 148500000, 0, 1920, 1080, 2640, 192, 528, 44, 1125, 41, 4, 5, 0, 1, 1 },
{ HDMI1080P_60, 148500000, 0, 1920, 1080, 2200, 192, 88, 44, 1125, 41, 4, 5, 0, 1, 1 },
{ HDMI1080P_24, 74250000, 0, 1920, 1080, 2750, 192, 638, 44, 1125, 41, 4, 5, 0, 1, 1 },
{ HDMI1080P_24_3D_FP, 148500000, 0, 1920, 2160, 2750, 192, 638, 44, 1125, 41, 4, 5, 0, 1, 1 },
{ HDMI720P_50_3D_FP, 148500000, 0, 1280, 1440, 1980, 260, 440, 40, 750, 25, 5, 5, 0, 1, 1 },
{ HDMI720P_60_3D_FP, 148500000, 0, 1280, 1440, 1650, 260, 110, 40, 750, 25, 5, 5, 0, 1, 1 },
{ HDMI1360_768_60, 85500000, 0, 1360, 768, 1792, 368, 64, 112, 795, 24, 3, 6, 0, 1, 1 },
{ HDMI1280_1024_60, 108000000, 0, 1280, 1024, 1688, 360, 48, 112, 1066, 41, 1, 3, 0, 1, 1 },

You can add more (and provide additional modes)

Note that the https://github.com/linux-sunxi/linux-sunxi/blob/sunxi-3.0/drivers/video/sunxi/disp/dev_fb.c is the one that
handles the resolution passing as its the framebuffer driver.


Lawrence.
> --
> You received this message because you are subscribed to the Google Groups "Cubieboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cubieboard+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages