Setting the screen resolution in Ubuntu

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting the screen resolution in Ubuntu

Jump to solution
4,761 Views
andrewellis
Contributor III

Hi

I have installed ubuntu onto my SabreSD evaluation board. In the command line parameters I specify that the monitor I'm using is 1280x1024, but when Ubuntu boots the screen is stuck at 640x480, there's nothing I can do to change it. The settings program does not allow me to change the resolution, I've tried using xrandr -addmode mxcfb0 1280x1024 and used hdmi instead of mxcfb0 but had no success, I just got a message saying it could not find the output specified.

The command line I specify in the uboot environment is 

setenv bootargs_mmc setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootwait rw video=mxcfb0:dev=hdmi,1280x1024M@60,if=RGB24 video=mxcfb1:off video=mxcfb2:off fbmem=28M ip=dhcp

I have used the monitor on another system at 1280x1024 so I know it should work.


What do I need to do to change the screen resolution in ubuntu?


Incidently I have the same issue when running Android as supplied with the kit.


Kind regards

Andrew

Labels (3)
0 Kudos
1 Solution
696 Views
ChucoChe
NXP Employee
NXP Employee

Hi,

Freescale doesn't supports non CEA mode. Apparently it may work with some monitors but it's not supported.

Michel

View solution in original post

0 Kudos
8 Replies
696 Views
ChucoChe
NXP Employee
NXP Employee

Hi,

When you plug the hdmi in /sys/class/graphics/fb0 modes do you see the supported resolutions of your monitor?

cat /sys/class/graphics/fb0.

Michel

696 Views
andrewellis
Contributor III

Hi Michel,

If I connect a a DVI monitor with an HDMI DVI cable then typing the following command:

cat /sys/class/graphics/fb0/modes

Yields:

V:640x480p-60

U:640x480p-60


It would appear the a monitor with a DVI interface is not being interrogated properly so ubuntu defaults to the above mode. I have repeated the above test with a TV with HDMI and it yielded the following modes:

S:1920x1080p-24

S:720x576p-50

S:720x480p-60

S:1280x720p-50

S:1280x720p-60

S:1920x1080p-50

S:1920x1080p-60

V:640x480p-60

D:1920x1080p-60

U:640x480p-60

Firstly how can I configure ubuntu to default to a higher resolution and how do I make ubuntu recognise a DVI device?

Andrew



0 Kudos
696 Views
andrewellis
Contributor III

Hi again,

I have added some printks to my code to observer what is happening at boot up the output I've got is shown below:

mxc_sdc_fb mxc_sdc_fb.0: register mxc display driver hdmi

mxc_hdmi_disp_init

mxc_hdmi mxc_hdmi: Detected HDMI controller 0x13:0xa:0xa0:0xc1

fbcvt: 1280x1024@60: CVT Name - 1.310M4

imx-ipuv3 imx-ipuv3.0: WARNING: adapt panel end blank lines

imx-ipuv3 imx-ipuv3.0: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)

mxc_hdmi_fb_event HDMI device mxc_hdmi ID -1

mxc_hdmi_fb_event HDMI device mxc_hdmi ID -1

imx-ipuv3 imx-ipuv3.0: WARNING: adapt panel end blank lines

Console: switching to colour frame buffer device 160x64

mxc_hdmi_fb_event HDMI device mxc_hdmi ID -1

mxc_hdmi_fb_event HDMI device mxc_hdmi ID -1

mxc_hdmi_fb_event HDMI device mxc_hdmi ID -1

mxc_sdc_fb mxc_sdc_fb.1: Can't get fb option for mxcfb1!

mxc_sdc_fb mxc_sdc_fb.2: Can't get fb option for mxcfb2!

mxc_sdc_fb mxc_sdc_fb.3: register mxc display driver ldb

mxc_hdmi_read_edid

mxc_edid_read

_regulator_get: get() with no identifier

