kingsb
Posts: 7
Joined: Mon Apr 20, 2015 4:37 pm

Can't get resolution 1080x1920 (flipped FullHD)

Mon Apr 20, 2015 4:51 pm

I'm trying to obtain full resolution on LCD display from smartphone, which is 1080x1920 pixels - it's not FullHD, because it has 1080 on X and 1920 on Y axis. But the best I can get is 1080x1200. Tried both RPI and RPI-2.

Can anyone clarify, is it possible at all?

Digging into details, that's what I did to get 1080x1200:

1. In /etc/fb.modes added the following (calculated from tvservice output for my HDMI to MIPI adapter):

Code: Select all

# 1080x1920p hfp:18 hs:16 hbp:48 vfp:8 vs:16 vbp:10 pixel clock:136 MHz
mode "1080x1920-60"
    # D: 136.00 MHz, H: 95.200 kHz, V: 60.00 Hz
    geometry 1080 1920 1080 1920 16
    timings 7353 18 48 8 10 16 16
    #rgba 4/8,4/4,4/0,0/12
endmode
2. in /boot/config.txt added the following:

Code: Select all

hdmi_timings=1080 0 18 16 48 1920 0 8 16 10 0 0 0 60 0 136000000 1
most of the other options in the config.txt had to be commented out, what left is:

Code: Select all

disable_overscan=0
overscan_left=0
overscan_right=0
overscan_top=-360
overscan_bottom=-360
framebuffer_width=1080
framebuffer_height=1200
hdmi_force_hotplug=1
Trying to set all overscan values to 0 and remove framebuffer_width, framebuffer_height I'm still getting 1080x1200

beta-tester
Posts: 1207
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

Re: Can't get resolution 1080x1920 (flipped FullHD)

Thu Apr 23, 2015 5:30 pm

do you want to flip your monitor ?

see display_rotate option in config.txt file
http://elinux.org/RPiconfig
display_rotate rotates the display clockwise on the screen (default=0) or flips the display.

Code: Select all

display_rotate=0        Normal
display_rotate=1         90 degrees
display_rotate=2        180 degrees
display_rotate=3        270 degrees
display_rotate=0x10000  horizontal flip
display_rotate=0x20000  vertical flip
Note: the 90 and 270 degrees rotation options require additional memory on GPU, so won't work with the 16M GPU split.

BTW: why is it posted in "Bare Metal" :?:
its more a general or trouble shooting topic
{ I only give negative feedback }
RPi Model B (rev1, 256MB) & B (rev2, 512MB) & B+, RPi2B (1GB), 64GB microSDXC1 class 10, HDMI 1920x1080, keyboard-mouse-combo (wireless), PiCamera, ethernet-cable, 5V/1.2A power supply, Wifi dongle (rt5370)

kingsb
Posts: 7
Joined: Mon Apr 20, 2015 4:37 pm

Re: Can't get resolution 1080x1920 (flipped FullHD)

Sat Apr 25, 2015 4:30 pm

beta-tester wrote:do you want to flip your monitor ?

see display_rotate option in config.txt file
Using this option I only can get 1200x1080 or 1080x1200 - please note, my display has 1080 pixels in line, 1920 lines, not as ordinary FullHD display, which has 1920 pixels in line and 1080 lines. I can suppose that 1200 is a hardware limitation, buried somewhere deep inside bcm2835 (or bcm2836 for PI2) chip. That's why I'm asking in bare metal forum.

User avatar
davidcoton
Posts: 3060
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK

Re: Can't get resolution 1080x1920 (flipped FullHD)

Sat Apr 25, 2015 9:57 pm

Perhaps this line needs upating for the actual height? (Conjecture, not knowledge, on my part)

Code: Select all

framebuffer_height=1200
"Thanks for saving my life." See https://www.raspberrypi.org/forums/viewtopic.php?p=1327656#p1327656
“Raspberry Pi is a trademark of the Raspberry Pi Foundation”

kingsb
Posts: 7
Joined: Mon Apr 20, 2015 4:37 pm

Re: Can't get resolution 1080x1920 (flipped FullHD)

Wed May 06, 2015 10:25 am

davidcoton wrote:Perhaps this line needs upating for the actual height? (Conjecture, not knowledge, on my part)

Code: Select all

