Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
startx black screen without errors
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
g4s8
n00b
n00b


Joined: 15 Dec 2017
Posts: 12

PostPosted: Wed Oct 10, 2018 4:15 pm    Post subject: startx black screen without errors Reply with quote

I've installed X11 server on Gentoo with Nvidia drivers.
The driver is loaded successfully:
Code:

# lsmod | grep nvidia
nvidia_drm             40960  2
nvidia_modeset       1060864  3 nvidia_drm
nvidia              13549568  85 nvidia_modeset

but when I run startx to check the installation I'm getting black screen with white dash in left top corner without mouse pointer and any window like xterm.
Also it's not possible to interrupt it from keyboard (Ctr+Alt+backspace or Ctr+Alt+F1 doesn't work), but I'm able to connect via ssh and kill it
here is my Xorg.0.log:
Code:

[    45.471]
X.Org X Server 1.19.5
Release Date: 2017-10-12
[    45.471] X Protocol Version 11, Revision 0
[    45.471] Build Operating System: Linux 4.14.65-gentoo x86_64 Gentoo
[    45.471] Current Operating System: Linux hostname="g4s8" 4.14.65-gentoo #5 SMP Wed Oct 10 12:27:47 MSK 2018 x86_64
[    45.471] Kernel command line: BOOT_IMAGE=/vmlinuz-4.14.65-gentoo root=/dev/mapper/root ro dolvm crypt_root=/dev/HDD/root root=/dev/mapper/root root_keydev=UUID=9CBB-5B72 root_key=gentoo.key
[    45.471] Build Date: 10 October 2018  03:05:39PM
[    45.471] 
[    45.472] Current version of pixman: 0.34.0
[    45.472]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[    45.472] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    45.472] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct 10 18:59:15 2018
[    45.554] (==) Using config file: "/etc/X11/xorg.conf"
[    45.554] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    45.554] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    45.656] (==) ServerLayout "Layout0"
[    45.656] (**) |-->Screen "Screen0" (0)
[    45.656] (**) |   |-->Monitor "Monitor0"
[    45.656] (**) |   |-->Device "Device0"
[    45.656] (**) |-->Input Device "Keyboard0"
[    45.656] (**) |-->Input Device "Mouse0"
[    45.656] (==) Automatically adding devices
[    45.656] (==) Automatically enabling devices
[    45.656] (==) Automatically adding GPU devices
[    45.656] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    45.690] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[    45.690]    Entry deleted from font path.
[    45.690] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[    45.690]    Entry deleted from font path.
[    45.690] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    45.690]    Entry deleted from font path.
[    45.724] (==) FontPath set to:
   /usr/share/fonts/misc/,
   /usr/share/fonts/100dpi/,
   /usr/share/fonts/75dpi/
[    45.724] (**) ModulePath set to "/usr/lib64/opengl/nvidia,/usr/lib64/xorg/modules"
[    45.724] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[    45.724] (WW) Disabling Keyboard0
[    45.724] (WW) Disabling Mouse0
[    45.724] (II) Loader magic: 0x56133bd13c40
[    45.724] (II) Module ABI versions:
[    45.724]    X.Org ANSI C Emulation: 0.4
[    45.724]    X.Org Video Driver: 23.0
[    45.724]    X.Org XInput driver : 24.1
[    45.724]    X.Org Server Extension : 10.0
[    45.724] (II) xfree86: Adding drm device (/dev/dri/card0)
[    45.730] (--) PCI:*(0:0:2:0) 8086:3e9b:1028:0825 rev 0, Mem @ 0xeb000000/16777216, 0x80000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[    45.730] (--) PCI: (0:1:0:0) 10de:1c20:1028:0825 rev 161, Mem @ 0xec000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288
[    45.730] (II) LoadModule: "glx"
[    45.745] (II) Loading /usr/lib64/opengl/nvidia/extensions/libglx.so
[    46.227] (II) Module glx: vendor="NVIDIA Corporation"
[    46.227]    compiled for 4.0.2, module version = 1.0.0
[    46.227]    Module class: X.Org Server Extension
[    46.238] (II) NVIDIA GLX Module  396.54  Tue Aug 14 22:37:05 PDT 2018
[    46.250] (II) LoadModule: "nvidia"
[    46.254] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[    46.363] (II) Module nvidia: vendor="NVIDIA Corporation"
[    46.363]    compiled for 4.0.2, module version = 1.0.0
[    46.363]    Module class: X.Org Video Driver
[    46.379] (II) NVIDIA dlloader X Driver  396.54  Tue Aug 14 22:15:03 PDT 2018
[    46.379] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    46.381] (--) using VT number 7

