You are not logged in.

#1 2023-02-22 15:58:23

EternalNovice
Member
Registered: 2021-12-26
Posts: 20

[SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

laptop: K53SV
graphics: GT540M
Drivers: nvidia-390xx-dkms, nvidia-390xx-utils

  My laptop is connected to a monitor, so I currently have two screens.
I choose nvidia graphics only,
https://wiki.archlinux.org/title/NVIDIA … phics_only
and seems to have this problem "Resolution, screen scan wrong. EDID errors in Xorg.log"
https://wiki.archlinux.org/title/NVIDIA … n_Xorg.log

Normally, there will appear "LVDS-1"(1366x768) and "VGA-1"(1024x1080);
But after the problem occurs, there appeared "VGA-0"(1024x768), "LVDS-1-1"(1366x768) and "VGA-1-1"(1024x1080);

       	Option		"ConnectedMonitor" "CRT-0"
       	Option		"CustomEDID" "CRT-0:/sys/class/drm/card1-LVDS-1/edid"
	Option		"IgnoreEDID" "false"
	Option		"UseEDID" "true"

if I follow the guide and type this codes into

/etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf

,
it just turned  "VGA-0"(1366x768), "LVDS-1-1"(1366x768) and "VGA-1-1"(1024x1080), rather than "LVDS-1"(1366x768) and "VGA-1"(1024x1080).
How to turn it back to normal?

By the way, do I just need to install the drivers or do I need to install "linux-headers", "dkms", and configure something?

Last edited by EternalNovice (2023-02-24 11:43:44)

Offline

#2 2023-02-22 17:00:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,378

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

Normally, there will appear … there appeared

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
Instead post your Xorg logs, https://wiki.archlinux.org/title/Xorg#General and the complete config files you generated.

Offline

#3 2023-02-23 02:10:22

EternalNovice
Member
Registered: 2021-12-26
Posts: 20

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

https://pastebin.com/Ws6Exu39
https://pastebin.com/krqJxR0S

Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "PrimaryGPU" "yes"
    Option "ConnectedMonitor" "CRT-0"
    Option "CustomEDID" "CRT-0:/sys/class/drm/card1-LVDS-1/edid"
    Option "IgnoreEDID" "false"
    Option "UseEDID" "true"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection

Section "ServerFlags"
    Option "IgnoreABI" "1"
EndSection

Last edited by EternalNovice (2023-02-23 02:28:34)

Offline

#4 2023-02-23 08:22:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,378

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

Hybrid system, you've configured it to run on the nvidia chip, but https://pastebin.com/raw/krqJxR0S runs on the intel chip and the modesetting driver (output name changes are normal in that case)
=> To define the behavior, see https://wiki.archlinux.org/title/NVIDIA … de_setting - parameter AND mkinitcpio MODULES. You probably want to remove "kms" from the HOOKS there and also add the pacman hook.

Offline

#5 2023-02-23 09:41:55

EternalNovice
Member
Registered: 2021-12-26
Posts: 20

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

I had been added

nvidia_drm.modeset=1

into

/etc/mkinitcpio.conf
MODULES=(nvidia_drm.modeset=1)
BINARIES=()
FILES=()
HOOKS=(base udev autodetect keyboard keymap modconf block filesystems fsck)
HOOKS=(base udev autodetect keyboard keymap consolefont numlock modconf block encrypt lvm2 filesystems fsck)

and added

Section "ServerFlags"
    Option "IgnoreABI" "1"
EndSection

into

/etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf

before, do I need  to delete them?

I am not sure where is the "kms" in the HOOKS, I didn't add any hook before.

In the pacman hook, which Target("nvidia", "nvidia-dkms" or "nvidia-390xx-dkms") should I use?

To define the behavior

Sorry, I don't understand how to do this.

Offline

#6 2023-02-23 09:59:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

nvidia_drm.modeset=1 is a kernel parameter you configure those on your bootloader. In the mkinitcpio file your modules line should read MODULES=(i915 nvidia nvidia_drm nvidia_uvm nvidia_modeset)

SeverFlags IgnoreABI should not be necessary nor detrimental however.  If the kms hook is not there then your install predated that addition, don't worry about it. For the pacman hook pacman hooks act on pacman packages, the pacman package you have installed is called nvidia-390xx-dkms so that's what you should use here.

Offline

#7 2023-02-23 11:28:23

EternalNovice
Member
Registered: 2021-12-26
Posts: 20

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

I did these three things

  • set nvidia_drm.modeset=1 into bootloader

  • changed MODULES into (i915 nvidia nvidia_drm nvidia_uvm nvidia_modeset)

  • added pacman hook

It showed some erors when Arch started though it boot successfully, what other logs do I need to provide?
https://pastebin.com/Pya8XAnb
https://pastebin.com/rMLyb3s4

Offline

#8 2023-02-23 12:39:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,378

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

Does the original problem remain?

Offline

#9 2023-02-23 12:46:44

EternalNovice
Member
Registered: 2021-12-26
Posts: 20

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

yes, it still remain

Offline

#10 2023-02-23 13:08:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,378

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

You posted two Xorg logs, both run on the nvidia GPU, one's local (rootless X11), the other (earlier) one ran Xorg as root.

Neither has a VGA-0 output.

Both force (=> why?)

[    11.239] (**) NVIDIA(0): Option "ConnectedMonitor" "CRT-0"
[    11.239] (**) NVIDIA(0): Option "CustomEDID" "CRT-0:/sys/class/drm/card1-LVDS-1/edid"

only the earlier one (w/o "nvidia_drm.modeset=1") has an actual oputput there.

[    11.684] (--) NVIDIA(GPU-0): AU Optronics Corporation (CRT-0): connected
[    11.684] (--) NVIDIA(GPU-0): AU Optronics Corporation (CRT-0): 400.0 MHz maximum pixel clock

Instead of the vaguely technical speculations of your inital post, please describe the problematic behavior that you're trying to solve here.

Offline

#11 2023-02-23 14:56:10

EternalNovice
Member
Registered: 2021-12-26
Posts: 20

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

I can't find the answer.
but I changed "/etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf"
"CRT-0:/sys/class/drm/card1-LVDS-1/edid" >>  "CRT-0:/sys/class/drm/card0-LVDS-1/edid"

Offline

#12 2023-02-24 02:15:17

EternalNovice
Member
Registered: 2021-12-26
Posts: 20

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

why output name changes are normal and why it set a virtual screen(VGA-0)?

Offline

#13 2023-02-24 07:06:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,378

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

The output name depends on the driver, if you change the driver, the names will change. That's normal.

why it set a virtual screen(VGA-0)

As asked before:
Why do you configure

[    11.239] (**) NVIDIA(0): Option "ConnectedMonitor" "CRT-0"
[    11.239] (**) NVIDIA(0): Option "CustomEDID" "CRT-0:/sys/class/drm/card1-LVDS-1/edid"

Offline

#14 2023-02-24 07:27:48

EternalNovice
Member
Registered: 2021-12-26
Posts: 20

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

Follow the wiki to try to fix the problem

Offline

#15 2023-02-24 07:33:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,378

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

Follow what wiki to fix what problem?

I guess there's a masive language barrier here, https://www.deepl.com/translator

Offline

#16 2023-02-24 07:41:25

EternalNovice
Member
Registered: 2021-12-26
Posts: 20

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

this

and seems to have this problem "Resolution, screen scan wrong. EDID errors in Xorg.log"
https://wiki.archlinux.org/title/NVIDIA … n_Xorg.log

Offline

#17 2023-02-24 07:52:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,378

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

Remove all configurations you created, make sure you've enabled early kms and nvidia_drm.modeset=1 in place and post an updated xorg log.
It's still no way clear what the original problem was.
Your OP states that a third output appeared, what's no surpise given you added it - but that raises the question why you added it itfp. There's no reference as to why you think there would be a problem w/ the EDID, DPI or resolution.

Offline

#18 2023-02-24 08:29:57

EternalNovice
Member
Registered: 2021-12-26
Posts: 20

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

https://pastebin.com/ScrdJbba
I deleted "/etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf" and deleted this two line from "~/.xinitrc"

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

https://wiki.archlinux.org/title/NVIDIA … phics_only
Now nvidia-setings said I do not appear to be using the NVIDIA X driver, and now there's no virtual screen

Offline

#19 2023-02-24 08:39:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,378

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

You're running the modesetting driver on the intel IGP and

[    11.376] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)