mxc_hdmi_fb_event HDMI device mxc_hdmi ID -1

mxc_hdmi_fb_event HDMI device mxc_hdmi ID -1

mxc_hdmi_fb_event HDMI device mxc_hdmi ID -1

mxc_hdmi_fb_event HDMI device mxc_hdmi ID -1

imx-sdma imx-sdma: loaded firmware 1.1

      Display is GTF capable

mxc_hdmi_read_edid: modes found

mxc_edid_mode_to_vic xres: 1280 yres: 1024

mxc_edid_mode_to_vic xres: 720 yres: 400

mxc_edid_mode_to_vic xres: 640 yres: 480

mxc_edid_mode_to_vic xres: 640 yres: 480

mxc_edid_mode_to_vic xres: 640 yres: 480

mxc_edid_mode_to_vic xres: 640 yres: 480

mxc_edid_mode_to_vic xres: 800 yres: 600

mxc_edid_mode_to_vic xres: 800 yres: 600

mxc_edid_mode_to_vic xres: 800 yres: 600

mxc_edid_mode_to_vic xres: 800 yres: 600

mxc_edid_mode_to_vic xres: 832 yres: 624

mxc_edid_mode_to_vic xres: 1024 yres: 768

mxc_edid_mode_to_vic xres: 1024 yres: 768

mxc_edid_mode_to_vic xres: 1024 yres: 768

mxc_edid_mode_to_vic xres: 1280 yres: 1024

mxc_edid_mode_to_vic xres: 1280 yres: 1024

mxc_edid_mode_to_vic xres: 1152 yres: 864

mxc_edid_mode_to_vic xres: 1280 yres: 960

mxc_edid_mode_to_vic xres: 640 yres: 512

mxc_edid_mode_to_vic xres: 640 yres: 360

mxc_edid_mode_to_vic xres: 720 yres: 405

fbcvt: 1280x1024@60: CVT Name - 1.310M4

imx-sdma imx-sdma: initialized

mxc_hdmi_fb_event HDMI device mxc_hdmi ID -1

FB_EVENT_MODE_CHANGE

mxc_hdmi_setup

mxc_hdmi_setup: DVI mode

Serial: IMX driver

imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX

imx-uart.0: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX

mxc_hdmi_fb_event HDMI device mxc_hdmi ID -1

FB_EVENT_MODE_CHANGE

mxc_hdmi_setup

mxc_edid_mode_to_vic xres: 640 yres: 480

mxc_hdmi_setup: DVI mode

console [ttymxc0] enabled, bootconsole disabled

It appears that information about the display is being overwritten. To begin with it can be seen that a range of modes are being found from the display, then the mode information is being erased and replace with 640x480. I'm not yet sure whats going on. Does anyone have anyideas as to what is happening?

Andrew


0 Kudos
696 Views
ChucoChe
NXP Employee
NXP Employee

Which BSP version are you using?

I suspect this was fixed in later versions of our BSP.

Michel

0 Kudos
696 Views
andrewellis
Contributor III

Hi Michel,

I'm using L3.0.35_1.1.0_121218, which is the latest version available on the website.

Have you been able to verify that this version works with a DVI monitor using an HDMI to DVI converter cable?

Thanks

Andrew

0 Kudos
697 Views
ChucoChe
NXP Employee
NXP Employee

Hi,

Freescale doesn't supports non CEA mode. Apparently it may work with some monitors but it's not supported.

Michel

View solution in original post

0 Kudos
696 Views
ChucoChe
NXP Employee
NXP Employee

We have reproduced the issue. Apparently it only happens when using a HDMI to DVI cable.

I'm trying to get a solution for this problem but it would be a better idea to simply use a HDMI to HDMI cable.

Michel

696 Views
ChucoChe
NXP Employee
NXP Employee

Unfortunately I haven't tried Ubuntu and HDMI to DVI cable.

I'm trying to find someone who has.

0 Kudos