Difference between revisions of "UDOO setup lvds panels"
Line 1: | Line 1: | ||
= Update the system = | = Update the system = | ||
− | Make sure you have the lastest u-boot and kernel. | + | Make sure you have the lastest u-boot and kernel. If not you can use the [[UDOO_kernel_update_procedure|simple update procedure ]] |
− | = Configuration = | + | =Using LVDS Panels with UDOOBuntu official OS= |
+ | |||
+ | The simplest way to use LVDS panels with UDOO is using the [[UDOO_Configuration_Tool|UDOO Configuration Tool]]+ | ||
+ | |||
+ | *Open UDOO Configuration Tool | ||
+ | *Select ''Set Default Video Output (LVDS\HDMI)'' and hit ''OK'' | ||
+ | *Select your LVDS Model ( 7 or 15") and hit ''OK'' | ||
+ | *A dialog should inform you that video boot arguments have been changed correctly | ||
+ | *In some cases you could be required to choose a resolution. Choose it accordingly to your device. | ||
+ | *Reboot for changes to take effect | ||
+ | |||
+ | = Manual Video Output Configuration = | ||
To use your LVDS with UDOO you have to follow these simple instructions. | To use your LVDS with UDOO you have to follow these simple instructions. |
Revision as of 08:57, 30 July 2014
Contents
Update the system
Make sure you have the lastest u-boot and kernel. If not you can use the simple update procedure
Using LVDS Panels with UDOOBuntu official OS
The simplest way to use LVDS panels with UDOO is using the UDOO Configuration Tool+
- Open UDOO Configuration Tool
- Select Set Default Video Output (LVDS\HDMI) and hit OK
- Select your LVDS Model ( 7 or 15") and hit OK
- A dialog should inform you that video boot arguments have been changed correctly
- In some cases you could be required to choose a resolution. Choose it accordingly to your device.
- Reboot for changes to take effect
Manual Video Output Configuration
To use your LVDS with UDOO you have to follow these simple instructions.
With the last uboot version (release 2.0 – v.109) you need to change the “video” environment variables with:
15″ –> video=mxcfb0:dev=ldb,1366x768M@60,if=RGB24,bpp=32
7″ –> video=mxcfb0:dev=ldb,LDB-WVGA,if=RGB666,bpp=32
hdmi –> video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 (default environment variable)
To do this you need to connect an external pc to the debug serial of UDOO. For more info see the UDOO starting manual at the “Establish serial debug connection with UDOO” section.
These are the commands you need:
15″ Linux
setenv mmcargs setenv bootargs console=${console},${baudrate} root=${mmcroot} ${hdmi_patch} fbmem=24M video=mxcfb0:dev=ldb,DB-WXGA,if=RGB24,bpp=32
15″ Android
setenv bootargs console=ttymxc1,115200 init=/init video=mxcfb0:dev=ldb,1366x768M@60,if=RGB24,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=28M vmalloc=400M androidboot.console=ttymxc1 androidboot.hardware=freescale mem=1024M
7″ Linux
setenv mmcargs setenv bootargs console=${console},${baudrate} root=${mmcroot} ${hdmi_patch} fbmem=24M video=mxcfb0:dev=ldb,LDB-WVGA,if=RGB666,bpp=32
7″ Android
setenv bootargs console=ttymxc1,115200 init=/init video=mxcfb0:dev=ldb,LDB-WVGA,if=RGB666,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=28M vmalloc=400M androidboot.console=ttymxc1 androidboot.hardware=freescale mem=1024M
HDMI Linux
setenv mmcargs setenv bootargs console=${console},${baudrate} root=${mmcroot} ${hdmi_patch} fbmem=24M video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32
HDMI Android
setenv bootargs console=ttymxc1,115200 init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=28M vmalloc=400M androidboot.console=ttymxc1 androidboot.hardware=freescale mem=1024M
At the next boot the video source will again be the default one unless you save the configuration you just inserted with the command:
saveenv
In Android you can also boot UDOO from both HDMI and LVDS panel at the same time inserting these variables in a different frame buffer:
e.g. boot on lvds 15″ and hdmi.
setenv bootargs console=ttymxc1,115200 init=/init video=mxcfb0:dev=ldb,LDB-WVGA,if=RGB666,bpp=32 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 video=mxcfb2:off fbmem=28M vmalloc=400M androidboot.console=ttymxc1 androidboot.hardware=freescale mem=1024M
Touch Calibration
if you have any problem with touch calibration try to modify the text file:
/etc/X11/xorg.conf.d/99-calibration.conf
with this text:
Section "InputClass" Identifier "calibration" MatchProduct "3M 3M USB Touchscreen - EX II" Option "Calibration" "-75 65106 2318 65008" Option "SwapAxes" "0" Option "InvertX" "1" Option "InvertY" "0" EndSection
Section "InputClass" Identifier "calibration" MatchProduct "sitronix-i2c-touch-mt" Option "Calibration" "10 802 11 479" EndSection
If the calibration is not good enough you can connect a mouse to UDOO and launch the "Calibrate Touchscreen" application from the top bar:
Application -> System Tools -> Administration -> Calibrate Touchscreen
or running in a terminal the command:
xinput_calibrator
and follow the video instruction to change your calibration.