[    46.402] (II) Loading sub module "fb"
[    46.402] (II) LoadModule: "fb"
[    46.419] (II) Loading /usr/lib64/xorg/modules/libfb.so
[    46.435] (II) Module fb: vendor="X.Org Foundation"
[    46.435]    compiled for 1.19.5, module version = 1.0.0
[    46.435]    ABI class: X.Org ANSI C Emulation, version 0.4
[    46.435] (II) Loading sub module "wfb"
[    46.435] (II) LoadModule: "wfb"
[    46.435] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[    46.448] (II) Module wfb: vendor="X.Org Foundation"
[    46.448]    compiled for 1.19.5, module version = 1.0.0
[    46.448]    ABI class: X.Org ANSI C Emulation, version 0.4
[    46.448] (II) Loading sub module "ramdac"
[    46.448] (II) LoadModule: "ramdac"
[    46.448] (II) Module "ramdac" already built-in
[    46.458] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[    46.458] (==) NVIDIA(0): RGB weight 888
[    46.458] (==) NVIDIA(0): Default visual is TrueColor
[    46.458] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    46.460] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration" "True"
[    46.460] (**) NVIDIA(0): Enabling 2D acceleration
[    46.720] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[    46.720] (--) NVIDIA(0):     DFP-0
[    46.725] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 1060 with Max-Q Design (GP106-A) at
[    46.725] (II) NVIDIA(0):     PCI:1:0:0 (GPU-0)
[    46.725] (--) NVIDIA(0): Memory: 6291456 kBytes
[    46.725] (--) NVIDIA(0): VideoBIOS: 86.06.60.00.2d
[    46.725] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[    46.725] (--) NVIDIA(GPU-0): DFP-0: disconnected
[    46.725] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[    46.725] (--) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
[    46.725] (--) NVIDIA(GPU-0):
[    46.725] (==) NVIDIA(0):
[    46.725] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[    46.725] (==) NVIDIA(0):     will be used as the requested mode.
[    46.725] (==) NVIDIA(0):
[    46.725] (--) NVIDIA(0): No enabled display devices found; starting anyway because
[    46.725] (--) NVIDIA(0):     AllowEmptyInitialConfiguration is enabled
[    46.725] (II) NVIDIA(0): Validated MetaModes:
[    46.725] (II) NVIDIA(0):     "NULL"
[    46.725] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[    46.725] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[    46.725] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[    46.725] (--) Depth 24 pixmap format is 32 bpp
[    46.726] (II) NVIDIA: Using 24576.00 MB of virtual memory for indirect memory
[    46.726] (II) NVIDIA:     access.
[    46.772] (II) NVIDIA(0): Setting mode "NULL"
[    46.785] (==) NVIDIA(0): Disabling shared memory pixmaps
[    46.785] (==) NVIDIA(0): Backing store enabled
[    46.785] (==) NVIDIA(0): Silken mouse enabled
[    46.787] (**) NVIDIA(0): DPMS enabled
[    46.787] (II) Loading sub module "dri2"
[    46.787] (II) LoadModule: "dri2"
[    46.787] (II) Module "dri2" already built-in
[    46.787] (II) NVIDIA(0): [DRI2] Setup complete
[    46.787] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[    46.787] (--) RandR disabled
[    46.789] (II) Initializing extension GLX
[    46.789] (II) Indirect GLX disabled.
[    47.277] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[    47.277] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[    47.277] (II) LoadModule: "evdev"
[    47.277] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[    47.371] (II) Module evdev: vendor="X.Org Foundation"
[    47.372]    compiled for 1.19.5, module version = 2.10.6
[    47.372]    Module class: X.Org XInput Driver
[    47.372]    ABI class: X.Org XInput driver, version 24.1
[    47.372] (II) Using input driver 'evdev' for 'Power Button'
[    47.372] (**) Power Button: always reports core events
[    47.372] (**) evdev: Power Button: Device: "/dev/input/event3"
[    47.372] (--) evdev: Power Button: Vendor 0 Product 0x1
[    47.372] (--) evdev: Power Button: Found keys
[    47.372] (II) evdev: Power Button: Configuring as keyboard
[    47.372] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3/event3"
[    47.372] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    47.372] (**) Option "xkb_rules" "evdev"
[    47.373] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[    47.373] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[    47.373] (II) Using input driver 'evdev' for 'Power Button'
[    47.373] (**) Power Button: always reports core events
[    47.373] (**) evdev: Power Button: Device: "/dev/input/event1"
[    47.373] (--) evdev: Power Button: Vendor 0 Product 0x1
[    47.373] (--) evdev: Power Button: Found keys
[    47.373] (II) evdev: Power Button: Configuring as keyboard
[    47.373] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1/event1"
[    47.373] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 7)
[    47.373] (**) Option "xkb_rules" "evdev"
[    47.374] (II) config/udev: Adding input device Lid Switch (/dev/input/event0)
[    47.374] (II) No input driver specified, ignoring this device.
[    47.374] (II) This device may have been added with another device file.
[    47.374] (II) config/udev: Adding input device Sleep Button (/dev/input/event2)
[    47.374] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[    47.374] (II) Using input driver 'evdev' for 'Sleep Button'
[    47.374] (**) Sleep Button: always reports core events
[    47.374] (**) evdev: Sleep Button: Device: "/dev/input/event2"
[    47.374] (--) evdev: Sleep Button: Vendor 0 Product 0x3
[    47.374] (--) evdev: Sleep Button: Found keys
[    47.374] (II) evdev: Sleep Button: Configuring as keyboard
[    47.374] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input2/event2"
[    47.374] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 8)
[    47.375] (**) Option "xkb_rules" "evdev"
[    47.376] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event4)
[    47.376] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[    47.376] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[    47.376] (**) AT Translated Set 2 keyboard: always reports core events
[    47.376] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event4"
[    47.376] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[    47.376] (--) evdev: AT Translated Set 2 keyboard: Found keys
[    47.376] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[    47.376] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input4/event4"
[    47.376] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 9)
[    47.376] (**) Option "xkb_rules" "evdev"
[    47.377] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event5)
[    47.377] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "evdev touchpad catchall"
[    47.377] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"
[    47.377] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "Default clickpad buttons"
[    47.377] (II) LoadModule: "synaptics"
[    47.377] (II) Loading /usr/lib64/xorg/modules/input/synaptics_drv.so
[    47.391] (II) Module synaptics: vendor="X.Org Foundation"
[    47.391]    compiled for 1.19.5, module version = 1.9.1
[    47.391]    Module class: X.Org XInput Driver
[    47.391]    ABI class: X.Org XInput driver, version 24.1
[    47.391] (II) Using input driver 'synaptics' for 'SynPS/2 Synaptics TouchPad'
[    47.391] (**) SynPS/2 Synaptics TouchPad: always reports core events
[    47.391] (**) Option "Device" "/dev/input/event5"
[    47.405] (II) synaptics: SynPS/2 Synaptics TouchPad: found clickpad property
[    47.405] (--) synaptics: SynPS/2 Synaptics TouchPad: x-axis range 1278 - 5664 (res 0)
[    47.405] (--) synaptics: SynPS/2 Synaptics TouchPad: y-axis range 1206 - 4648 (res 0)
[    47.405] (--) synaptics: SynPS/2 Synaptics TouchPad: pressure range 0 - 255
[    47.405] (--) synaptics: SynPS/2 Synaptics TouchPad: finger width range 0 - 15
[    47.405] (--) synaptics: SynPS/2 Synaptics TouchPad: buttons: left double triple
[    47.405] (--) synaptics: SynPS/2 Synaptics TouchPad: Vendor 0x2 Product 0x7
[    47.405] (**) Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
[    47.405] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
[    47.405] (**) SynPS/2 Synaptics TouchPad: always reports core events
[    47.421] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input6/event5"
[    47.421] (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD, id 10)
[    47.421] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MinSpeed is now constant deceleration 2.5
[    47.421] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MaxSpeed is now 1.75
[    47.421] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) AccelFactor is now 0.036
[    47.421] (**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
[    47.421] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration profile 1
[    47.421] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
[    47.421] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
[    47.421] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found


and emerge --info:
Code:

Portage 2.3.49 (python 3.6.5-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.26-r7, 4.14.65-gentoo x86_64)
=================================================================
System uname: Linux-4.14.65-gentoo-x86_64-Intel-R-_Core-TM-_i7-8750H_CPU_@_2.20GHz-with-gentoo-2.4.1
KiB Mem:    16121000 total,  15740912 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 10 Oct 2018 09:30:01 +0000
Head commit of repository gentoo: a0e41968a96a5598bd6801d77b96ef96cdfc906d
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.38.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

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

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/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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-a"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.yandex.ru/gentoo-distfiles"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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 acl alsa amd64 auto-hinter berkdb bzip2 cli consolekit crypt cxx dri ffmpeg fontconfig gdbm gif iconv ipv6 jce jpeg lcdfilter libtirpc multilib ncurses nls nptl open_perms openmp openrc pam pcre peer_perms png readline seccomp ssl t1lib tcpd tiff tk truetype unicode xattr xinerama zlib zsh-completion" 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="karbon plan sheets stage 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 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Can someone please help me? I didn't install Nvidia drivers on Gentoo before, so maybe I've configured something wrong.
Back to top
View user's profile Send private message
PCmaniaK
n00b
n00b


Joined: 18 Aug 2018
Posts: 13

PostPosted: Wed Oct 10, 2018 6:31 pm    Post subject: Reply with quote

Did you try to USE VIDEO_CARDS="nouveau" instead of VIDEO_CARDS="nvidia intel"? It is usually in make.conf
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3490
Location: Dallas area

PostPosted: Wed Oct 10, 2018 6:46 pm    Post subject: Re: startx black screen without errors Reply with quote

g4s8 wrote:
I've installed X11 server on Gentoo with Nvidia drivers.
The driver is loaded successfully:
Code:

# lsmod | grep nvidia
nvidia_drm             40960  2
nvidia_modeset       1060864  3 nvidia_drm
nvidia              13549568  85 nvidia_modeset

but when I run startx to check the installation I'm getting black screen with white dash in left top corner without mouse pointer and any window like xterm.
Also it's not possible to interrupt it from keyboard (Ctr+Alt+backspace or Ctr+Alt+F1 doesn't work), but I'm able to connect via ssh and kill it


What does running "X -retro" instead of startx do?

As far as xterm, do you have it emerged?
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
g4s8
n00b
n00b


Joined: 15 Dec 2017
Posts: 12

PostPosted: Wed Oct 10, 2018 7:43 pm    Post subject: Reply with quote

PCmaniaK wrote:
Did you try to USE VIDEO_CARDS="nouveau" instead of VIDEO_CARDS="nvidia intel"? It is usually in make.conf

No, "nouveau" driver is not applicable for me, because I need CUDA support.
Back to top
View user's profile Send private message
g4s8
n00b
n00b


Joined: 15 Dec 2017
Posts: 12

PostPosted: Wed Oct 10, 2018 7:47 pm    Post subject: Re: startx black screen without errors Reply with quote

Quote:

What does running "X -retro" instead of startx do?

It has same behavior and log output as startx.

Quote:

As far as xterm, do you have it emerged?

Sure, I have "x11-terms/xterm-327"
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3490
Location: Dallas area

PostPosted: Wed Oct 10, 2018 8:03 pm    Post subject: Reply with quote

It does act like it doesn't see the display.
Code:
[    46.725] (--) NVIDIA(0): No enabled display devices found; starting anyway because
[    46.725] (--) NVIDIA(0):     AllowEmptyInitialConfiguration is enabled
[    46.725] (II) NVIDIA(0): Validated MetaModes:
[    46.725] (II) NVIDIA(0):     "NULL"