Since you're on the 390xx driver, see https://aur.archlinux.org/packages/nvid … ent-901559 and post the output of

pacman -Qs nvidia

Offline

#20 2023-02-24 08:42:14

EternalNovice
Member
Registered: 2021-12-26
Posts: 20

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

https://pastebin.com/ECDM2Ecs
When I follow the wiki(use NVIDIA graphics only) to added this "/etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf"

Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "PrimaryGPU" "yes"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection

the driver works, but I don't know why it creat a virtual screen

Offline

#21 2023-02-24 09:24:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

What is "it"? Are you looking at xrandr?  Generally with this setup, your internal laptop screen is still attached to the intel GPU but receives the contents to output from the nvidia card. which is why you have a "virtual" screen from the perspective of the nvidia driver.

Offline

#22 2023-02-24 09:47:04

EternalNovice
Member
Registered: 2021-12-26
Posts: 20

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

It's still no way clear what the original problem was.

1. set use NVIDIA graphics only

  • appear virtual screen(VGA-0)

  • output names changed(before: LVDS-1, VGA-1; after: LVDS-1-1, VGA-1-1)

2.thought something is wrong
3.saw wiki's note and thought I face the problem
4.followed the wiki to configure the file
5.the problem still remain, 4. only change the resolution of virtual screen(VGA-0)

