Xorg crash after install - Nvidia graphics

Hello, I have installed the Calculate linux Desktop KDE to my laptop and on the very first boot I ran into a problem with Xorg and Nvidia drivers. After the initial loading before login activates screen goes black, only blinking yellow cursor remains. I switched tty and logged in, so I suppose rest of the OS installed properly. I tried startx but xorg alwais crashes. I read the log, I believe the problem could be Nvidia drivers. I followed instructions here (everything but modprobe):
[[http://www.calculate-linux.org/boards/23/topics/32130?r=32141#message-32141]]
Now before loading appears on screen appears video BIOS not found c000, then loading appers and then again black screen with yellow cursor (which by the way doesn’t react to any writing). I would like to ask if anyone knows how to fix this issue.
I thank in advance for any answers.

Hi, Vlastimil,
Which version do you use, stable or current? What video card do you have? Did you try opensource driver?

Thanks for the reply.
I use stable branch. My laptop has Nvidia 840M. While I was installing I checked the box to install Nvidia drivers + composite, not nouveau. But when I tried to fix graphics according to discusion I mentioned in my first post, so I used:

emerge x11-drivers/nvidia-drivers
cl-setup-video --video nvidia
eix nvidia-drivers
cl-setup-video --video nouveau

Now I believe the open source noveau is running, because when the system boots it writes nouveau.
I also found this on the forum:
[[http://www.calculate-linux.org/boards/16/topics/26910]]
Do you think this could solve the problem?

Hi,

 My laptop has Nvidia 840M

You have an Optimus card.
So you have both intel and NVidia.

Nouveau support Optimus technology, but not with nvidia-drivers.

So, you must setup the intel driver, and install bumblebee package.
To run softwares with nvidia card (for example a game) you must edit the command of the launcher with the optirun command.

I wrote a “how to” in french on my website : http://www.linuxtricks.fr/wiki/cartes-optimus-installer-bumblebee-sous-calculate-linux-ou-gentoo

But quickly, you must :

Install bumblebee :

emerge -avq bumblebee

Add bumblebee deamon at boot :

rc-update add bumblebee default

Add you user to bumblebee group :

usermod -G bumblebee -a <user>

Reboot.

To see if it works :

glxspheres 

You must see : OpenGL Renderer: Mesa DRI Intel® Ivybridge Mobile

And

optirun glxspheres 

You must see : OpenGL Renderer: GeForce GT 650M/PCIe/SSE2

If you want launch a software with NVidia card

optirun software

Thank you very much.
I have performed

emerge -avq bumblebee

After then installatin was finished emerge outputs:

*IMPORTANT: config file '/etc/portage/package.use/custom' needs updating.

Then, when I entered

rc-update add bumblebee default

rc-update outputs error:

rc-update: service 'bumblebee' does not exist

,so I followed instruction from linuxtricks.fr and performed.

echo "x11-base/xorg-drivers video_cards_nvidia #Carte Optimus" >> /etc/portage/package.use/custom

Then I again entered:

rc-update add bumblebee default

and yet again rc-update keeps outputing error:

rc-update: service 'bumblebee' does not exist

I’m not shure, what to do now.

What is the result of

emerge -pv bumblebee

?

Thanks for the fast help.
After “Calculating dependencies…done!” it outputs:

[ebuild  R  ] x11-base/xorg-drivers-1.17::gentoo INPUT_DEVICES=......
[ebuild N   ] x11-misc/virtualgl-2.4.1-r3::gentoo USE="ssl (-libressl)" ABI_X86="(64) -32 (-32)" 1090KiB
[ebuild N   ] sys-power/bbswitch-0.8::gentoo 16KiB
[ebuild N   ] x11-misc/bumblebee-3.2.1::gentoo USE="bbswitch" VIDEO_CARDS="nouveau nvidia" 140KiB

Total:......
!!! The following installed packages are masked:
- media-video/xanim-2.80.1-r4::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
 # Pacho Ramos ....
 # codecs are no usable, also really obsolete, bug #181959
 # Removal in month

Bumblebee isn’t installed.

Try to reinstall

emerge -qv bumblebee

Post the output of all the installation.

Here is the output.
(as an attachement)

IMG_20160824_210156.jpg

OK, bumblebee installed !

Add bumblebee deamon at boot :

rc-update add bumblebee default

Add you user to bumblebee group :

usermod -G bumblebee -a <user>

Reboot.

To see if it works :

glxspheres

You must see : OpenGL Renderer: Mesa DRI Intel® Ivybridge Mobile

And

optirun glxspheres

You must see : OpenGL Renderer: GeForce GT 650M/PCIe/SSE2

If you want launch a software with NVidia card

optirun software

When I rebooted the system got stuck (at least I think so).
(screen photo a attachment)
Could switching tty help?

IMG_20160824_213405.jpg
IMG_20160824_213405.jpg

When you press “escape” what is the last message ?

Escape key doesn’t react.

:S

Try to connect in root (Ctrl+Alt+F2) and uninstall bumblebee…

Maybe I am wrong with your problem…

rc-update del bumblebee
emerge -C bumblebee

Reboot.

what is the result of

lspci -v

?

I managed to get the last messages of system, photo again in attachment.

IMG_20160824_220803_HDR.jpg

I have modified /etc/conf.d/vlg, I uncommented line for kdm.
Then on reboot vgl could not find directory /var/run/xauth/A-0*
In my /var/run /xauth is absent.
Then I tried to install kdm to solve the problem, but emerge outputs conflict kdepasswd X kde/plasma
So I wanted to edit /etc/portage/make.conf but found out that this file is completely empty (though it is existent).
Does that mean that my instalation is broken?

KDE wasn’t supported (KDE4)

/etc/portage/make.conf is a directory, not a file.

What is the result of

lspci

?

How many videocards ? (line with VGA or 3D)

Here is the output of lspci (as an attachment). (1 line VGA - Intel, 1 line 3D - Nvidia)
Could you, please, specify what you meant by “KDE wasn’t supported (KDE4)”

I didn’t remove the bumblebee, since I think the problem is vgl.

IMG_20160825_103313_1_.jpg

OK !
Whew, bumblebee is the solution for you.

But you must setup the intel video driver by default.

cl-setup-video --video intel

vgl doesn’t work because nvidia already loaded maybe.

For “KDE” now KDE on Calculate is Version 5. So Version 4 isn’t supported.

Thank you so much, for all the help! KDE started to work, but when I enter (in Konsole):

glxspheres

output is

command not found

(it doesn’t work neither with nor with root)
I also tried

optirun glxspheres

output:

/usr/bin/vglrun: line 246: exec: glxspheres: not found