You are not logged in.

#1 2020-09-20 18:12:31

Shred53
Member
Registered: 2020-09-20
Posts: 6

[SOLVED] Random freezes with Lithium

Hi !

I've recently updated from Helium to Lithium, and everything is working great except for one thing : my screen freezes sometimes. It can be 30s or 5h after booting, and neither the trackpad nor the mouse is usable, which only leaves a hard shutdown to get my computer back.

My laptop is an ASUS X205TA. I have seen some accounts of laptops freezing in the same fashion due to missing drivers and I suspect that my issue is related to the network card (BCM43341B0). Indeed, I always get the error : "brcmfmac mmc0:0001:1: firmware: failed to load brcm/brcmfmac43340-sdio.clm_blob (-2)" on startup. However, this file is nowhere to be found on the internet, and from what I could find clm_blob files are unnecessary with newer Broadcom cards because they are embedded in some way in the .bin file. I should add that I can connect via wifi and bluetooth just fine, so the card seems to be working.

If you guys have any suggestions, I'm all ears !

Last edited by Shred53 (2020-10-17 17:22:21)

Offline

#2 2020-09-20 20:53:34

sleekmason
Member
Registered: 2018-05-22
Posts: 209

Re: [SOLVED] Random freezes with Lithium

Are you using Compton?  My laptop was having issues with Compton enabled.  Click on a menu and wham!, no way to do anything else.

Offline

#3 2020-09-20 21:12:40

Shred53
Member
Registered: 2020-09-20
Posts: 6

Re: [SOLVED] Random freezes with Lithium

I do have compton enabled, but it didn't cause any trouble when I was running Helium, and the freezes don't specifically occur when I click on something. I can try to tweak the .conf file though. Do you know which processes in compton made your screen freeze ?

Offline

#4 2020-09-20 21:26:38

damo
....moderator....
Registered: 2015-08-20
Posts: 6,329

Re: [SOLVED] Random freezes with Lithium

You could enable journal persistence, so you can see why the last boot failed. Edit, as root, /etc/systemd/journald.conf and change the storage type to "persistent". Then you can look at the previous log with

sudo journalctl -b -1

Why not disable compositing to start with, and see if the lock-ups go away?


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#5 2020-09-20 21:50:13

Shred53
Member
Registered: 2020-09-20
Posts: 6

Re: [SOLVED] Random freezes with Lithium

Thanks for the advice. I have disabled compton, I'll keep you updated if it occurs again.

Offline

#6 2020-09-21 21:49:56

Shred53
Member
Registered: 2020-09-20
Posts: 6

Re: [SOLVED] Random freezes with Lithium

Unfortunately disabling the compositor didn't work, and I couldn't retrieve the journal because I forgot to uncomment the line in journald.conf neutral .

However, I found other errors in the current journal :

smartd[433]: DEVICESCAN failed: glob(3) aborted matching pattern /dev/discs/disc*
smartd[433]: In the system's table of devices NO devices found to scan

avahi-daemon[499]: chroot.c: open() failed: No such file or directory

bluetoothd[445]: Sap driver initialization failed.
bluetoothd[445]: sap-server: Operation not permitted (1)

ntpd[577]: error resolving pool 0.debian.pool.ntp.org: Temporary failure in name resolution (-3)
ntpd[577]: error resolving pool 1.debian.pool.ntp.org: Temporary failure in name resolution (-3)
ntpd[577]: error resolving pool 2.debian.pool.ntp.org: Temporary failure in name resolution (-3)
ntpd[577]: error resolving pool 3.debian.pool.ntp.org: Temporary failure in name resolution (-3)

ntpd[577]: bind(24) AF_INET6 2a01:e0a:13b:4d80:a636:16b3:633b:60db#123 flags 0x11 failed: Cannot assign requested address
ntpd[577]: unable to create socket on wlan0 (5) for 2a01:e0a:13b:4d80:a636:16b3:633b:60db#123

All these errors seem to have a workaround, but I don't have time to test them right now. Are they credible candidates for being the cause of the freezes ?

Offline

