Sony Xperia X (suzu/F5121 & F5122)
-
@wdehoog said in Sony Xperia X (suzu/F5121 & F5122):
how are you playing the music?
I'm using preinstalled UBports Music app.
-
@c4pp4 Then I would expect the first track to be played ok (media-hub has the lock) and the next ones being 'interrupted' (media-hub) does not acquire a new lock for the next tracks).
If I remember well you can see the locks being aquired/released in /var/log/repowerd.log.
Something like requestSysState and clearSysState. Maybe it is worth checking to see if this is the issue. -
@wdehoog said in Sony Xperia X (suzu/F5121 & F5122):
Then I would expect the first track to be played ok
No, it's interrupted immediately after the screen is turned off.
/var/log/repowerd.log
OK, I'll check it.
-
Please, where can I find changes applied via System Settings > Updates named "Ubuntu touch" with number e.g. 335, 336 etc.?
-
@c4pp4 Is the Music app still in your list of apps that will not be suspended (marked 'prevent app suspension' in UTT)?
or use:
gsettings get com.canonical.qtmir lifecycle-exempt-appids
-
@wdehoog said in Sony Xperia X (suzu/F5121 & F5122):
Is the Music app still in your list of apps that will not be suspended
Yes it is. I don't think it's related to suspension. It looks like there is a very agressive powersave management or something like that. The Music app is active, but it plays about one second and then it's interrupted and after a while it plays and it's interrupted again. The same is SMS notification, it vibrates immediately but the sound notification is delayed. And now I find out it's related to the sound of incoming call, the same as SMS, it vibrates, but the melody is delayed and then played and interrupted as the Music player.
-
@c4pp4 still strange that some other apps can play without being interrupted. anything interesting in log files? /var/log/syslog or /var/log/repowerd.log or ~/.cache/upstart/media-hub.log
-
@wdehoog said in Sony Xperia X (suzu/F5121 & F5122):
anything interesting in log files?
I'll check it later if you don't mind.
-
@wdehoog
Maybe the problem is caused by this commit https://github.com/ubports/repowerd/commit/cfb1cec49ab53a33458112b7aa1ae61afba8e207I've compared /var/log/repowerd.log when Wi-Fi ON (music is interrupted) and OFF (music plays) and there are additional lines when Wi-Fi is ON:
2020-06-15T23:34:03.229697+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(,/) 2020-06-15T23:34:03.229754+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: deactivate_session() 2020-06-15T23:34:03.363673+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c3,/org/freedesktop/login1/session/c3) 2020-06-15T23:34:03.392526+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(,/) 2020-06-15T23:34:03.392601+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: deactivate_session() 2020-06-15T23:34:03.419897+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c3,/org/freedesktop/login1/session/c3) 2020-06-15T23:34:07.082551+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(,/) 2020-06-15T23:34:07.082593+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: deactivate_session() 2020-06-15T23:34:07.111357+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c3,/org/freedesktop/login1/session/c3)
-
@c4pp4 If the problems are caused by the repowerd commit you refer to then it remains strange that some apps do not suffer from this issue. The relation to wifi is also a mystery to me. I am afraid I cannot be of much help here.
-
@wdehoog I am not sure, that for example "Flas" is not related. Cause I noticed, that after a while it also stops. First I thought, it is because of the quality of My wifi connection .
-
anyway after updating now I have the exact same problem on my opo. boehoe....
-
@wdehoog
what is the update number in your case?BTW: The problem is not caused by the commit. I've tried repowerd without it.
-
@c4pp4 Any chance to go back to stable? Or to a previous image without this issue?
-
@c4pp4 I notice lots of logs in repowerd.log, lightdm.log and syslog. top shows lots of activity for systemd-logind and polkitd and sometimes Networkmanager.
still no idea what is going on.
since this is no sony-xperia-x specific problem we better continue somewhere else. a github issue?
-
@malditobastardo
I'd like to try a previous image too but I'm not sure how, maybe @fredldotme can help with it. I just compiled custom repowerd package to exclude the problem is not caused by the commit.@wdehoog
Maybe the problem is really media-hub and turning the wifi off just starts a network dbus service using wakelock and then the music is playing without interruptions or something like that. -
@wdehoog Should be fixed, it was the commit
-
@c4pp4 Hi. You tried to revert the commit 8 days ago and it did not help. I also tried to revert it and it did not help me either. Now todays update seems to work and indeed the commit is gone. But I suspect something else has also changed. I am probably wrong and it is of no use anyway since it now works.
-
This commit brings back almost everything in that commit back, except
modify it so that it actually respect suspend inhibitions when pressing
power button. -
Fingerprint scanner isn't mentioned in the post. Android version comes with fingerprint scanner. Does it work under UT as well ?