How is the monitor connected to the nvidia card?

And post your xorg.conf
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
g4s8
n00b
n00b


Joined: 15 Dec 2017
Posts: 12

PostPosted: Wed Oct 10, 2018 8:22 pm    Post subject: Reply with quote

Quote:

How is the monitor connected to the nvidia card?

And post your xorg.conf


This is a laptop, so monitor is connected internally.

I've copied xorg.conf from working Ubuntu installation on same laptop:
Code:

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

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

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

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3490
Location: Dallas area

PostPosted: Wed Oct 10, 2018 8:32 pm    Post subject: Reply with quote

g4s8 wrote:
Quote:

How is the monitor connected to the nvidia card?

And post your xorg.conf


This is a laptop, so monitor is connected internally.

I've copied xorg.conf from working Ubuntu installation on same laptop:
Code:

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

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

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

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection


From the Xorg log in the first post
Code:
[    45.730] (--) PCI:*(0:0:2:0) 8086:3e9b:1028:0825 rev 0, Mem @ 0xeb000000/16777216, 0x80000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[    45.730] (--) PCI: (0:1:0:0) 10de:1c20:1028:0825 rev 161, Mem @ 0xec000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288


The 0:0:2:0 matches up, but the 0:1:0:0 doesn't match up,

Change BusID "PCI:1@0:0:0"
to BusID "PCI:0@1:0:0"
and see if it doesn't fix your problem

