Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
3d with nvidia-drivers not working after a bunch of updates
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
aion1223
n00b
n00b


Joined: 05 Oct 2018
Posts: 11

PostPosted: Mon Oct 08, 2018 7:21 am    Post subject: 3d with nvidia-drivers not working after a bunch of updates Reply with quote

Everything worked fine before updating a bunch (e.g. kernel, mesa, nvidia-drivers, etc). I did emerge --sync, and emerge --update --newuse --deep @world. Since then, it seems that the 3D acceleration is not working. Moreover, I have another issue that nothing is recorded in /var/log/message although I have syslog-ng on, I believe. I am sorry that the provided log would be initially limited.

The symptom is, I can run X-server by disabling gdm and running "startx." However, I can't run gdm. It seems hanging.

After doing "startx," glxinfo shows this:
Code:

 $ glxinfo
name of display: :0
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  49
  Current serial number in output stream:  48


I have only an NVIDIA's GTX 1050 card:
Code:

$ lspci | egrep -i vga
09:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050] (rev a1)


My kernel is configured to have only nvidia, not the open source nouveau. The same for make.conf:
Code:

$ cat /etc/portage/make.conf | egrep -i video
VIDEO_CARDS="nvidia"


However, once upon a time, I enabled nouveau, and emerge --update --deep -v --newuse @world. I did the same after disabling nouveau.

Everything worked fine before I updated a bunch of things that include kernel, nvidia driver, mesa, etc. I do not know what broke my system, and where to start.

I hope that I be able to find the working combination so that I can use my Gentoo for my work. Also, I would like to narrow down the problem to resolve and/or understand this issue.

Here are my emerge --info:
Code:


Portage 2.3.50 (python 3.6.6-final-0, default/linux/amd64/17.0/systemd, gcc-8.2.0, glibc-2.27-r6, 4.18.12-gentoo x86_64)
=================================================================
System uname: Linux-4.18.12-gentoo-x86_64-AMD_Ryzen_5_1500X_Quad-Core_Processor-with-gentoo-2.6
KiB Mem:    16424796 total,   6713880 free
KiB Swap:   17415164 total,  17415164 free
Timestamp of repository gentoo: Mon, 08 Oct 2018 04:30:01 +0000
Head commit of repository gentoo: 39ccd1eecf8508d7b3420e2927f7c9806d49ce82
sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p3) 2.31.1
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo
dev-util/cmake:           3.12.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo, 2.31.1-r1::gentoo
sys-devel/gcc:            5.4.0-r4::gentoo, 8.2.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

dotnet
    location: /var/lib/layman/dotnet
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/dotnet.git
    masters: gentoo
    priority: 50

eclipse
    location: /var/lib/layman/eclipse
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/eclipse-overlay.git
    masters: gentoo
    priority: 50

mozilla
    location: /var/lib/layman/mozilla
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/mozilla.git
    masters: gentoo
    priority: 50

stuff
    location: /var/lib/layman/stuff
    sync-type: laymansync
    sync-uri: https://github.com/istitov/stuff.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=znver1 -mtune=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=znver1 -mtune=znver1"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US ko"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="R X a52 acc acl acpi alsa amd64 anthy apache apache2 apng avx avx2 berkdb bzip2 c++ cairo cdpau cdr cjk clang cleartype cli corefonts crypt cups cxx dbus detex device-mapper dhcp dirac divx dri dvd dvdr dvdread dvi2tty emacs encode epspdf extras ffmpeg flac fortran fuse gdbm gdu gif gimp glitz gnome gnome-keyring gnome-online-accounts gold gtk gtk3 hal iconv icu imap introspection ipod ipv6 irc java jingle jpeg jpeg2k lame latex libffi libtirpc libwww linguas_en linguas_ja linguas_ko linlinguas_en_US m17n-lib maildir mikmod mmx mp2 mp3 mp3g2 mp4 mp4live mpeg mplayer multilib multitarget ncurses networkmanager nls nptl nsplugin ogg ogm opengl openmp pam pcre pdfannotextractor pluginwrapper png podcast policykit postscript ppds pstricks publishers pulseaudio python readline real samba science scim sdl seccomp sftp sid snmp sound sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 ssh ssl ssse3 subversion svg syslog systemd tcpd tex4ht texi2html theora threads tiff tracker truetype type1 udev unicode usb vaapi vcd vnc vorbis win32codecs wma wmf wmp x264 x265 xattr xcb xetex xine xml xvid youtube zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias http2 slotmem_shm xml2enc proxy proxy_balancer proxy_connect proxy_fcgi proxy_ftp proxy_html proxy_http" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="mouse keyboard evdev synaptic virtualbox" KERNEL="linux" L10N="ja ko en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF NVPTX X86 AArch64 ARM Hexagon MSP430 Mips PowerPC Sparc SystemZ XCore" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="x86_64 aarch64 arm" QEMU_USER_TARGETS="aarch64 arm armeb x86_64" RUBY_TARGETS="ruby23 ruby25" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Here is uname -a and lsmod:
Code:

 $ uname -a
Linux localhost.localdomain 4.18.12-gentoo #1 SMP Sat Oct 6 18:20:29 KST 2018 x86_64 AMD Ryzen 5 1500X Quad-Core Processor AuthenticAMD GNU/Linux
 $ lsmodModule                  Size  Used by
tun                    40960  0
ipt_MASQUERADE         16384  1
iptable_nat            16384  1
nf_nat_ipv4            16384  2 ipt_MASQUERADE,iptable_nat
nf_nat                 32768  1 nf_nat_ipv4
mousedev               24576  0
usbhid                 49152  0
nvidia_drm             45056  2
nvidia_modeset       1003520  3 nvidia_drm
fuse                  110592  19
vfat                   24576  1
fat                    73728  1 vfat
nvidia              16293888  83 nvidia_modeset
xhci_pci               16384  0
xhci_hcd              196608  1 xhci_pci
vboxpci                28672  0
vboxnetadp             28672  0
vboxnetflt             32768  0
vboxdrv               413696  3 vboxpci,vboxnetadp,vboxnetflt



Thank you!
Back to top
View user's profile Send private message
danoam
n00b
n00b


Joined: 09 Oct 2018
Posts: 6

PostPosted: Tue Oct 09, 2018 12:27 pm    Post subject: Reply with quote

Is your user account member of the video group? If not then try adding it with gpasswd -a username video.
Also try checking your OpenGL provider with eselect opengl list and make sure the nvidia entry is enabled there.
Back to top
View user's profile Send private message
aion1223
n00b
n00b


Joined: 05 Oct 2018
Posts: 11

PostPosted: Tue Oct 09, 2018 1:04 pm    Post subject: Reply with quote

Thank you so much, danoam!

Indeed, eselect opengl solved a problem. Now, glxgears shows what is expected. Everything looks fine unless I do "systemctl enable gdm" or "/usr/sbin/gdm."

Nonetheless, I cannot yet see the greeter (where I choose the account, and give my password in the text box). All I see is a black screen.

It does not seem that syslog-ng starts normally, which seems another problem. However, by manually running syslog-ng, I can collect a logs. It is a lot, and still did not figure out where to start.
Back to top
View user's profile Send private message
danoam
n00b
n00b


Joined: 09 Oct 2018
Posts: 6

PostPosted: Tue Oct 09, 2018 6:31 pm    Post subject: Reply with quote

I can't be of much help with gdm, I have no experience with it. As for syslog-ng, you might want to take a look at the Gentoo wiki for it and check that it is configured properly to be used in conjunction with systemd.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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