Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Black Screen, Plasma 5 & Nvidia Optimus
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
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Wed Apr 13, 2016 2:34 pm    Post subject: [SOLVED] Black Screen, Plasma 5 & Nvidia Optimus Reply with quote

Hi,

Since I have moved into Plasma 5 (beginning of February 2016) I cannot run Plasma 5 with Nvidia Optimus (as I can only use Intel). With Nvidia I have infamous black screen.

I have tested many xorg-servers, nvidia & intel drivers (older & newer) - nothing works :(

I posted a bug Xorg buglist a month ago - no answer:
https://bugs.freedesktop.org/show_bug.cgi?id=94577

I posted a bug on Nvidia list a month ago - no answer:
https://devtalk.nvidia.com/default/topic/928743/cannot-start-x-from-february-2016-nvidia-optimus/

I have consolekit with runleveldefault:
https://forums.gentoo.org/viewtopic-t-1039692-highlight-.html

The only error I have looks like Gentoo related (no other Linux distros had such error):
Code:
(EE) modeset(G0): failed to set mode: No space left on device


Last edited by Xywa on Tue May 31, 2016 11:28 am; edited 1 time in total
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Wed Apr 13, 2016 5:32 pm    Post subject: Reply with quote

It looks like a problem with your configuration...
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Thu Apr 14, 2016 8:17 am    Post subject: Reply with quote

genstorm wrote:
It looks like a problem with your configuration...


Right, but everything is like should be to the many (not only Gentoo) guides.

Where do you think I should ask for help if nvidia & xorg developers cannot fix it? Looks like something with modesettings, which is part of the kernel I think? So maybe on the kernel bugzilla, so someone could says what that error means:
Code:
(EE) modeset(G0): failed to set mode: No space left on device


Or is there any website with linux specialist, so I could pay them for help to fix the problem? I know Red Hat has professional support, but I am not sure if there such service for Gentoo.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Thu Apr 14, 2016 8:19 am    Post subject: Reply with quote

Just in case anyone flying by here would be able to help you, they'd need the full log to see what's going on and not just that one line, anyway.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Thu Apr 14, 2016 8:40 am    Post subject: Reply with quote

There is everything in those links with bug list, but here is. I was compiling system with xinerama USE flag and without, all combinations of xorg-server, nvidia & intel drivers aviable in last months:

Xorg.0.log
http://pastebin.com/rxsteDT9

# emerge --info
http://pastebin.com/X0yE3Hz3

.xinitrc
Code:
$ cat .xinitrc
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec startkde


# lspci
http://pastebin.com/gZZA13XE

xorg.conf
Code:
Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"
    Option "ConnectedMonitor" "CRT-0"
    Option "CustomEDID" "CRT-0:/lib/firmware/edid/1920x1080_Clevo_W670SR.bin"
    Option "UseEDID" "True"
EndSection


xorg.conf version.2
Code:
Section "ServerLayout"
    Identifier "layout"
    Screen 1 "nvidia"
    Inactive "intel"
    Option "Xinerama" "0"
EndSection


Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "RegistryDwords" "EnableBrightnessControl=1"
    Option "AllowEmptyInitialConfiguration"
EndSection


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

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

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 227
Location: Cambridge,UK

PostPosted: Thu Apr 14, 2016 2:20 pm    Post subject: Reply with quote

Xywa wrote:
There is everything in those links with bug list, but here is. I was compiling system with xinerama USE flag and without, all combinations of xorg-server, nvidia & intel drivers available in last months:


@Xywa,

You're randomly posting on other peoples threads all over the place I notice!! However clearly Yamakuzure knows how Bumblebee works and has a working configuration. In fact I bookmarked this thread (you made a guest appearance on!!) about Bumblebee - as a useful overview of how the technology works... Just for my "academic reference" - as my laptop only has a Nvidia GPU available (the Intel Haswell GPU is not wired up/disabled).

I didn't take me much Google'ing to find that the xinerama is essential for dual-monitor setups (you only want disable Xinerama / not enable it in your /etc/X11/xorg.conf* files - as this X feature is obsolete)...

Why don't actually try following the suggestions Yamakuzure made in the thread I've linked to above??!! Communication is a two-way process - not just about asking your questions - it's about listening / reading / absorbing the replies!! Instead of scatter gun trying lots of different package versions - try to work to/ base off someone else's working setup... Bumbleebee / Primus setups are known to be very fragile and break easily (during updates)...
Yamakuzure referenced an old/ stable branch Nvidia driver x11-drivers/nvidia-drivers-358.16-r1 - so why not use this?

If you're not a naturally methodical person - then write down/ type-up notes as you go along... You mentioned using Bumblebee before - but admitted you couldn't remember much about your original set-up...

Also what's the output from:
Code:
lsmod | egrep "(drm_i915|nvidia)"

Are you compiling the intel gpu kernel driver (drm_i915) as a module? Are you building the additional nvidia_drm and nvidia_modeset modules - if you are using the newer x11-drivers/nvidia-drivers package versions?

However I wouldn't recommend using bleeding-edge anything if you want to get a working Bumblebee/Primus setup working... You've got both a bleeding edge x11-base/xorg-server version and a bleeding edge x11-drivers/nvidia-drivers driver version in that Xorg log. Fine if you want to just use either an Intel graphics card or a Nvidia graphics card - just not together!! Also you probably don't want to be rolling on a such a new kernel version... Use an older one - so you've got more flexibility about what x11-drivers/nvidia-drivers you install (yes those unsupported kernel warnings are important)... Once you get a working Bumblebee setup you'd probably want to update the related packages step-by-step (gradually unmasking each one) - e.g. x11-base/xorg-server / media-libs/mesa etc. - to determine what is causing the inevitable breakage...

Also I'd definitely not recommend using the eselect-opengl implementation in my Overlay - which you asked about (on yet another - unrelated - forum thread)... That will (no doubt) break a Bumblebee-based setup (purely because I don't have the required dual-gpu hardware to test against).

