Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] startx black screen without errors
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
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: 16

PostPosted: Wed Oct 10, 2018 4:15 pm    Post subject: [SOLVED] 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.


Last edited by g4s8 on Mon Dec 24, 2018 7:45 am; edited 1 time in total
Back to top
View user's profile Send private message
PCmaniaK
n00b
n00b


Joined: 18 Aug 2018
Posts: 25

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
Watchman
Watchman


Joined: 23 May 2008
Posts: 6095
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?
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
g4s8
n00b
n00b


Joined: 15 Dec 2017
Posts: 16

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: 16

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
Watchman
Watchman


Joined: 23 May 2008
Posts: 6095
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
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
g4s8
n00b
n00b


Joined: 15 Dec 2017
Posts: 16

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
Watchman
Watchman


Joined: 23 May 2008
Posts: 6095
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.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
g4s8
n00b
n00b


Joined: 15 Dec 2017
Posts: 16

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
Watchman
Watchman


Joined: 23 May 2008
Posts: 6095
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.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
g4s8
n00b
n00b


Joined: 15 Dec 2017
Posts: 16

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
Watchman
Watchman


Joined: 23 May 2008
Posts: 6095
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.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
g4s8
n00b
n00b


Joined: 15 Dec 2017
Posts: 16

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
Watchman
Watchman


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

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

sweet, glad it's working.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
system_exit
n00b
n00b


Joined: 07 Jul 2011
Posts: 22

PostPosted: Tue Feb 19, 2019 10:24 pm    Post subject: Reply with quote

I've met similar issue when experimenting with my setup.
Probably did something stupid but hopefully my info help somebody doing the same :).

My Xorg.log ended with this:
Code:

[   623.443] (II) LoadModule: "nvidia"
[   623.443] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[   623.443] (II) Module nvidia: vendor="NVIDIA Corporation"
[   623.443]    compiled for 4.0.2, module version = 1.0.0
[   623.443]    Module class: X.Org Video Driver
[   623.443] (II) NVIDIA dlloader X Driver  415.27  Thu Dec 20 17:12:39 CST 2018
[   623.443] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   623.443] (--) using VT number 7

[   623.455] (II) Loading sub module "fb"
[   623.455] (II) LoadModule: "fb"
[   623.455] (II) Loading /usr/lib64/xorg/modules/libfb.so
[   623.455] (II) Module fb: vendor="X.Org Foundation"
[   623.455]    compiled for 1.20.3, module version = 1.0.0
[   623.455]    ABI class: X.Org ANSI C Emulation, version 0.4
[   623.455] (II) Loading sub module "wfb"
[   623.455] (II) LoadModule: "wfb"
[   623.455] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[   623.455] (II) Module wfb: vendor="X.Org Foundation"
[   623.455]    compiled for 1.20.3, module version = 1.0.0
[   623.455]    ABI class: X.Org ANSI C Emulation, version 0.4
[   623.455] (II) Loading sub module "ramdac"
[   623.455] (II) LoadModule: "ramdac"
[   623.455] (II) Module "ramdac" already built-in


Running 'lsmod | grep nvidia' listed only module nvidia.
There was no nvidia_drm or nvidia_modeset and trying to load them manually did not work,
modprobe just got stuck.

I recalled I changed some uses flasg on nvidia drivers, adding uvm and wayland, god knows why.
After removing them and rebuilding the drivers it works again.

I also enabled some kernel hardening flags at the same time but if I recall well there were no issues with them, except maybe ALSA not able to recover volume settings volume.
Back to top
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 370
Location: The Netherlands / Nederland

PostPosted: Wed Apr 10, 2019 1:18 pm    Post subject: Reply with quote

system_exit wrote:

Running 'lsmod | grep nvidia' listed only module nvidia.
There was no nvidia_drm or nvidia_modeset and trying to load them manually did not work,
modprobe just got stuck.

I recalled I changed some uses flasg on nvidia drivers, adding uvm and wayland, god knows why.
After removing them and rebuilding the drivers it works again.

