LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Pop! os does not restart properly after freezing (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/pop-os-does-not-restart-properly-after-freezing-4175685590/)

MeinzBeur 11-21-2020 07:56 AM

Pop! os does not restart properly after freezing
 
Hei everyone,
I posted this issue on the forum of pop os few weeks ago but never got any answer. So I am trying my chance here.
So, sometimes when I play a game a bit demanding for my computer it will freeze. I guess it has something to do with the RAM. That thing is annoying but OK, I need to accept that my laptop isn't completely new anymore :)
The main problem comes after, when switching off and on the laptop by pressing the ON/OFF button, it does not work. More specifically, it starts, but it will stay stuck at the last black screen before the logging in screen. The solution I found is to start Pop os using the dongle, power off from the menu, remove the dongle, restart. Then it works... But it isn't very convenient.
I do not really know where I should look... I can say that when I used ubuntu before I did not have this issue after freezing. Also, I realised that since I installed pop os 20.10 it freezes too when I drag a file from the desktop to an open folder (Topic for another thread?). That means I can test any solution you give me with that (cause otherwise I would have to wait that it randomly freezes in a game).
I run pop os 20.10 (but had the same problem with 20.04) on a ACER aspire V nitro. Intel Core i7 and a GeForce GTX 960M graphic card.
Thanks a lot for your help.

frankbell 11-21-2020 06:27 PM

Have you looked in the log files?

You may not find anything to help with the freezing itself--it may be freezing before it can log anything, though it's worth a look--but there's a good chance you will find some hints as to what's going wrong in the boot process. https://wiki.archlinux.org/index.php/Systemd/Journal

The Arch Wiki has a good article about how to use SystemD logs. You should also find log files in tradition format, as most distros I've seen use rsyslog to pipe SystemD log data into /var/log.

ondoho 11-22-2020 03:22 AM

Quote:

Originally Posted by MeinzBeur (Post 6187484)
Hei everyone,
I posted this issue on the forum of pop os few weeks ago but never got any answer. So I am trying my chance here.
So, sometimes when I play a game a bit demanding for my computer it will freeze. I guess it has something to do with the RAM. That thing is annoying but OK, I need to accept that my laptop isn't completely new anymore :)
The main problem comes after, when switching off and on the laptop by pressing the ON/OFF button, it does not work. More specifically, it starts, but it will stay stuck at the last black screen before the logging in screen. The solution I found is to start Pop os using the dongle, power off from the menu, remove the dongle, restart. Then it works... But it isn't very convenient.
I do not really know where I should look... I can say that when I used ubuntu before I did not have this issue after freezing. Also, I realised that since I installed pop os 20.10 it freezes too when I drag a file from the desktop to an open folder (Topic for another thread?). That means I can test any solution you give me with that (cause otherwise I would have to wait that it randomly freezes in a game).
I run pop os 20.10 (but had the same problem with 20.04) on a ACER aspire V nitro. Intel Core i7 and a GeForce GTX 960M graphic card.
Thanks a lot for your help.

You don't tell us which games and which platform you play them on.

You say you suspect RAM yet you don't tell us how much you have there.

Which GPU driver are you using? I'm sure POP_OS has an "Additional drivers" utility (or sth similar) that will allow you to install the NVIDIA driver, which will be better for gaming.

MeinzBeur 11-22-2020 09:17 AM

4 Attachment(s)
Thanks for your answers. So here:
@ondoho
I usually play on steam. And it has happened on several games (Tomb raider, Hades, Desperados III,...). The reason why I suspect the memory is that it usually happens when it needs to load something, or when there is a visually demanding moment. The ventilation of the laptop goes crazy, and it freezes. I have 7.7 GiB and I already run the NVIDIA drivers.

@frankbell
Nope. I did not know such a thing existed :) But now I did. I went into var/log; and found several types of log. So I reproduced the crash using the dragging of a file from the desktop to a directory (it looks same, but I am actually not sure if it is the same crash). I attached the syslog (split in 3 files because too big), and the kernlog.
The timing is as such:
1423: Crash + switch off
1425: Switch on (does not work)
1426: switch off
1427: switch on, boot on dongle. Power off from USB-based pop os. Remove dongle.
1428: Switch on (works).
As you can see there is nothing in the log between 1423 and 1428... It seems that there is some info about the freezing itself though. But I have no idea what it means.

ondoho 11-23-2020 11:01 PM

The last 4 lines of your kernlog would suggest that Teams does not play well with Steam.

MeinzBeur 11-24-2020 04:38 AM

