Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #!/bin/bash
  2. #script to set correct touchscreen orientation after x start
  3. #this won't rotate the displayed image, only the touchscreen input
  4. #to rotate the displayed image add the following to /boot/config.txt
  5. #"display_rotate=1" to rotate display 90 degrees
  6. #"display_rotate=3" to rotate display 270 degrees
  7.  
  8. # To execute this script on boot, add the following line:
  9. #@/etc/xdg/lxsession/LXDE-pi/screenflip.sh
  10. #to:
  11. #/etc/xdg/lxsession/LXDE-pi/autostart
  12.  
  13. xinput set-prop 'FT5406 memory based driver' 'Evdev Axes Swap' 1
  14.  
  15. #Uncomment this for 90 rotation
  16. xinput --set-prop 'FT5406 memory based driver' 'Evdev Axis Inversion' 0 1
  17.  
  18. #Uncomment this for 270 rotation
  19. #xinput --set-prop 'FT5406 memory based driver' 'Evdev Axis Inversion' 1 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement