You are not logged in.

#1 2019-08-05 19:27:58

Litarvan
Member
Registered: 2019-08-05
Posts: 4

[SOLVED] Screen freeze when launching Xorg with NVIDIA Drivers

I installed NVIDIA proprietary drivers right after installing Arch, now when I launch Xorg my screen just freezes. I'm able to switch to other TTY, but when I try to go on the TTY where Xorg was launched, it just freezes the screen. (No matter if i start X with LightDM or manually)
Seeing other topics, as I had a Laptop with both NVIDIA card and Intel graphics, I tried setting up Optimus.
But when i follow the "Using nvidia" section of the NVIDIA Optimus wiki page, after adding the BusID option to my xorg.conf, Xorg instantly crashes with error "no screens found(EE)" (edit: I also edited the xinitrc and lightdm display_setup : https://code.litarvan.com/arufi.txt )

I don't know what to do, since I don't have really explicit errors (the "no screens found" is very generic, and when I don't put the BusID option there seems to be no error in the Xorg logs).

Any help would be appreciated.

Without BusID (screen freeze on Xorg launch) :
Xorg output : https://code.litarvan.com/hequl.txt
Xorg logs : https://code.litarvan.com/uhota.txt

With BusID (no screen found error) :
Xorg output : https://code.litarvan.com/ebefi.txt
Xorg logs : https://code.litarvan.com/azoha.txt

Last edited by Litarvan (2019-08-06 14:32:13)

Offline

#2 2019-08-05 21:23:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,249

Re: [SOLVED] Screen freeze when launching Xorg with NVIDIA Drivers

Read the article again, just the xorg config is not enough, you'll have to add two xrandr lines to your .xinitrc or relevantly adjust your display manager's configuration. If it still doesn't work, post all your files you've adjusted.

Last edited by V1del (2019-08-05 21:28:16)

Online

#3 2019-08-05 22:55:07

Litarvan
Member
Registered: 2019-08-05
Posts: 4

Re: [SOLVED] Screen freeze when launching Xorg with NVIDIA Drivers

Sorry, forgot to mention it, but I also edited the .xinitrc along with the xorg config : https://code.litarvan.com/arufi.txt

Offline

#4 2019-08-06 08:04:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,249

Re: [SOLVED] Screen freeze when launching Xorg with NVIDIA Drivers

And you are attempting to start lightdm? Did you do both, the relevant config adjustment and setting the executable bit on the displaySetup file (for the lightdm user, or at least "other"?) FWIW generally the "screen not found" error is the correct result, given that that script wasn't executed. You might also want to install something minimal like openbox and add exec openbox to the end of your .xinitrc and see what results you get when you execute just startx.

Please post your current xorg.conf (or if you just want to test if this works in some shape or form you could also just remove it, it isn't necessary, the xrandr lines are though)

Last edited by V1del (2019-08-06 08:08:51)

Online

#5 2019-08-06 13:29:37

Litarvan
Member
Registered: 2019-08-05
Posts: 4

Re: [SOLVED] Screen freeze when launching Xorg with NVIDIA Drivers

Deleting xorg.conf worked (after doing everything you told me), thanks a lot ! Problem solved (gosh why everything is so complicated with NVIDIA on Laptops)

Offline

#6 2019-08-06 13:51:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,249

Re: [SOLVED] Screen freeze when launching Xorg with NVIDIA Drivers

Glad to hear please mark as [SOLVED] by editing the title in your first post: https://wiki.archlinux.org/index.php/Co … ow_to_post

FWIW correctly defined the xorg.conf should work as well, though it simply is often not strictly needed. (Given that it's only the contents mentioned in the article, results can vary if there's anything else defined like some autogenerated nvidia-xconfig or similar)

Online

#7 2019-08-06 14:32:05

Litarvan
Member
Registered: 2019-08-05
Posts: 4

Re: [SOLVED] Screen freeze when launching Xorg with NVIDIA Drivers

It was in fact generated with nvidia-xconfig (because it was not working in the first place)

Offline

Board footer

Powered by FluxBB