旋转桌面 1. 先把校准程序关掉(电容屏) vi /etc/X11/Xsession.d/30xinput_calibrate.sh 注释 /usr/bin/xinput_calibrator_once.sh if [ "$HAVE_TOUCHSCREEN" = "0" ]; then # /usr/bin/xinput_calibrator_once.sh fi
2. 使用xinput_calibrator --list命令查看设备名 Device "goodix-gt911" id=7 此命令需先执行环境变量export DISPLAY=:0.0后才能正常执行
3. 修改/etc/X11/xorg.conf Section "InputClass" Identifier "calibration" MatchProduct "goodix-gt911" Option "SwapAxes" "1" EndSection
4. 添加竖屏相关 vi /etc/xrand.sh #!/bin/sh export DISPLAY=:0.0 xrandr -o 1 DEG=90 echo "90" > /etc/rotation 保存退出后在命令行chmod 777 xrand.sh给权限
5. 将xrand.sh添加到开机自启动/etc/rc.local vi /etc/rc.local 在最后一行命令 exit 0前,写入: ./etc/xrand.sh
6. vi /etc/profile 在umask 022 前,写入: export DISPLAY=:0.0 旋转开机动画 vi /etc/X11/xorg.conf 在Section "Device" Identifier "i.MX Accelerated Framebuffer Device" Driver "vivante" Option "fbdev" "/dev/fb0" Option "vivante_fbdev" "/dev/fb0" Option "HWcursor" "false" 后,添加: Option "Rotate" "left"
旋转开机LOGO 只需在烧写阶段更换一张竖着的图片即可 |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-22 10:05
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.