[SailfishDevel] Signals not received when screen is locked

Dietmar Schwertberger maillist at schwertberger.de
Tue Jan 13 18:08:36 UTC 2015


Hi!

I think that with the last OS updates the energy saving mechanisms are too aggressive.

I'm using PyQt with Python 3.

After update 10 (and probably already 9) I don't always receive the relevant signals
from a QMediaPlayer object.

A few seconds after the screen is locked, I don't receive these signals any more:
  - positionChanged
  - mediaStatusChanged
  - stateChanged

Well, I can live without positionChanged while the screen is locked, but
at least one of the others still should work.

The QTimer signals behave similar, so I would assume that the whole Qt event
loop is affected.

Currently the only workaround seems to have a second non-Qt thread to poll
for any changes.
Is there a better solution? Can I e.g. register some events that should
always be delivered?


Regards,

Dietmar




More information about the Devel mailing list