You are not logged in.

#1 2018-10-17 20:09:35

andreymal
Wiki Maintainer
Registered: 2014-02-02
Posts: 10

Proprietary nvidia driver does not work with Optimus (xrandr BadMatch)

I use Arch Linux on Acer Aspire E5-571G for four years, and nvidia worked fine all this time. But it broke a few days ago.

I tried many instructions from the internet (including this topic), but nothing helped for me.

I also tried to reinstall Arch Linux from scratch, but it is still broken.

I tried to remove the glamoregl module, but it does not help.

I tried to install nvidia-390 instead of the latest nvidia package, but it does not help.

This xorg.conf worked fine for many months:

Section "Module"
	Load "modesetting"
EndSection

Section "Device"
	Identifier "nvidia"
	Driver "nvidia"
	BusID "PCI:3:0:0"
	Option "AllowEmptyInitialConfiguraion"
EndSection

But today xrandr does not work:

# xrandr --setprovideroutputsource modesetting NVIDIA-0
# xrandr --auto
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  7 (RRSetScreenSize)
  Serial number of failed request:  31
  Current serial number in output stream:  32

Why? What does this error mean? Why it worked few days ago and does not work today? Is this a bug with latest updates? How to fix it?

Xorg.0.log file: https://pastebin.com/U93pNGmH

Offline

#2 2018-10-17 22:34:17

andreymal
Wiki Maintainer
Registered: 2014-02-02
Posts: 10

Re: Proprietary nvidia driver does not work with Optimus (xrandr BadMatch)

Hmmm, this is error is present if xorg tty is not active. But when i activate it (Alt+F1) before using xrandr (sleep 5), there is another error:

[  8801.726] (II) Initializing extension NV-CONTROL
[  8801.727] (EE) modeset(G0): failed to set mode: No space left on device
[  8801.727] (EE) 
Fatal server error:
[  8801.728] (EE) failed to create screen resources(EE) 

But I still don't know what is it and how to fix it

Xorg.0.log with this error: https://pastebin.com/Jd6hG2we

Offline

#3 2018-10-18 07:09:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,743

Re: Proprietary nvidia driver does not work with Optimus (xrandr BadMatch)

I recon these outputs are both from running xrandr on a tty that doesn't have X running? FWIW if you would want to test that you should export DISPLAY to the value your xorg is running on.

How do you start X ? if you use startx post your xinitrc. Also elaborate on "tried to remove glamoregl". what did you do? You shouldn't have to do anything in this regard.

Offline

#4 2018-10-18 08:12:43

andreymal
Wiki Maintainer
Registered: 2014-02-02
Posts: 10

Re: Proprietary nvidia driver does not work with Optimus (xrandr BadMatch)

V1del wrote:

you should export DISPLAY

Of course I do it

V1del wrote:

How do you start X ?

I use simple "Xorg :0" command for testing purposes. I don't have any xinitrc files

I can use LightDM with "display-setup-script=/etc/lightdm/display_setup.sh" as the wiki says, but it doesn't work either
(note that everything worked a few days ago, I don't know what was changed)

V1del wrote:

what did you do?

mv /usr/lib/xorg/modules/libglamoregl.so /usr/lib/xorg/modules/libglamoregl.disabled.so

V1del wrote:

You shouldn't have to do anything in this regard.

Okay, glamoregl is not disabled now. But some instructions in the internet (including the official nvidia documentation) recommend to disable it ¯\_(ツ)_/¯

Offline

#5 2018-10-23 22:30:49

andreymal
Wiki Maintainer
Registered: 2014-02-02
Posts: 10

Re: Proprietary nvidia driver does not work with Optimus (xrandr BadMatch)

I don't know what was changed, but today everything works with the same config ¯\(°_o)/¯

Offline

Board footer

Powered by FluxBB