Gentoo Archives: gentoo-user

From: Kai Krakow <hurikhan77@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: [OT] Tux AWOL
Date: Fri, 19 May 2017 17:21:21
In Reply to: [gentoo-user] Re: [OT] Tux AWOL by Nikos Chantziaras
Am Fri, 19 May 2017 09:32:47 +0300
schrieb Nikos Chantziaras <realnc@×××××.com>:

> On 05/18/2017 05:06 PM, Daniel Frey wrote: > > On 05/17/2017 03:35 PM, Kai Krakow wrote: > >> > >> It also enables me to finally use UEFI and suspend to RAM again > >> with NVIDIA proprietary without a dead framebuffer after > >> resume. ;-) > > > > I have had this problem for years and thought it was a bad card. > > Replaced it recently, still have the problem. > > This is usually due to CSM being enabled in the mainboard's settings. > If you use UEFI with the EFI console kernel driver, but you still get > this in dmesg: > > NVRM: Your system is not currently configured to drive a VGA console > NVRM: on the primary VGA device. The NVIDIA Linux graphics driver > NVRM: requires the use of a text-mode VGA console. Use of other > console NVRM: drivers including, but not limited to, vesafb, may > result in NVRM: corruption and stability problems, and is not > supported. > > then CSM is the reason. One of the issues is restoring the > framebuffer after resuming. > > CSM is the "Compatibility Support Module" of UEFI. When enabled, the > graphics card is being initialized by CSM, not by UEFI, and the > nvidia driver doesn't fully support this. > > Some mainboards allow you to disable CSM. Unfortunately, not all do.
Okay, I also switched to "ultra-fast boot mode" so this implicitly disabled CSM for me... But I need the ksm driver module to finally get rid of this message if I remember correctly. It's called nvidia-modeset: # lsmod | fgrep nvidia nvidia_drm 34730 1 nvidia_modeset 775151 17 nvidia_drm nvidia 11456287 555 nvidia_modeset # dmesg | fgrep -i nvidia [ 2.914981] nvidia: loading out-of-tree module taints kernel. [ 2.914986] nvidia: module license 'NVIDIA' taints kernel. [ 2.921352] nvidia-nvlink: Nvlink Core is being initialized, major device number 242 [ 2.921595] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem [ 2.921663] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 381.22 Thu May 4 00:55:03 PDT 2017 (using threaded interrupts) [ 2.922349] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 381.22 Thu May 4 00:21:48 PDT 2017 [ 2.978918] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver [ 3.684589] nvidia-modeset: Allocated GPU:0 (GPU-de8a8443-463b-6a86-b74c-cad4397a98e9) @ PCI:0000:01:00.0 BTW: You also need a video bios with UEFI GOP support (or something like that). Current cards have it, older may need a firmware upgrade which can sometimes be obtained from the manufacturer. MSI has a forum where you can request one. It may take some time, but they send it. For my previous nvidia card I had to get and flash such a firmware. Some bios versions may allow disabling csm only when UEFI GOP support is there. -- Regards, Kai Replies to list-only preferred.