RK3568-ubuntu旋转显示和触摸

旋转屏幕显示

临时生效:xrandr -o <normal,inverted,left,right,0,1,2,3>
永久生效:/etc/X11/Xsession.d/55gnome-session_gnomerc最后一行添加临时生效命令

旋转屏幕触摸

方法1:
	cp /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d/
	vi /etc/X11/xorg.conf.d/40-libinput.conf的Identifier "libinput touchscreen catchall"后添加一行
		Option "CalibrationMatrix" "1 0 0 0 1 0 0 0 1"//正向显示
		Option "CalibrationMatrix" "0 -1 1 1 0 0 0 0 1"//顺时针旋转90度
		Option "CalibrationMatrix" "-1 0 1 0 -1 1 0 0 1"//顺时针旋转180度
		Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1"//顺时针旋转270度
方法2:
	xinput list查看输入事件id
	xinput set-prop id "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1	//旋转180度

拓展

为什么在/etc/X11/Xsession.d/55gnome-session_gnomerc最后一行添加临时生效命令就可以永久生效?哪个程序读取的这个配置文件?
	/etc/X11/Xsession脚本运行run-parts读取配置文件
	SYSSESSIONDIR=/etc/X11/Xsession.d
	SESSIONFILES=$(run-parts --list $SYSSESSIONDIR)
为什么cp /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d/这两个路径文件有什么关联?哪个程序读取的这个配置文件?
	系统默认配置文件/usr/share/X11/xorg.conf.d/40-libinput.conf 
	用户自定义配置文件/etc/X11/xorg.conf.d/40-libinput.conf,优先级更高。
	Xorg启动时会优先读取/etc/X11/xorg.conf.d/40-libinput.conf文件。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Paper_Love

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值