Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia optimus laptop xrandr gnome 3.10 chrash
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
siguru1
n00b
n00b


Joined: 31 Aug 2012
Posts: 11

PostPosted: Sat Apr 19, 2014 5:25 pm    Post subject: nvidia optimus laptop xrandr gnome 3.10 chrash Reply with quote

Hey folks.
Im trying to use my nvidia graphics card in my optimus laptop, and im having some trouble. Any help would be appreciated.

It seems someone finally found a way to use the NVIDIA card in optimus laptops via Xrandr. I followed the wiki here:
http://wiki.gentoo.org/wiki/NVIDIA_Driver_with_Optimus_Laptops

The problem is that gnome chrashes when i start x with nvidia as opengl provider and the xorg.conf below. I get this nice informative error message "Oh no! Something has gone wrong". I dont know where to start looking for the cause.
Everything is working fine if i delete xorg.conf and use xorg-x11 as opengl provider.

I have confirmed that the Nvidia card is infact working and rendering, achieving 2000+Mpixels/s with glxspheres64 in Xterm.

I have done
Code:
revdep-rebuild && emerge sync && emerge -1 $(qlist -IC x11-drivers)

packages are
Code:
[ebuild   R    ] x11-drivers/nvidia-drivers-334.21-r3
[ebuild   R    ] x11-drivers/xf86-input-evdev-2.8.2
[ebuild   R    ] x11-drivers/xf86-input-synaptics-1.7.4
[ebuild   R    ] x11-drivers/xf86-video-intel-2.21.15
[ebuild   R    ] x11-drivers/xf86-video-modesetting-0.8.1


xorg server version:
Code:
[ebuild   R    ] x11-base/xorg-server-1.15.0


emerge --info
Code:
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.3, glibc-2.17, 3.12.13-gentoo x86_64)
=================================================================
System uname: Linux-3.12.13-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700MQ_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:     8109332 total,   6563680 free
KiB Swap:   15623208 total,  15623208 free
Timestamp of tree: Sat, 19 Apr 2014 15:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
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/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://gentoo.mneisen.org/ ftp://mirror.netcologne.de/gentoo/ http://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ http://mirror.opteamax.de/gentoo/ rsync://ftp.df.lth.se/pub/gentoo/ http://ftp.df.lth.se/pub/gentoo/ ftp://ftp.df.lth.se/pub/gentoo/"
LANG="nb_NO.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X a52 aac acl acpi alsa amd64 apache2 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 java jpeg lcms ldap libnotify libsecret mad mmx mng modules mp3 mp4 mpeg multilib mysql nautilus ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf php png policykit ppds pulseaudio qt3support qt4 readline sdl session socialweb spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid 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="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="nb" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i965 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON



.xinitrc
Code:
exec gnome-session
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto




/etc/X11/xorg.conf
Code:
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection

Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection

Section "Screen"
Identifier "intel"
Device "intel"
EndSection


/var/log/Xorg.0.log
http://pastebin.com/8EDkpbWU

dmesg
http://pastebin.com/sAfKuQYv

/var/log/messages
http://pastebin.com/FZf0SX6T

Kernel config, /etc/kernels/kernel-config-x86_64-3.12.13-gentoo
http://pastebin.com/Kv4AJbuw

EDIT: corrected dmesg link.
found this in dmesg, but i dont know if it is related to the issue:
Code:
[   31.429315] traps: gnome-shell[3300] trap int3 ip:7f44710d3ec1 sp:7fff6ba1b8f0 error:0
[   31.668259] traps: gnome-shell[3330] trap int3 ip:7efef7ce6ec1 sp:7fff322039e0 error:0


EDIT: I tried the following:
Code:
emerge -1 $(qlist -IC x11*)
emerge -1 $(qlist -IC gnome*)
emerge -1 $(qlist -IC dbus*)

Everything related to gnome, X11 and dbus is recompiled with no result.

Running games via wine in Xterm shows really impressive performance results.

EDIT: tried updating to gnome shell 3.10.4-r2. No effect
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