Screen freezes and alternates two frames? Look here!
#1
First of all a disclaimer; I haven't had a chance to test this on the latest version of Mobian yet.

This will be a quick post about an issue I've discovered but I don't have the time to investigate it (I'll be quite busy in the next few days). Hopefully my research still helps someone.

I managed to capture this in dmesg when it happened (I got lucky and had an SSH session going):
Code:
[ 7251.715549] [drm:lima_sched_timedout_job] *ERROR* lima job timeout
[ 7252.962247] lima 1c40000.gpu: fail to save task state from phoc pid 1663: error task list is full
[ 7252.971463] lima 1c40000.gpu: gp task error int_state=0 status=0

Searching various bug trackers I found this open but stagnant bug report:
https://gitlab.freedesktop.org/lima/linux/-/issues/33

So it looks like the GPU either stalls or falls out of sync with the lima driver for whatever reason. I do suspect it has something to do with power delivery because the same issue won't happen if I do this:

Code:
echo powersave | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_governor

The most reliable way I've found to trigger the bug on my phone is do start downloading something big over LTE with wget. After somewhere between a few hundred MB and a GB you will notice the scrolling test going back and forth and you stop being able to interact with the phone through the touch screen.

At first I thought it was a hard crash and the power button only kept working through some weird quirk of interrupts offloaded from the main CPU, but as it turns out the rest of the system is fully functional. You can even recover most of the system (GUI tasks will be killed) by issuing this command:

Code:
sudo systemctl restart phosh.service

This should bring back the lock screen as if the system was freshly booted, but any non-GUI tasks are still running as if nothing happened.

That's about as far as I've been able to work things out so far. I think the appropriate thing to do here is to test the hack from the lima issue tracker (raising the scheduling error threshold above 1) and see if it helps the driver towards a successful recover. I'd try it myself if I had a build environment set up. Since this is an upstream issue I didn't post this on the Mobian issue tracker, but in retrospect I probably should've done that as well.
#2
I had this happen as well with downloads over wifi. So it's not limited to LTE.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Proximity sensor is oversensitive (was "Screen blanks when making call") treebeard 6 4,476 08-05-2024, 06:12 AM
Last Post: baptx
  Screen auto-rotation sensitivity mdk 0 918 12-26-2023, 06:08 AM
Last Post: mdk
  Screen stay black unless power key pressed short freelectro 0 940 06-24-2023, 01:55 PM
Last Post: freelectro
  Unsuspend → Black screen mdk 15 8,113 06-22-2023, 11:20 AM
Last Post: Melechtna
  Lock screen question: always squeekboard tuxcall 1 1,616 02-02-2023, 08:51 PM
Last Post: Haibara23
  [solved] Black screen at boot time mdk 0 1,291 01-13-2023, 03:33 AM
Last Post: mdk
  how to split screen? andrew907 2 2,187 08-08-2022, 09:38 AM
Last Post: andrew907
  on screen keyboard woes vusra 1 1,646 07-18-2022, 03:29 AM
Last Post: vusra
  Giving certain audio apps priority on the lock screen and pulldown 3x5co 0 1,132 07-17-2022, 10:34 AM
Last Post: 3x5co
  Won't boot, black screen mdk 4 3,727 07-03-2022, 06:38 PM
Last Post: Chief

Forum Jump:


Users browsing this thread: 1 Guest(s)