Bob
_________________
system: G751JT (ASUS-NotebookSKU); processor: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz; memory: 32GiB System Memory; display: GM204M [GeForce GTX 970M]; disk: 2048GB Samsung SSD 850;BD-CMB UJ172 S;1024GB Samsung SSD 850
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Fri Apr 29, 2016 10:15 am    Post subject: Reply with quote

BobWya wrote:
You're randomly posting on other peoples threads all over the place I notice!!
Yes, I have got a graphic card I cannot use with Gentoo for the 3rd month now (which used to work for over 2 years), is it strange enough I am trying to find a solution? :)


BobWya wrote:
Bumbleebee
I used to use Bublebee for over a year, but from December 2014 I managed to use Nvidia propriety driver – which was very useful eg. for packages with vdpau USE flag (video editing). OK, bumblebee was enough for gaming, but with Nvidia driver I have more advantages. As Bumblebee was not updated for a long I could not run it after February 2016 (I had no such problems in 2014). It used to work for me (Nvidia driver) for over a year till February 2016, so what the point not to use it anymore?


BobWya wrote:
referenced an old/ stable branch Nvidia driver x11-drivers/nvidia-drivers-358.16-r1 - so why not use this?
This is the clue! I was testing everything back to xorg-server 1.17.4 with nvidia-drivers-358.16-r5 instead of nvidia-drivers-358.16-r1. I could not test xorg-server 1.16.4-r5 as there is a bug during compilation, but looks the light at the end of the tunnel.

With nvidia-drivers-358.16-r1 and xorg-server 1.17.4 - after startx command, I could see (and move) for 1 sec mouse coursor and the for abou 2 sec I can see KDE starting screen like this: http://www.techrapid.co.uk/wp-content/uploads/2015/03/KDE5-Splash_Screen_Right.png
When blue bar is in the middle, then I have infamous black screen.

The strange thing is, there are no errors or warnings in Xorg.0.log, so why I have a black screen?
http://pastebin.com/erzZx3aM

Code:
$ cat .xinitrc
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec startkde


Code:
$ cat /etc/X11/xorg.conf
Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"
    Option "ConnectedMonitor" "CRT-0"
    Option "CustomEDID" "CRT-0:/lib/firmware/edid/1920x1080_Clevo_W670SR.bin"
    Option "UseEDID" "True"
EndSection


BobWya wrote:
Are you compiling the intel gpu kernel driver (drm_i915) as a module?
No, I compile intel driver as part of kernel.


BobWya wrote:
Are you building the additional nvidia_drm and nvidia_modeset modules - if you are using the newer x11-drivers/nvidia-drivers package versions?
No, I don't think so. Should I? Is there any info about that?


Code:
# lsmod | egrep "(drm_i915|nvidia)"
nvidia_modeset        700133  0
nvidia               8688265  7 nvidia_modeset


emerge --info
http://pastebin.com/R35rP9xA

Quote:
Also you probably don't want to be rolling on a such a new kernel version... Use an older one

Which one do you recomend? I was testing back to 4.4.6 without a success, maybe I will try again with nvidia-drivers-358.16-r1.

Code:
# cat /etc/portage/package.mask
>x11-base/xorg-drivers-1.17
>x11-base/xorg-server-1.17.4
>x11-drivers/xf86-input-evdev-2.9.1
>x11-drivers/nvidia-drivers-358.16-r1
>x11-drivers/xf86-video-intel-2.99.917-r2
>=x11-drivers/xf86-input-mouse-1.9.1
>x11-drivers/xf86-input-synaptics-1.8.3
#>sys-kernel/gentoo-sources-4.4.6
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Wed May 04, 2016 11:32 am    Post subject: Reply with quote

Hi,

Apart of previous post, I have some update.

When I create a new user with only .xinitrc in /home/newuser directory
Code:
$ cat .xinitrc
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec startkde

and after typing startx from the console
[1] I could see a working mouse pointer for a few seconds
[2] then KDE Plasma starting screen
[3] then KDE Plasma desktop - mouse and touch-pad doesn't work, but keyboard does. I could use start menu through Alt+F1, but after chosing any aplication I could see it on the task bar on the bottom, but I do not know how to open a window with it - so I could see through eg. konsole - so I could test if opengl nvida is working (by glxgeras or glxinfo command).

a) Does anybody know how to maximize such program from the task bar in KDE?
b) Or how to do mouse (or touchpad) working in my case?

