I have a hp pavilion with a nvidia GeForce GTX 1050.
I set the kernel options according to the gentoo handbooks for X and nvidia, repsectively.
My make.conf contains (amongst others) the USE entries 'X', 'opengl', 'nvidia' ,'glut'
I built the kernel, rebooted, and did
Code: Select all
emerge --ask --verbose x11-base/xorg-drivers x11-drivers/nvidia-driversI called 'nvidia-xconfig' to create an xorg.conf.
However, startx failed:
Code: Select all
~ # startx
X.Org X Server 1.20.7
X Protocol Version 11, Revision 0
Build Operating System: Linux 5.4.28-gentoo-x86_64 x86_64 Gentoo
Current Operating System: Linux quetzal 5.4.28-gentoo-x86_64 #1 SMP Wed Apr 15 11:10:32 CEST 2020 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-5.4.28-gentoo-x86_64 root=UUID=a5023d91-b10e-411a-963e-1a4728447fc3 ro
Build Date: 13 April 2020 04:24:53PM
Current version of pixman: 0.38.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr 15 11:37:24 2020
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server errorCode: Select all
[ 1928.051] (EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory)I then tried 'eselect opengl list', but eselect claims not to have this:
Code: Select all
~ # eselect opengl list
!!! Error: Can't load module opengl
exitingCode: Select all
~ # lsmod | grep nvidia
nvidia_drm 49152 0
nvidia_modeset 1085440 1 nvidia_drm
nvidia 20013056 1 nvidia_modeset
drm_kms_helper 217088 2 nvidia_drm,i915
drm 552960 4 drm_kms_helper,nvidia_drm,i915
i2c_core 94208 10 i2c_designware_platform,videodev,i2c_hid,i2c_designware_core,drm_kms_helper,i2c_algo_bit,nvidia,i2c_i801,i915,drm