I also enabled some kernel hardening flags at the same time but if I recall well there were no issues with them, except maybe ALSA not able to recover volume settings volume.


hurray! after working for over a week on console-only your hint at the useflags helped alot! I removed the added uvm flag (fsck knows why i added this) and my setup is looking less like 1980 :)

tnx for the comments!

- guid0
Back to top
View user's profile Send private message
kklatt
n00b
n00b


Joined: 25 Oct 2004
Posts: 20

PostPosted: Sat Mar 06, 2021 11:05 pm    Post subject: Black Screen Reply with quote

Apologies if I do not correctly post. I am using a Gentoo binary Production kernel, as every kernel I generated manually hangs on boot, a problem for another day. Laptop is an Asus TUF Gaming A15, an nvidia video card, driver is loaded. Checked by :

lsmod | grep nvidia
nvidia_drm 57344 3
nvidia_modeset 1175552 6 nvidia_drm
nvidia 33542144 282 nvidia_modeset
drm_kms_helper 172032 3 amdgpu,nvidia_drm,nouveau
drm 425984 10 gpu_sched,drm_kms_helper,amdgpu,nvidia_drm,ttm,nouveau
i2c_nvidia_gpu 16384 0

Tried the intel driver, did not work. Tried noveau, same.

Xorg.0.log
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[ 1601.319] Build Operating System: Linux 5.4.97-gentoo-x86_64 x86_64 Gentoo
[ 1601.319] Current Operating System: Linux zathros 5.4.97 #1 SMP Wed Feb 10 14:54:12 -00 2021 x86_64
[ 1601.319] Kernel command line: BOOT_IMAGE=/vmlinuz-5.4.97 root=UUID=f9507c44-f14d-42a5-a7a9-c9cb304ee58a ro
[ 1601.320] Build Date: 02 March 2021 08:50:45PM
[ 1601.320]
[ 1601.320] Current version of pixman: 0.40.0
[ 1601.320] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 1601.320] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 1601.320] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Mar 6 22:50:22 2021
[ 1601.320] (==) Using config file: "/etc/X11/xorg.conf"
[ 1601.320] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 1601.320] (==) ServerLayout "Layout0"
[ 1601.320] (**) |-->Screen "Screen0" (0)
[ 1601.320] (**) | |-->Monitor "Monitor0"
[ 1601.320] (**) | |-->Device "Device0"
[ 1601.320] (**) |-->Input Device "Keyboard0"
[ 1601.320] (**) |-->Input Device "Mouse0"
[ 1601.320] (==) Automatically adding devices
[ 1601.320] (==) Automatically enabling devices
[ 1601.320] (==) Automatically adding GPU devices
[ 1601.320] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 1601.320] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 1601.320] Entry deleted from font path.
[ 1601.320] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 1601.320] Entry deleted from font path.
[ 1601.320] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 1601.320] Entry deleted from font path.
[ 1601.320] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 1601.320] Entry deleted from font path.
[ 1601.320] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 1601.320] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 1601.320] Entry deleted from font path.
[ 1601.320] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 1601.320] (==) FontPath set to:
/usr/share/fonts/misc/
[ 1601.320] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 1601.320] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 1601.320] (WW) Disabling Keyboard0
[ 1601.320] (WW) Disabling Mouse0
[ 1601.320] (II) Loader magic: 0x5602497e4ce0
[ 1601.320] (II) Module ABI versions:
[ 1601.320] X.Org ANSI C Emulation: 0.4
[ 1601.320] X.Org Video Driver: 24.1
[ 1601.320] X.Org XInput driver : 24.1
[ 1601.320] X.Org Server Extension : 10.0
[ 1601.321] (++) using VT number 7

