Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia-xconfig not found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
notooth
n00b
n00b


Joined: 10 Jul 2015
Posts: 7

PostPosted: Fri Jul 10, 2015 12:27 am    Post subject: nvidia-xconfig not found Reply with quote

Hi everyone,

I do not have nvidia-xconfig on my machine. Can anyone tell me where I can get it?
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Fri Jul 10, 2015 7:10 am    Post subject: Reply with quote

hi,

maybe this is useful for you

https://wiki.gentoo.org/wiki/NVidia/nvidia-drivers
Back to top
View user's profile Send private message
notooth
n00b
n00b


Joined: 10 Jul 2015
Posts: 7

PostPosted: Fri Jul 10, 2015 8:56 am    Post subject: Reply with quote

I got these error:

Quote:

# rmmod nvidia
rmmod: ERROR: Module nvidia is not currently loaded

# modprobe nvidia
modprobe: FATAL: Module nvidia not found.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Fri Jul 10, 2015 9:12 am    Post subject: Reply with quote

did you install nvidia-drivers?

emerge app-portage/portage-utils
qlist -Iv nvidia
Back to top
View user's profile Send private message
notooth
n00b
n00b


Joined: 10 Jul 2015
Posts: 7

PostPosted: Fri Jul 10, 2015 9:48 am    Post subject: Reply with quote

tw04l124 wrote:
did you install nvidia-drivers?

emerge app-portage/portage-utils
qlist -Iv nvidia


Yes, I have installed nvidia-driver and app-portage/portage-utils, but "qlist -Iv nvidia" returned nothing.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Fri Jul 10, 2015 11:40 am    Post subject: Reply with quote

Code:
localhost roman # qlist -Iv nvidia
media-video/nvidia-settings-343.22
x11-drivers/nvidia-drivers-340.76
localhost roman # grep nvidia /etc/make.conf
     nsplugin ntfs ntfsdecrypt ntfsprogs nut nuv nvcontrol nvidia odk ogre ois
VIDEO_CARDS="nvidia"
localhost roman # eselect opengl show
nvidia


Please check if you get similar results! I run a legency card and therefore use an older binary driver

and

Code:
emerge -pv nvidia-drivers

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] x11-drivers/nvidia-drivers-340.76::gentoo  USE="X acpi multilib tools uvm -pax_kernel" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


Do you see a Big R at the start for Rebuild or a big N for New (not installed package) ?

AFAIK you need nvidia-drivers with xorg-server and the xorg-server handles the config itself withotu user config these days

Code:
localhost roman # nvidia-
nvidia-bug-report.sh  nvidia-modprobe       nvidia-settings       
localhost roman # man nvidia-xconfig


funny i can not run nvidia-xconfig but i got a man-page for it ...

and i assume you refer to this http://http.download.nvidia.com/XFree86/Linux-x86/1.0-8774/README/chapter-03.html

and expect nvidia-xconfig to be on gentoo too.

I never heard of nvidia-xconfig before and i run for 6 years this gentoo notebook with nvidia

May I kindly ask did you followed the guide i posted earlier? Or compared your settings with this guide?

do you have those files?

Code:
localhost roman # cat /etc/X11/xorg.conf.d/nvidia.conf
Section "Device"
         Identifier  "nvidia"
         Driver      "nvidia"
         Option "Coolbits" "1234"

EndSection
localhost roman # cat /etc/X11/xorg.conf.d/20opengl.conf
Section "Files"
   ModulePath "/usr/lib32/xorg/modules"
   ModulePath "/usr/lib64/opengl/nvidia"
   ModulePath "/usr/lib64/xorg/modules"
EndSection
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Fri Jul 10, 2015 11:58 am    Post subject: Reply with quote

Code:
ls -l /opt/bin/nvidia-xconfig
-rwxr-xr-x 1 root root 186752 Jul 10 13:11 /opt/bin/nvidia-xconfig


https://wiki.gentoo.org/wiki/NVidia/nvidia-drivers

Quote:
It should be enough to run the following command before rebooting:
user $ /opt/bin/nvidia-xconfig
Back to top
View user's profile Send private message
notooth
n00b
n00b


Joined: 10 Jul 2015
Posts: 7

PostPosted: Fri Jul 10, 2015 5:45 pm    Post subject: Reply with quote

Hi tw04l124,

I followed the guide you posted earlier, and this guide. I see the big N at the start and an error at the end of the emerge command:

Quote:

# emerge --ask nvidia-drivers

There are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ] x11-drivers/nvidia-drivers-340.76::gentoo USE="X acpi multilib tools -pax_kernel -uvm" 0 KiB

Would you like to merge these packages? [Yes/No] y

........
........

Error: x11-drivers/nvidia-drivers-340.76::gentoo failed (compile phase): emake failed
......
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Fri Jul 10, 2015 9:51 pm    Post subject: Reply with quote

notooth wrote:
Hi tw04l124,

I followed the guide you posted earlier, and this guide. I see the big N at the start and an error at the end of the emerge command:

Quote:

# emerge --ask nvidia-drivers

There are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ] x11-drivers/nvidia-drivers-340.76::gentoo USE="X acpi multilib tools -pax_kernel -uvm" 0 KiB

Would you like to merge these packages? [Yes/No] y

........
........

Error: x11-drivers/nvidia-drivers-340.76::gentoo failed (compile phase): emake failed
......


Hi, which kernel are you running/trying to run nvidia-drivers-340.76 on? I am running those nvidia-drivers myself and they will not build on kernel 4.0+ without a special patch. You can either use the patch or you can mask the later kernels and use a compatible kernel.

Myself I just put this in /etc/portage/package.mask:

Code:

>x11-drivers/nvidia-drivers-340.9999
>sys-kernel/gentoo-sources-3.19.9999


This then prevents me from emerging the later incompatible kernels or the later incompatible nvidia releases. Note that I am on ~amd64. You might also decide to use the stable LTS support kernel which I believe would look something like this:

Code:

>x11-drivers/nvidia-drivers-340.9999
>sys-kernel/gentoo-sources-3.18.9999


Please see these threads for more details and the other patching solution if you wish to use the 4.0+ kernels:

https://forums.gentoo.org/viewtopic-t-1014974-postdays-0-postorder-asc-start-0.html
https://forums.gentoo.org/viewtopic-t-1021420.html

Also if you went through the guide I presume 340.76 is the right driver? Note that newer hardware probably uses later drivers and some even older hardware likely uses the older drivers. So it depends on what GPU you have.
Back to top
View user's profile Send private message
notooth
n00b
n00b


Joined: 10 Jul 2015
Posts: 7

PostPosted: Fri Jul 10, 2015 11:16 pm    Post subject: Reply with quote

Can you help me fix this issue:

Quote:

# echo ">sys-kernel/gentoo-sources-3.19.9999" > /etc/portage/package.mask
-bash: /etc/portage/package.mask: Is a directory
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Fri Jul 10, 2015 11:35 pm    Post subject: Reply with quote

notooth wrote:
Can you help me fix this issue:

Quote:

# echo ">sys-kernel/gentoo-sources-3.19.9999" > /etc/portage/package.mask
-bash: /etc/portage/package.mask: Is a directory


Hello.

'package.mask' can be either a single file or a directory. Some people keep it a directory while other keep it a single file (such as myself). If a directory Portage (I believe) should read every file within that directory just the same. So instead maybe you want to put it in '/etc/portage/package.mask/gentoo-sources' instead.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sat Jul 11, 2015 7:16 am    Post subject: Reply with quote

Big N indicates not installed. N for new package.

I highly recommend reading about bash and about portage. I need to improve my bash skills myself too.
Code:
man portage
is a start.


notooth wrote:
Can you help me fix this issue:

Quote:

# echo ">sys-kernel/gentoo-sources-3.19.9999" > /etc/portage/package.mask
-bash: /etc/portage/package.mask: Is a directory


should not it be

echo ">sys-kernel/gentoo-sources-3.19.9999" >> /etc/portage/package.mask

>> instead of > afaik

some examples from my history
Code:
  210  echo "dev-libs/liborcus-0.9.2:0/0.10::gentoo" >> /etc/portage/package.mask
  212  echo "=dev-libs/nettle-3.1.1:0/6::gentoo" >> /etc/portage/package.mask
  214  echo "=media-libs/raptor-2.0.14:2/2::gentoo" >> /etc/portage/package.mask


Please be aware when you mask those packages, hard mask them, you will not be able to update those when a compatible version comes.
It is your job than to watch over the time until a compatible driver comes and unmask those packages. Also the kernel is a critical component you should stick to something secure, marked green. => packages.gentoo.org ...
Back to top
View user's profile Send private message
notooth
n00b
n00b


Joined: 10 Jul 2015
Posts: 7

PostPosted: Sat Jul 11, 2015 10:17 am    Post subject: Reply with quote

After manually creating a file /etc/portage/package.mask/gentoo-sources and adding ">sys-kernel/gentoo-sources-3.19.9999" to it, I still got an error:

Quote:
Error: x11-drivers/nvidia-drivers-331.113::gentoo failed (compile phase): emake failed


Maybe I should try with nouveau driver.
Back to top
View user's profile Send private message
notooth
n00b
n00b


Joined: 10 Jul 2015
Posts: 7

PostPosted: Sat Jul 11, 2015 12:54 pm    Post subject: Reply with quote

I followed the instruction at https://wiki.gentoo.org/wiki/Xorg/Guide to setup the X server with nouveau driver, and I got an error when I run startx:

Quote:

Fatal error:
(EE) no screens found(EE)


Please help.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sun Jul 12, 2015 8:17 am    Post subject: Reply with quote

nvidia is not nouveaou => binary vs open source. => decent acceleration vs 2d + a bit 3d on some cards

you need to decide yourself based on the age of your hardware and needed gpu acceleration.

You may read first the docs about nvidia / nouveaou...

that link enforces the open source drivers. which do nothave proper 3d acceleration (peeps will come and say otherwise but there was a page in the past not very often updated on the features of different cards and my 6 year old nvidida card still has no proper 3d acceleration open source vise)...

i had a reason why i gave you the binary nvidia-drivers link in the first place, ...

https://wiki.gentoo.org/wiki/NVidia

Quote:
The nVidia GPU is a popular graphical chipset. It can be used with either open-source driver (x11-drivers/xf86-video-nouveau), or proprietary driver (x11-drivers/nvidia-drivers). The proprietary driver is often seen as a must-have for the more computationally intensive 3D applications and games.


maybe you have a optimus thing and need this

https://wiki.gentoo.org/wiki/NVIDIA_Driver_with_Optimus_Laptops

Quote:
Note
This article is about native Optimus support using the official Nvidia drivers (x11-drivers/nvidia-drivers) – it is not about bumblebee; bumblebee is not used in the following configuration.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sun Jul 12, 2015 8:25 am    Post subject: Reply with quote

Maybe worth to ask now, upload those to a pastebin webservice if possible.

lspci

lshw (part of the gpu)

make.conf

is it optimus box or not?

you could use vesa /vga first so you have very low resolution x-server and than get the nvidia-card to work. vesa / vga standard works on mostly any card afaik

and how do you start your x-server?
Which init system are you using? openrc?
https://wiki.gentoo.org/wiki/Comparison_of_init_systems
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum