Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with optimus nvidia
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 657

PostPosted: Wed Dec 25, 2019 9:47 am    Post subject: Problem with optimus nvidia Reply with quote

Hello !
To explain my problem, it's not the first time i configure my graphic card with optimus technology to work.
But now, i have problem. I decide to stop use bumblebee, because new driver nvidia don't work with bumblebee actually. I decide to use only nvidia graphic card. I have configured all good, but when sddm start, i have black screen WITH my cursor. Cursor work :?

Somebody have this bug ?

Emerge info:
Code:
Portage 2.3.83 (python 3.6.10-final-0, default/linux/amd64/17.1/no-multilib/hardened/selinux, gcc-9.2.0, glibc-2.30-r3, 5.4.6-gentoo x86_64)
=================================================================
System uname: Linux-5.4.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-gentoo-2.6
KiB Mem:    16280584 total,  14559500 free
KiB Swap:   20971516 total,  20971516 free
Timestamp of repository gentoo: Tue, 24 Dec 2019 17:00:01 +0000
Head commit of repository gentoo: eef096e2c7f06061f7d858ca6fec427ddb37c17a
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p11::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17::gentoo, 3.6.10::gentoo, 3.7.6::gentoo
dev-util/cmake:           3.16.2-r1::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.15.1-r2::gentoo, 1.16.1-r2::gentoo
sys-devel/binutils:       2.32-r1::gentoo, 2.33.1::gentoo
sys-devel/gcc:            9.2.0-r3::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r3::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves"
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=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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="-march=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://ftp.free.fr/mirrors/ftp.gentoo.org/ http://gentoo.modulix.net/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://mirrors.soeasyto.com/distfiles.gentoo.org/ ftp://mirrors.soeasyto.com/distfiles.gentoo.org/ https://mirrors.soeasyto.com/distfiles.gentoo.org/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr fr_FR"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
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 acl acpi alsa amd64 audit bluetooth bzip2 compat crypt cryptsetup cuda custom-cflags custom-optimization cxx dbus device-mapper dhcpcd dri dri3 elogind experimental ffmpeg git glamor gstreamer hardened iconv ipv6 jpeg kde kms libtirpc lvm mp3 mp4 mtp ncurses networkmanager nls nptl ogg open_perms opengl openmp pam pcre peer_perms phonon pie png policykit pulseaudio readline seccomp selinux semantic-desktop split-usr ssl ssp tiff ubac udev udisks unconfined unicode uvm v4l vaapi vdpau vorbis vulkan wayland wifi wireless x264 xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" 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 sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 ssse3 sse4_1 sse4_2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis 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 keyboard mouse" KERNEL="linux" L10N="fr fr-FR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="NVPTX" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" 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:  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


Make.conf:
Code:
ACCEPT_KEYWORDS="~amd64"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 ssse3 sse4_1 sse4_2"
COMMON_FLAGS="-march=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j9"
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"
FEATURES="candy"
LLVM_TARGETS="NVPTX"
USE="acpi alsa audit bluetooth compat cryptsetup cuda custom-cflags custom-optimization dbus device-mapper dhcpcd dri dri3 elogind experimental ffmpeg git glamor gstreamer ipv6 jpeg kde kms lvm mp3 mp4 mtp networkmanager ogg open_perms opengl peer_perms phonon png policykit pulseaudio seccomp semantic-desktop split-usr tiff ubac udev udisks unconfined unicode uvm v4l vaapi vdpau -vlc vorbis vulkan wayland wifi wireless X x264"
LC_MESSAGES=C
LANG="fr_FR.UTF-8"
LINGUAS="fr fr_FR"
L10N="fr fr-FR"
INPUT_DEVICES="libinput keyboard mouse"
ALSA_CARDS="hda-intel"
VIDEO_CARDS="intel i965 nvidia"
GRUB_PLATFORMS="efi-64"

GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://ftp.free.fr/mirrors/ftp.gentoo.org/ http://gentoo.modulix.net/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://mirrors.soeasyto.com/distfiles.gentoo.org/ ftp://mirrors.soeasyto.com/distfiles.gentoo.org/ https://mirrors.soeasyto.com/distfiles.gentoo.org/"


Xsetup for sddm:
Code:
#!/bin/sh
# Xsetup - run as root before the login dialog appears

#xrandr --setprovideroutputsource modesetting NVIDIA-0
#xrandr --auto
#xrandr --dpi 96
setxkbmap fr
msi-keyboard normal ff0000 0000ff 00ff00


Xorg.conf:

Code:
Section "ServerLayout"
        Identifier "layout"
        Screen 0 "nvidia"
        Inactive "intel"
EndSection

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

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

Section "Device"
        Identifier "intel"
        Driver "modesetting"
EndSection

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


Grub parameters:
Code:
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
#     'grub2-mkconfig -o /boot/grub/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.

GRUB_DISTRIBUTOR="Gentoo"
GRUB_ENABLE_CRYPTODISK=y

# Default menu entry
#GRUB_DEFAULT=0

# Boot the default entry this many seconds after the menu is displayed
#GRUB_TIMEOUT=5
#GRUB_TIMEOUT_STYLE=menu

# Append parameters to the linux kernel command line
#GRUB_CMDLINE_LINUX=""
#
# Examples:
#
# Boot with network interface renaming disabled
# GRUB_CMDLINE_LINUX="net.ifnames=0"
#
# Boot with systemd instead of sysvinit (openrc)
# GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"

# Append parameters to the linux kernel command line for non-recovery entries
GRUB_CMDLINE_LINUX_DEFAULT="dolvm crypt_root=/dev/nvme0n1p3 root=/dev/mapper/System-Root root_trim=yes acpi_osi=! acpi_osi='Windows 2009' keymap=fr quiet"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
GRUB_GFXMODE=1920x1080x32

# Set to 'text' to force the Linux kernel to boot in normal text
# mode, 'keep' to preserve the graphics mode set using
# 'GRUB_GFXMODE', 'WIDTHxHEIGHT'['xDEPTH'] to set a particular
# graphics mode, or a sequence of these separated by commas or
# semicolons to try several modes in sequence.
GRUB_GFXPAYLOAD_LINUX=keep

# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"

# Background image used on graphical terminal.
# Can be in various bitmap formats.
GRUB_BACKGROUND="/boot/grub/gentoo.png"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true

# Uncomment to disable generation of the submenu and put all choices on
# the top-level menu.
# Besides the visual affect of no sub menu, this makes navigation of the
# menu easier for a user who can't see the screen.
#GRUB_DISABLE_SUBMENU=y

# Uncomment to play a tone when the main menu is displayed.
# This is useful, for example, to allow users who can't see the screen
# to know when they can make a choice on the menu.
#GRUB_INIT_TUNE="60 800 1"


Lspci:
Code:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
00:14.0 USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem (rev 31)
00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31)
00:17.0 SATA controller: Intel Corporation HM170/QM170 Chipset SATA Controller [AHCI Mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #1 (rev f1)
00:1c.4 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #5 (rev f1)
00:1d.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #9 (rev f1)
00:1d.5 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #14 (rev f1)
00:1d.6 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #15 (rev f1)
00:1f.0 ISA bridge: Intel Corporation HM170 Chipset LPC/eSPI Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller (rev 31)
00:1f.3 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family HD Audio Controller (rev 31)
00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31)
01:00.0 VGA compatible controller: NVIDIA Corporation GP106M [GeForce GTX 1060 Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1)
3c:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
3d:00.0 Ethernet controller: Qualcomm Atheros Killer E2400 Gigabit Ethernet Controller (rev 10)
3e:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
Back to top
View user's profile Send private message
coderanger
n00b
n00b


Joined: 19 Sep 2018
Posts: 70

PostPosted: Thu Dec 26, 2019 10:04 am    Post subject: Reply with quote

Looks like the black screen with cursor means sddm was able to initialize graphical system but failed on some call to the driver when tried to render input form for login and password (greeter).
Need to check sddm/xorg logs for error messages
Back to top
View user's profile Send private message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 657

PostPosted: Thu Dec 26, 2019 6:41 pm    Post subject: Reply with quote

I have looked, they aren't any messages erros...

It's logical. For Xorg, i think because cursor is visible, Xorg think all it's good.
Back to top
View user's profile Send private message
coderanger
n00b
n00b


Joined: 19 Sep 2018
Posts: 70

PostPosted: Thu Dec 26, 2019 6:59 pm    Post subject: Reply with quote

Please check sddm logs also
Code:
journalctl -u sddm
Back to top
View user's profile Send private message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 657

PostPosted: Thu Dec 26, 2019 7:43 pm    Post subject: Reply with quote

I use openRC :?

Code:
[19:35:15.236] (II) DAEMON: Adding new display on vt 7 ...
[19:35:15.236] (II) DAEMON: Loading theme configuration from ""
[19:35:15.236] (II) DAEMON: Display server starting...
[19:35:15.236] (II) DAEMON: Running: /usr/bin/X -dpi 0 -auth /var/run/sddm/{d23f16fb-6e0c-4ff8-83a9-b8f6240bfeb4} -background none -noreset -displayfd 18 -seat seat0 vt7
[19:35:16.226] (II) DAEMON: Setting default cursor
[19:35:16.234] (II) DAEMON: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
[19:35:17.003] (II) DAEMON: Display server started.
[19:35:17.003] (II) DAEMON: Socket server starting...
[19:35:17.003] (II) DAEMON: Socket server started.
[19:35:17.003] (II) DAEMON: Loading theme configuration from "/usr/share/sddm/themes/breeze/theme.conf"
[19:35:17.003] (II) DAEMON: Greeter starting...
[19:35:17.003] (II) DAEMON: Adding cookie to "/var/run/sddm/{d23f16fb-6e0c-4ff8-83a9-b8f6240bfeb4}"
[19:35:17.008] (II) HELPER: [PAM] Starting...
[19:35:17.008] (II) HELPER: [PAM] Authenticating...
[19:35:17.008] (II) HELPER: [PAM] returning.
[19:35:17.014] (II) DAEMON: Greeter session started successfully
[19:35:17.031] (II) DAEMON: Message received from greeter: Connect
[19:35:17.650] (II) HELPER: [PAM] Closing session
[19:35:17.651] (II) HELPER: [PAM] Ended.
[19:35:17.652] (WW) DAEMON: Auth: sddm-helper exited with 6
[19:35:17.652] (II) DAEMON: Greeter stopped.
[19:35:31.719] (WW) DAEMON: Signal received: SIGTERM
[19:35:31.719] (II) DAEMON: Socket server stopping...
[19:35:31.719] (II) DAEMON: Socket server stopped.
[19:35:31.719] (II) DAEMON: Display server stopping...
[19:35:31.779] (II) DAEMON: Display server stopped.
[19:35:31.779] (II) DAEMON: Running display stop script  "/usr/share/sddm/scripts/Xstop"
[19:35:31.854] (II) DAEMON: Initializing...
[19:35:31.858] (II) DAEMON: Starting...
[19:35:31.858] (II) DAEMON: Logind interface found
[19:35:31.859] (II) DAEMON: Adding new display on vt 7 ...
[19:35:31.859] (II) DAEMON: Loading theme configuration from ""
[19:35:31.859] (II) DAEMON: Display server starting...
[19:35:31.859] (II) DAEMON: Running: /usr/bin/X -dpi 0 -auth /var/run/sddm/{e458d3e4-3e29-4a2a-bdcc-b076c6d8c8f6} -background none -noreset -displayfd 17 -seat seat0 vt7
[19:35:32.865] (II) DAEMON: Setting default cursor
[19:35:32.874] (II) DAEMON: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
[19:35:33.644] (II) DAEMON: Display server started.
[19:35:33.644] (II) DAEMON: Socket server starting...
[19:35:33.644] (II) DAEMON: Socket server started.
[19:35:33.644] (II) DAEMON: Loading theme configuration from "/usr/share/sddm/themes/breeze/theme.conf"
[19:35:33.644] (II) DAEMON: Greeter starting...
[19:35:33.645] (II) DAEMON: Adding cookie to "/var/run/sddm/{e458d3e4-3e29-4a2a-bdcc-b076c6d8c8f6}"
[19:35:33.649] (II) HELPER: [PAM] Starting...
[19:35:33.649] (II) HELPER: [PAM] Authenticating...
[19:35:33.649] (II) HELPER: [PAM] returning.
[19:35:33.655] (II) DAEMON: Greeter session started successfully
[19:35:33.673] (II) DAEMON: Message received from greeter: Connect
[19:35:34.299] (II) HELPER: [PAM] Closing session
[19:35:34.300] (II) HELPER: [PAM] Ended.
[19:35:34.301] (WW) DAEMON: Auth: sddm-helper exited with 6
[19:35:34.301] (II) DAEMON: Greeter stopped.
[19:36:35.988] (WW) DAEMON: Signal received: SIGTERM
[19:36:35.988] (II) DAEMON: Socket server stopping...
[19:36:35.988] (II) DAEMON: Socket server stopped.
[19:36:35.988] (II) DAEMON: Display server stopping...
[19:36:36.052] (II) DAEMON: Display server stopped.
[19:36:36.052] (II) DAEMON: Running display stop script  "/usr/share/sddm/scripts/Xstop"
[19:36:36.114] (II) DAEMON: Initializing...
[19:36:36.117] (II) DAEMON: Starting...
[19:36:36.117] (II) DAEMON: Logind interface found
[19:36:36.118] (II) DAEMON: Adding new display on vt 7 ...
[19:36:36.118] (II) DAEMON: Loading theme configuration from ""
[19:36:36.118] (II) DAEMON: Display server starting...
[19:36:36.118] (II) DAEMON: Running: /usr/bin/X -dpi 0 -auth /var/run/sddm/{bb75894f-9b19-4ce9-b685-237fc304bf6c} -background none -noreset -displayfd 17 -seat seat0 vt7
[19:36:36.536] (II) DAEMON: Setting default cursor
[19:36:36.569] (II) DAEMON: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
[19:36:36.624] (II) DAEMON: Display server started.
[19:36:36.624] (II) DAEMON: Socket server starting...
[19:36:36.624] (II) DAEMON: Socket server started.
[19:36:36.624] (II) DAEMON: Loading theme configuration from "/usr/share/sddm/themes/breeze/theme.conf"
[19:36:36.624] (II) DAEMON: Greeter starting...
[19:36:36.624] (II) DAEMON: Adding cookie to "/var/run/sddm/{bb75894f-9b19-4ce9-b685-237fc304bf6c}"
[19:36:36.630] (II) HELPER: [PAM] Starting...
[19:36:36.630] (II) HELPER: [PAM] Authenticating...
[19:36:36.630] (II) HELPER: [PAM] returning.
[19:36:36.635] (II) DAEMON: Greeter session started successfully
[19:36:36.653] (II) DAEMON: Message received from greeter: Connect
[19:36:40.926] (II) DAEMON: Message received from greeter: Login
[19:36:40.926] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[19:36:40.928] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[19:36:40.928] (II) DAEMON: Session "/usr/share/xsessions/plasma.desktop" selected, command: "/usr/bin/startplasma-x11"
[19:36:40.939] (II) HELPER: [PAM] Starting...
[19:36:40.939] (II) HELPER: [PAM] Authenticating...
[19:36:40.971] (II) HELPER: [PAM] Preparing to converse...
[19:36:40.971] (II) HELPER: [PAM] Conversation with 1 messages
[19:36:41.031] (II) HELPER: [PAM] returning.
[19:36:41.038] (II) DAEMON: Authenticated successfully
[19:36:41.047] (II) HELPER: Starting: "/usr/share/sddm/scripts/Xsession \"/usr/bin/startplasma-x11\""
[19:36:41.048] (II) HELPER: Adding cookie to "/home/zohran/.Xauthority"
[19:36:41.051] (II) DAEMON: Session started
[19:36:41.095] (II) HELPER: [PAM] Closing session
[19:36:41.097] (II) HELPER: [PAM] Ended.
[19:36:41.097] (II) DAEMON: Auth: sddm-helper exited successfully
[19:36:41.097] (II) DAEMON: Greeter stopped.
[19:56:19.950] (WW) DAEMON: Signal received: SIGTERM
[19:56:19.950] (II) DAEMON: Socket server stopping...
[19:56:19.950] (II) DAEMON: Socket server stopped.
[19:56:19.950] (II) DAEMON: Display server stopping...
[19:56:20.178] (II) DAEMON: Display server stopped.
[19:56:20.178] (II) DAEMON: Running display stop script  "/usr/share/sddm/scripts/Xstop"
[19:56:20.182] (WW) DAEMON: QProcess: Destroyed while process ("/usr/libexec/sddm-helper") is still running.
[20:00:01.058] (II) DAEMON: Initializing...
[20:00:01.062] (II) DAEMON: Starting...
[20:00:01.062] (II) DAEMON: Logind interface found
[20:00:01.062] (II) DAEMON: Adding new display on vt 7 ...
[20:00:01.063] (II) DAEMON: Loading theme configuration from ""
[20:00:01.064] (II) DAEMON: Display server starting...
[20:00:01.064] (II) DAEMON: Running: /usr/bin/X -dpi 0 -auth /var/run/sddm/{ecc9c335-7a99-4132-bdd1-edb1c7bfd815} -background none -noreset -displayfd 17 -seat seat0 vt7
[20:00:01.603] (II) DAEMON: Setting default cursor
[20:00:01.638] (II) DAEMON: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
[20:00:01.693] (II) DAEMON: Display server started.
[20:00:01.693] (II) DAEMON: Socket server starting...
[20:00:01.694] (II) DAEMON: Socket server started.
[20:00:01.694] (II) DAEMON: Loading theme configuration from "/usr/share/sddm/themes/breeze/theme.conf"
[20:00:01.695] (II) DAEMON: Greeter starting...
[20:00:01.695] (II) DAEMON: Adding cookie to "/var/run/sddm/{ecc9c335-7a99-4132-bdd1-edb1c7bfd815}"
[20:00:01.703] (II) HELPER: [PAM] Starting...
[20:00:01.703] (II) HELPER: [PAM] Authenticating...
[20:00:01.703] (II) HELPER: [PAM] returning.
[20:00:01.709] (II) DAEMON: Greeter session started successfully
[20:00:01.769] (II) DAEMON: Message received from greeter: Connect
[20:00:07.304] (II) DAEMON: Message received from greeter: Login
[20:00:07.304] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[20:00:07.319] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[20:00:07.320] (II) DAEMON: Session "/usr/share/xsessions/plasma.desktop" selected, command: "/usr/bin/startplasma-x11"
[20:00:07.334] (II) HELPER: [PAM] Starting...
[20:00:07.334] (II) HELPER: [PAM] Authenticating...
[20:00:07.351] (II) HELPER: [PAM] Preparing to converse...
[20:00:07.352] (II) HELPER: [PAM] Conversation with 1 messages
[20:00:07.434] (II) HELPER: [PAM] returning.
[20:00:07.441] (II) DAEMON: Authenticated successfully
[20:00:07.452] (II) HELPER: Starting: "/usr/share/sddm/scripts/Xsession \"/usr/bin/startplasma-x11\""
[20:00:07.453] (II) HELPER: Adding cookie to "/home/zohran/.Xauthority"
[20:00:07.457] (II) DAEMON: Session started
[20:00:07.501] (II) HELPER: [PAM] Closing session
[20:00:07.502] (II) HELPER: [PAM] Ended.
[20:00:07.503] (II) DAEMON: Auth: sddm-helper exited successfully
[20:00:07.503] (II) DAEMON: Greeter stopped.
[20:04:41.193] (WW) DAEMON: Signal received: SIGTERM
[20:04:41.193] (II) DAEMON: Socket server stopping...
[20:04:41.193] (II) DAEMON: Socket server stopped.
[20:04:41.193] (II) DAEMON: Display server stopping...
[20:04:41.461] (II) DAEMON: Display server stopped.
[20:04:41.462] (II) DAEMON: Running display stop script  "/usr/share/sddm/scripts/Xstop"
[20:04:41.468] (WW) DAEMON: QProcess: Destroyed while process ("/usr/libexec/sddm-helper") is still running.
[20:07:24.846] (II) DAEMON: Initializing...
[20:07:24.850] (II) DAEMON: Starting...
[20:07:24.851] (II) DAEMON: Logind interface found
[20:07:24.851] (II) DAEMON: Adding new display on vt 7 ...
[20:07:24.852] (II) DAEMON: Loading theme configuration from ""
[20:07:24.852] (II) DAEMON: Display server starting...
[20:07:24.852] (II) DAEMON: Running: /usr/bin/X -dpi 0 -auth /var/run/sddm/{c60f6d42-a497-431e-ae04-dc958de3c67f} -background none -noreset -displayfd 17 -seat seat0 vt7
[20:07:25.369] (II) DAEMON: Setting default cursor
[20:07:25.405] (II) DAEMON: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
[20:07:25.464] (II) DAEMON: Display server started.
[20:07:25.464] (II) DAEMON: Socket server starting...
[20:07:25.464] (II) DAEMON: Socket server started.
[20:07:25.465] (II) DAEMON: Loading theme configuration from "/usr/share/sddm/themes/breeze/theme.conf"
[20:07:25.465] (II) DAEMON: Greeter starting...
[20:07:25.465] (II) DAEMON: Adding cookie to "/var/run/sddm/{c60f6d42-a497-431e-ae04-dc958de3c67f}"
[20:07:25.473] (II) HELPER: [PAM] Starting...
[20:07:25.473] (II) HELPER: [PAM] Authenticating...
[20:07:25.473] (II) HELPER: [PAM] returning.
[20:07:25.479] (II) DAEMON: Greeter session started successfully
[20:07:25.533] (II) DAEMON: Message received from greeter: Connect
[20:07:29.554] (II) DAEMON: Message received from greeter: Login
[20:07:29.554] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[20:07:29.556] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[20:07:29.556] (II) DAEMON: Session "/usr/share/xsessions/plasma.desktop" selected, command: "/usr/bin/startplasma-x11"
[20:07:29.581] (II) HELPER: [PAM] Starting...
[20:07:29.581] (II) HELPER: [PAM] Authenticating...
[20:07:29.615] (II) HELPER: [PAM] Preparing to converse...
[20:07:29.615] (II) HELPER: [PAM] Conversation with 1 messages
[20:07:29.687] (II) HELPER: [PAM] returning.
[20:07:29.694] (II) DAEMON: Authenticated successfully
[20:07:29.705] (II) HELPER: Starting: "/usr/share/sddm/scripts/Xsession \"/usr/bin/startplasma-x11\""
[20:07:29.706] (II) HELPER: Adding cookie to "/home/zohran/.Xauthority"
[20:07:29.709] (II) DAEMON: Session started
[20:07:29.744] (II) HELPER: [PAM] Closing session
[20:07:29.745] (II) HELPER: [PAM] Ended.
[20:07:29.746] (II) DAEMON: Auth: sddm-helper exited successfully
[20:07:29.746] (II) DAEMON: Greeter stopped.
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1040
Location: halmstad