Offline

#23 2023-02-24 10:14:31

EternalNovice
Member
Registered: 2021-12-26
Posts: 20

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

have a "virtual" screen from the perspective of the nvidia driver.

Does it mean the contents only in the virtual screen will output from nvidia card?
If so, how can I set two virtual screen to not only for my laptop but also for external monitor?

Last edited by EternalNovice (2023-02-24 10:16:21)

Offline

#24 2023-02-24 10:21:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

What is the problem you want to solve? Can you post the output of

xrandr -q
glxinfo -B

what tool are you using to change resolution   where exactly do you see that "only the virtual screen changes resolution"? Are you just taking an issue to the naming of the output devices? Ignore that you can't control that reliably, stick to one approach and work with the names that you get from there.

Offline

#25 2023-02-24 10:31:53

EternalNovice
Member
Registered: 2021-12-26
Posts: 20

Re: [SOLVED] Resolution, screen scan wrong and NVIDIA drivers configure

❯ xrandr -q
Screen 0: minimum 8 x 8, current 3286 x 1080, maximum 16384 x 16384
VGA-0 connected (normal left inverted right x axis y axis)
   1024x768      60.00 +
   1600x900      59.82
   1400x900      59.88
   1368x768      59.88    59.85
   1280x800      59.91    59.81
   1280x720      59.86    59.74
   1024x576      59.90    59.82
   960x540       59.82    59.63
   864x486       59.92    59.57
   800x600       72.19    60.32    56.25
   800x450       59.82
   700x450       59.88
   684x384       59.88    59.85
   640x480       59.94
   640x400       59.98    59.88
   640x360       59.86    59.83
   512x384       60.00
   512x288       60.00    59.92
   480x270       59.82    59.63
   432x243       59.92    59.57
   400x300       72.19
   320x240       60.05