#7 2020-09-22 06:39:29

ohnonot
...again
Registered: 2015-09-29
Posts: 4,917
Website

Re: [SOLVED] Random freezes with Lithium

First things first:
a screen freeze most likely has sth to do with GPU & driver. So start analyzing that.
And please qualify "screen freeze". It is very unclear what exactly you are describing there.

You will find "disturbing" messages like in your previous (and also first) post in any Linux system log.
Doesn't mean they're causing your freezes.
Out of context they say only little anyhow.
You need to find out exactly what happens prior to the freeze, both on a user level (what were you doing) and on a system level (journal).
The best way to do that is make note of the time, make sure your system time is on a level with that, and go to the right timestamps in the journal. It is possible to display timestamps in a human-readable way.

man journalctl

BL quote proposals to this thread please.
my repos / my repos

Offline

#8 2020-10-05 16:08:20

Shred53
Member
Registered: 2020-09-20
Posts: 6

Re: [SOLVED] Random freezes with Lithium

ohnonot wrote:

And please qualify "screen freeze". It is very unclear what exactly you are describing there

Sorry about that, I'll try to be more precise than my first post ; what I call a "freeze" is when my display stops refreshing and all my inputs seems to be ignored. Closing the lid turns off the screen but doesn't put the computer on suspend, and it displays the same frozen screen on reopening. I've tried to wait, but even after a few hours the situation is the same, and I have to shut it down with the power button.

ohnonot wrote:

a screen freeze most likely has sth to do with GPU & driver. So start analyzing that.

Thanks to your advice, I found that there are indeed known bugs with the Baytrail integrated graphics cards (my CPU is an Intel Atom Z3735F), which causes issues similar with the one I have. I tried the two fixes I could find :
- Adding "intel_idle.max_cstate=1" in the boot cstate parameters
- Using a script that deactivates some sleep states that are buggy under linux : https://github.com/Codeuctivity/Intel-b … orkarround (I have verified with the provided script that it was correctly set up)
However, I have been testing them for the past week and I have experienced freezes with both.

I have also been checking the journal logs right after each freeze and the last entries are always the same :

sept. 29 02:17:01 Bunsenlabs-Helium CRON[8627]: pam_unix(cron:session): session opened for user root by (uid=0)
sept. 29 02:17:01 Bunsenlabs-Helium CRON[8628]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
sept. 29 02:17:01 Bunsenlabs-Helium CRON[8627]: pam_unix(cron:session): session closed for user root
sept. 29 02:18:29 Bunsenlabs-Helium dbus-daemon[1217]: [session uid=1000 pid=1217] Activating service name='org.freedesktop.thumbnails.Cache1' requested by ':1.11' (uid
sept. 29 02:18:29 Bunsenlabs-Helium org.freedesktop.thumbnails.Cache1[1217]: Registered thumbailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
sept. 29 02:18:30 Bunsenlabs-Helium org.freedesktop.thumbnails.Cache1[1217]: Registered thumbailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
sept. 29 02:18:30 Bunsenlabs-Helium dbus-daemon[1217]: [session uid=1000 pid=1217] Successfully activated service 'org.freedesktop.thumbnails.Cache1'

But these messages don't seem problematic, and I haven't been able to find bugs related to them.

I should add that I haven't been able to reproduce the bug in a controlled manner, it can happen a few seconds after logging in, with no application launched, as well as after a few hours working on my computer.

Is there something else I should check that might give more information on the issue ?

Offline

#9 2020-10-17 17:14:01

Shred53
Member
Registered: 2020-09-20
Posts: 6

Re: [SOLVED] Random freezes with Lithium

After some testing, it seems that my issue is solved : I have updated my kernel to 5.8 and I am using the script mentioned above, and I have not experienced a single freeze in the past week.

Offline

#10 Yesterday 09:07:06

ohnonot
...again
Registered: 2015-09-29
Posts: 4,917
Website

Re: [SOLVED] Random freezes with Lithium

That's good to hear!


BL quote proposals to this thread please.
my repos / my repos

Offline

Board footer

Powered by FluxBB