Discussion

Dual Monitor (HDMI+7inch LVDS LCD)

5 7191
Edited by tony_zhang at Tue Mar 3, 2015 05:26

I have tried to test the dual monitor display on Banana Pro. The OS I use is Raspbian v1412. Below is what I did:
1. Enable the device permission
The default permissions of /dev/ump and /dev/mali make these unusable for normal users. Add a file to /etc/udev/rules.d/, perhaps called 50-mali.rules, with the following content:
  1. KERNEL=="mali", MODE="0660", GROUP="video"
  2. KERNEL=="ump", MODE="0660", GROUP="video"
Copy the Code
2. Installing the UMP (Unified Memory Provider) userspace library
  1. sudo apt-get install git build-essential autoconf libtool
  2. sudo git clone https://github.com/linux-sunxi/libump.git
  3. cd libump
  4. sudo apt-get install debhelper dh-autoreconf pkg-config
  5. sudo dpkg-buildpackage -b
  6. sudo dpkg -i ../libump_*.deb
Copy the Code
3. Install fbturbo driver
  1. apt-get install git build-essential xorg-dev xutils-dev x11proto-dri2-dev libltdl-dev libtool automake
  2. git clone -b 0.4.0 https://github.com/ssvb/xf86-video-fbturbo.git
  3. cd xf86-video-fbturbo
  4. autoreconf -v -i
  5. ./configure --prefix=/usr
  6. make
  7. make install
Copy the Code
hen copy over the default xorg.conf for the fbturbo driver (the preferred location for xorg.conf would be /etc/X11/ instead of /usr/share/X11/xorg.conf.d/):
  1. rm /usr/share/X11/xorg.conf.d/99-fbturbofb.conf
  2. cp xorg.conf /etc/X11/xorg.conf
Copy the Code
4. Download the 7inch fex configuration file
Downdload the fex file from https://github.com/LeMaker/fex_c ... /banana_pi_7lcd.fex
And Edit the parameters below:
  1. disp_mode = 2
  2. screen0_output_type = 1
  3. screen0_output_mode = 5
  4. screen1_output_type = 3
  5. screen1_output_mode = 5
Copy the Code
5. Xorg Configuration
I have tried the clone display and extension display. We need edit the /etc/X11/xorg.conf file.
5.1 The clone display
The xorg.conf file is:
  1. Section "Device"
  2.         Identifier      "FBDEV 0"
  3.         Driver          "fbturbo"
  4.         Option          "fbdev" "/dev/fb0"
  5. EndSection

  6. Section "Device"
  7.         Identifier      "FBDEV 1"
  8.         Driver          "fbturbo"
  9.         Option          "fbdev" "/dev/fb1"
  10. EndSection

  11. Section "Screen"
  12.         Identifier      "LCD"
  13.         Device          "FBDEV 0"
  14.         Monitor         "Monitor name 0"
  15. EndSection

  16. Section "Screen"
  17.         Identifier      "HDMI"
  18.         Device          "FBDEV 1"
  19.         Monitor         "Monitor name 1"
  20. EndSection

  21. Section "ServerLayout"
  22.         Identifier      "Default Layout"
  23.         Screen          0 "LCD"
  24.         #Screen          1 "HDMI" RightOf "LCD"
  25.         Screen          1 "HDMI"
  26.         Option          "Xinerama" "on"
  27. EndSection
Copy the Code
5.2 The extension display
  1. Section "Device"
  2.         Identifier      "FBDEV 0"
  3.         Driver          "fbturbo"
  4.         Option          "fbdev" "/dev/fb0"
  5. EndSection

  6. Section "Device"
  7.         Identifier      "FBDEV 1"
  8.         Driver          "fbturbo"
  9.         Option          "fbdev" "/dev/fb1"
  10. EndSection

  11. Section "Screen"
  12.         Identifier      "LCD"
  13.         Device          "FBDEV 0"
  14.         Monitor         "Monitor name 0"
  15. EndSection

  16. Section "Screen"
  17.         Identifier      "HDMI"
  18.         Device          "FBDEV 1"
  19.         Monitor         "Monitor name 1"
  20. EndSection

  21. Section "ServerLayout"
  22.         Identifier      "Default Layout"
  23.         Screen          0 "LCD"
  24.         Screen          1 "HDMI" RightOf "LCD"
  25.         Option          "Xinerama" "on"
  26. EndSection
Copy the Code
I encounter the problem that the resolution is set according to the screen0_output_mode = 5 that is 720P, so when we see from HDMI, the display is OK, but the 7inch LVDS can not fully display as the 7inch LCD is 1024*600.  Any one who are good at xorg, please give me a hand?Below is the images:

Clone Display

Clone Display

Extension Display

Extension Display


Great work Tony!

cxy  
Good Sharing ...


Fantastic....
a lot to learn...

tkaiser  
Have you tried to install/use fbset as outlined here: http://forum.lemaker.org/forum.php?mod=viewthread&tid=15430?

If you add the parameters to /etc/fb.modes and use
  1. fbset -fb /dev/fb0 "1024x600-60"
Copy the Code
in /etc/rc.local the X server should use this parameters as well. If that doesn't work you could try out adjusting the screen section of the display in question:
  1. Section "Screen"
  2.         Identifier      "LCD"
  3.         Device          "FBDEV 0"
  4.         Monitor         "Monitor name 0"
  5.         SubSection "Display"
  6.         Depth 24
  7.         Virtual 1024 600
  8.         Modes "1024x600@60"
  9.         EndSubSection
  10. EndSection
Copy the Code

Thread and all related items ache been identified for the people. The charge is deployed for the flow of the academized.com review for all students. The accustomed items ache been defined for the means and tools for the humans.

You have to log in before you can reply Login | Sign Up

Points Rules