PostPosted: Fri Dec 27, 2019 6:04 am    Post subject: Reply with quote

Fulgurance

first you need to have :

Xsetup for sddm:

Code:


#!/bin/sh
# Xsetup - run as root before the login dialog appears

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
#xrandr --dpi 96
setxkbmap fr
msi-keyboard normal ff0000 0000ff 00ff00


if you want to use Prime,you need to have the libglvnd useflag :


prime:
Code:


hedmo@mya51 ~ $ cat /etc/X11/xorg.conf.d/01-nvidia-offloading.conf....
Section "ServerFlags"
  Option "IgnoreABI" "1"
EndSection

Section "ServerLayout"
  Identifier "layout"
  Option "AllowNVIDIAGPUScreens"
  Screen 0 "iGPU"
EndSection

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

Section "Screen"
  Identifier "IGPU"
  Device "iGPU"
EndSection

Section "Device"
  Identifier "nvidia"
  Driver "nvidia"
  BusID "PCI:1:0:0"
EndSection
hedmo@mya51 ~ $



in bios you need to have the gpu switch to

regards hedmo
Back to top
View user's profile Send private message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 657

PostPosted: Fri Dec 27, 2019 3:13 pm    Post subject: Reply with quote

Thanks for your help.

It's already configured. But now, i have found begin of the problem. When i perform eselect opengl to nvidia render, nvidia card work.