framebuffer_height=1200
Nope, this does not help - when I put

Code: Select all

framebuffer_height=1920
, the resolution nevertheless resets to 1200x1080

User avatar
AndyD
Posts: 2324
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Can't get resolution 1080x1920 (flipped FullHD)

Wed May 06, 2015 11:38 am

You normally don't want to set framebuffer_height and framebuffer_width. On the Raspberry Pi the framebuffer is a single layer rendered by the compositor onto the display. The framebuffer width and height is independent of the display width and height. Normally, if there is no overscan settings the framebuffer width and height will be the same as the display. However, changing the framebuffer width and height doesn't change the display width and height.

Did you have a look at this thread on custom display modes?

There is mention that


So this may be the limit!

When you tried hdmi_timings did you set group and mode as follows?

Code: Select all

hdmi_group=2
hdmi_mode=87

kingsb
Posts: 7
Joined: Mon Apr 20, 2015 4:37 pm

Re: Can't get resolution 1080x1920 (flipped FullHD)

Wed May 06, 2015 2:16 pm

AndyD wrote:You normally don't want to set framebuffer_height and framebuffer_width. On the Raspberry Pi the framebuffer is a single layer rendered by the compositor onto the display. The framebuffer width and height is independent of the display width and height. Normally, if there is no overscan settings the framebuffer width and height will be the same as the display. However, changing the framebuffer width and height doesn't change the display width and height.
Yes, I understand this, and I use these options only to obtain full screen access - in the price of reduced resolution on Y axis. So I can output picture on every part of the screen, but the pixel resolution is not 1:1 relative to hardware possibilities.
AndyD wrote: Did you have a look at this thread on custom display modes?
Yes, I've seen it, and used it as a start for my hdmi_timing variant
AndyD wrote: There is mention that


So this may be the limit!
May be, and the next post in that thread asks:
darseneau wrote:
dom wrote: 2560x1080 is not possible. 1920x1200 is the maximum resolution supported.
Is that a firmware limitation at present, as I had supposed, or a hardware limit of the gpu?
I guess the answer to this question would put a bold point in this discussion. I have seen somewhere in the code repositories this 1200 limit for the framebuffer, but in later code it is gone, and I thought that the latest firmware would allow me to overcome this limit. Unfortunately the limit seems to be deeper in the hardware.
AndyD wrote: When you tried hdmi_timings did you set group and mode as follows?

Code: Select all

hdmi_group=2
hdmi_mode=87
Yes, I did, but with or without this lines I obtain the same results. Since my tvservice gives the following:

Code: Select all

[email protected]:~# tvservice -m DMT
                                            Group DMT has 2 modes:
           mode 4: 640x480 @ 60Hz 4:3, clock:25MHz progressive
  (prefer) mode 87: 1080x1920 @ 60Hz 4:3, clock:136MHz progressive
I think it does not play a big role, because system anyway choose proper mode, but then cuts vertical resolution on some later stage, and finally I obtain 1080x1200

kingsb
Posts: 7
Joined: Mon Apr 20, 2015 4:37 pm

Re: Can't get resolution 1080x1920 (flipped FullHD)

Wed May 06, 2015 2:51 pm

Thanks everyone, finally I managed to obtain required 1080x1920!
Reading this thread I tried the similar settings, and managed to see full resolution.
The final config.txt looks as follows:

Code: Select all

disable_overscan=1

overscan_left=0
overscan_right=0
overscan_top=0
overscan_bottom=0

display_rotate=0

hdmi_force_hotplug=1

hdmi_timings=1080 0 18 16 48 1920 0 8 16 10 0 0 0 60 0 136000000 1

hdmi_group=2
hdmi_mode=87
hdmi_ignore_edid=0xa5000080
hdmi_cvt 1080 1920 60
max_framebuffer_width=1080
max_framebuffer_height=1920


jeroendewijs
Posts: 3
Joined: Fri May 29, 2015 7:47 am

Re: Can't get resolution 1080x1920 (flipped FullHD)

Fri May 29, 2015 8:22 am

Hello,