OR just comment out the BusID completely.

Edit to add: you might comment out both BusID lines, they're different in ubuntu than gentoo. I've never needed them.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
g4s8
n00b
n00b


Joined: 15 Dec 2017
Posts: 12

PostPosted: Wed Oct 10, 2018 9:05 pm    Post subject: Reply with quote

Anon-E-moose wrote:

The 0:0:2:0 matches up, but the 0:1:0:0 doesn't match up,

Change BusID "PCI:1@0:0:0"
to BusID "PCI:0@1:0:0"
and see if it doesn't fix your problem

OR just comment out the BusID completely.


After change to PCI:0@1:0:0 xorg fails to start:
Code:

[  4040.118] (II) LoadModule: "glx"
[  4040.118] (II) Loading /usr/lib64/opengl/nvidia/extensions/libglx.so
[  4040.120] (II) Module glx: vendor="NVIDIA Corporation"
[  4040.120]    compiled for 4.0.2, module version = 1.0.0
[  4040.120]    Module class: X.Org Server Extension
[  4040.120] (II) NVIDIA GLX Module  396.54  Tue Aug 14 22:37:05 PDT 2018
[  4040.120] (II) LoadModule: "nvidia"
[  4040.120] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[  4040.120] (II) Module nvidia: vendor="NVIDIA Corporation"
[  4040.120]    compiled for 4.0.2, module version = 1.0.0
[  4040.120]    Module class: X.Org Video Driver
[  4040.120] (II) LoadModule: "modesetting"
[  4040.120] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[  4040.120] (II) Module modesetting: vendor="X.Org Foundation"
[  4040.120]    compiled for 1.19.5, module version = 1.19.5
[  4040.120]    Module class: X.Org Video Driver
[  4040.120]    ABI class: X.Org Video Driver, version 23.0
[  4040.120] (II) NVIDIA dlloader X Driver  396.54  Tue Aug 14 22:15:03 PDT 2018
[  4040.120] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  4040.120] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  4040.120] (--) using VT number 8