When I reboot the computer, after typing startx, after KDE starting screen can only see black screen, with working mouse pointer only on the egde of the screen about 1 px (up and down). Removing all the old files from the account makes KDE working as in example above...
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Sat May 21, 2016 8:20 am    Post subject: Reply with quote

Ladies and Gentelman,
:D 8) :D

After 4 months nearly at the end, ONE more things to resolve - but Plasma 5 works finally with Optimus (on 1 account only), but I need your help with last problem (bellow).

Bellow are also my tips (apart from previous posts) for other users struggling with Optimus and what I did:

[1] Try it on new user account:
There was a clue on Arch forum called "Clean cache (KDE) to resolve upgrade problems".
https://wiki.archlinux.org/index.php/KDE#Clean_cache_to_resolve_upgrade_problems
- As I described in post above, in main account, after "startx" I could see only KDE login screen for few seconds, and then infamous black screen.
- Also in previous post I said, that with new account, I could finally start KDE, but I did not see mouse-pointer. In reality, the mouse-pointer was on the righ edge of the screen, looks like there was another "virtual" screen, next to right-side of my laptop screen. I could see it for a moment on the edge (when I was moving a mouse), and sometimes I could even move a window from this area outside a laptop screen into a screen.

[2] Check user groups
- So I decide to make a video, as explanation above looks bit complicated, so I decided for video purpose to create another new user (by 'useradd') just for video purpose. After that I could not a start KDE, so I though maybe I need to check the groups. So I added this user after 'useradd' to such new groups: wheel, audio, video, cdrw, users, portage, polkitd, gamestat. After 'startx' I had... !!!working KDE Plasma5 with Optimus!!! :D 8) :D 8) Tested with games on Steam :)

But in my case...
I would like to check it and replicate on my 2 old user accounts, so I did changes in groups of one of old user, startx... and again I could see desktop and mouse-pointer only on the egde... 8O 8O 8O 8O :( :( :( :(
So for the test purpose, I created a new user, replicated everything and the same 8O 8O 8O 8O :( :( :( :(
I was trying to remove everything inside such testing user /home/directory apart .xinitrc - the same :( So I thought, what I did before so on ONE account it works? I switched into X11 Open GL, started KDE, chenged settings [Dispaly Monitor] > [Compositor] > [Rendering Backend] from 2.0 into 3.1 (like in working account), switched into Nvidia Open GL, and the same :( 8O :( 8O :(

So for another test, I copied all the files form working account into the any other, renamed it, 'startx' and... KDE Plasma 5 works just fine 8O 8) :) 8O

^^ So looks like I press something on keyboard or a mouse (when this working account for a moment had no mouse-pointer), did something for this one account it works. Any old one, any any new one does't work... Any idea for the fix this really last problem?

UPDATE:
Video to see the problem:
https://youtu.be/J3IazDOzhKc
Back to top
View user's profile Send private message
Barbieken
n00b
n00b


Joined: 22 Mar 2014
Posts: 62

PostPosted: Fri May 27, 2016 9:38 pm    Post subject: Reply with quote

Also pay attention to this bug https://bugs.gentoo.org/show_bug.cgi?id=571358
Every time after sddm gets reinstalled your Plasma5 with optimus won't be able to start, as /usr/share/sddm/scripts/Xsetup is not protected and gets rewritten.
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Sat May 28, 2016 8:18 am    Post subject: Reply with quote

Barbieken wrote:
Also pay attention to this bug https://bugs.gentoo.org/show_bug.cgi?id=571358
Every time after sddm gets reinstalled your Plasma5 with optimus won't be able to start, as /usr/share/sddm/scripts/Xsetup is not protected and gets rewritten.


Thank for the info. :)
For luck, I do not use sddm :)

Some update, May 28th, 2016 - after long battle (4 months) I decide on the same laptop with Optimus to check stable Gentoo AMD. On my other hard drive with 4 old ~amd64 I did manage (only on 1 account) to run Plasma 5, on others I cannot see mouse-pointer >> this is not resolved yet (see 2 posts above). On my new hard drive, I have fresh just installed Gentoo amd64, the same packages (kernel, xorg-server, nvidia-drivers, settings) and... black screen :twisted: :twisted: :twisted: :evil: :evil: :evil: :evil: :twisted: :twisted: :twisted: :twisted:
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Sat May 28, 2016 9:10 am    Post subject: Reply with quote

[EXPERIMENT no.1]
[28.05.2016]

Details of system with Nvidia Optimus and working Plasma 5.

[hardwawe, laptop with Nvidia Optimus]
Code:
# uname -a
Linux tux 4.4.6-gentoo #2 SMP Wed May 4 20:20:48 BST 2016 x86_64 Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz GenuineIntel GNU/Linux


[gentoo]
4 years old ~amd64
Code:
# emerge --info
Portage 2.3.0_rc1 (python 2.7.11-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.3.0, glibc-2.22-r4, 4.4.6-gentoo x86_64)
=================================================================
System uname: Linux-4.4.6-gentoo-x86_64-Intel-R-_Core-TM-_i5-2450M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     8080388 total,   4445856 free
KiB Swap:    9767484 total,   9767484 free
Timestamp of repository gentoo: Sat, 28 May 2016 08:30:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2-r1::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

cg
    location: /var/lib/layman/cg
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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="-march=native -O2 -pipe -ggdb"
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 userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.qubenet.net/mirror/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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="/mnt/video/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups cxx dbus declarative djvu dri dts dv dvd dvdr embedded emboss encode exif fam ffmpeg firefox flac fortran frei0r gdbm gif glamor gpm gtk iconv icu id3tag ipv6 java jpeg kde kipi ladspa lcms ldap libnotify lm_sensors mad mmx mmxext mng modules mp3 mp4 mpeg multilib mysql ncurses nls nptl nsplugin ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt4 qt5 readline scanner sdl seccomp semantic-desktop session smp spell sse sse2 ssl startup-notification svg tcpd threads tiff tools truetype udev udisks unicode upower usb uvm vaapi vcd vdpau vorbis widgets wxwidgets x264 x265 xattr xcb xcomposite xml xscreensaver xv xvid xvmc 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia intel" 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


[plasma]
Code:
*  kde-plasma/plasma-meta
      Latest version available: 5.6.4
      Latest version installed: 5.6.4


[X system packages]
Code:
*  x11-base/xorg-server
      Latest version available: 1.17.4
      Latest version installed: 1.17.4


Code:
*  x11-base/xorg-drivers
      Latest version available: 1.17
      Latest version installed: 1.17


Code:
*  x11-drivers/xf86-input-evdev
      Latest version available: 2.9.2
      Latest version installed: 2.9.2


Code:
*  x11-drivers/xf86-video-intel
      Latest version available: 2.99.917-r2
      Latest version installed: 2.99.917-r2


Code:
*  x11-drivers/nvidia-drivers
      Latest version available: 358.16-r1
      Latest version installed: 358.16-r1


[groups]
Code:
# groups user-me
wheel audio cdrom video cdrw usb users portage polkitd gamestat user-me


[make.conf]
Code:
# cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe -ggdb"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.

ACCEPT_KEYWORDS="~amd64"
USE="-xinerama cddb djvu dv embedded ffmpeg frei0r icu id3tag java ladspa lm_sensors nsplugin mysql opus scanner smp threads tools uvm vaapi vcd vdpau x265 xvmc"

MAKEOPTS="-j2"
LINGUAS="pl en en_GB"

INPUT_DEVICES="evdev"
VIDEO_CARDS="nvidia intel"

ACCEPT_LICENSE="*"

PORTAGE_TMPDIR="/mnt/video/tmp"
RUBY_TARGETS="ruby21 ruby22"

FEATURES="parallel-fetch -userfetch"

CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.qubenet.net/mirror/gentoo/"


[drivers]
Code:
# lspci -v
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
        Subsystem: CLEVO/KAPOK Computer 2nd Generation Core Processor Family DRAM Controller
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 24
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 0000e000-0000efff
        Memory behind bridge: f6000000-f70fffff
        Prefetchable memory behind bridge: 00000000e0000000-00000000f1ffffff
        Capabilities: [88] Subsystem: CLEVO/KAPOK Computer Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port
        Capabilities: [80] Power Management version 3
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [a0] Express Root Port (Slot+), MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [140] Root Complex Link
        Kernel driver in use: pcieport

00:01.1 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 25
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        Capabilities: [88] Subsystem: CLEVO/KAPOK Computer Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port
        Capabilities: [80] Power Management version 3
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [a0] Express Root Port (Slot+), MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [140] Root Complex Link
        Kernel driver in use: pcieport

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: CLEVO/KAPOK Computer 2nd Generation Core Processor Family Integrated Graphics Controller
        Flags: bus master, fast devsel, latency 0, IRQ 30
        Memory at f7400000 (64-bit, non-prefetchable) [size=4M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915

00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
        Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family MEI Controller
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at f7b0a000 (64-bit, non-prefetchable) [size=16]
        Capabilities: [50] Power Management version 3
        Capabilities: [8c] MSI: Enable- Count=1/1 Maskable- 64bit+

00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) (prog-if 20 [EHCI])
        Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family USB Enhanced Host Controller
        Flags: bus master, medium devsel, latency 0, IRQ 16
        Memory at f7b08000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCI Advanced Features
        Kernel driver in use: ehci-pci

00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
        Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family High Definition Audio Controller
        Flags: bus master, fast devsel, latency 0, IRQ 37
        Memory at f7b00000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [130] Root Complex Link
        Kernel driver in use: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 26
        Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family PCI Express Root Port 1
        Capabilities: [a0] Power Management version 2
        Kernel driver in use: pcieport

00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 27
        Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
        Memory behind bridge: f7a00000-f7afffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family PCI Express Root Port 2
        Capabilities: [a0] Power Management version 2
        Kernel driver in use: pcieport

00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 28
        Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
        Memory behind bridge: f7900000-f79fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family PCI Express Root Port 3
        Capabilities: [a0] Power Management version 2
        Kernel driver in use: pcieport

00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 29
        Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
        I/O behind bridge: 0000d000-0000dfff
        Memory behind bridge: f7800000-f78fffff
        Prefetchable memory behind bridge: 00000000f2100000-00000000f21fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family PCI Express Root Port 4
        Capabilities: [a0] Power Management version 2
        Kernel driver in use: pcieport

00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) (prog-if 20 [EHCI])
        Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family USB Enhanced Host Controller
        Flags: bus master, medium devsel, latency 0, IRQ 23
        Memory at f7b07000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCI Advanced Features
        Kernel driver in use: ehci-pci

00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 05)
        Subsystem: CLEVO/KAPOK Computer HM65 Express Chipset Family LPC Controller
        Flags: bus master, medium devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05) (prog-if 01 [AHCI 1.0])
        Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 31
        I/O ports at f0b0 [size=8]
        I/O ports at f0a0 [size=4]
        I/O ports at f090 [size=8]
        I/O ports at f080 [size=4]
        I/O ports at f060 [size=32]
        Memory at f7b06000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [70] Power Management version 3
        Capabilities: [a8] SATA HBA v1.0
        Capabilities: [b0] PCI Advanced Features
        Kernel driver in use: ahci

00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
        Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family SMBus Controller
        Flags: medium devsel
        Memory at f7b05000 (64-bit, non-prefetchable) [size=256]
        I/O ports at f040 [size=32]

01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 630M] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: CLEVO/KAPOK Computer GF108M [GeForce GT 630M]
        Flags: bus master, fast devsel, latency 0, IRQ 41
        Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at e000 [size=128]
        [virtual] Expansion ROM at f7000000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia_drm, nvidia

04:00.0 USB controller: Texas Instruments TUSB73x0 SuperSpeed USB 3.0 xHCI Host Controller (rev 02) (prog-if 30 [XHCI])
        Subsystem: CLEVO/KAPOK Computer TUSB73x0 SuperSpeed USB 3.0 xHCI Host Controller
        Flags: bus master, fast devsel, latency 0
        Memory at f7a00000 (64-bit, non-prefetchable) [size=64K]
        Memory at f7a10000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [40] Power Management version 3
        Capabilities: [48] MSI: Enable- Count=1/8 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [c0] MSI-X: Enable+ Count=8 Masked-
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [150] Device Serial Number 08-00-28-00-00-20-00-00
        Kernel driver in use: xhci_hcd

05:00.0 Network controller: Intel Corporation Centrino Wireless-N 130 (rev 34)
        Subsystem: Intel Corporation Centrino Wireless-N 130 BGN
        Flags: bus master, fast devsel, latency 0, IRQ 38
        Memory at f7900000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [c8] Power Management version 3
        Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [e0] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number dc-a9-71-ff-ff-9c-ff-ae
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi

06:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411 PCI Express Card Reader (rev 01)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8411 PCI Express Card Reader
        Flags: bus master, fast devsel, latency 0, IRQ 40
        Memory at f7800000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [b0] MSI-X: Enable- Count=1 Masked-
        Capabilities: [d0] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
        Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
        Kernel driver in use: rtsx_pci
        Kernel modules: rtsx_pci

06:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0a)
        Subsystem: CLEVO/KAPOK Computer RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
        Flags: bus master, fast devsel, latency 0, IRQ 39
        I/O ports at d000 [size=256]
        Memory at f2104000 (64-bit, prefetchable) [size=4K]
        Memory at f2100000 (64-bit, prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 01
        Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
        Capabilities: [d0] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [160] Device Serial Number 0d-00-00-00-68-f5-90-00
        Kernel driver in use: r8169
        Kernel modules: r8169
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Sat May 28, 2016 1:22 pm    Post subject: Reply with quote

[EXPERIMENT no.2]
[28.05.2016]

Details of system with Nvidia Optimus and NO WORKING Plasma 5.

[hardwawe, laptop with Nvidia Optimus]
Code:
# uname -a
Linux tux 4.4.6-gentoo #6 SMP Sat May 28 11:45:21 BST 2016 x86_64 Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz GenuineIntel GNU/Linux


[gentoo]
just installed amd64
Code:
# emerge --info
Portage 2.2.28 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.22-r4, 4.4.6-gentoo x86_64)
=================================================================
System uname: Linux-4.4.6-gentoo-x86_64-Intel-R-_Core-TM-_i5-2450M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     8080292 total,   6929736 free
KiB Swap:    9484148 total,   9484148 free
Timestamp of repository gentoo: Sat, 28 May 2016 07:00:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -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="-march=native -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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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 alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="evdev" 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


[plasma]
Code:
*  kde-plasma/plasma-meta
      Latest version available: 5.5.5
      Latest version installed: 5.5.5


[X system packages]
Code:
*  x11-base/xorg-server
      Latest version available: 1.17.4
      Latest version installed: 1.17.4


Code:
*  x11-base/xorg-drivers
      Latest version available: 1.17
      Latest version installed: 1.17


Code:
*  x11-drivers/xf86-input-evdev
      Latest version available: 2.9.2
      Latest version installed: 2.9.2


Code:
*  x11-drivers/xf86-video-intel
      Latest version available: 2.99.917-r2
      Latest version installed: 2.99.917-r2


Code:
*  x11-drivers/nvidia-drivers
      Latest version available: 358.16-r1
      Latest version installed: 358.16-r1



[groups]
Code:
# groups user-me
wheel audio cdrom video cdrw usb users polkitd sddm user-me


[make.conf]
Code:
# cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="vaapi vdpau -glamor ffmpeg bindist"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
MAKEOPTS="-j2"
VIDEO_CARDS="intel nvidia"
INPUT_DEVICES="evdev"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"


[drivers]
Code:
# lspci -v
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
        Subsystem: CLEVO/KAPOK Computer 2nd Generation Core Processor Family DRAM Controller
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 24
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 0000e000-0000efff
        Memory behind bridge: f6000000-f70fffff
        Prefetchable memory behind bridge: 00000000e0000000-00000000f1ffffff
        Capabilities: [88] Subsystem: CLEVO/KAPOK Computer Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port
        Capabilities: [80] Power Management version 3
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [a0] Express Root Port (Slot+), MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [140] Root Complex Link
        Kernel driver in use: pcieport

00:01.1 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 25
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        Capabilities: [88] Subsystem: CLEVO/KAPOK Computer Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port
        Capabilities: [80] Power Management version 3
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [a0] Express Root Port (Slot+), MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [140] Root Complex Link
        Kernel driver in use: pcieport

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: CLEVO/KAPOK Computer 2nd Generation Core Processor Family Integrated Graphics Controller
        Flags: bus master, fast devsel, latency 0, IRQ 30
        Memory at f7400000 (64-bit, non-prefetchable) [size=4M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915

00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
        Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family MEI Controller
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at f7b0a000 (64-bit, non-prefetchable) [size=16]
        Capabilities: [50] Power Management version 3
        Capabilities: [8c] MSI: Enable- Count=1/1 Maskable- 64bit+

00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) (prog-if 20 [EHCI])
        Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family USB Enhanced Host Controller
        Flags: bus master, medium devsel, latency 0, IRQ 16
        Memory at f7b08000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCI Advanced Features
        Kernel driver in use: ehci-pci

00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
        Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family High Definition Audio Controller
        Flags: bus master, fast devsel, latency 0, IRQ 37
        Memory at f7b00000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [130] Root Complex Link
        Kernel driver in use: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 26
        Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family PCI Express Root Port 1
        Capabilities: [a0] Power Management version 2
        Kernel driver in use: pcieport

00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 27
        Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
        Memory behind bridge: f7a00000-f7afffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family PCI Express Root Port 2
        Capabilities: [a0] Power Management version 2
        Kernel driver in use: pcieport

00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 28
        Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
        Memory behind bridge: f7900000-f79fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family PCI Express Root Port 3
        Capabilities: [a0] Power Management version 2
        Kernel driver in use: pcieport

00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 29
        Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
        I/O behind bridge: 0000d000-0000dfff
        Memory behind bridge: f7800000-f78fffff
        Prefetchable memory behind bridge: 00000000f2100000-00000000f21fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family PCI Express Root Port 4
        Capabilities: [a0] Power Management version 2
        Kernel driver in use: pcieport

00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) (prog-if 20 [EHCI])
        Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family USB Enhanced Host Controller
        Flags: bus master, medium devsel, latency 0, IRQ 23
        Memory at f7b07000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCI Advanced Features
        Kernel driver in use: ehci-pci

00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 05)
        Subsystem: CLEVO/KAPOK Computer HM65 Express Chipset Family LPC Controller
        Flags: bus master, medium devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05) (prog-if 01 [AHCI 1.0])
        Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 31
        I/O ports at f0b0 [size=8]
        I/O ports at f0a0 [size=4]
        I/O ports at f090 [size=8]
        I/O ports at f080 [size=4]
        I/O ports at f060 [size=32]
        Memory at f7b06000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [70] Power Management version 3
        Capabilities: [a8] SATA HBA v1.0
        Capabilities: [b0] PCI Advanced Features
        Kernel driver in use: ahci