I new with Raspberry and Linux as well. However, I want to understand more of it and I have a simmilar problem.
I have a custom made 'monitor' made of a 5" mobile phone display 1080x1920 with HDMI controller! But the physical orientation is vertical!
So I can hook it up to a computer or whatever with a HDMI interface. But, it needs the exact resolution and frequency to work, so it does not have a scaling chip that handles lower or higher resolutions and rotation.
I can get it to work on a Windows machine with good adjustable video cards lik Nvidia. I was able to get data of the background settings using Powerstrip.
It works through HDMI 1.4 and does not have complete edid information.

Now I try to have it working with the Raspberry or any other Linux system.
I see a lot of things with config.txt and Xrandr but how to use these proppery, in what order is not clear. It looks there are other approaches as well but it confuses me how Linux handles video settings, there is not some kind of graphical tool with all these settings even if the LCD is hard to regocnize.
I tried with config.txt and Xrandr but when the raspberry boots it tries to do something with the small LCD but than stops with the boot process.

So it would be great to have some kind of script that needs to be run that allows this display to work on the raspberry.

Viking50
Posts: 1
Joined: Tue Jun 30, 2015 6:08 pm

Re: Can't get resolution 1080x1920 (flipped FullHD)

Thu Jul 02, 2015 8:51 am

Hi,

I have the same problem, I test with :

Code: Select all

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
framebuffer_width=1080
framebuffer_height=1920

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (87 = 1080x1920)
hdmi_cvt=1080 1920 60 3 0 0 0
hdmi_group=2
hdmi_mode=87
I have a screen with the right resolution but I have 2 black borders on the left and the right, I tried to change overscan_left and
overscan_right with negative values, but in this case I have a black screen, could you help me ?

Sincerely,

Viking50

User avatar
AndyD
Posts: 2324
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Can't get resolution 1080x1920 (flipped FullHD)

Thu Jul 02, 2015 11:36 am

As mentioned above, using framebuffer_width and framebuffer_height is not going to solve your problem. If you want the framebuffer to have the same dimensions as your display, then you need to disable overscan.

Code: Select all

disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1080
#framebuffer_height=1920

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (87 = 1080x1920)
hdmi_cvt=1080 1920 60 3 0 0 0
hdmi_group=2
hdmi_mode=87

Sokolum
Posts: 7
Joined: Wed May 25, 2016 4:17 pm

Re: Can't get resolution 1080x1920 (flipped FullHD)

Wed May 25, 2016 4:30 pm

jeroendewijs wrote:Hello,

I new with Raspberry and Linux as well. However, I want to understand more of it and I have a simmilar problem.
I have a custom made 'monitor' made of a 5" mobile phone display 1080x1920 with HDMI controller! But the physical orientation is vertical!
So I can hook it up to a computer or whatever with a HDMI interface. But, it needs the exact resolution and frequency to work, so it does not have a scaling chip that handles lower or higher resolutions and rotation.
I can get it to work on a Windows machine with good adjustable video cards lik Nvidia. I was able to get data of the background settings using Powerstrip.
It works through HDMI 1.4 and does not have complete edid information.

Now I try to have it working with the Raspberry or any other Linux system.
I see a lot of things with config.txt and Xrandr but how to use these proppery, in what order is not clear. It looks there are other approaches as well but it confuses me how Linux handles video settings, there is not some kind of graphical tool with all these settings even if the LCD is hard to regocnize.
I tried with config.txt and Xrandr but when the raspberry boots it tries to do something with the small LCD but than stops with the boot process.

So it would be great to have some kind of script that needs to be run that allows this display to work on the raspberry.
Hi Jeroen,
Did hou manage to get it working? What about the solution that was been provided by KINGSB in this thread, have you tried that out?

What kind of a driver board are you using? I like also like to buy a 1080p capable screen. I have readed that the resolution of those (smartphone) screens are representeren in 1080x1920.

Regards,
S

Lothy
Posts: 2
Joined: Wed Jul 20, 2016 12:53 pm

Re: Can't get resolution 1080x1920 (flipped FullHD)

Wed Jul 20, 2016 1:21 pm

kingsb wrote:Thanks everyone, finally I managed to obtain required 1080x1920!
Reading this thread I tried the similar settings, and managed to see full resolution.
The final config.txt looks as follows:

Code: Select all

disable_overscan=1

overscan_left=0
overscan_right=0
overscan_top=0
overscan_bottom=0

display_rotate=0

hdmi_force_hotplug=1

hdmi_timings=1080 0 18 16 48 1920 0 8 16 10 0 0 0 60 0 136000000 1

