Merge lp:~hui.wang/unity-settings-daemon/unity-settings-daemon-1404-fix-touchscreen-reconnect into lp:unity-settings-daemon/14.04
| Status: | Rejected |
|---|---|
| Rejected by: | Sebastien Bacher on 2016-05-23 |
| Proposed branch: | lp:~hui.wang/unity-settings-daemon/unity-settings-daemon-1404-fix-touchscreen-reconnect |
| Merge into: | lp:unity-settings-daemon/14.04 |
| Diff against target: |
69 lines (+51/-1) 1 file modified
plugins/xrandr/gsd-xrandr-manager.c (+51/-1) |
| To merge this branch: | bzr merge lp:~hui.wang/unity-settings-daemon/unity-settings-daemon-1404-fix-touchscreen-reconnect |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Sebastien Bacher | Disapprove on 2016-05-23 | ||
| Alberto Milone | 2016-05-04 | Approve on 2016-05-04 | |
|
Review via email:
|
|||
Description of the Change
We have an OEM bug, it has something to do with the u-s-d
touchscreen mapping, Please take a look. thanks.
https:/
This is my investigation:
When we change the display resolution, the LG touchscreen will be
disconnected from usb host bus temporarily.
And at that time, the unity-settings-
(GnomeRRScreen *screen, gpointer data)--
(GsdXrandrManager *manager)
(GsdXrandrManager *manager, GnomeRRScreen *screen, GnomeRRConfig
*config)
GnomeRRScreen *rr_screen)
guint *width, guint *height)
(display), deviceid, &n_info) CRASHED IN THIS FUNCTION
It looks like the usb touchscreen is disconnected temporarily, but
the unity-settings-
XIQueryDevice() to query this input device, then it crash inside
this function.
This is the kernel log when changing display resolution:
[ 62.941417] usb 1-10: USB disconnect, device number 7
[ 63.777166] do_trap: 154 callbacks suppressed
[ 63.777171] traps: unity-settings-
ip:7f8a69913c13 sp:7ffd1829bb50 error:0
[ 63.935059] usb 1-10: new full-speed USB device number 8 using xhci_hcd
[ 64.119528] usb 1-10: not running at top speed; connect to a high
speed hub
[ 64.120303] usb 1-10: New USB device found, idVendor=1fd2, idProduct=5003
[ 64.120305] usb 1-10: New USB device strings: Mfr=1, Product=2,
SerialNumber=0
[ 64.120307] usb 1-10: Product: LGD AIT Touch Controller
[ 64.120308] usb 1-10: Manufacturer: Melfas
[ 64.123083] input: Melfas LGD AIT Touch Controller as /devices/
[ 64.175930] hid-multitouch 0003:1FD2:
input,hiddev0,
Controller] on usb-0000:
[ 64.176589] hid-generic 0003:1FD2:
HID v1.11 Device [Melfas LGD AIT Touch Controller] on
usb-0000:
| Sebastien Bacher (seb128) wrote : | # |
thanks for the work, settings as rejected as discussed on https:/


The code looks good to me. It seems like a reasonable workaround. Thanks.