I think something it's broken with X11 Opengl render.
Back to top
View user's profile Send private message
coderanger
n00b
n00b


Joined: 19 Sep 2018
Posts: 70

PostPosted: Fri Dec 27, 2019 5:33 pm    Post subject: Reply with quote

Nothing wrong with x11 opengl renderer.
If we are running with nvidia card then the driver has to be switched to nvidia accordingly via eselect opengl, otherwise some generic functionality may even work (initialize black screen with mouse) but the most of the functionality will fail (render input fields)

Idle nvidia card consumes extra ~5W and battery gets drained much faster than using intel card only. Some people switch cards on boot via grub menu, you can also try to implement this approach
Back to top
View user's profile Send private message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 657

PostPosted: Fri Dec 27, 2019 9:07 pm    Post subject: Reply with quote

No. Something is wrong. I see that. It's not my first time with my laptop.

And use only nvidia card is not problem for me, because i use my laptop only with power outlet.
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1040
Location: halmstad

PostPosted: Sat Dec 28, 2019 6:31 am    Post subject: Reply with quote

i think the problem is that you have not switch to igpu in bios .if you dont switch in bios the laptop screen is attached to the dgpu and you cannot
use :

Code:


eselect opengl set x11



or you will have a black screen.

regards hedmo
Back to top
View user's profile Send private message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 657

PostPosted: Sat Dec 28, 2019 4:12 pm    Post subject: Reply with quote

No. It's impossible because my uefi don't provide any function to disable or enable it.
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1040
Location: halmstad

PostPosted: Sat Dec 28, 2019 5:48 pm    Post subject: Reply with quote

Fulgurance

if the screen is attached to the nvidia card and you dont have a bios switch to switch the screen to the intel card you are out of luck with
getting optimus,bumblebee or prime to work.nvidia-drivers does not provide software to pass-throw the intel gpu card to the screen.
if you want to do that you need to use reverse prime and it can only be done with nouveau driver

regards
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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