Lock-up only at home

I have a weird issue with my Librem 13 v.4 running PureOS. Mon-Fri it’s on 24/7 at my place of work. But on the weekends when I bring it home, it will completely lock up once a day at least. Yesterday, it did it to me for the first time while working on it. I can’t figure any possible reason why though, and am not certain about what exactly to look for in the logs to determine what is causing the lock-up. Any ideas would be appreciated. Thanks!

PS. It looks like another issue is that my logs only start from the last boot. So I have no historical logs to figure out what’s going on. I changed the parameter storage= in /etc/systemd/journald.conf (?) from auto to persistent so that next time the logs will hopefully be available.

1 Like

Just a story, don’t know if something like this could happen these days:

When I started with my first computer I experienced sudden crashes at random times. I brought it to a repair shop, but they couldn’t find anything.

When I played around one night I became aware that the crashing computer was somehow accompanied by a certain sound. Later that night I realized that it had been the sound of the compressor in my fridge starting.

I disconnected the switch and the crashing stopped.

Later that week I sat beside the fridges open door to get a feeling for what happens when the compressor starts. A click inside. The thermostat had a mechanic relay. I exchanged it to a new one and since that day the old computer and the old fridge worked together fine.

Long story short meaning: You have to narrow it farther down - e.g. you use a different power converter at home than at office (like me - I’m too lazy to disconnect the power converter when switching from office to home). Or - not very likely - you have an old fridge.

5 Likes

Looking only at differences between work and home, as @ChriChri says, power supply and condition is certainly one, and a good first thing to look at. Another one could be “WiFi” (not that that should be able to cause a complete lock up).

1 Like

I would agree that network connectivity, power supply (including fluctuations thereof, whether fridge-related or not) and connected peripherals are likely culprits. Or, less likely, it could be caused by a difference in temperature, humidity, vibration or electromagnetic interference.

Another thing to consider is whether you are running different application software at home compared to at work, which might cause a lock-up.

1 Like

Not buying any of the possible problems so far for the following reasons. Please let me know if I’m wrong. Since this is a laptop, I have always been under the impression that laptops, due to the structure of the power supply and a battery have basically a built-in power flux suppression (whatever it’s called).

The WiFi — I have no idea why that might be an issue. I’m thinking tonight I’ll use the disable wifi, etc. switch and see if it’s off in the morning.

Finally, the past couple of times it’s locked-up pretty much only Firefox was running. Maybe Nautilus and Tillix as well. But nothing else.

Oh! One other thing. It was locked up when I came home today so I thought, GREAT I’ll look at the logs. But again they only start from the boot despite adding PERSISTENT as I noted early in the conf file. So what am I doing wrong? I really would like to get to the logs and see what happened just before it locked up.

I should perhaps note that as an IT admin for almost 20 years now, I’ve had MANY laptops and never seen this issue before. Also this is one of 4 laptops in our house. Only this one experiences this issue. But mine is the only PureOS laptop. I have an older laptop with SolusOS on it and it runs 24/7 365 and never locks up.

With such an unprecedented issue, I’m sure that logs will be the most important contribution. I had an issue my Purism failing to charge mysteriously off of one of the legs in my house. It did so randomly where it had successfully charged for months. I had overlooked the circuit as an issue until out of desperation, I moved it and charge was restored.

To my knowledge - nothing had changed. No electrical work was done in my house and I had modified nothing in the laptop. I still have no idea why it stopped working. And it was random as hell. And has never happened again. I hope your odd issue is less odd as mine. I look forward to seeing what your logs show.

This reads like the first third of a TED Talk. :ok_hand:

1 Like

Could point in the direction of transfer to the disk… Anyway.

What I wanted to say about the logs is that I ran lately into a problem for which I didn’t have any logs neither.

Along the way of resolving it I were at the point of wanting debug output on serial (which is quiet common e.g. for single board computers). The question would be whether there is a serial line in the Librems which could be used (preferable without opening the case).

Serial line for debugging, @joao.azevedo?

Connect USB device that gives you a serial port?

Getting the logs is obviously a sensible next step. Sorry, I’m too inexperienced to speculate on what, if anything, you might be doing wrong there.

I think the suggestions about possible causes should be taken as starting points for investigations, tests and experiments, rather than complete theories.

It’s probably not. It’s not unheard of for certain combinations of WiFi hardware brands to have subtle incompatibilities that trigger driver bugs, but that probably wouldn’t just happen suddenly, unless you changed something. More likely it would be something that’s different in the local network higher up the network stack (OSI layer 3 or above), so not specific to WiFi.

Don’t underestimate the ability of power supply issues to confound expectations. An ideal laptop should not crash because of a power supply problem, but my impression is that electronics is so messily physical that it’s hard to be certain about that kind of thing. There are too many variables.

An unseen loose connection behind an outlet, perhaps?

It’s possible but since it was limited to my laptop, I hadn’t really bothered to look. Everything continues to work fine including phone charging. It’s an older home for where I live, built in the 50s, so your hypothesis is viable.

By lock once a day, you mean that after the lock screen was enabled, you were not able to unlock it?

No the screen is totally black and nothing happens no matter what I’ve tried. The computer is on though. One thing I haven’t tried is to ssh into it while it’s locked to see if I can get in. I probably won’t try again until next weekend and the logs are not being wiped after each boot, so I should eventually be able to see what’s the problem.

Before that, just ping it.

Well, unfortunately I don’t see anything in the logs that points me to the problem. The same “issues” prior to it hanging existed days before. So that doesn’t seem to be the problem.
BTW the system was down since the last log entry was for morning. I rebooted it this evening since it wasn’t responding after trying to ssh in (forgot about trying to ping, but it wouldn’t have mattered).
Just a strange fluke… would love to figure it out, but probably beyond my pay grade! :stuck_out_tongue_winking_eye:

Maybe beyond ours as well too. Did anything show up in the logs? Would you be willing to share? The game is afoot.

Would if I could. I can’t figure out how to save journalctl entries since the last boot. I can issue the command journalctl -b -1 for them, but the output is like it’s using less. I need it to dump the entire log since the last boot. The goal being to then cat it to a file and then post it on pastebin. If there’s some other way, let me know, but so far the man and internet haven’t been helpful.

Maybe it is not necessary, yet: If you suspect the problem is location related and it is that easy to reproduce I’d try leaving the notebook switched on without a power connection. With no load it should run a good while (if you disable automatic sleep).

If you can’t reproduce the behaviour without a power connection you know where to look at. If you connect ethernet you should try the same with the ethernet connection.

If the lockup still happens when the notebook is not connected to lan or power, the only thing I could think about related to the location would be some sort of radio pulses.

Anyway, if you’d want to debug it from the logfiles you could get back to @kieran idea connecting a usb serial and using it to write out logging.

1 Like

Just run;

journalctl 

without any arguments or flags.

I was certain that journalctl only started from the last boot. I was wrong. Having parsed the logs for the time from one boot to it’s termination I’m stuck with how to post so much text! I was going to use pastebin, but can’t figure it out. So I’ve opted in the end to just put it on Google Drive and share it. Here’s the link:https://drive.google.com/file/d/1_WtO-lT0v7DNtMWY121ho95eEVqjQX89/view?usp=sharing