Linux/Wayland

[weston] Boot touch ISSUE

깡죠 2018. 2. 12. 16:08


참고  : https://lists.yoctoproject.org/pipermail/meta-freescale/2017-January/019965.html


[meta-freescale] [PATCH v2 5/5] weston: Touch events cause startup failure

Wayland 동작시 터치 디바이스 이벤트가 발생하면  죽는 현상 발생

view 에 대한 예외처리가 추가되어 weston 초기화시 터치가 발생하여도 문제가 발생하지 않음


동작 확인 
감사합니다.

vim src/compositor.c


src/compositor.c:1373:weston_view_from_global_fixed(struct weston_view *view


view 에 따른 예외처리 추가됨.


if(view != NULL) {

                weston_view_from_global_float(view,

                                                wl_fixed_to_double(x),

                                                wl_fixed_to_double(y),

                                                &vxf, &vyf);

                *vx = wl_fixed_from_double(vxf);

                *vy = wl_fixed_from_double(vyf);

 }





현재버전 1.9

https://gerrit.automotivelinux.org/gerrit/#/c/11203/2/meta-agl/recipes-graphics/wayland/weston/0001-compositor-drm.c-Launch-without-input-devices.patch


drm 초기화시 터치 디바이스를 확인하여 없을시 종료루틴 실행.


3073 static struct drm_backend *

3074 drm_backend_create(struct weston_compositor *compositor,

3075                       struct drm_parameters *param,

3076                       int *argc, char *argv[],

3077                       struct weston_config *config)

 

3171 //              goto err_sprite; 주석처리


 Input Device 에 따른 리턴처리 됨 강제적으로 GUI 를 출력하기위해서 코드 적용 완료