[  4040.123] (WW) Falling back to old probe method for modesetting
[  4040.123] (EE) open /dev/dri/card0: No such file or directory
[  4040.123] (EE) No devices detected.
[  4040.123] (EE)
Fatal server error:
[  4040.123] (EE) no screens found(EE)


It seems that I have wrong kernel configuration, because xorg can't find /dev/dri/card0 device,
but I think this device is a part of DRI module which I disabled as suggested in nvidia-drivers wiki: https://wiki.gentoo.org/wiki/NVidia/nvidia-drivers
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3490
Location: Dallas area

PostPosted: Wed Oct 10, 2018 9:10 pm    Post subject: Reply with quote

Move xorg.conf to another name, and see if startx will work without it.

If so, then we'll fine tune it.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
g4s8
n00b
n00b


Joined: 15 Dec 2017
Posts: 12

PostPosted: Wed Oct 10, 2018 9:31 pm    Post subject: Reply with quote

Anon-E-moose wrote:
Move xorg.conf to another name, and see if startx will work without it.

If so, then we'll fine tune it.


Without xorg.conf it fails with error:
Code:

[   524.094] Build Date: 10 October 2018  03:05:39PM
[   524.094] 
[   524.094] Current version of pixman: 0.34.0
[   524.094]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[   524.094] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   524.094] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct 11 00:24:14 2018
[   524.094] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   524.094] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   524.094] (==) No Layout section.  Using the first Screen section.
[   524.094] (==) No screen section available. Using defaults.
[   524.094] (**) |-->Screen "Default Screen Section" (0)
[   524.094] (**) |   |-->Monitor "<default monitor>"
[   524.094] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[   524.094] (==) Automatically adding devices
[   524.094] (==) Automatically enabling devices
[   524.094] (==) Automatically adding GPU devices
[   524.094] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   524.094] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[   524.094]    Entry deleted from font path.
[   524.094] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   524.094]    Entry deleted from font path.
[   524.094] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   524.094]    Entry deleted from font path.
[   524.094] (==) FontPath set to:
   /usr/share/fonts/misc/,
   /usr/share/fonts/100dpi/,
   /usr/share/fonts/75dpi/
[   524.094] (**) ModulePath set to "/usr/lib64/opengl/nvidia,/usr/lib64/xorg/modules"
[   524.094] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[   524.094] (II) Loader magic: 0x564feeca3c40
[   524.094] (II) Module ABI versions:
[   524.094]    X.Org ANSI C Emulation: 0.4
[   524.094]    X.Org Video Driver: 23.0
[   524.094]    X.Org XInput driver : 24.1
[   524.094]    X.Org Server Extension : 10.0
[   524.095] (--) PCI:*(0:0:2:0) 8086:3e9b:1028:0825 rev 0, Mem @ 0xeb000000/16777216, 0x80000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[   524.095] (--) PCI: (0:1:0:0) 10de:1c20:1028:0825 rev 161, Mem @ 0xec000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288
[   524.095] (II) LoadModule: "glx"
[   524.095] (II) Loading /usr/lib64/opengl/nvidia/extensions/libglx.so
[   524.097] (II) Module glx: vendor="NVIDIA Corporation"
[   524.097]    compiled for 4.0.2, module version = 1.0.0
[   524.097]    Module class: X.Org Server Extension
[   524.097] (II) NVIDIA GLX Module  396.54  Tue Aug 14 22:37:05 PDT 2018
[   524.097] (==) Matched intel as autoconfigured driver 0
[   524.097] (==) Matched modesetting as autoconfigured driver 1
[   524.097] (==) Matched fbdev as autoconfigured driver 2
[   524.097] (==) Matched vesa as autoconfigured driver 3
[   524.097] (==) Assigned the driver to the xf86ConfigLayout
[   524.097] (II) LoadModule: "intel"
[   524.097] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[   524.097] (II) Module intel: vendor="X.Org Foundation"
[   524.097]    compiled for 1.19.5, module version = 2.99.917
[   524.097]    Module class: X.Org Video Driver
[   524.097]    ABI class: X.Org Video Driver, version 23.0
[   524.097] (II) LoadModule: "modesetting"
[   524.097] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[   524.097] (II) Module modesetting: vendor="X.Org Foundation"
[   524.097]    compiled for 1.19.5, module version = 1.19.5
[   524.097]    Module class: X.Org Video Driver
[   524.098]    ABI class: X.Org Video Driver, version 23.0
[   524.098] (II) LoadModule: "fbdev"
[   524.098] (WW) Warning, couldn't open module fbdev
[   524.098] (II) UnloadModule: "fbdev"
[   524.098] (II) Unloading fbdev
[   524.098] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   524.098] (II) LoadModule: "vesa"
[   524.098] (WW) Warning, couldn't open module vesa
[   524.098] (II) UnloadModule: "vesa"
[   524.098] (II) Unloading vesa
[   524.098] (EE) Failed to load module "vesa" (module does not exist, 0)
[   524.098] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
   i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
   915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
   Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
   GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[   524.098] (II) intel: Driver for Intel(R) HD Graphics
