#                                                                               
#!/bin/sh                                                                       
#                                                                               

/opt/server/server -d -v 0 -f /opt/server/SERVER.XML &

cd /opt/CableRanger_Mini_Qt5/bin/                                                    
export TSLIB_CALIBFILE=/etc/pointercal-event1                                   
export TSLIB_TSDEVICE=/dev/input/event1                                         
export QWS_MOUSE_PROTO=tslib:/dev/input/event1                                  
export DISPLAY=:0                                                               
export FB_MULTI_BUFFER=2                                                        
export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=2                                       
export QT_QPA_EGLFS_DEPTH=32                                                    
export QT_QPA_EGLFS_DISABLE_INPUT=1                                             
export QT_QPA_EGLFS_HEIGHT=480                                                  
export QT_QPA_EGLFS_HIDECURSOR=1                                                
export QT_QPA_EGLFS_PHYSICAL_HEIGHT=91                                          
export QT_QPA_EGLFS_PHYSICAL_WIDTH=152                                          
export QT_QPA_EGLFS_WIDTH=800                                                   

./CableRanger_Mini_Qt5 --platform eglfs --plugin Tslib
