SDK 3.02
AM3358
我们使用的是4线电阻触摸屏,目前使用的校准方式是tslib的校准工具。目前出现以下问题,请教大家:
1.dts文件里的ti,wire-config = <0x00 0x11 0x22 0x33>;的顺序是按X+,X-,Y+,Y-来排序的还是按AIN0,AN1,AN2,AN3来排序的。
2..运行ts_calibrate校准程序的时候,会出现2种现象:第一种问题是:运行该程序后,不点击屏幕触摸中断一直被触发。但是这个时候有的情况下可以继续校准,连续点完5个十字完整校准程序,有时候是点一个十字,直接校准完成。出现如下的log。
Took 1 samples…
Top left : X = 14 Y = 4059
Took 1 samples…
Top right : X = 14 Y = 4060
Took 2 samples…
Bot right : X = 14 Y = 4062
Took 1 samples…
Bot left : X = 13 Y = 4062
Took 1 samples…
Center : X = 12 Y = 4062
-947.000000 25.880371 0.392090
-1296.000000 15.476318 0.413574
在校准完成的时候,我运行QT下的样例程序,发现触摸显示的上下相反,点击屏幕上方,触摸反应在屏幕下方。这个情况看上去是X或则Y反了,但是当插上鼠标,屏幕上能出现鼠标箭头,发现触摸点击频率的时候,鼠标箭头是跟随触摸的位置的,但是实际触摸在应用程序上显示是上下相反的。这个是怎么回事?
HG:
https://e2e.ti.com/support/arm/sitara_arm/f/791/p/434385/1802050
该贴有完整的使用讨论。
通常只需对TQ335x.dts文件做如下修改:
1. 检查I2C引脚的PinMux配置
2. 配置INT和RESET引脚
3. 在I2C节点内添加设备信息
zizhen hu:
回复 HG:
你好:
补充:我上传了视频,在附件上,您可以看下,帮忙分析一下,谢谢
我碰到的情况应该不太一样。我的是4线电阻屏,根据那个帖子里讨论的问题,我做/etc/init.d/matrix-gui-2.0 stop操作了之后,没有出现分辨率的信息。
root@am335x-evm:~# export QT_LOGGING_RULES=qt.qpa.input=trueroot@am335x-evm:~# /etc/init.d/matrix-gui-2.0 stopStopping Matrix GUI application.
但是我用下面的命令出来的分辨率好像是正确的。
root@am335x-evm:~# cat /var/log/weston.log Date: 2016-12-30 UTC[01:15:42.808] weston 1.9.0 http://wayland.freedesktop.org Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.9.0 Build: 1.8.93-2-gb05cdb8 configure.ac: bump to version 1.9.0 for the official release (2015-09-21 18:11:26 -0700)[01:15:42.808] OS: Linux, 4.4.32-gadde2ca9f8, #9 PREEMPT Tue Dec 27 23:50:40 PST 2016, armv7l[01:15:42.817] Using config file '/etc//weston.ini'[01:15:42.850] Loading module '/usr/lib/weston/drm-backend.so'[01:15:43.076] Output repaint window is 7 ms maximum.[01:15:43.076] initializing drm backend[01:15:43.165] using /dev/dri/card0[01:15:43.198] Loading module '/usr/lib/weston/gl-renderer.so'failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directoryfailed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directoryloaded module : gbm_pvr.sofound valid GBM backend : gbm_pvr.so[01:15:43.478] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.[01:15:43.640] warning: EGL_EXT_buffer_age not supported. Performance could be affected.[01:15:43.640] Retrieving EGL client extension string failed.[01:15:43.677] input device 'ti-tsc', /dev/input/event0 is tagged by udev as: Touchscreen[01:15:43.677] input device 'ti-tsc', /dev/input/event0 is a touch device[01:15:43.922] EGL version: 1.4 build 1.14@3699939 (MAIN)[01:15:43.922] EGL vendor: Imagination Technologies[01:15:43.922] EGL client APIs: OpenGL_ES [01:15:43.922] EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import[01:15:43.923] GL version: OpenGL ES 2.0 build 1.14@3699939 (MAIN)[01:15:43.923] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN)[01:15:43.923] GL vendor: Imagination Technologies[01:15:43.923] GL renderer: PowerVR SGX 530[01:15:43.923] GL extensions: GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_vertex_half_float GL_OES_texture_float GL_OES_texture_half_float GL_OES_element_index_uint GL_OES_mapbuffer GL_OES_fragment_precision_high GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_required_internalformat GL_OES_depth_texture GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_standard_derivatives GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_surfaceless_context GL_EXT_discard_framebuffer GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_IMG_shader_binary GL_IMG_texture_compression_pvrtc GL_IMG_texture_npot GL_IMG_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_program_binary GL_IMG_uniform_buffer_object GL_IMG_multisampled_render_to_texture GL_KHR_debug[01:15:43.923] GL ES 2 renderer features: read-back format: RGBA wl_shm sub-image to texture: no EGL Wayland extension: yes[01:15:43.923] Chosen EGL config details: RGBA bits: 8 8 8 8 swap interval range: 1 – 1[01:15:43.923] cursor buffers unavailable, using gl cursors[01:15:43.924] Initialized backlight, device /sys/class/backlight/backlight[01:15:43.938] Applying calibration: 1.054107 1.356883 -803.330505 -0.322960 0.605551 277.786377 (normalized -1.004163 0.578722)[01:15:43.938] Output LVDS-1, (connector 26, crtc 24) mode 800×480@53.8, preferred, current mode 800×480@53.8, preferred[01:15:43.939] Compositor capabilities: arbitrary surface rotation: yes screen capture uses y-flip: yes presentation clock: CLOCK_MONOTONIC, id 1[01:15:43.958] Loading module '/usr/lib/weston/desktop-shell.so'[01:15:43.972] launching '/usr/libexec/weston-keyboard'[01:15:43.975] launching '/usr/libexec/weston-desktop-shell'[01:15:44.814] DRM: DPMS: failed property set for LVDS-1
Jian Zhou:
回复 zizhen hu:
硬件连接部分有参考TI的DEMO板么?
leo chen:
回复 zizhen hu:
应该还是QT程序的问题,是不是有相关的设置项?
zizhen hu:
回复 leo chen:
不清楚,我怀疑和文件系统有关系,有谁能解释一下吗?
我用arago-base-tisdk-image-am335x-evm.tar.xz tisdk-rootfs-image-am335x-evm.tar.xz这两个文件系统,触摸现象正好相反。
另外请教下,我运行ts_cal程序校准的时候,有时候会自动触发触摸屏中断,点不到第一个位置的点。打印信息来看,第一个点没有点到,但是收到了触摸屏中断。但是不运行触摸屏程序的时候,则不会出现这种不碰触摸屏,就收到触摸中断的现象。
user4835699:
修改一下触摸屏驱动 我自己修改了 没有问题
yunbo zhang:
回复 user4835699:
如何做的?
longhua qin:
回复 user4835699:
怎么修改的啊