00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
        Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family SMBus Controller
        Flags: medium devsel
        Memory at f7b05000 (64-bit, non-prefetchable) [size=256]
        I/O ports at f040 [size=32]

01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 630M] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: CLEVO/KAPOK Computer GF108M [GeForce GT 630M]
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at e000 [size=128]
        [virtual] Expansion ROM at f7000000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia

04:00.0 USB controller: Texas Instruments TUSB73x0 SuperSpeed USB 3.0 xHCI Host Controller (rev 02) (prog-if 30 [XHCI])
        Subsystem: CLEVO/KAPOK Computer TUSB73x0 SuperSpeed USB 3.0 xHCI Host Controller
        Flags: bus master, fast devsel, latency 0
        Memory at f7a00000 (64-bit, non-prefetchable) [size=64K]
        Memory at f7a10000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [40] Power Management version 3
        Capabilities: [48] MSI: Enable- Count=1/8 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [c0] MSI-X: Enable+ Count=8 Masked-
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [150] Device Serial Number 08-00-28-00-00-20-00-00
        Kernel driver in use: xhci_hcd

05:00.0 Network controller: Intel Corporation Centrino Wireless-N 130 (rev 34)
        Subsystem: Intel Corporation Centrino Wireless-N 130 BGN
        Flags: bus master, fast devsel, latency 0, IRQ 38
        Memory at f7900000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [c8] Power Management version 3
        Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [e0] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number dc-a9-71-ff-ff-9c-ff-ae
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi

06:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411 PCI Express Card Reader (rev 01)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8411 PCI Express Card Reader
        Flags: bus master, fast devsel, latency 0, IRQ 39
        Memory at f7800000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [b0] MSI-X: Enable- Count=1 Masked-
        Capabilities: [d0] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
        Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
        Kernel driver in use: rtsx_pci
        Kernel modules: rtsx_pci

06:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0a)
        Subsystem: CLEVO/KAPOK Computer RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
        Flags: bus master, fast devsel, latency 0, IRQ 40
        I/O ports at d000 [size=256]
        Memory at f2104000 (64-bit, prefetchable) [size=4K]
        Memory at f2100000 (64-bit, prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 01
        Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
        Capabilities: [d0] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [160] Device Serial Number 0d-00-00-00-68-f5-90-00
        Kernel driver in use: r8169
        Kernel modules: r8169
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Sat May 28, 2016 1:31 pm    Post subject: Reply with quote

Hi,

Today's experiment.

- The same laptop
- 2 identical hard drives, one with 4 old ~amd64 Gentoo, second with new amd64 gentoo
- the same kernels, the same kernel's config & drivers, the same X related files (and versions): xorg-server, xorg-drivers, xf86-input-evdev, xf86-video-intel, nvidia-drivers
- the same groups

In one case plasma 5 works, in second case "black screen".

Maybe you can find the reason?
Both listings of configuration in 2 posts above.

The only difference I can see is;
- plasma 5.5.5 and plasma 5.6.4
- lspci -v (in working case shows)
Code:
Kernel driver in use: nvidia
        Kernel modules: nvidia_drm, nvidia

in not working case:
Code:
Kernel driver in use: nvidia
        Kernel modules: nvidia
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Sat May 28, 2016 7:18 pm    Post subject: Reply with quote

Some update,

In my case (new amd64), I needed missing:
Code:
*  x11-apps/xrandr
      Latest version available: 1.4.3
      Latest version installed: 1.4.3


Thanks to that, Plasma 5 startx with Nvidia Optimus but
1) The same problem like in old ~amd64 Gentoo, mouse-point out of screen, a little bit on the edge, but this time all the windows are on the desktop, so using keyboard, I have check Nvidia works just fine - only problem mouse-pointer out of screen.
2) I was trying to copy those one working account form ~amd64 and newer Plasma into a new system, this time Plasma crashed, but I could see mouse-pointer.
3) I cannot replicate working Plasma 5 on new system to any other user, I could see some windows but black screen instead of desktop. I think I should switch rendering from XRender into OpenGL but I cannot:
https://forums.gentoo.org/viewtopic-t-1045500-highlight-.html
I did manage for one of the account but I cannot replicate it to another accounts :evil: :evil: :evil: :evil:

Many thanks to any ideas.
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Mon May 30, 2016 9:25 am    Post subject: Reply with quote

Another problem SOLVED - mouse & windows (Plasma 5.5.5 & Plasma 5.6.4) out of desktop.
Problem description: https://www.youtube.com/watch?v=J3IazDOzhKc&feature=youtu.be

Thanks to this post from to 2013:
https://devtalk.nvidia.com/default/topic/544761/linux/319-17-optimus-multimonitor-setup/

I added:
Code:
Option "ConstrainCursor" "no"

To the Screen or Device section of /etc/X11/xorg.conf

Thanks to that, I finally had mouse on the screen, but clicking any aplication form KDE menu, open this application in the window outside laptops screen.... The same happed for my old ~amd64 Gentoo with Plasma 5.6.4 and a fresh amd64 Gentoo with Plasma 5.5.5, so definitely is not my config related, rather Gentoo or KDE related.

But I found a workarround.
Go to [System Settings] >> [Dispaly and Monitor] >> [Display Configuration] and the clinck on [Unify Outputs] and [aplly] - that's it! Clicking later on [Break Unified Output] and [Unify Outputs] again do not broke the system again. :)
!!! ^^ As any new windows eg. [System Settings] go outside laptops screen, as second workaround you have to drag and move by mouse an [System Settings] icon into desktop, then click that icon so new window will open on visable screen (so you could do above workaroud), clicking [System Settings] from KDE menu will open window in unvisable desktop. !!!

There is sometimes strange behavior with activities, but I need some more test.

Anyway, Nvidia Optimus and KDE Plasma 5 thanks to that works!!!!!!!!
The only unsolved problem for Today (30.05.2016) is this:
https://forums.gentoo.org/viewtopic-t-1045500-highlight-.html
^^ as KDE accout has to be set to any OpenGL and GLX, without that Plasma crashes.

appendix:
Quote:
Option "ConstrainCursor" "boolean"

When this option is enabled, the mouse cursor will be constrained to the region of the desktop that is visible within the union of all displays' panning domains in the current MetaMode. When it is disabled, it may be possible to move the cursor to regions of the X screen that are not visible on any display.

Note that if this would make display's panning domain is inaccessible (in other words, if the union of all panning domains is disjoint), then the cursor will not be constrained, so that it is still possible to move the cursor to each display.

This option has no effect if the X server doesn't support cursor constraint. This support was added in X.Org server version 1.10 (see “How do I interpret X server version numbers?”).

Default: on, if the X server supports it. The cursor will be constrained to the panning domain of each monitor, when possible.
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Tue May 31, 2016 11:19 am    Post subject: Reply with quote

[EXPERIMENT no.3]
[31.05.2016]

