RASPBERRY PI
[ Raspberry Pi ] 화면회전 및 터치보정
임경민
2018. 5. 11. 17:59
라즈베리파이 화면 회전
라즈베리파이를 화면을 회전시킨다.
sudo nano /boot/config.txt
display_rotate = 3 (0 = 0도, 1 = 90도, 2 = 180도, 3 = 270도)
sudo nano /boot/config.txt
display_rotate = 3 (0 = 0도, 1 = 90도, 2 = 180도, 3 = 270도)
라즈베리파이 터치 보정
라즈베리파이를 화면을 회전시키면 터치를 보정시켜야 한다.
sudo nano /etc/X11/xorg.conf.d/90-rotate-screen.conf
( xorg.conf.d가 없을경우 생성)
sudo nano /usr/share/X11/xorg.conf.d/90-rotate-screen.conf
아래 내용 복사해서 붙여넣기
Section "Input Class"
Identifier "RotateTouchCW"
MatchProduct "ILITEK ILITEK-TP"
Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
EndSection
sudo nano /etc/X11/xorg.conf.d/90-rotate-screen.conf
( xorg.conf.d가 없을경우 생성)
sudo nano /usr/share/X11/xorg.conf.d/90-rotate-screen.conf
아래 내용 복사해서 붙여넣기
Section "Input Class"
Identifier "RotateTouchCW"
MatchProduct "ILITEK ILITEK-TP"
Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
EndSection