You mean these ones?
Code:

Nov 22 14:29:06 pop-os kernel: [  24.293932] SGI_video_sync[2334]: segfault at e6 ip 0000558cccd7e112 sp 00007f94adff95c0 error 6 in teams[558cca297000+4bf9000]
Nov 22 14:29:06 pop-os kernel: [  24.293938] Code: e8 43 00 00 00 4c 89 f7 e8 db 01 00 00 41 8b 46 10 41 8b 4e 18 c1 e0 0c 25 00 f0 0f 00 c1 e1 14 81 e1 00 00 f0 0f 09 c1 09 d9 <c6> 01 00 81 e3 ff 0f 00 00 c6 03 00 bf 01 00 00 00 e8 f8 d4 10 02
Nov 22 14:29:06 pop-os kernel: [  24.590407] SGI_video_sync[2363]: segfault at e6 ip 0000555951368112 sp 00007f5a7e6fa5c0 error 6 in teams[55594e881000+4bf9000]
Nov 22 14:29:06 pop-os kernel: [  24.590414] Code: e8 43 00 00 00 4c 89 f7 e8 db 01 00 00 41 8b 46 10 41 8b 4e 18 c1 e0 0c 25 00 f0 0f 00 c1 e1 14 81 e1 00 00 f0 0f 09 c1 09 d9 <c6> 01 00 81 e3 ff 0f 00 00 c6 03 00 bf 01 00 00 00 e8 f8 d4 10 02

I see the link to teams (written in it) but how do you know that steam is involved? On top of that steam is not being opened at startup, so it should not be involved in anything at that stage.

ondoho 11-24-2020 11:48 PM

Quote:

Originally Posted by MeinzBeur (Post 6188333)
but how do you know that steam is involved?

Because you wrote it happens when you play (steam) games.

Disable Teams autostarting after login.

MeinzBeur 11-26-2020 02:50 AM

I am really sceptical that teams has any role into this. I had that issue before using teams at all.

MeinzBeur 12-14-2020 11:06 AM

Disabling teams did not change anything.

beachboy2 12-16-2020 02:45 AM

MeinzBeur,

If you did not have this problem with Ubuntu, why not use Ubuntu instead?

MeinzBeur 12-16-2020 03:55 AM

Because there are many other features from pop os that are better than ubuntu (I know this is subjective).

jsbjsb001 12-16-2020 11:44 AM

Quote:

Originally Posted by MeinzBeur (Post 6187484)
Hei everyone,
I posted this issue on the forum of pop os few weeks ago but never got any answer. So I am trying my chance here.
So, sometimes when I play a game a bit demanding for my computer it will freeze. I guess it has something to do with the RAM. That thing is annoying but OK, I need to accept that my laptop isn't completely new anymore :)
The main problem comes after, when switching off and on the laptop by pressing the ON/OFF button, it does not work. More specifically, it starts, but it will stay stuck at the last black screen before the logging in screen. The solution I found is to start Pop os using the dongle, power off from the menu, remove the dongle, restart. Then it works... But it isn't very convenient.
I do not really know where I should look... I can say that when I used ubuntu before I did not have this issue after freezing. Also, I realised that since I installed pop os 20.10 it freezes too when I drag a file from the desktop to an open folder (Topic for another thread?). That means I can test any solution you give me with that (cause otherwise I would have to wait that it randomly freezes in a game).
I run pop os 20.10 (but had the same problem with 20.04) on a ACER aspire V nitro. Intel Core i7 and a GeForce GTX 960M graphic card.
Thanks a lot for your help.

Looking at your kernel log in post #4, the output you posted in post #6 is talking about a segfault (Segmentation Fault) that's occurring with the SGI_video_sync extension, that appears to be caused by "teams". It's a software bug, not a hardware problem with your RAM, although a segfault does mean that a program has attempted to access memory it shouldn't be trying to access. So the only way to fix it, is with a software fix, so you'll have to report it to the relevant developers and have them fix the code responsible and release an update you can install that fixes it. Or use Ubuntu as beachboy2 has said if you didn't have the problem on that.

Is the freezing occurring exactly when the segfaults happen?

EDIT: If it's happening with more than just one program, it's possible it might be a driver bug too. Are you using NVIDIA's proprietary drivers, or the open-source driver? Which driver were you using in Ubuntu?

You can check with the following command at the terminal:

Code:

lspci -nnk | grep -A3 VGA

MeinzBeur 12-17-2020 04:01 AM

