Rootfs problem : random logouts


rootfs linaro-buster-alip-dragonboard-820c-407.img.gz

i am using the 407 rootfs in db820c, it randmoly logs out in gui, need to login every time it logouts and closes the process opened in previous log in .
please suggest.


Is it a crash related to: Facing crash issues in Kwin-x11 5.14.5
Can you try the proposed workaround (updating mesa).

aftr trying this

echo “deb unstable main contrib non-free” >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get -t unstable install libgl1-mesa-dri

board does not boots to ui, it stops at terminal login.

Facing same issue after applying work-around.

if it doesn’t reboot can you journalctl --boot=0 > journal.log and attach that? (Or if it rebooted, then use --boot=-1)

@robclark,Thanks for the reply.
This rootfs is not having the work-around. While trying to install some packages board crashed to login screen.
Refer line number 945 :

Log of rootfs with workaround, UI is not up

hmm, I was expecting to see Xorg logs in the journal… maybe you need to attach /var/log/Xorg.0.log from the two cases?


libgl1-mesa-dri is 18.3.6-2

journalctl --boot=0 > journal.log -
Xorg.0.log -


not really seeing any useful hint in the logs. Any chance of attaching gdb to Xorg process before it crashes and getting a backtrace?

backtrace log

can you get that with mesa debug syms installed?

(I think on debian that would be something like ‘apt install libgl1-mesa-dri-dbgsym’)


installed the libgl1-mesa-dri-dbgsym in debian.

here is the latest gdb log

if i try to use the 19.3.1-4 unstable version Xorg will not load.

journal.log_19.3.1-4 -

Xorg.0.log_19.3.1-4 -

Do we have any update on this issue?

i tried debugging the issue, not able to fix the problem in stable and unstable versions of libgl1, got some alternative to use the testing version which is stable.

echo “deb testing main contrib non-free” >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get -t testing install libgl1-mesa-dri

This will update the mesa version
testing 19.2.6-1


1 Like

@Loic @robclark

since testing version is moved to [19.3.3-1]

no gui comes after installing this version.

earlier version of 19.2.6-1 the gui was stable. 18.3.6-2 version intermittent logouts . How to fix this issue?
Any suggestion how to install 19.2.6-1 -


I believe should solve this. I’ve tagged this to also be picked up on the 20.0 release branch. Going back to 19.3 will require some minor backporting… I could provide a patch to try but don’t have an easy way to test it.


Do we need few other changes in mesa other than ctx->batch patch for 19.1.1 version?

i tried this patch on mesa-19.1.1 in debian
But after the boot in hdmi, only mouse cursor(able to move the positions in display) and black blank screen

sudo apt-get build-dep libgl1-mesa-dri
sudo apt-get source libgl1-mesa-dri
sudo apt-get install fakeroot gcc
cd mesa-19.1.1
this will download the mesa-19.1.1 src , added the ctx->batch to be NULL patch
dpkg-buildpackage -b -us -uc

sudo dpkg -i libgl1-mesa-dri_19.1.1-1+linaro2_arm64.deb
sudo dpkg -i libgl1-mesa-dri-dbgsym_19.1.1-1+linaro2_arm64.deb

after reboot blank screen and mouse cursor


that backport is missing a hunk in batch_flush(), I wouldn’t really expect it to work.

Possibly backporting first would be enough. I think it probably should be on 19.3, but less sure about older versions of mesa.