You are not logged in.

#1 2016-09-24 15:02:44

matus123
Member
Registered: 2016-09-24
Posts: 3

Blank screen while running Xorg with proprietary nvidia driver

Hi, i have a problem when trying to run Xorg with nvidia driver.

I am using laptop which has integrated intel graphic with nvidia gt 520m discrete card. I dont have option to disable optimus in bios. I was successful to use nvidia card with bumblebee in other linux installation, but now i want to use only nvidia card, dont care about power managment, i just want to use nvidia without intel graphic card.

I am starting Xorg manually by "startx" command with /home/matus/.xinitrc file. The result of "startx" is frozen tty. When i switch to another tty and back to tty where i started Xorg, video is frozen on the last screen.

When i try to kill Xorg from another tty, i get message about succesfully terminated Xorg server. I dont see any EE(Error) in /var/log/Xorg.0.conf.

I think i am doing something wrong, so if anyone could help me how to properly start Xorg with using only nvidia card.

i am using default "xorg.conf" file + custom created "20-nvidia.conf" file

providing some logs and conf files:

/var/log/Xorg.0.conf
http://pastebin.com/yFTvCBUe

/etc/X11/xorg.conf.d/20-nvidia.conf
http://pastebin.com/QqMY1B4p

/home/matus/.xinitrc
http://pastebin.com/iVcCDeMB

when i look which processes are running i can see there all xterm and twm specified in  /home/matus/.xinitrc, so i think it is running, but not displaying video output.

Thanks for help.

Last edited by matus123 (2016-09-24 15:03:46)

Offline

#2 2016-09-24 15:53:57

loqs
Member
Registered: 2014-03-06
Posts: 19,183

Re: Blank screen while running Xorg with proprietary nvidia driver

Hello matus123 welcome to the arch forums
NVIDIA_Optimus#Using_nvidia includes the following in its xorg.conf example

Section "Module"
    Load "modesetting"
EndSection

Which is missing from your 20-nvidia.conf

Offline

#3 2016-09-24 16:32:41

matus123
Member
Registered: 2016-09-24
Posts: 3

Re: Blank screen while running Xorg with proprietary nvidia driver

Hello, I tried adding those lines to configuration file, but without any success. Screen is black.

New errors appeared in Xorg.0.log.

[   963.459] (II) glamor: OpenGL accelerated X.org driver based.
[   963.477] (EE) modeset(G0): eglInitialize() failed
[   963.477] (EE) modeset(G0): glamor initialization failed

full Xorg.0.log
http://pastebin.com/zEBLBP8h

Offline

#4 2016-09-24 17:49:35

loqs
Member
Registered: 2014-03-06
Posts: 19,183

Re: Blank screen while running Xorg with proprietary nvidia driver

Missed in your .xinitrc you have

xrandr --setprovideroutputsource NVIDIA-0

instead of as suggested in the wiki

xrandr --setprovideroutputsource modesetting NVIDIA-0

Offline

#5 2016-09-24 17:57:35

matus123
Member
Registered: 2016-09-24
Posts: 3

Re: Blank screen while running Xorg with proprietary nvidia driver

Oh my god... now it is working. I should read wiki pages more carefully. ?

Thank you a lot.

Offline

Board footer

Powered by FluxBB