View previous topic :: View next topic |
Author |
Message |
windceltic n00b
Joined: 26 Oct 2015 Posts: 8
|
Posted: Mon Oct 26, 2015 4:37 am Post subject: Gentoo 4.0.5 and nvidia driver 340.xx |
|
|
Good evening. Following the manual, I installed gentoo and have made the necessary kernel configuration needed to install the video drivers to run "startx":
Input driver support
Kernel modesetting
Disable legacy framebuffer support and enable basic console FB support
nVidia settings
I installed Xorg, with the respective configuration "make.conf" adding these 2 lines as explained in the manual:
INPUT_DEVICES="evdev synaptics"
VIDEO_CARDS="nvidia"
during installation, the system downloaded and installed nvidia 355.11 drivers. When I run "startx" an error occurs: "Fatal server error: no screens found".
In the log file "Xorg.0.log" says:
"The NVIDIA GeForce 8400M GS GPU installed in this system. Is supported through the NVIDIA 340.xx Legacy drivers. Please visit http://www.nvidia.com/object/unix.html for more information. The 355.11 NVIDIA driver will ignore this"
My question is: How can I install the 340.xx version using emerge?... How I can do to make Portage not install the latest version of the driver, but install the version 340.xx? I have made -s with emerge looking some package with the "340" word without results. I researched on the forums, on the internet and I found some information but I have not yet managed to learn how to install the appropriate driver for my GPU. I need help with this please, thank you very much in advance, I am new to Gentoo, I come from Ubuntu a lot of years, then Arch and Gentoo now where I want to stay.
This is the driver package that Xorg automatically installed:
x11-drivers/nvidia-drivers-355.11-r2
I leave the contents of the file "Xorg.0.log"
http://paste.ubuntu.com/12967811/
Contents of the output of "startx":
http://paste.ubuntu.com/12967833/
Contents of the file "make.conf":
http://paste.ubuntu.com/12967819/
lspci output:
http://paste.ubuntu.com/12967839/ |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon Oct 26, 2015 5:20 am Post subject: |
|
|
create a mask file (the name you wish, nvidia-drivers looks kinda logic) with the version you want portage to ignore
Code: | mkdir /etc/portage/package.mask
echo ">x11-drivers/nvidia-drivers-341" > /etc/portage/package.mask/nvidia-drivers |
if you don't get it right, it tells portage any version higher than 341 should not be use.
more about package.mask in man portage |
|
Back to top |
|
|
windceltic n00b
Joined: 26 Oct 2015 Posts: 8
|
Posted: Mon Oct 26, 2015 7:29 am Post subject: nvidia-drivers-340.93 now installed but startx fail again |
|
|
Thanks for your answer, it helped me installing the rights drivers for my GPU, and I am learning more about package.mask rules; but I am still having problems "with startx".
When I execute "starx" it show me this errors now: "Failed to initialize the NVIDIA kernel module. Please see the system's kernel log for additional error messages and consult the NVIDIA README for details. No devices detected. Fatal server error: no screens found".
I do not understand. Because if I have now installed the correct driver still does not work? From everything I've read and I've been investigating sometimes I think it could be that the installed driver is not compatible with the version of the kernel installed (4.0.5). Is this the problem? If so how I can know what is the latest version of the kernel that works with my GPU? And how could install it with emerge? because when I run "emerge sys-kernel/gentoo-sources" will always install version 4.xx. What can I do? If this is not the problem, then what could it be?
Xorg.0.log:
http://paste.ubuntu.com/12968297/ |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon Oct 26, 2015 7:43 am Post subject: |
|
|
are you sure your 8400M is a real card and not some optimus base card?
i have no clue myself howto use optimus card, except the basic, you use some card (generally intel) that drive your monitor and the nvidia card only for rendering 3D.
howto setup this should be in the forum everywhere or also the wiki or wait for an optimus user to come in. |
|
Back to top |
|
|
windceltic n00b
Joined: 26 Oct 2015 Posts: 8
|
Posted: Mon Oct 26, 2015 5:41 pm Post subject: My GPU= 8400M GS / Dell XPS M1330 |
|
|
My GPU= Geforce 8400M GS
My Laptop= Dell XPS M1330 |
|
Back to top |
|
|
Buffoon Veteran
Joined: 17 Jun 2015 Posts: 1369 Location: EU or US
|
Posted: Mon Oct 26, 2015 7:19 pm Post subject: |
|
|
You need a four-line xorg.conf, otherwise the binary driver won't load. See Gentoo Wiki.
Code: | Section "Device"
Identifier "nvidia"
Driver "nvidia"
EndSection
|
|
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
|
Back to top |
|
|
|