1 |
Am Fri, 19 May 2017 09:32:47 +0300 |
2 |
schrieb Nikos Chantziaras <realnc@×××××.com>: |
3 |
|
4 |
> On 05/18/2017 05:06 PM, Daniel Frey wrote: |
5 |
> > On 05/17/2017 03:35 PM, Kai Krakow wrote: |
6 |
> >> |
7 |
> >> It also enables me to finally use UEFI and suspend to RAM again |
8 |
> >> with NVIDIA proprietary without a dead framebuffer after |
9 |
> >> resume. ;-) |
10 |
> > |
11 |
> > I have had this problem for years and thought it was a bad card. |
12 |
> > Replaced it recently, still have the problem. |
13 |
> |
14 |
> This is usually due to CSM being enabled in the mainboard's settings. |
15 |
> If you use UEFI with the EFI console kernel driver, but you still get |
16 |
> this in dmesg: |
17 |
> |
18 |
> NVRM: Your system is not currently configured to drive a VGA console |
19 |
> NVRM: on the primary VGA device. The NVIDIA Linux graphics driver |
20 |
> NVRM: requires the use of a text-mode VGA console. Use of other |
21 |
> console NVRM: drivers including, but not limited to, vesafb, may |
22 |
> result in NVRM: corruption and stability problems, and is not |
23 |
> supported. |
24 |
> |
25 |
> then CSM is the reason. One of the issues is restoring the |
26 |
> framebuffer after resuming. |
27 |
> |
28 |
> CSM is the "Compatibility Support Module" of UEFI. When enabled, the |
29 |
> graphics card is being initialized by CSM, not by UEFI, and the |
30 |
> nvidia driver doesn't fully support this. |
31 |
> |
32 |
> Some mainboards allow you to disable CSM. Unfortunately, not all do. |
33 |
|
34 |
Okay, I also switched to "ultra-fast boot mode" so this implicitly |
35 |
disabled CSM for me... But I need the ksm driver module to finally get |
36 |
rid of this message if I remember correctly. It's called nvidia-modeset: |
37 |
|
38 |
# lsmod | fgrep nvidia |
39 |
nvidia_drm 34730 1 |
40 |
nvidia_modeset 775151 17 nvidia_drm |
41 |
nvidia 11456287 555 nvidia_modeset |
42 |
|
43 |
# dmesg | fgrep -i nvidia |
44 |
[ 2.914981] nvidia: loading out-of-tree module taints kernel. |
45 |
[ 2.914986] nvidia: module license 'NVIDIA' taints kernel. |
46 |
[ 2.921352] nvidia-nvlink: Nvlink Core is being initialized, major device number 242 |
47 |
[ 2.921595] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem |
48 |
[ 2.921663] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 381.22 Thu May 4 00:55:03 PDT 2017 (using threaded interrupts) |
49 |
[ 2.922349] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 381.22 Thu May 4 00:21:48 PDT 2017 |
50 |
[ 2.978918] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver |
51 |
[ 3.684589] nvidia-modeset: Allocated GPU:0 (GPU-de8a8443-463b-6a86-b74c-cad4397a98e9) @ PCI:0000:01:00.0 |
52 |
|
53 |
|
54 |
BTW: You also need a video bios with UEFI GOP support (or something like |
55 |
that). Current cards have it, older may need a firmware upgrade which |
56 |
can sometimes be obtained from the manufacturer. MSI has a forum where |
57 |
you can request one. It may take some time, but they send it. |
58 |
|
59 |
For my previous nvidia card I had to get and flash such a firmware. |
60 |
|
61 |
Some bios versions may allow disabling csm only when UEFI GOP support |
62 |
is there. |
63 |
|
64 |
|
65 |
-- |
66 |
Regards, |
67 |
Kai |
68 |
|
69 |
Replies to list-only preferred. |