Merge lp:~mzanetti/unity8/inputinfo-debug into lp:unity8

Proposed by Michael Zanetti on 2015-12-01
Status: Merged
Approved by: Michael Terry on 2015-12-07
Approved revision: 2077
Merged at revision: 2091
Proposed branch: lp:~mzanetti/unity8/inputinfo-debug
Merge into: lp:unity8
Diff against target: 20 lines (+3/-0)
1 file modified
plugins/Unity/InputInfo/linux/qinputdeviceinfo_linux.cpp (+3/-0)
To merge this branch: bzr merge lp:~mzanetti/unity8/inputinfo-debug
Reviewer Review Type Date Requested Status
Michael Terry Approve on 2015-12-07
PS Jenkins bot continuous-integration Needs Fixing on 2015-12-04
Michał Sawicz 2015-12-01 Needs Fixing on 2015-12-04
Review via email: mp+279117@code.launchpad.net

Commit Message

add some debug prints to the uinput backend

this should make debugging bug reports easier

Description of the Change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
n
 * Did you perform an exploratory manual test run of your code change and any related functionality?
not really, no
 * Did you make sure that your branch does not contain spurious tags?
y
 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
n/a
 * If you changed the UI, has there been a design review?
n/a

To post a comment you must log in.
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2076
http://jenkins.qa.ubuntu.com/job/unity8-ci/6855/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5523
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/270/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1566
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/269
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1461
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1461
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/268
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/267
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4327
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5537
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5537/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25667
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/93/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/269
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/269/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25666

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6855/rebuild

review: Needs Fixing (continuous-integration)
Michał Sawicz (saviq) wrote :

I'm not getting the "added" debug when connecting a keyboard, excerpt from (dis)connecting twice:

Input device removed: "Logitech Keyboard K480" "/dev/input/input7" QFlags(0x1|0x10)
Input device removed: "Logitech Keyboard K480" "/dev/input/input8" QFlags(0x1|0x10)

review: Needs Fixing
lp:~mzanetti/unity8/inputinfo-debug updated on 2015-12-04
2077. By Michael Zanetti on 2015-12-04

also print info when we cannot fetch full details

PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2077
http://jenkins.qa.ubuntu.com/job/unity8-ci/6885/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5607
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/300/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1596
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/299
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1491
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1491
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/298
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/297
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4382
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5621
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5621/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25824
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/112/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/299
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/299/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25825

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6885/rebuild

review: Needs Fixing (continuous-integration)
Michael Terry (mterry) wrote :

Works for me now.

 * Did you perform an exploratory manual test run of the code change and any related functionality?
 Yes

 * Did CI run pass? If not, please explain why.
 No, but for unrelated reasons

 * Did you make sure that the branch does not contain spurious tags?
 Yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/Unity/InputInfo/linux/qinputdeviceinfo_linux.cpp'
2--- plugins/Unity/InputInfo/linux/qinputdeviceinfo_linux.cpp 2015-10-01 10:58:40 +0000
3+++ plugins/Unity/InputInfo/linux/qinputdeviceinfo_linux.cpp 2015-12-04 19:48:44 +0000
4@@ -159,6 +159,8 @@
5 }
6 eventPath = inputDevice->devicePath();
7
8+ qDebug() << "Input device added:" << inputDevice->name() << inputDevice->devicePath() << inputDevice->type();
9+
10 fd = open(eventPath.toLatin1(), O_RDONLY|O_NONBLOCK);
11 if (fd == -1) {
12 return inputDevice;
13@@ -205,6 +207,7 @@
14 // this path is not a full evdev path
15 Q_FOREACH (const QString devicePath, deviceMap.keys()) {
16 if (devicePath.contains(path)) {
17+ qDebug() << "Input device removed:" << deviceMap.value(devicePath)->name() << devicePath << deviceMap.value(devicePath)->type();
18 deviceMap.remove(devicePath);
19 Q_EMIT deviceRemoved(devicePath);
20 }

Subscribers

People subscribed via source and target branches