SHARE
TWEET

LCD-hdmi for Raspbian 9.8 Stretch

a guest Apr 12th, 2019 36 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # This is a modified "LCD-hdmi" script to replace the one in https://github.com/goodtft/LCD-show. Use this script for Raspbian 9.8 Stretch. Might not work with older or newer versions of Raspbian!
  3.  
  4. sudo rm -rf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
  5. sudo rm -rf /etc/X11/xorg.conf.d/99-calibration.conf
  6.  
  7. # Michel: if you ever used the unmoidified "LCD-hdmi" script from https://github.com/goodtft/LCD-show remove the /etc/modules file it created.
  8. # sudo rm -rf /etc/modules
  9. # Make a new file yourself called "/etc/modules" with (only) the following contents:
  10. #   i2c-dev
  11.  
  12. # Michel: the two lines below cause your desktop environment not to be started:
  13. # sudo cp -rf ./usr/modules-HDMI  /etc/modules
  14. # sudo cp -rf ./usr/99-fbturbo.conf-HDMI  /usr/share/X11/xorg.conf.d/99-fbturbo.conf
  15.  
  16. sudo cp ./boot/config-nomal.txt /boot/config.txt
  17.  
  18. if [ -b /dev/mmcblk0p7 ]
  19.    then
  20.       sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
  21.    else
  22.       sudo cp ./usr/cmdline.txt /boot/
  23. fi
  24.  
  25. sudo cp ./usr/inittab /etc/
  26. sudo reboot
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top