Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
811
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.65 KB | None | 0 0
  1. #Install Octoscreen
  2.  
  3. #Dependencies install (if problems encountered at autoreconf then go over install lines again:
  4.    
  5.     #Run:
  6.  
  7.         sudo apt update
  8.        
  9.         sudo apt full-upgrade
  10.    
  11.         sudo apt-get install git build-essential xorg-dev xutils-dev x11proto-dri2-dev
  12.        
  13.         sudo apt-get install libltdl-dev libtool automake libdrm-dev
  14.        
  15.         sudo apt-get install libgtk-3-0 xserver-xorg xinit x11-xserver-utils
  16.                    
  17.         git clone https://github.com/ssvb/xf86-video-fbturbo.git
  18.        
  19.         cd xf86-video-fbturbo
  20.        
  21.         autoreconf -vi
  22.        
  23.         ./configure --prefix=/usr
  24.        
  25.         make
  26.        
  27.         sudo make install
  28.        
  29.         sudo cp xorg.conf /etc/X11/xorg.conf
  30.                
  31. #Octoscreen install:
  32.  
  33.     #(Follow install instructions on Octoscreen Releases Page)
  34.     #Run:
  35.        
  36.         sudo apt-get install libgtk-3-0 xserver-xorg xinit x11-xserver-utils
  37.        
  38.         wget https://github.com/Z-Bolt/OctoScreen/releases/download/v2.2.1/octoscreen_2.2-2_armhf.deb
  39.        
  40.         sudo dpkg -i octoscreen_2.2-2_armhf.deb
  41.    
  42. #Edit Octoscreen Resolution
  43.  
  44.     #Run:
  45.    
  46.         sudo nano /etc/octoscreen/config
  47.        
  48.     #Edit OCTOSCREEN RESOLUTION as below:
  49.         OCTOSCREEN_RESOLUTION=800x533
  50.        
  51.         #ctrl-o
  52.         #enter
  53.         #ctrl-x
  54.        
  55. #Install Touchscreen driver:
  56.  
  57. #Run:
  58.    
  59.     git clone https://github.com/Elecrow-keen/Elecrow-LCD35.git
  60.  
  61.     cd Elecrow-LCD35
  62.  
  63.     sudo ./Elecrow-LCD35
  64.  
  65.     sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
  66.    
  67.     #Add following lines between "Option SwapAxes" and EndSection. This is for rotating the touch coordinates
  68.         Option "InvertX" "true"
  69.         Option "InvertY" "true"
  70.    
  71.     #Go to the bottom of the text and hit "enter" to create a blank line.
  72.     #After that line type in the following lines:
  73.         Section “Device”
  74.           Identifier “touchscreen”
  75.           Driver “fbdev”
  76.           Option “fbdev” “/dev/fb0”
  77.         EndSection
  78.        
  79.     #ctrl-o
  80.     #enter
  81.     #ctrl-x
  82.    
  83. #Install fbcp to "clone" the HDMI output:
  84.  
  85. #Run:  
  86.     sudo apt-get -y install cmake
  87.    
  88.     git clone https://github.com/tasanakorn/rpi-fbcp
  89.    
  90.     cd rpi-fbcp
  91.    
  92.     mkdir build
  93.    
  94.     cd build
  95.    
  96.     cmake ..
  97.    
  98.     make
  99.    
  100.     sudo install fbcp /usr/local/bin/fbcp  
  101.  
  102. #Make fbcp start on every boot:
  103.  
  104. #Run:  
  105.     sudo nano /etc/rc.local
  106.  
  107. #Go at the end of file (but before the exit 0 ) and add a line where to find fbcp :
  108.  
  109.     /usr/local/bin/fbcp &  
  110.    
  111.     #ctrl-o5
  112.     #enter
  113.     #ctrl-x
  114.    
  115. #Activate and setup HDMI:
  116.  
  117. #Run:  
  118.     sudo nano /boot/config.txt
  119.  
  120.     #Uncomment the following and change resolution
  121.         framebuffer_width=800
  122.         framebuffer_height=533
  123.  
  124.     #add line
  125.         hdmi_cvt 800 533 60 6 0 0 0
  126.  
  127.     #edit line starting in dtoverlay=elecrow35a to include rotation (180 = 270)
  128.         dtoverlay=elecrow35a,rotate=270,speed=22000000,fps=60      
  129.    
  130.     #ctrl-o
  131.     #enter
  132.     #ctrl-x
  133.    
  134.     sudo reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement