Ginn is not suspend/resume safe
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ginn |
Triaged
|
Medium
|
Unassigned |
Bug Description
I know that ginn is in early development but as I have the Apple magic trackpad I'm eager for ginn and try to help by testing it.
What I've observed is that ginn is not suspend/resume safe. The trackpad is connected via bluetooth and switches off/disconnects when I suspend the computer, so after a resume, the trackpad is not available. But ginn is trying to read/get data from it and consumes 100% of the cpu (core).
I did a strace on ginn and this is the output after resume (only the last few lines - the first line is the debug output of the last gesture event):
write(1, "\tattr touch 1 y=509.246765\n", 27 attr touch 1 y=509.246765
) = 27
read(3, 0xe9abb4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
select(4, [3], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted)
select(4, [3], NULL, NULL, NULL) = 1 (in [3])
read(3, "\"\0\v\
There is no further output after resume, even if I power on the device. It stops at the last read. Stracing a newly started ginn, the output is:
read(3, 0xa70bb4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
select(4, [3], NULL, NULL, NULL) = 1 (in [3])
read(3, "#\236\
write(1, "Gesture type 0 updated\n", 23Gesture type 0 updated
) = 23
I hope this info helps to make ginn aware of suspends - I guess it just has to stop the read operation and try it again.
affects: | ginn → utouch-geis |
Changed in utouch-geis: | |
importance: | Undecided → Medium |
status: | New → Triaged |
affects: | utouch-geis → ginn |
Ginn is an application using geis. The problem seems to come from there (or maybe a lower layer).
Thanks a lot for reporting this bug !