[ 1601.321] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provi
ded, disabling logind integration
[ 1601.321] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 1601.325] (--) PCI: (1@0:0:0) 10de:2191:1043:16cf rev 161, Mem @ 0xfb000000/16777216, 0xb00000
00/268435456, 0xc0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/524288
[ 1601.325] (--) PCI:*(6@0:0:0) 1002:1636:1043:16cf rev 198, Mem @ 0xd0000000/268435456, 0xe0000
000/2097152, 0xfc500000/524288, I/O @ 0x0000c000/256
[ 1601.325] (II) LoadModule: "glx"
[ 1601.326] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 1601.326] (II) LoadModule: "nvidia"
[ 1601.326] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[ 1601.327] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 1601.327] compiled for 1.6.99.901, module version = 1.0.0
[ 1601.327] Module class: X.Org Video Driver
[ 1601.327] (II) NVIDIA dlloader X Driver 460.39 Thu Jan 21 21:54:11 UTC 2021
[ 1601.327] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 1601.327] (II) Loading sub module "fb"
[ 1601.327] (II) LoadModule: "fb"
[ 1601.327] (II) Loading /usr/lib64/xorg/modules/libfb.so
[ 1601.327] (II) Module fb: vendor="X.Org Foundation"
[ 1601.327] compiled for 1.20.10, module version = 1.0.0
[ 1601.327] ABI class: X.Org ANSI C Emulation, version 0.4
[ 1601.327] (II) Loading sub module "wfb"
[ 1601.327] (II) LoadModule: "wfb"
[ 1601.327] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[ 1601.327] (II) Module wfb: vendor="X.Org Foundation"
[ 1601.327] compiled for 1.20.10, module version = 1.0.0
[ 1601.327] ABI class: X.Org ANSI C Emulation, version 0.4
[ 1601.327] (II) Loading sub module "ramdac"
[ 1601.327] (II) LoadModule: "ramdac"
[ 1601.327] (II) Module "ramdac" already built-in
[ 1601.328] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[ 1601.328] (==) NVIDIA(0): RGB weight 888
[ 1601.328] (==) NVIDIA(0): Default visual is TrueColor
[ 1601.328] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 1601.328] (**) NVIDIA(0): Enabling 2D acceleration
[ 1601.328] (II) Loading sub module "glxserver_nvidia"
[ 1601.328] (II) LoadModule: "glxserver_nvidia"
[ 1601.328] (II) Loading /usr/lib64/xorg/modules/extensions/libglxserver_nvidia.so
[ 1601.334] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[ 1601.334] compiled for 1.6.99.901, module version = 1.0.0
[ 1601.334] Module class: X.Org Server Extension
[ 1601.334] (II) NVIDIA GLX Module 460.39 Thu Jan 21 21:51:40 UTC 2021
[ 1601.334] (II) NVIDIA: The X server supports PRIME Render Offload.
[ 1601.812] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[ 1601.812] (--) NVIDIA(0): DFP-0
[ 1601.812] (--) NVIDIA(0): DFP-1
[ 1601.813] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 1660 Ti (TU116-A) at PCI:1:0:0 (GPU-0)
[ 1601.813] (--) NVIDIA(0): Memory: 6291456 kBytes
[ 1601.813] (--) NVIDIA(0): VideoBIOS: 90.16.4d.00.63
[ 1601.813] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[ 1601.813] (--) NVIDIA(GPU-0): DFP-0: disconnected
[ 1601.813] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[ 1601.813] (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
[ 1601.813] (--) NVIDIA(GPU-0):
[ 1601.813] (--) NVIDIA(GPU-0): DFP-1: disconnected
[ 1601.813] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[ 1601.813] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[ 1601.813] (--) NVIDIA(GPU-0):
[ 1601.813] (--) NVIDIA(0): No enabled display devices found; starting anyway because
[ 1601.813] (--) NVIDIA(0): AllowEmptyInitialConfiguration is enabled
[ 1601.813] (II) NVIDIA(0): Validated MetaModes:
[ 1601.813] (II) NVIDIA(0): "NULL"
[ 1601.813] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[ 1601.813] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[ 1601.813] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[ 1601.814] (II) NVIDIA: Using 24576.00 MB of virtual memory for indirect memory
[ 1601.814] (II) NVIDIA: access.
[ 1601.822] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[ 1601.822] (II) NVIDIA(0): may not be running or the "AcpidSocketPath" X
[ 1601.822] (II) NVIDIA(0): configuration option may not be set correctly. When the
[ 1601.822] (II) NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
[ 1601.822] (II) NVIDIA(0): try to use it to receive ACPI event notifications. For
[ 1601.822] (II) NVIDIA(0): details, please see the "ConnectToAcpid" and
[ 1601.822] (II) NVIDIA(0): "AcpidSocketPath" X configuration options in Appendix B: X
[ 1601.822] (II) NVIDIA(0): Config Options in the README.
[ 1601.836] (II) NVIDIA(0): Setting mode "NULL"
[ 1601.846] (==) NVIDIA(0): Disabling shared memory pixmaps
[ 1601.846] (==) NVIDIA(0): Backing store enabled
[ 1601.846] (==) NVIDIA(0): Silken mouse enabled
[ 1601.846] (**) NVIDIA(0): DPMS enabled
[ 1601.846] (II) Loading sub module "dri2"
[ 1601.846] (II) LoadModule: "dri2"
[ 1601.846] (II) Module "dri2" already built-in
[ 1601.846] (II) NVIDIA(0): [DRI2] Setup complete
[ 1601.846] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia
[ 1601.846] (II) Initializing extension Generic Event Extension
[ 1601.846] (II) Initializing extension SHAPE
[ 1601.846] (II) Initializing extension MIT-SHM
[ 1601.846] (II) Initializing extension XInputExtension
[ 1601.846] (II) Initializing extension XTEST
[ 1601.846] (II) Initializing extension BIG-REQUESTS
[ 1601.846] (II) Initializing extension SYNC
[ 1601.846] (II) Initializing extension XKEYBOARD
[ 1601.846] (II) Initializing extension XC-MISC
[ 1601.846] (II) Initializing extension XFIXES
[ 1601.846] (II) Initializing extension RENDER
[ 1601.846] (II) Initializing extension RANDR
[ 1601.846] (II) Initializing extension COMPOSITE
[ 1601.846] (II) Initializing extension DAMAGE
[ 1601.846] (II) Initializing extension MIT-SCREEN-SAVER
[ 1601.846] (II) Initializing extension DOUBLE-BUFFER
[ 1601.846] (II) Initializing extension RECORD
[ 1601.846] (II) Initializing extension DPMS
[ 1601.846] (II) Initializing extension Present
[ 1601.846] (II) Initializing extension DRI3
[ 1601.846] (II) Initializing extension X-Resource
[ 1601.846] (II) Initializing extension XVideo
[ 1601.846] (II) Initializing extension XVideo-MotionCompensation
[ 1601.846] (II) Initializing extension GLX
[ 1601.846] (II) Initializing extension GLX
[ 1601.846] (II) Indirect GLX disabled.
[ 1601.846] (II) GLX: Another vendor is already registered for screen 0
[ 1601.846] (II) Initializing extension XFree86-VidModeExtension
[ 1601.846] (II) Initializing extension XFree86-DGA
[ 1601.846] (II) Initializing extension XFree86-DRI
[ 1601.846] (II) Initializing extension DRI2
[ 1601.846] (II) Initializing extension NV-GLX
[ 1601.846] (II) Initializing extension NV-CONTROL
[ 1601.872] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[ 1601.872] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[ 1601.872] (II) LoadModule: "libinput"
[ 1601.872] (II) Loading /usr/lib64/xorg/modules/input/libinput_drv.so
[ 1601.872] (II) Module libinput: vendor="X.Org Foundation"
[ 1601.872] compiled for 1.20.10, module version = 0.30.0
[ 1601.872] Module class: X.Org XInput Driver
[ 1601.872] ABI class: X.Org XInput driver, version 24.1
[ 1601.872] (II) Using input driver 'libinput' for 'Power Button'
[ 1601.872] (**) Power Button: always reports core events
[ 1601.872] (**) Option "Device" "/dev/input/event3"
[ 1601.873] (**) Option "_source" "server/udev"
[ 1601.874] (II) event3 - Power Button: is tagged by udev as: Keyboard
[ 1601.875] (II) event3 - Power Button: device is a keyboard
[ 1601.875] (II) event3 - Power Button: device removed
[ 1601.900] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3/ev
[ 1601.900] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[ 1601.901] (II) event3 - Power Button: is tagged by udev as: Keyboard
[ 1601.901] (II) event3 - Power Button: device is a keyboard
[ 1601.902] (II) config/udev: Adding input device Asus Wireless Radio Control (/dev/input/event8
)
[ 1601.902] (**) Asus Wireless Radio Control: Applying InputClass "libinput keyboard catchall"
[ 1601.902] (II) Using input driver 'libinput' for 'Asus Wireless Radio Control'
[ 1601.902] (**) Asus Wireless Radio Control: always reports core events
[ 1601.902] (**) Option "Device" "/dev/input/event8"
[ 1601.902] (**) Option "_source" "server/udev"
[ 1601.903] (II) event8 - Asus Wireless Radio Control: is tagged by udev as: Keyboard
[ 1601.903] (II) event8 - Asus Wireless Radio Control: device is a keyboard
[ 1601.903] (II) event8 - Asus Wireless Radio Control: device removed
[ 1601.963] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ATK4002:00/inpu
t/input10/event8"
[ 1601.963] (II) XINPUT: Adding extended input device "Asus Wireless Radio Control" (type: KEYBO
ARD, id 7)
[ 1601.964] (II) event8 - Asus Wireless Radio Control: is tagged by udev as: Keyboard
[ 1601.964] (II) event8 - Asus Wireless Radio Control: device is a keyboard
[ 1601.964] (II) config/udev: Adding input device Video Bus (/dev/input/event5)
[ 1601.964] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[ 1601.964] (II) Using input driver 'libinput' for 'Video Bus'
[ 1601.964] (**) Video Bus: always reports core events
[ 1601.964] (**) Option "Device" "/dev/input/event5"
[ 1601.964] (**) Option "_source" "server/udev"
[ 1601.965] (II) event5 - Video Bus: is tagged by udev as: Keyboard
[ 1601.965] (II) event5 - Video Bus: device is a keyboard
[ 1601.966] (II) event5 - Video Bus: device removed
[ 1602.011] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/devi
ce:0f/LNXVIDEO:00/input/input5/event5"
[ 1602.011] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[ 1602.013] (II) event5 - Video Bus: is tagged by udev as: Keyboard
[ 1602.013] (II) event5 - Video Bus: device is a keyboard
[ 1602.013] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[ 1602.013] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[ 1602.013] (II) Using input driver 'libinput' for 'Power Button'
[ 1602.013] (**) Power Button: always reports core events
[ 1602.013] (**) Option "Device" "/dev/input/event0"
[ 1602.013] (**) Option "_source" "server/udev"
[ 1602.014] (II) event0 - Power Button: is tagged by udev as: Keyboard
[ 1602.014] (II) event0 - Power Button: device is a keyboard
[ 1602.014] (II) event0 - Power Button: device removed
[ 1602.032] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/inpu
t/input0/event0"
[ 1602.032] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[ 1602.033] (II) event0 - Power Button: is tagged by udev as: Keyboard
[ 1602.033] (II) event0 - Power Button: device is a keyboard
[ 1602.034] (II) config/udev: Adding input device Lid Switch (/dev/input/event2)
[ 1602.034] (II) No input driver specified, ignoring this device.
[ 1602.034] (II) This device may have been added with another device file.
[ 1602.034] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
[ 1602.034] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[ 1602.034] (II) Using input driver 'libinput' for 'Sleep Button'
[ 1602.034] (**) Sleep Button: always reports core events
[ 1602.034] (**) Option "Device" "/dev/input/event1"
[ 1602.034] (**) Option "_source" "server/udev"
[ 1602.035] (II) event1 - Sleep Button: is tagged by udev as: Keyboard
[ 1602.035] (II) event1 - Sleep Button: device is a keyboard
[ 1602.035] (II) event1 - Sleep Button: device removed
[ 1602.060] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/inpu
t/input1/event1"
[ 1602.060] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 10)
[ 1602.061] (II) event1 - Sleep Button: is tagged by udev as: Keyboard
[ 1602.061] (II) event1 - Sleep Button: device is a keyboard
[ 1602.062] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event14)
[ 1602.062] (II) No input driver specified, ignoring this device.
[ 1602.062] (II) This device may have been added with another device file.
[ 1602.062] (II) config/udev: Adding input device HD-Audio Generic HDMI/DP,pcm=3 (/dev/input/eve
nt11)
[ 1602.062] (II) No input driver specified, ignoring this device.
[ 1602.062] (II) This device may have been added with another device file.
[ 1602.062] (II) config/udev: Adding input device USB2.0 HD UVC WebCam: USB2.0 HD (/dev/input/ev
ent12)
[ 1602.062] (**) USB2.0 HD UVC WebCam: USB2.0 HD: Applying InputClass "libinput keyboard catchal
l"
[ 1602.062] (II) Using input driver 'libinput' for 'USB2.0 HD UVC WebCam: USB2.0 HD'
[ 1602.062] (**) USB2.0 HD UVC WebCam: USB2.0 HD: always reports core events
[ 1602.062] (**) Option "Device" "/dev/input/event12"
[ 1602.062] (**) Option "_source" "server/udev"
[ 1602.063] (II) event12 - USB2.0 HD UVC WebCam: USB2.0 HD: is tagged by udev as: Keyboard
[ 1602.063] (II) event12 - USB2.0 HD UVC WebCam: USB2.0 HD: device is a keyboard
[ 1602.063] (II) event12 - USB2.0 HD UVC WebCam: USB2.0 HD: device removed
[ 1602.109] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:06:00.3/us
b3/3-4/3-4:1.0/input/input14/event12"
[ 1602.109] (II) XINPUT: Adding extended input device "USB2.0 HD UVC WebCam: USB2.0 HD" (type: K
EYBOARD, id 11)
[ 1602.110] (II) event12 - USB2.0 HD UVC WebCam: USB2.0 HD: is tagged by udev as: Keyboard
[ 1602.110] (II) event12 - USB2.0 HD UVC WebCam: USB2.0 HD: device is a keyboard
[ 1602.111] (II) config/udev: Adding input device HD-Audio Generic Headphone (/dev/input/event13
)
[ 1602.111] (II) No input driver specified, ignoring this device.
[ 1602.111] (II) This device may have been added with another device file.
[ 1602.111] (II) config/udev: Adding input device ELAN1203:00 04F3:307A Mouse (/dev/input/event6
)
[ 1602.111] (**) ELAN1203:00 04F3:307A Mouse: Applying InputClass "libinput pointer catchall"
[ 1602.111] (II) Using input driver 'libinput' for 'ELAN1203:00 04F3:307A Mouse'
[ 1602.111] (**) ELAN1203:00 04F3:307A Mouse: always reports core events
[ 1602.111] (**) Option "Device" "/dev/input/event6"
[ 1602.111] (**) Option "_source" "server/udev"
[ 1602.112] (II) event6 - ELAN1203:00 04F3:307A Mouse: is tagged by udev as: Mouse
[ 1602.112] (II) event6 - ELAN1203:00 04F3:307A Mouse: device is a pointer
[ 1602.112] (II) event6 - ELAN1203:00 04F3:307A Mouse: device removed
[ 1602.165] (**) Option "config_info" "udev:/sys/devices/platform/AMDI0010:03/i2c-0/i2c-ELAN1203
:00/0018:04F3:307A.0001/input/input8/event6"
[ 1602.165] (II) XINPUT: Adding extended input device "ELAN1203:00 04F3:307A Mouse" (type: MOUSE
, id 12)
[ 1602.165] (**) Option "AccelerationScheme" "none"
[ 1602.165] (**) ELAN1203:00 04F3:307A Mouse: (accel) selected scheme none/0
[ 1602.165] (**) ELAN1203:00 04F3:307A Mouse: (accel) acceleration factor: 2.000
[ 1602.165] (**) ELAN1203:00 04F3:307A Mouse: (accel) acceleration threshold: 4
[ 1602.167] (II) event6 - ELAN1203:00 04F3:307A Mouse: is tagged by udev as: Mouse
[ 1602.167] (II) event6 - ELAN1203:00 04F3:307A Mouse: device is a pointer
[ 1602.167] (II) config/udev: Adding input device ELAN1203:00 04F3:307A Mouse (/dev/input/mouse0
)
[ 1602.167] (II) No input driver specified, ignoring this device.
[ 1602.167] (II) This device may have been added with another device file.
[ 1602.167] (II) config/udev: Adding input device ELAN1203:00 04F3:307A Touchpad (/dev/input/eve
nt7)
[ 1602.167] (**) ELAN1203:00 04F3:307A Touchpad: Applying InputClass "libinput touchpad catchall
"
[ 1602.167] (II) Using input driver 'libinput' for 'ELAN1203:00 04F3:307A Touchpad'
[ 1602.167] (**) ELAN1203:00 04F3:307A Touchpad: always reports core events
[ 1602.167] (**) Option "Device" "/dev/input/event7"
[ 1602.167] (**) Option "_source" "server/udev"
[ 1602.168] (II) event7 - ELAN1203:00 04F3:307A Touchpad: is tagged by udev as: Touchpad
[ 1602.169] (II) event7 - ELAN1203:00 04F3:307A Touchpad: device is a touchpad
[ 1602.169] (II) event7 - ELAN1203:00 04F3:307A Touchpad: device removed
[ 1602.227] (**) Option "config_info" "udev:/sys/devices/platform/AMDI0010:03/i2c-0/i2c-ELAN1203
:00/0018:04F3:307A.0001/input/input9/event7"
[ 1602.227] (II) XINPUT: Adding extended input device "ELAN1203:00 04F3:307A Touchpad" (type: TO
UCHPAD, id 13)
[ 1602.228] (**) Option "AccelerationScheme" "none"
[ 1602.228] (**) ELAN1203:00 04F3:307A Touchpad: (accel) selected scheme none/0
[ 1602.228] (**) ELAN1203:00 04F3:307A Touchpad: (accel) acceleration factor: 2.000
[ 1602.228] (**) ELAN1203:00 04F3:307A Touchpad: (accel) acceleration threshold: 4
[ 1602.229] (II) event7 - ELAN1203:00 04F3:307A Touchpad: is tagged by udev as: Touchpad
[ 1602.230] (II) event7 - ELAN1203:00 04F3:307A Touchpad: device is a touchpad
[ 1602.230] (II) config/udev: Adding input device ELAN1203:00 04F3:307A Touchpad (/dev/input/mou
se1)
[ 1602.231] (II) No input driver specified, ignoring this device.
[ 1602.231] (II) This device may have been added with another device file.
[ 1602.231] (II) config/udev: Adding input device Asus WMI hotkeys (/dev/input/event10)
[ 1602.231] (**) Asus WMI hotkeys: Applying InputClass "libinput keyboard catchall"
[ 1602.231] (II) Using input driver 'libinput' for 'Asus WMI hotkeys'
[ 1602.231] (**) Asus WMI hotkeys: always reports core events
[ 1602.231] (**) Option "Device" "/dev/input/event10"
[ 1602.231] (**) Option "_source" "server/udev"
[ 1602.232] (II) event10 - Asus WMI hotkeys: is tagged by udev as: Keyboard
[ 1602.232] (II) event10 - Asus WMI hotkeys: device is a keyboard
[ 1602.232] (II) event10 - Asus WMI hotkeys: device removed
[ 1602.285] (**) Option "config_info" "udev:/sys/devices/platform/asus-nb-wmi/input/input12/even
t10"
[ 1602.285] (II) XINPUT: Adding extended input device "Asus WMI hotkeys" (type: KEYBOARD, id 14)
[ 1602.286] (II) event10 - Asus WMI hotkeys: is tagged by udev as: Keyboard
[ 1602.287] (II) event10 - Asus WMI hotkeys: device is a keyboard
[ 1602.287] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event
4)
[ 1602.287] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[ 1602.287] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[ 1602.287] (**) AT Translated Set 2 keyboard: always reports core events
[ 1602.287] (**) Option "Device" "/dev/input/event4"
[ 1602.287] (**) Option "_source" "server/udev"
[ 1602.288] (II) event4 - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[ 1602.288] (II) event4 - AT Translated Set 2 keyboard: device is a keyboard
[ 1602.289] (II) event4 - AT Translated Set 2 keyboard: device removed
[ 1602.318] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input4/even
t4"
[ 1602.319] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYB
OARD, id 15)
[ 1602.320] (II) event4 - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[ 1602.320] (II) event4 - AT Translated Set 2 keyboard: device is a keyboard
[ 1602.321] (II) config/udev: Adding input device PC Speaker (/dev/input/event9)
[ 1602.321] (II) No input driver specified, ignoring this device.
[ 1602.321] (II) This device may have been added with another device file.
[ 1602.326] (EE) Failed to open authorization file "/var/run/sddm/{a1cc42f6-807e-47d3-992f-e84cc
651b479}": No such file or directory