LVDS-1-1 connected 1366x768+0+312 (normal left inverted right x axis y axis) 344mm x 193mm
   1366x768      60.01*+
   1280x720      60.00    59.99    59.86    59.74
   1024x768      60.04    60.00
   960x720       60.00
   928x696       60.05
   896x672       60.01
   1024x576      59.95    59.96    59.90    59.82
   960x600       59.93    60.00
   960x540       59.96    59.99    59.63    59.82
   800x600       60.00    60.32    56.25
   840x525       60.01    59.88
   864x486       59.92    59.57
   700x525       59.98
   800x450       59.95    59.82
   640x512       60.02
   700x450       59.96    59.88
   640x480       60.00    59.94
   720x405       59.51    58.99
   684x384       59.88    59.85
   640x400       59.88    59.98
   640x360       59.86    59.83    59.84    59.32
   512x384       60.00
   512x288       60.00    59.92
   480x270       59.63    59.82
   400x300       60.32    56.34
   432x243       59.92    59.57
   320x240       60.05
   360x202       59.51    59.13
   320x180       59.84    59.32
VGA-1-1 connected 1920x1080+1366+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080     60.00*+
   1680x1050     59.95
   1280x1024     75.02    60.02
   1440x900      59.89
   1280x960      60.00
   1280x720      60.00
   1024x768      75.03    70.07    60.00
   832x624       74.55
   800x600       72.19    75.00    60.32    56.25
   640x480       75.00    72.81    66.67    59.94
   720x400       70.08