[   524.098] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[   524.098] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[   524.098] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   524.098] (--) using VT number 7

[   524.102] (EE) open /dev/dri/card0: No such file or directory
[   524.102] (WW) Falling back to old probe method for modesetting
[   524.102] (EE) open /dev/dri/card0: No such file or directory
[   524.102] (EE) Screen 0 deleted because of no matching config section.
[   524.102] (II) UnloadModule: "modesetting"
[   524.102] (EE) Device(s) detected, but none match those in the config file.
[   524.102] (EE)
Fatal server error:
[   524.102] (EE) no screens found(EE)

the only config for xorg is xorg.conf.d/20opengl.conf:
Code:

Section "Files"
   ModulePath "/usr/lib64/opengl/nvidia"
   ModulePath "/usr/lib64/xorg/modules"
EndSection


Also I tried to generate default config with "nvidia-xconfig" command. It is
Code:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 396.54  (buildmeister@swio-display-x64-rhel04-14)  Wed Aug 15 00:22:27 PDT 2018

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/mouse"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

with this config xorg fails with error:
Code:

[   791.449] Build Date: 10 October 2018  03:05:39PM
[   791.449] 
[   791.449] Current version of pixman: 0.34.0
[   791.449]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[   791.449] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   791.449] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct 11 00:28:41 2018
[   791.449] (==) Using config file: "/etc/X11/xorg.conf"
[   791.449] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   791.449] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   791.449] (==) ServerLayout "Layout0"
[   791.449] (**) |-->Screen "Screen0" (0)
[   791.449] (**) |   |-->Monitor "Monitor0"
[   791.449] (**) |   |-->Device "Device0"
[   791.449] (**) |-->Input Device "Keyboard0"
[   791.449] (**) |-->Input Device "Mouse0"
[   791.449] (==) Automatically adding devices
[   791.449] (==) Automatically enabling devices
[   791.449] (==) Automatically adding GPU devices
[   791.449] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   791.449] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[   791.449]    Entry deleted from font path.
[   791.449] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   791.449]    Entry deleted from font path.
[   791.449] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   791.449]    Entry deleted from font path.
[   791.449] (==) FontPath set to:
   /usr/share/fonts/misc/,
   /usr/share/fonts/100dpi/,
   /usr/share/fonts/75dpi/
[   791.449] (**) ModulePath set to "/usr/lib64/opengl/nvidia,/usr/lib64/xorg/modules"
[   791.449] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   791.449] (WW) Disabling Keyboard0
[   791.449] (WW) Disabling Mouse0
[   791.449] (II) Loader magic: 0x5612db892c40
[   791.449] (II) Module ABI versions:
[   791.449]    X.Org ANSI C Emulation: 0.4
[   791.449]    X.Org Video Driver: 23.0
[   791.449]    X.Org XInput driver : 24.1
[   791.449]    X.Org Server Extension : 10.0
[   791.451] (--) PCI:*(0:0:2:0) 8086:3e9b:1028:0825 rev 0, Mem @ 0xeb000000/16777216, 0x80000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[   791.451] (--) PCI: (0:1:0:0) 10de:1c20:1028:0825 rev 161, Mem @ 0xec000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288
[   791.451] (II) LoadModule: "glx"
[   791.451] (II) Loading /usr/lib64/opengl/nvidia/extensions/libglx.so
[   791.453] (II) Module glx: vendor="NVIDIA Corporation"
[   791.453]    compiled for 4.0.2, module version = 1.0.0
[   791.453]    Module class: X.Org Server Extension
[   791.453] (II) NVIDIA GLX Module  396.54  Tue Aug 14 22:37:05 PDT 2018
[   791.453] (II) LoadModule: "nvidia"
[   791.453] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[   791.453] (II) Module nvidia: vendor="NVIDIA Corporation"
[   791.453]    compiled for 4.0.2, module version = 1.0.0
[   791.453]    Module class: X.Org Video Driver
[   791.453] (II) NVIDIA dlloader X Driver  396.54  Tue Aug 14 22:15:03 PDT 2018
[   791.453] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   791.453] (--) using VT number 7

[   791.456] (EE) No devices detected.
[   791.456] (EE)
Fatal server error:
[   791.456] (EE) no screens found(EE)
[   791.456] (EE)
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3490
Location: Dallas area

PostPosted: Wed Oct 10, 2018 10:14 pm    Post subject: Reply with quote

With the laptop the intel one should be used, if I'm not mistaken the nvidia one will be used with an external monito

Try this, it's a modified version of my laptop xorg.conf file

Code:
Section "ServerLayout"
    Identifier     "intel"
    Screen      0  "Screen0"     0 0
EndSection

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        Option "XkbOptions" "terminate:ctrl_alt_bksp"
        Driver "evdev"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "modesetting"
    Option         "Backingstore" "true"
    Option         "AccelMethod" "glamor"
    Option          "DRI" "3"
    Screen         0
EndSection


Or just take the Device Section out and use it in the ubuntu xorg.conf.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
g4s8
n00b
n00b


Joined: 15 Dec 2017
Posts: 12

PostPosted: Thu Oct 11, 2018 6:05 am    Post subject: Reply with quote

Anon-E-moose wrote:
With the laptop the intel one should be used, if I'm not mistaken the nvidia one will be used with an external monito

Try this, it's a modified version of my laptop xorg.conf file

Code:
Section "ServerLayout"
    Identifier     "intel"
    Screen      0  "Screen0"     0 0
EndSection

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        Option "XkbOptions" "terminate:ctrl_alt_bksp"
        Driver "evdev"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "modesetting"
    Option         "Backingstore" "true"
    Option         "AccelMethod" "glamor"
    Option          "DRI" "3"
    Screen         0
EndSection


Or just take the Device Section out and use it in the ubuntu xorg.conf.


It didn't help on the first try, but when I enabled DRI support in kernel and added i915 driver for Intel it helped.
Thanks for assistance!

It looks strange that Gentoo wiki suggested to disable DRI support for Nvidia drivers here https://wiki.gentoo.org/wiki/NVidia/nvidia-drivers

UPDATE:
I changed make.conf to VIDEO_CARDS="nvidia i915 intel" and rebuild the @world (only xorg and mesa actually), now I'm able to start xorg server without config.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3490
Location: Dallas area

PostPosted: Thu Oct 11, 2018 11:37 am    Post subject: Reply with quote

sweet, glad it's working.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
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