Difference between revisions of "IoTGateway/Features/Linux/Display"
(→How to control the screen blanking) |
(→How to control the screen blanking) |
||
Line 278: | Line 278: | ||
::specify kernel parameter 'consoleblank=<n>' (where <n> means timeout seconds) in u-boot's parameter, bootargs_base | ::specify kernel parameter 'consoleblank=<n>' (where <n> means timeout seconds) in u-boot's parameter, bootargs_base | ||
:user space | :user space | ||
− | ::use the command setterm | + | ::use the command, <code>setterm</code> |
Revision as of 05:30, 17 August 2016
Single Channel LVDS Panel
96LEDK-C070WV50NA1
- The following operations are performed with RSB-4210 (i.MX5).
- u-boot
- specify boot logo
showlogo=mmc read 0 0x70200000 0x0 0x1; fatload mmc 0:1 0x76000000 ulogo.bmp; bmp d 0x76000000
mmc read 1 0x70200000 0x0 0x1; fatload mmc 1:1 0x76000000 ulogo.bmp; bmp d 0x76000000
- specify the variable
bootargs_base
as below: setenv bootargs_base 'setenv bootargs console=ttymxc0,115200 ldb=single,di=1,ch0_map=JEIDA,ch1_map=JEIDA video=mxcdi0fb:RGB24,AUO- G070VW01 di1_primary,bpp=24'
IDK-1115R-40XGC1E
- u-boot
- specify the variable
bootargs_base
as below: setenv bootargs_base 'setenv bootargs console=ttymxc0,115200 enable_wait_mode=off video=mxcfb0:dev=ldb,1024x768M@60,if=RGB24 ldb=sin0'
Dual Channel LVDS Panel
Calculating Timings parameter of LVDS Panel SOP OS: Yocto 1.8 Modify imx6qdl-advantech.dtsi Step1: In ldb parameter, add parameter --> split-mode; /* dual-channel setting *
&ldb { ext_ref = "true"; status = "okay"; split-mode; /* dual-channel setting */
Step2: In lvds-channel@1, change [crtc = "ipu1-di1";] to [crtc = "ipu1-di0";]
lvds-channel@1 { fsl,data-mapping = "spwg"; fsl,data-width = <24>; /* crtc = "ipu1-di1"; */ crtc = "ipu1-di0"; /* dual-channel setting */ status = "okay";
Step3: In display-timings native-mode = <&timing0>, Delete the other panel parameter.Add" LTI370LN01 " Parameter
//Dual channel panel timing0: lti370ln01 { clock-frequency = <148500000>; hactive = <1920>; vactive = <544>; hback-porch = <70>; hfront-porch = <70>; vback-porch = <200>; vfront-porch = <200>; hsync-len = <140>; vsync-len = <185>; };
Calculating Timings parameter Check your panel Timing table Example : samsung 37 inch panel
(1)clock-frequency --> Clock (MHz)
(2)hactive --> Horizontal Active Display Period
(3)vactive --> Vertical Active Display Period
(4)hback-porch + hfront-porch + hsync-len (Total) = Blanking = Horizontal Total - Horizontal Active Display Period
(5)vback-porch + vfront-porch + vsync-len (Total) = Blanking = Vertical Total - Vertical Active Display Period
Touchscreen Panel
E21D03U-C01-04 Irtouch-Dualtouch
IRTOUCH panel [Android 4.4]
(1) Download IRTOUCH driver (Irtouch-dualtouch-package-android-v14.2.0.0002.7z) (2) Download IRTOUCH SWAP mode tool (Swapmode.7z) (3) Swap mode You need to check and swap IRTOUCH 0X80. Please install SWAP mode tool in win7. Run SwapModeTool.exe and choose IRTOUCH 0X80. (4) Installing the IRTOUCH Dual-touch Touchscreen Driver (a) irtouchusb-dt.c locate to kernel_imx/driver/input/touchscreen; (b) modify Makefile in kernel_imx/driver/input/touchscreen add: "obj-$(CONFIG_TOUCHSCREEN_USBIRTOUCH_DT) += irtouchusb-dt.o" (c) modify Kconfig in kernel_imx/driver/input/touchscreen add: config TOUCHSCREEN_USBIRTOUCH_DT tristate "IRTOUCH USB Touchscreen Driver For single point" depends on USB_ARCH_HAS_HCD select USB help Say Y here if you have a IRTOUCH based touchscreen controller. If unsure, say N. To compile this driver as a module, choose M here: the module will be called irtouch. (d) You can make menuconfig select TOUCHSCREEN_USBIRTOUCH_DT and build kernel Modify defconfig CONFIG_TOUCHSCREEN_USBIRTOUCH_DT=y example : imx6_rsb4410_android_kk44_defconfig (e) Add one line to Android file system's ueventd.rc: File path : device/fsl/imx6/etc/ueventd.freescale.rc /dev/irtouch 0666 root root (f) Copy "Vendor_6615_Product_0081.idc" and "Vendor_6615_Product_0080.idc" file to the Android file system's /usr/idc directory. (5) Calibration the Touchscreen Install CalibrationTools.apk and run "CalibrationTools" to start calibrate touchscreen. package name:com.irtouch.android.calibration class name: CalibrationToolsActivity
eGTouch touch panel [Android 4.2 ~ Android 4.4]
(1) Add "eGalaxCalibrator" PRODUCK PACKAGES in device/fsl/imx6/iMX6.mk (2) Add eGtouch file path in device/fsl/imx6/iMX6.mk device/fsl/common/input/eGTouch_v2.5.2320.A/eGalaxTouch_VirtualDevice.idc:system/usr/idc/eGalaxTouch_VirtualDevice.idc \ device/fsl/common/input/eGTouch_v2.5.2320.A/eGTouchA.ini:data/eGTouchA.ini \ device/fsl/common/input/eGTouch_v2.5.2320.A/eGTouchD:system/bin/eGTouchD \ (3) Add eGtouch idc and ini file in device/fsl/imx6/BoardConfigCommon.mK BOARD_USERDATAIMAGE_PARTITION_SIZE := 128M device/fsl/common/input/eGTouch_v2.5.2320.A/eGTouchA.ini device/fsl/common/input/eGTouch_v2.5.2320.A/eGTouchD device/fsl/common/input/eGTouch_v2.5.2320.A/eGalaxTouch_VirtualDevice.idc (4) Add service about eGTouch in device/fsl/rsb_4410/init.rc service eGTouchD /system/bin/eGTouchD class main user root group root oneshot [Android 4.2 and 4.4 MP version is include eGTouch function]
IDK-1105R-50VGA1E
- The following operations are performed using Linux BSP 4410LBV2080.
- u-boot
- apparently specify LDB-VGA in video item contained in the variable
bootargs_base
setenv bootargs_base 'setenv bootargs console=ttymxc0,115200 enable_wait_mode=off video=mxcfb0:dev=ldb,LDB-VGA,if=RGB666'
- linux kernel
- in drivers/video/mxc/ldb.c, insert the following lines into
static struct struct fb_videomode ldb_modefb[]
(or modify the exist element contained "LDB-VGA") :
{
"LDB-VGA", 60, 640, 480, 39722,
50, 80,
24, 18,
30, 10,
0,
FB_VMODE_NONINTERLACED,
FB_MODE_IS_DETAILED,},
IDK-1107WR-40WVA1E
Linux
The following operations are performed with RSB-4410(4410LBV2080 and eGTouch_v2.5.3810.L-ma.zip)
- u-boot
- specify the variable bootargs_base as below:
setenv bootargs_base 'setenv bootargs console=ttymxc0,115200 enable_wait_mode=off video_mode=extension video=mxcfb0:dev=ldb,800x480M@60,if=RGB666,bpp=32 ldb=sin0'
- linux kernel source
- linux kernel config
- selection
- Device Drivers --->
- Input device support --->
- <*> Event interface
- Miscellaneous devices --->
- <*> User level driver support
- HID Devices --->
- [*] /dev/hidraw raw HID device support
- Special HID drivers --->
- <*> HID Multitouch panels
- Input device support --->
- Device Drivers --->
- deselection
- Device Drivers --->
- Input device support --->
- [*] Touchscreens --->
- < > USB Touchscreen Driver
- [*] Touchscreens --->
- Input device support --->
- Device Drivers --->
- root filesystem
- update
- /etc/rc.d/rc.local
Android
The following operations are performed with RSB-4410(4410ABV1080 and eGTouch_v2.5.2320.A-all.zip)
- u-boot
- specify the variable bootargs_base as below:
setenv bootargs 'console=ttymxc0,115200 androidboot.console=ttymxc0 vmalloc=400M init=/init video=mxcfb0:dev=ldb,800x480M@60,if=RGB666,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off fbmem=28M androidboot.hardware=freescale'
- linux kernel config
- selection
- Device Drivers --->
- Input device support --->
- <*> Event interface
- Miscellaneous devices --->
- <*> User level driver support
- HID Devices --->
- [*] /dev/hidraw raw HID device support
- Special HID drivers --->
- <*> HID Multitouch panels
- Input device support --->
- Device Drivers --->
- root filesystem contained in BSP
- eGalaxCalibrator
HOWTOs
How to get the current display mode
# cat /sys/class/graphics/fb0/mode
U:1920x1080p-60
How to get the supported display modes
# cat /sys/class/graphics/fb0/modes
U:1280x720p-120
U:1280x720p-100
U:1920x1080p-30
U:1920x1080p-25
U:1920x1080p-24
U:1920x1080p-50
U:1440x576p-50
U:1440x576p-50
U:1440x288p-50
U:1440x288p-50
U:1280x720p-50
U:720x576p-50
U:720x576p-50
U:1920x1080p-60
U:1440x480p-60
U:1440x480p-60
U:1440x240p-60
U:1440x240p-60
U:1280x720p-60
U:720x480p-60
U:720x480p-60
U:640x480p-60
How to get the monitor's EDID
# i2cdump -f -y -r 0x00-0x7F 2 0x50
No size specified (using byte-data access)
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 00 ff ff ff ff ff ff 00 5a 63 28 0e 01 01 01 01 ........Zc(?????
10: 22 16 01 03 08 30 1b 78 2e e6 75 a4 56 4f 9e 27 "????0?x.?u?VO?'
20: 0f 50 54 bf ef 80 b3 00 a9 40 95 00 81 80 81 40 ?PT????.?@?.???@
30: 81 0f 81 00 71 4f 02 3a 80 18 71 38 2d 40 58 2c ???.qO?:??q8-@X,
40: 45 00 dd 0c 11 00 00 1e 00 00 00 ff 00 53 44 44 E.???..?.....SDD
50: 31 32 33 34 41 31 33 37 36 0a 00 00 00 fd 00 32 1234A1376?...?.2
60: 4b 18 52 11 00 0a 20 20 20 20 20 20 00 00 00 fc K?R?.? ...?
70: 00 56 41 32 32 34 38 20 53 45 52 49 45 53 00 34 .VA2248 SERIES.4
How to control the screen blanking
to blank the primary display
-
# echo 1 > /sys/class/graphics/fb0/blank
to unblank the primary display
-
# echo 0 > /sys/class/graphics/fb0/blank
to set auto-blanking timeout seconds
The default linux framebuffer support will blank a console after 600 seconds of no activity.
- kernel space
- specify kernel parameter 'consoleblank=<n>' (where <n> means timeout seconds) in u-boot's parameter, bootargs_base
- user space
- use the command,
setterm
- use the command,