As my KDE Plasma 5 finally works with Nvidia Optimus with this minimum requirement bellow and without glamor USE flag (as Nvidia says so):
Quote:
x11-base/xorg-server
Latest version installed: 1.17.4
* x11-base/xorg-drivers
Latest version installed: 1.17
* x11-drivers/xf86-input-evdev
Latest version installed: 2.9.2
* x11-drivers/xf86-video-intel
Latest version installed: 2.99.917-r2
* x11-drivers/nvidia-drivers
Latest version installed: 358.16-r1
* x11-apps/xrandr
Latest version installed: 1.4.0

I started (as I had some problem with few games from steam) testing some newer parts. So in my case, system also works with: x11-drivers/nvidia-drivers 361.28 and 364.19 and: x11-apps/xrand 1.5.0

So looks like, to have working Plasma5 & Optmus when you have minimum requirement above, the first step is to go into KDE setting (urgent >> in xorg-x11 OpenGL mode at the moment), check if you have in KDE [System Settings] >> [Dispaly and Monitor] >> [Compositor] >> [Renedring backed] into OpenGL (NOT XRender), and OpenGL interference into GLX (NOT EGL). If you have NOT, please switch into those options >> [Aplly], close [System Settings] window and the open again, if you see those changes, you could log off, switch into Nvidia OpenGL, startx again and it should work. If you cannot do changes, track this post: https://forums.gentoo.org/viewtopic-t-1045500-highlight-.html

When you finally start KDE Plasma 5 with Nvidia Optimus OpenGL, and you have mouse pointer out of desktop, you have to add:
Code:
Option "ConstrainCursor" "no"

to the Screen or Device section of /etc/X11/xorg.conf, and read more in few post above.

In any problems, send me a message or post here, as after 4 months my Plasma5 & Optimus finally works, and I have spent loots of time to sort it out :)
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Mon Jun 13, 2016 8:25 am    Post subject: Reply with quote

[EXPERIMENT no.4]
[13.06.2016]

Different nvidia-drivers tested.

Hi,

During last weekend I tested different x11-drivers/nvidia-drivers
From stable: 355.11-r2 To latest unstable: 367.18

With all of them my Nvidia Optimus system works fine (configures in post above). So as on my other user account plasma crashes during start, it looks like this is some king of config reason. Probably default settings in [System Settings] >> [Dispaly and Monitor] sections make this problem, as I manage (but only on one account) to have fully working Nvidia Optimus system. Other users (just created by adduser), with the same groups like working user, cannot use Nvidia Optimus and Plasma 5 (plasma crashes).
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Sun Jun 26, 2016 7:44 pm    Post subject: Reply with quote

I am much closer to solve mysterious black screen & Plasma 5 :)

What we know. It affects only laptop users with Nvidia Optimus. As I found few post before, switching off VGA-0 and keeping Laptop Screen make the Plasma works. But as few games froem steam do not work with Plasma 5 (80% works just fantastic with Nvidia support with newest drivers), so I started to watch what is going on on console.

Code:
displaymanager : xrandr version warning. 1.4
client has 4 screens
displaymanager screen (0)(LVDS-1-0): 1600 x 900


It looks like apart laptop screen, there is another virtual or more which is messing with the system. There is a button on my laptop Fn + F7, when I could switch into external VGA? probbably (so the screen is black on my laptop), another switch gives me Plasma 5 desktop but differnt on with differnet wallpaper. So i somone has a black screen and proper configuration, try to switch VGA <-> laptop screen button, maybe there is everyting fine, just default KDE configuration is sending the output into external VGA not laptop screen :)

client has 4 screens
^^this problem affect linux palyers with different distro but only with Nvidia Optimus

I could confirm, this is not because Nvidia Drivers. I tested all of them and now use 367.27 = no problem at all with working games (+ few more options in few games in compare to stable.

Code:
$ xrandr
Screen 0: minimum 8 x 8, current 1600 x 900, maximum 16384 x 16384
VGA-0 connected (normal left inverted right x axis y axis)
   1600x900      60.01 +
LVDS-1-0 connected primary 1600x900+0+0 (normal left inverted right x axis y axis) 382mm x 215mm
   1600x900      60.01*+
   1024x768      60.04    60.00 
   960x720       60.00 
   928x696       60.05 
   896x672       60.01 
   800x600       60.00    60.32    56.25 
   700x525       59.98 
   640x512       60.02 
   640x480       60.00    59.94 
   512x384       60.00 
   400x300       60.32    56.34 
   320x240       60.05 
VGA-1-0 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-0 disconnected (normal left inverted right x axis y axis)
  1600x900 (0x46) 107.800MHz -HSync -VSync
        h: width  1600 start 1648 end 1680 total 1940 skew    0 clock  55.57KHz
        v: height  900 start  903 end  908 total  926           clock  60.01Hz
Back to top
View user's profile Send private message
archenroot
Apprentice
Apprentice


Joined: 13 Dec 2011
Posts: 197
Location: Lake Macha, Czech republic

PostPosted: Sat Jun 03, 2017 12:27 pm    Post subject: Reply with quote

I have Dell XPS 15 (Intel and Nvidia GTX 9600) and usually I use nvidia for CUDA and for OpenGL Intel gpu. But tried to switch OpenGL, rebooted and viola I am in the same situation, black screen, just curzor blinking in top-right corner.
_________________
Emperor wants to control outer space Yoda wants to explore inner space that's the fundamental difference between good and bad sides of the Force
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