Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] NVidia + Desktop Effects + KDE?
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
dspahn
Guru
Guru


Joined: 22 Jun 2006
Posts: 360

PostPosted: Wed Oct 24, 2018 1:56 pm    Post subject: [Solved] NVidia + Desktop Effects + KDE? Reply with quote

I have Gentoo running on a laptop, which is a HP zBook 15- Pretty sure it is the first generation because it doesn't have a generation number indicated anywhere. It has hybrid graphics, so I have enabled both nVidia and Intel drivers in X. The desktop environment loads and eselect opengl list and eselect OpenCL list return NVidia. I have transparency effects, though dragging the windows doesn't "look" accelerated. I tried emerging mesa-progs to get glxgears and I get the error:
Quote:
Error: couldn't get an RGB, Double-buffered visual


No surprise because I am using NVidia-drivers, as shown:

Quote:
[ebuild R ] x11-drivers/nvidia-drivers-396.54:0/396::gentoo USE="X acpi driver kms multilib tools -compat -gtk3 -pax_kernel -static-libs -uvm -wayland" ABI_X86="(64) -32 (-x32)" 0 KiB

Note that my session is Plasma, not Plasma (wayland).


Here is my emerge --info:

Quote:
emerge --info
Portage 2.3.49 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-7.3.0, glibc-2.26-r7, 4.14.65-gentoo x86_64)
=================================================================
System uname: Linux-4.14.65-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700MQ_CPU_@_2.40GHz-with-gentoo-2.4.1
KiB Mem: 7576612 total, 6090032 free
KiB Swap: 12287996 total, 12287996 free
Timestamp of repository gentoo: Tue, 23 Oct 2018 11:30:01 +0000
Head commit of repository gentoo: b1ecf54d9e26f1c9b1f357d1fa191e93d0e87202
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash: 4.4_p12::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.24.3-r1::gentoo
dev-lang/python: 2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake: 3.9.6::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.4.1-r2::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.9.6-r5::gentoo, 1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils: 2.30-r4::gentoo
sys-devel/gcc: 7.3.0-r3::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc: 2.26-r7::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
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="ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding browser-integration bzip2 cairo cdda cdr cli crypt cups cxx dbus declarative display-manager dmx dri dri3 dts dvd dvdr emboss encode exif fam fbcondecor flac fortran gdbm gif glamor gnuefi gpm grub gtk handbook htpiconv iconv import ipv6 jpeg kde kdrive kipi kmod kwallet lcms ldap legacy-systray libnotify libtirpc mad mng modules mp3 mp4 mpeg multilib nat ncurses networkmanager nls nptl ntfs ogg opengl openmp pam pango pcre pdf phonon plasma plymouth png policykit ppds pulseaudio qml qrcode qt5 readline reiserfs sddm sdl seccomp semantic-desktop spell ssl startup-notification svg systemd tcpd tiff tools truetype udev udisks unicode upower usb user-session vorbis wallpapers widgets wxwidgets x264 xattr xcb xcomposite xephyr xml xnest xorg xv xvfb xvid xvmc zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda-intel intel8x0 intel8x0m" 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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="libinput synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="intel i915 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Here's my.config:
https://paste.pound-python.org/show/5YaJN3WN4U6pLZt2aEJQ/

Note that the option to support hybrid graphics is enabled in the config.
uname -ar:
Quote:
Linux USMDITLT007 4.14.65-gentoo #7 SMP Sun Oct 21 23:00:49 EDT 2018 x86_64 Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz GenuineIntel GNU/Linux


here is a wgetpaste of glxinfo over ssh:
https://paste.pound-python.org/show/zRhS2bbOLpvtkBPRGgpP/

Please let me know if there is any other info I can collect to 'help you help me'
_________________
---

Since there is no admin beer, I stick to root beer.


Last edited by dspahn on Thu Oct 25, 2018 9:19 am; edited 1 time in total
Back to top
View user's profile Send private message
dspahn
Guru
Guru


Joined: 22 Jun 2006
Posts: 360

PostPosted: Thu Oct 25, 2018 9:18 am    Post subject: Here’s how I fixed it... Reply with quote

This laptop features hybrid graphics. It doesn’t say Optimus but it acts the same or similar. The solution was to disable hybrid graphics in the BIOS. I made that single change, rebooted and had wobbly windows and Desktop Cube. One thing I also noticed was that the windows shortcuts - not as in MS Windows but as in the shortcuts that trigger windows effects - don’t work if they include an F1-F12 key- I haven’t looked into this, but it is worth noting since the desktop cube uses ctrl - f11 by default. For the cube to work, you also have to enable multiple desktops- no surprise but worth noting to answer the “why won’t it work?” Question without jumping to emerges and kernel rebuilds.
_________________
---

Since there is no admin beer, I stick to root beer.
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