1 Attachment(s)
Thanks for the detailed answer. So:
* Ok, that segfault thingy is something new to me. I get the issue, but I don't think there is anyway to get it fix, as teams full name is "Microsoft teams". Wish me good luck to get the developers to fix it :)
* No, the segfaults seems non related to the freezing; for at least 2 reasons: (i) Segfault happens when teams opens, regardless of the computer freezing before or after and (ii) I had freezing issues before I even installed teams on my computer.

As much as it puzzles me I don't think the segfault creates any issue in the running of my computer, and I am forced to use it for my work. I don't think I can get microsoft to change their software.

So seems to me that we don't have a solution to my issue. Maybe the attached picture can help. When I restart after the freeze, it sometimes blocks on this screen instead of a black screen. I guess that could mean that there is actually more than reason why my computer freezes.

EDIT: just saw your edit to the previous post. I use NVIDIA drivers 455. I had NVIDIA also when I was on Ubuntu, not sure which version though. I moved to pop os in february this year, so I guess the latest NVIDIA primers at that time.


NEW EDIT: Wait, no. Actually this is maybe weird:
* In the pop shop I can see that NVIDIA drivers 455 are installed.
* In the NVIDIA X server settings it tells me that 440.95.01 is in use.
* and the output of lspi is:
Code:

00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:191b] (rev 06)
        Subsystem: Acer Incorporated [ALI] HD Graphics 530 [1025:1039]
        Kernel driver in use: i915
        Kernel modules: i915

That does not seem like NVIDIA to me, right?

jsbjsb001 12-17-2020 07:48 AM

From the research I've done, I'm not sure that the segfault and the error messages in the screenshot you posted are related at all, and therefore I'm thinking that they are two different problems at this point. Although when I replied before, I wasn't sure if you were talking about Microsoft Teams or something else called "teams", but I did find this when I replied before, so it seems they already know about the bug.

The reason the lspci output says Intel graphics while you have NVIDIA graphics drivers installed is probably because you have a NVIDIA Optimus setup. In relation to the error messages [in your posted screenshot] from ACPI, my research suggests it maybe that your graphics hardware/setup may have problems with KMS (Kernel Mode Setting). You can try disabling KMS and see it that helps.

Steps to do that:

1. When your machine boots and you see the GRUB menu asking you to select a choice (eg. a normal boot, recovery mode, etc), select whatever the normal boot option you use to start the system and press "e".
2. Use the down arrow key on your keyboard to scroll down to the line that starts with the word "linux".
3. Use the right arrow key to move the cursor to the end of that same line, then press the spacebar key.
4. Type in nomodeset then press CTRL+X (not including the plus sign).

Although, note that this will only disable KMS for that session, and not permanently.

For example:

Code:

linux  /boot/vmlinuz-5.9.14-desktop-2omv4002 root=UUID=2109a25b-cf60-41f1-965c-1b08dd9cf9b5 ro single  failsafe nomodeset xdriver=vesa vga=788 acpi_osi=Linux acpi_osi='!Windows 2012' acpi_backlight=vendor systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M audit=0 rd.timeout=120
The above line will look a little different on your machine, particularly the version of your kernel and the UUID for your root partition.

MeinzBeur 12-19-2020 04:26 AM

1 Attachment(s)
Yes, I agree with you regarding the segfault issue. Well, obviously they know about the issue since some months... and obviously it will remain for a while more :)

Ok. I had never heard about this Optimus setup before.

For the whole KMS setting stuff. I had already looked into it a while ago. There are a bunch of forum posts on the topic. I can't remember exactly what I did but it obviously did not work at that time. "Luckily" my computer crashed while playing yesterday evening, so I tested your fix this morning:

I attached the screen after pressing "e" in GRUB. Maybe you can find some info there.
I added `nomodeset` in the line and pressed ctrl + X.
The screen gets back to the one in the previous screenshot (platform device creation failed: -16 + other things) and quickly after this line is appended to the screen:
Code:

[    4.321480] systemd[1]: Failed to start Remount Root and Kernal File Systems.
Then I get to a next screen where there is only a lower dash blinking, and after 1 min maybe this appears:
Code:

[    66.686119] hdaudio hdaudioCOD2: Unable to bind the codec]
Not sure if this is linked to the problem.Probably not (https://ubuntuforums.org/showthread.php?t=2437409). In any case nothing happened in the next 5 mins, so I just rebooted the computer on the pop os dongle to get around the issue (as described in earlier posts).

Does that trigger any guess?


All times are GMT -5. The time now is 12:10 AM.