xorg.conf follows
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

# generated from data in "/etc/conf.d/gpm"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol"
Option "Device" "/dev/input/mice"
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 31.5 - 64.0
VertRefresh 40.0 - 150.0
Option "DPMS"
EndSection

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

Section "Screen"

#SubSection "Display"
# Depth 24
#EndSubSection
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1680x1050x60" "1280x1024x60"
EndSubSection
EndSection

Xterm is installed, works across the network. Using startx, I get the following, still a blank screen.

X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
Build Operating System: Linux 5.4.97-gentoo-x86_64 x86_64 Gentoo
Current Operating System: Linux zathros 5.4.97 #1 SMP Wed Feb 10 14:54:12 -00 2021 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-5.4.97 root=UUID=f9507c44-f14d-42a5-a7a9-c9cb304ee58a ro
Build Date: 02 March 2021 08:50:45PM

Current version of pixman: 0.40.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Mar 6 23:01:03 2021
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
dbus[17709]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/1000" is owned by uid 1000, not our uid 0
/etc/X11/xinit/xinitrc: line 58: twm: command not found
Warning: locale not supported by Xlib, locale set to C
Warning: locale not supported by Xlib, locale set to C
Warning: locale not supported by Xlib, locale set to C
Warning: locale not supported by Xlib, locale set to C


Ideas?
Back to top
View user's profile Send private message
kklatt
n00b
n00b


Joined: 25 Oct 2004
Posts: 20

PostPosted: Thu May 27, 2021 12:34 am    Post subject: Black screen for ASUS A15 gaming laptop using nvidia drivers Reply with quote

I have found the issue by accident. I first installed Ubuntu to see if it worked with the laptop. It installed an nvidia driver. I then cleaned the M2 drive installing Gentoo. What I did not know is newer nvidia drivers no longer are used as it is a Radeon controller on the A15 gaming laptop. I finally noticed when booting on the install USB. Removed nvida drivers, installed Radeon removing all configurations from /etc/X11 -- and it works fine.

Thanks to the community for the assistance.

KK
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