瑞芯微Rockchip开发者社区
直播中

张娟

7年用户 2014经验值
私信 关注
[问答]

如何修改RK3288 8.1的横屏显示?

如何修改RK3288 8.1的横屏显示?

回帖(1)

张瑞娟

2022-3-4 14:43:18
U-boot logo 显示的两张图片是 kernel 根目录下的 logo.bmp 和 logo_kernel.bmp,如果
需要更换,用同名的**横屏 bmp **替换掉,重新编译 resource.img 即可。
附:不一定要两张图片,可以只要一张,如果只有一张就保留 logo.bmp 这一张即可。

sudo ./tools/resource_tool/pack_resource.sh tools/resource_tool/resources/ …/kerne
l/resource.img resource.img tools/resource_tool/resource_tool
执 行 后 会 将 tools/resource_tool/resources/ 目 录 下 的 动 画 图 片 资 源 打 包
在…/kernel/resource.img,生成新的 resource.img 在 uboot 根目录。

开机动画横屏


修改 makefile 中配置 BOOT_SHUTDOWN_ANIMATION_RINGING := true

制作资源图片均为横屏的开机动画,将 开机动画.zip 复制到 device/rockchip/common/bootanimation.zip (源码路径),

编译结束后会拷贝到 out 目录下,烧写即可

Android 应用层显示横屏


buildmaketoolsbuildinfo.sh 中增加如下配置

echo "ro.sf.hwrotation=90"
echo "ro.sf.fakerotation=true"

TP坐标,交换 x y 坐标实现旋转


kerneldriversinputtouchscreengt9xxgt9xx.c

@@ -430,7 +430,7 @@ static void gtp_touch_down(struct goodix_ts_data* ts,s32 id,s32 x,s32 y,s32 w)
                if (gtp_y_reverse)
                        y = ts->abs_y_max - y;
        }
-
+    y = ts->abs_y_max - y;
#if GTP_ICS_SLOT_REPORT
     input_mt_slot(ts->input_dev, id);
     input_report_abs(ts->input_dev, ABS_MT_TRACKING_ID, id);
@@ -2639,9 +2639,9 @@ static int goodix_ts_probe(struct i2c_client *client, const struct i2c_device_id
        } else if (val == 911) {
                m89or101 = FALSE;
                bgt911 = TRUE;
-               gtp_change_x2y = FALSE;
+               gtp_change_x2y = TRUE;
                gtp_x_reverse = FALSE;
-               gtp_y_reverse = TRUE;
+               gtp_y_reverse = FALSE;
        } else if (val == 970) {
                m89or101 = FALSE;
                bgt911 = FALSE;
举报

更多回帖

发帖
×
20
完善资料,
赚取积分