박민혀기

라즈베리파이 Rotate HDMI(Monitor), Rotate Touchscreen 본문

Raspiberry Pi

라즈베리파이 Rotate HDMI(Monitor), Rotate Touchscreen

박민혀기 2023. 1. 21. 12:16

Rotate HDMI(Monitor)

apt-get update
apt-get upgrade

Preferences -> Screen Configuration
오른쪽 마우스 클릭 Orientation -> (원하는 회전 방향 클릭)

Monitor 화면이 원하는 방향으로 회전된 걸 확인할 수 있다!

 

Rotate Touchscreen

sudo nano /usr/share/X11/xorg.conf.d/40-libinput.conf

Section "InputClass"
	Identifier "libinput touchscreen catchall"
	MatchIsTouchscreen "on"
	Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
	MatchDevicePath "/dev/input/event*"
	Driver "libinput"
EndSection

90° = 옵션 "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
180° = 옵션 "TransformationMatrix" "-1 0 1 0 -1 1 0 0 1"
270° = 옵션 "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"

 

Reboot 후 Rotate Touchscreen된 걸 확인할 수 있다.