HDMI-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
  1280x720 (0x283) 74.500MHz -HSync +VSync
        h: width  1280 start 1344 end 1472 total 1664 skew    0 clock  44.77KHz
        v: height  720 start  723 end  728 total  748           clock  59.86Hz
  1280x720 (0x284) 63.750MHz +HSync -VSync
        h: width  1280 start 1328 end 1360 total 1440 skew    0 clock  44.27KHz
        v: height  720 start  723 end  728 total  741           clock  59.74Hz
  1024x768 (0x27c) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  1024x576 (0x285) 46.500MHz -HSync +VSync
        h: width  1024 start 1064 end 1160 total 1296 skew    0 clock  35.88KHz
        v: height  576 start  579 end  584 total  599           clock  59.90Hz
  1024x576 (0x286) 42.000MHz +HSync -VSync
        h: width  1024 start 1072 end 1104 total 1184 skew    0 clock  35.47KHz
        v: height  576 start  579 end  584 total  593           clock  59.82Hz
  960x540 (0x288) 40.750MHz -HSync +VSync
        h: width   960 start  992 end 1088 total 1216 skew    0 clock  33.51KHz
        v: height  540 start  543 end  548 total  562           clock  59.63Hz
  960x540 (0x287) 37.250MHz +HSync -VSync
        h: width   960 start 1008 end 1040 total 1120 skew    0 clock  33.26KHz
        v: height  540 start  543 end  548 total  556           clock  59.82Hz
  800x600 (0x28c) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  800x600 (0x28d) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
  864x486 (0x289) 32.500MHz -HSync +VSync
        h: width   864 start  888 end  968 total 1072 skew    0 clock  30.32KHz
        v: height  486 start  489 end  494 total  506           clock  59.92Hz
  864x486 (0x28a) 30.500MHz +HSync -VSync
        h: width   864 start  912 end  944 total 1024 skew    0 clock  29.79KHz
        v: height  486 start  489 end  494 total  500           clock  59.57Hz
  800x450 (0x28e) 48.750MHz +HSync -VSync DoubleScan
        h: width   800 start  824 end  840 total  880 skew    0 clock  55.40KHz
        v: height  450 start  451 end  454 total  463           clock  59.82Hz
  700x450 (0x28f) 43.250MHz +HSync -VSync DoubleScan
        h: width   700 start  724 end  740 total  780 skew    0 clock  55.45KHz
        v: height  450 start  451 end  456 total  463           clock  59.88Hz
  640x480 (0x292) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
  684x384 (0x290) 42.625MHz -HSync +VSync DoubleScan
        h: width   684 start  720 end  788 total  892 skew    0 clock  47.79KHz
        v: height  384 start  385 end  390 total  399           clock  59.88Hz
  684x384 (0x291) 36.125MHz +HSync -VSync DoubleScan
        h: width   684 start  708 end  724 total  764 skew    0 clock  47.28KHz
        v: height  384 start  385 end  390 total  395           clock  59.85Hz
  640x400 (0x294) 41.750MHz -HSync +VSync DoubleScan
        h: width   640 start  676 end  740 total  840 skew    0 clock  49.70KHz
        v: height  400 start  401 end  404 total  415           clock  59.88Hz
  640x400 (0x293) 35.500MHz +HSync -VSync DoubleScan
        h: width   640 start  664 end  680 total  720 skew    0 clock  49.31KHz
        v: height  400 start  401 end  404 total  411           clock  59.98Hz
  640x360 (0x295) 37.250MHz -HSync +VSync DoubleScan
        h: width   640 start  672 end  736 total  832 skew    0 clock  44.77KHz
        v: height  360 start  361 end  364 total  374           clock  59.86Hz
  640x360 (0x296) 31.875MHz +HSync -VSync DoubleScan
        h: width   640 start  664 end  680 total  720 skew    0 clock  44.27KHz
        v: height  360 start  361 end  364 total  370           clock  59.83Hz
  512x384 (0x297) 32.500MHz -HSync -VSync DoubleScan
        h: width   512 start  524 end  592 total  672 skew    0 clock  48.36KHz
        v: height  384 start  385 end  388 total  403           clock  60.00Hz
  512x288 (0x298) 23.250MHz -HSync +VSync DoubleScan
        h: width   512 start  532 end  580 total  648 skew    0 clock  35.88KHz
        v: height  288 start  289 end  292 total  299           clock  60.00Hz
  512x288 (0x299) 21.000MHz +HSync -VSync DoubleScan
        h: width   512 start  536 end  552 total  592 skew    0 clock  35.47KHz
        v: height  288 start  289 end  292 total  296           clock  59.92Hz
  480x270 (0x29b) 20.375MHz -HSync +VSync DoubleScan
        h: width   480 start  496 end  544 total  608 skew    0 clock  33.51KHz
        v: height  270 start  271 end  274 total  281           clock  59.63Hz
  480x270 (0x29a) 18.625MHz +HSync -VSync DoubleScan
        h: width   480 start  504 end  520 total  560 skew    0 clock  33.26KHz
        v: height  270 start  271 end  274 total  278           clock  59.82Hz
  432x243 (0x29c) 16.250MHz -HSync +VSync DoubleScan
        h: width   432 start  444 end  484 total  536 skew    0 clock  30.32KHz
        v: height  243 start  244 end  247 total  253           clock  59.92Hz
  432x243 (0x29d) 15.250MHz +HSync -VSync DoubleScan
        h: width   432 start  456 end  472 total  512 skew    0 clock  29.79KHz
        v: height  243 start  244 end  247 total  250           clock  59.57Hz
  320x240 (0x29f) 12.587MHz -HSync -VSync DoubleScan
        h: width   320 start  328 end  376 total  400 skew    0 clock  31.47KHz
        v: height  240 start  245 end  246 total  262           clock  60.05Hz
  800x600 (0x28b) 50.000MHz +HSync +VSync
        h: width   800 start  856 end  976 total 1040 skew    0 clock  48.08KHz
        v: height  600 start  637 end  643 total  666           clock  72.19Hz
❯
❯ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 2048 MB
    Total available memory: 2048 MB
    Currently available dedicated video memory: 1832 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GT 540M/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 390.157
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 390.157
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 390.157
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Offline

Board footer

Powered by FluxBB