Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Install Octoscreen
- #Dependencies install (if problems encountered at autoreconf then go over install lines again:
- #Run:
- sudo apt update
- sudo apt full-upgrade
- sudo apt-get install git build-essential xorg-dev xutils-dev x11proto-dri2-dev
- sudo apt-get install libltdl-dev libtool automake libdrm-dev
- sudo apt-get install libgtk-3-0 xserver-xorg xinit x11-xserver-utils
- git clone https://github.com/ssvb/xf86-video-fbturbo.git
- cd xf86-video-fbturbo
- autoreconf -vi
- ./configure --prefix=/usr
- make
- sudo make install
- sudo cp xorg.conf /etc/X11/xorg.conf
- #Octoscreen install:
- #(Follow install instructions on Octoscreen Releases Page)
- #Run:
- sudo apt-get install libgtk-3-0 xserver-xorg xinit x11-xserver-utils
- wget https://github.com/Z-Bolt/OctoScreen/releases/download/v2.2.1/octoscreen_2.2-2_armhf.deb
- sudo dpkg -i octoscreen_2.2-2_armhf.deb
- #Edit Octoscreen Resolution
- #Run:
- sudo nano /etc/octoscreen/config
- #Edit OCTOSCREEN RESOLUTION as below:
- OCTOSCREEN_RESOLUTION=800x533
- #ctrl-o
- #enter
- #ctrl-x
- #Install Touchscreen driver:
- #Run:
- git clone https://github.com/Elecrow-keen/Elecrow-LCD35.git
- cd Elecrow-LCD35
- sudo ./Elecrow-LCD35
- sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
- #Add following lines between "Option SwapAxes" and EndSection. This is for rotating the touch coordinates
- Option "InvertX" "true"
- Option "InvertY" "true"
- #Go to the bottom of the text and hit "enter" to create a blank line.
- #After that line type in the following lines:
- Section “Device”
- Identifier “touchscreen”
- Driver “fbdev”
- Option “fbdev” “/dev/fb0”
- EndSection
- #ctrl-o
- #enter
- #ctrl-x
- #Install fbcp to "clone" the HDMI output:
- #Run:
- sudo apt-get -y install cmake
- git clone https://github.com/tasanakorn/rpi-fbcp
- cd rpi-fbcp
- mkdir build
- cd build
- cmake ..
- make
- sudo install fbcp /usr/local/bin/fbcp
- #Make fbcp start on every boot:
- #Run:
- sudo nano /etc/rc.local
- #Go at the end of file (but before the exit 0 ) and add a line where to find fbcp :
- /usr/local/bin/fbcp &
- #ctrl-o5
- #enter
- #ctrl-x
- #Activate and setup HDMI:
- #Run:
- sudo nano /boot/config.txt
- #Uncomment the following and change resolution
- framebuffer_width=800
- framebuffer_height=533
- #add line
- hdmi_cvt 800 533 60 6 0 0 0
- #edit line starting in dtoverlay=elecrow35a to include rotation (180 = 270)
- dtoverlay=elecrow35a,rotate=270,speed=22000000,fps=60
- #ctrl-o
- #enter
- #ctrl-x
- sudo reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement