this post was submitted on 02 Nov 2024
57 points (98.3% liked)

Linux

48208 readers
717 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I updated my graphics drivers from nvidia 470 to nvidia 560 due to issues running certain games. It's fixed my gaming issue but reintroduced the problem that kept me from updating for so long.

After setting my computer to "suspend," it wakes up to this screen on all monitors. I am unable to scroll up or type further commands, my only option is to reboot the machine.

  • My graphics card is: NVIDIA Corporation GP104 [GeForce GTX 1070]
  • Nvidia driver version: 560.35.03
  • My desktop environment is Cinnamon X11. (This does not occur on Wayland, but there is no Cinnamon Wayland.)

I can't make heads or tails of this error screen. The best I can understand is the "Fixing recursive fault but reboot is required!" line. How can I get more information? Does anyone have any ideas on how I can fix this? Thanks in advance.

Edit: It seems important to mention this is happening only on X11 (Pop default and Cinnamon), and not on Pop!_OS on Wayland.

you are viewing a single comment's thread
view the rest of the comments
[–] riquisimo@lemmy.dbzer0.com 5 points 2 weeks ago (5 children)

Oh man, so Pop!_OS has a "pop shop" where it officially supports 470 and 560. 550 isn't on there so, while I could try it, I wouldn't expect it to work.

In "Software and Updates" I have options for the "NVIDIA driver metapackages" for 390, 470, and 560. 560 is currently selected. I also have the NVIDIA server driver metapackage for 535, so I could try that. It would be newer than 470 but not as current as 560.

But since the chances this would fix it are already low (and 560 drivers fixed my other issues), I'm hesitant to try unless I exhaust every other option.

[–] masterofn001@lemmy.ca 1 points 2 weeks ago (3 children)
[–] riquisimo@lemmy.dbzer0.com 1 points 1 week ago (2 children)

Finally got around to this. I tried installing while logged in, then realized I should Ctrl+Alt+F2 (or something) and stop gdm before installing.

I got an error message, there was an error while building kernel modules. Checking /var/log/nvidia-installer.log I think this is the culprit:

warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 You are using: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

Warning: Compiler version check failed:

The major and minor number of the compiler used to compile the kernel:

x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38

does not match the compiler used here:

cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. It is recommended to set the CC environment variable to the compiler that was used to compile the kernel.

To skip the test and silence this warning message, set the IGNORE_CC_MISMATCH environment variable to "1". However, mixing compiler versions between the kernel and kernel modules can result in subtle bugs that are difficult to diagnose.

So I'm using 11.4.0 instead of 12.3.0? Not sure what that number is. Both kernels are based on Ubuntu 22.04. I'm starting to think if I really want cinnamon I should use a distro that was made for cinnamon, like Mint.

[–] masterofn001@lemmy.ca 1 points 1 week ago (1 children)

Found this :

https://askubuntu.com/a/1503216

GCC is the compiler. The code snippet in the link above sets the environment for the driver to use the compiler you have.

[–] riquisimo@lemmy.dbzer0.com 1 points 4 days ago

This is getting deep and complicated.

So I tried using the command in the snippet, and made sure that CC was capitalized, but the error log still says "You are using: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"

Going to the post that talks about changing your version of GCC it looks like my gcc might be pointing to the "11.4.0 cc"?

But when I run: sudo apt-get install gcc-4.3 gcc-4.4 g++-4.3 g++-4.4

I can't find those packages. And when I run:

sudo update-alternatives --remove-all gcc sudo update-alternatives --remove-all g++

I find no alternatives. Sheesh. When I go this many layers deep I get worried that I'm going to potentially break something that will make bugtesting for other future things harder.

load more comments (1 replies)