hdmi_group=2
hdmi_mode=87
hdmi_ignore_edid=0xa5000080
hdmi_cvt 1080 1920 60
max_framebuffer_width=1080
max_framebuffer_height=1920

Hi Kingsb,

Could you share mode details about this? Which display+hdmi adapter are you using, which raspberry and operating system?

I'm trying the same thing with a 6" monitor (1080x1920) form topfoison using a Raspberry pi 2, and so far nothing is working...

Is this which you posted here the complete config file you were using? Are there any other changes required?

Thank you,
Lothy

kingsb
Posts: 7
Joined: Mon Apr 20, 2015 4:37 pm

Re: Can't get resolution 1080x1920 (flipped FullHD)

Sat Jul 30, 2016 7:17 am

Lothy wrote: Could you share mode details about this? Which display+hdmi adapter are you using, which raspberry and operating system?
display: LH550WF1-SD01 panel from LG
http://www.panelook.com/LH550WF1-SD01_L ... 19410.html

HDMI-MIPI adapter: SDH-MPFH2 from Signet
http://www.signetfpd.com/adboards061913.htm

board: started with RPI-1, then moved to RPI-2, both are working

system: default installation of Raspbian from http://www.raspberrypi.org/downloads
Lothy wrote: Is this which you posted here the complete config file you were using? Are there any other changes required?
The config is complete, also I added to system/etc/fb.modes the following mode:

Code: Select all

# 1080x1920p hfp:18 hs:16 hbp:48 vfp:8 vs:16 vbp:10 pixel clock:136 MHz
mode "1080x1920-60"
    # D: 136.00 MHz, H: 95.200 kHz, V: 60.00 Hz
    geometry 1080 1920 1080 1920 16
    timings 7353 18 48 8 10 16 16
    #rgba 4/8,4/4,4/0,0/12
endmode
it corresponds to the config line

Code: Select all

hdmi_timings=1080 0 18 16 48 1920 0 8 16 10 0 0 0 60 0 136000000 1
this mode only valid for this LG display, you'll need to calculate you own numbers

good luck

goudon007
Posts: 1
Joined: Fri Dec 08, 2017 2:44 pm

Re: Can't get resolution 1080x1920 (flipped FullHD)

Fri Dec 08, 2017 2:49 pm

Hi Kingsby,

I am using a very similar display to yours, which is a 1080*1920 full hd.
Followed similar code to yours with hdmi_timings syntax.
The problem I am facing is to set the R_pi output to 24 bit RGB.

I am trying to use this RGB data and converter them to MIPI DSI using SSD2828 chip.
It would be a great help if you can shed some light on the framebuffer_depth that you were able to achieve.

Goutham

kingsb
Posts: 7
Joined: Mon Apr 20, 2015 4:37 pm

Re: Can't get resolution 1080x1920 (flipped FullHD)

Thu Dec 14, 2017 8:44 am

goudon007 wrote: The problem I am facing is to set the R_pi output to 24 bit RGB.

I am trying to use this RGB data and converter them to MIPI DSI using SSD2828 chip.
It would be a great help if you can shed some light on the framebuffer_depth that you were able to achieve.
Sorry, bro, I did not tune the framebuffer depth on this setup.
Here is the fbset output:

Code: Select all

[email protected]:~# fbset

mode "1080x1920"
    geometry 1080 1920 1080 1920 16
    timings 0 0 0 0 0 0 0
    rgba 5/11,6/5,5/0,0/16
endmode
as you see, it's 16 bit RGB

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 20062
Joined: Sat Jul 30, 2011 7:41 pm

Re: Can't get resolution 1080x1920 (flipped FullHD)

Thu Dec 14, 2017 10:28 am

I think by default the framebuffer is 16, you can change that with an entry in config.txt. https://www.raspberrypi.org/documentati ... t/video.md

I recently made some changes that allow correct rotation of a 1080p display, previous there was a cap at 1200 when rotating that meant the 1280 was clipped.

There is also new config.txt option. display_hdmi_rotate to specifically rotate the HDMI output but not the LCD panel.

I think these changes are all available using rpi-update, if they are not already present in the latest stretch.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

Return to “Advanced users”

Who is online

Users browsing this forum: Bing [Bot] and 23 guests