Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Power loss during update, startx no longer works. [SOLVED]
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
dartleader
n00b
n00b


Joined: 21 Apr 2019
Posts: 59

PostPosted: Fri Sep 20, 2019 4:41 am    Post subject: Power loss during update, startx no longer works. [SOLVED] Reply with quote

Hello everyone, my cat disrupted power to my computer during an emerge update, and my startx no longer works.

The output of my Xorg.0.log is as follows:

Code:
[185541.258]
X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
[185541.258] Build Operating System: Linux 4.19.57-gentoo x86_64 Gentoo
[185541.258] Current Operating System: Linux watchtower 4.19.57-gentoo #1 SMP Tue Jul 16 15:48:44 CST 2019 x86_64
[185541.258] Kernel command line: BOOT_IMAGE=/vmlinuz-4.19.57-gentoo root=/dev/sda4 ro
[185541.258] Build Date: 20 July 2019  11:04:57AM
[185541.258] 
[185541.258] Current version of pixman: 0.38.4
[185541.258]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[185541.258] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[185541.258] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 19 21:57:38 2019
[185541.259] (==) Using config file: "/etc/X11/xorg.conf"
[185541.259] (==) Using config directory: "/etc/X11/xorg.conf.d"
[185541.259] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[185541.261] (==) ServerLayout "Layout0"
[185541.261] (**) |-->Screen "Screen0" (0)
[185541.261] (**) |   |-->Monitor "Monitor0"
[185541.261] (**) |   |-->Device "Device0"
[185541.261] (**) |-->Input Device "Keyboard0"
[185541.261] (**) |-->Input Device "Mouse0"
[185541.261] (==) Automatically adding devices
[185541.261] (==) Automatically enabling devices
[185541.261] (==) Automatically adding GPU devices
[185541.261] (==) Max clients allowed: 256, resource mask: 0x1fffff
[185541.262] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[185541.262]    Entry deleted from font path.
[185541.262] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[185541.262]    Entry deleted from font path.
[185541.262] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[185541.262]    Entry deleted from font path.
[185541.262] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[185541.262]    Entry deleted from font path.
[185541.262]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[185541.263] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[185541.263]    Entry deleted from font path.
[185541.263]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[185541.263] (==) FontPath set to:
   /usr/share/fonts/misc/
[185541.263] (**) ModulePath set to "/usr/lib64/xorg/modules"
[185541.263] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[185541.263] (WW) Disabling Keyboard0
[185541.263] (WW) Disabling Mouse0
[185541.263] (II) Loader magic: 0x55d63a9bcc60
[185541.263] (II) Module ABI versions:
[185541.263]    X.Org ANSI C Emulation: 0.4
[185541.263]    X.Org Video Driver: 24.0
[185541.263]    X.Org XInput driver : 24.1
[185541.263]    X.Org Server Extension : 10.0
[185541.263] (II) xfree86: Adding drm device (/dev/dri/card0)
[185541.267] (--) PCI:*(2@0:0:0) 10de:1401:3842:2966 rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[185541.267] (II) LoadModule: "glx"
[185541.267] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[185541.277] (II) Module glx: vendor="X.Org Foundation"
[185541.277]    compiled for 1.20.5, module version = 1.0.0
[185541.277]    ABI class: X.Org Server Extension, version 10.0
[185541.277] (II) LoadModule: "nvidia"
[185541.277] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[185541.284] (II) Module nvidia: vendor="NVIDIA Corporation"
[185541.284]    compiled for 1.6.99.901, module version = 1.0.0
[185541.284]    Module class: X.Org Video Driver
[185541.286] (II) NVIDIA dlloader X Driver  435.21  Sun Aug 25 08:17:08 CDT 2019
[185541.286] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[185541.286] (--) using VT number 7

[185541.289] (II) Loading sub module "fb"
[185541.289] (II) LoadModule: "fb"
[185541.289] (II) Loading /usr/lib64/xorg/modules/libfb.so
[185541.290] (II) Module fb: vendor="X.Org Foundation"
[185541.290]    compiled for 1.20.5, module version = 1.0.0
[185541.290]    ABI class: X.Org ANSI C Emulation, version 0.4
[185541.290] (II) Loading sub module "wfb"
[185541.290] (II) LoadModule: "wfb"
[185541.290] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[185541.292] (II) Module wfb: vendor="X.Org Foundation"
[185541.292]    compiled for 1.20.5, module version = 1.0.0
[185541.292]    ABI class: X.Org ANSI C Emulation, version 0.4
[185541.292] (II) Loading sub module "ramdac"
[185541.292] (II) LoadModule: "ramdac"
[185541.292] (II) Module "ramdac" already built-in
[185541.293] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[185541.293] (EE) NVIDIA:     system's kernel log for additional error messages and
[185541.293] (EE) NVIDIA:     consult the NVIDIA README for details.
[185541.293] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[185541.293] (EE) NVIDIA:     system's kernel log for additional error messages and
[185541.293] (EE) NVIDIA:     consult the NVIDIA README for details.
[185541.293] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[185541.293] (EE) NVIDIA:     system's kernel log for additional error messages and
[185541.293] (EE) NVIDIA:     consult the NVIDIA README for details.
[185541.293] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[185541.293] (EE) NVIDIA:     system's kernel log for additional error messages and
[185541.293] (EE) NVIDIA:     consult the NVIDIA README for details.
[185541.293] (EE) No devices detected.
[185541.293] (EE)
Fatal server error:
[185541.293] (EE) no screens found(EE)
[185541.293] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[185541.293] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[185541.293] (EE)
[185541.298] (EE) Server terminated with error (1). Closing log file.


The kernel log states my driver components are different versions:

Code:
[  140.626223] NVRM: API mismatch: the client has the version 435.21, but
               NVRM: this kernel module has the version 430.40.  Please
               NVRM: make sure that this kernel module and all NVIDIA driver
               NVRM: components have the same version.
[  140.626744] NVRM: API mismatch: the client has the version 435.21, but
               NVRM: this kernel module has the version 430.40.  Please
               NVRM: make sure that this kernel module and all NVIDIA driver
               NVRM: components have the same version.


The output of lsmod | ack nvidia is as follows:
Code:

nvidia_drm             45056  0
nvidia_modeset       1069056  1 nvidia_drm
nvidia              18558976  1 nvidia_modeset


I have resumed and completed the emerge update which was in progress, and here is the output of emerge --info nvidia-drivers:

Code:
Portage 2.3.69 (python 3.6.5-final-0, default/linux/amd64/17.0, gcc-8.3.0, glibc-2.29-r2, 4.19.57-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.57-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-gentoo-2.6
KiB Mem:    16364300 total,  15559248 free
KiB Swap:   16458748 total,  16458748 free
Timestamp of repository gentoo: Thu, 19 Sep 2019 22:00:01 +0000
Head commit of repository gentoo: d24adca32514b0d5de6903138753438f388798b5
Head commit of repository steam-overlay: e21303b3d12a2925ea02ab40978fec14b896fb85

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.14.6::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::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-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:

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

steam-overlay
    location: /usr/local/portage/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="rsync://gentoo.gossamerhost.com/gentoo-distfiles/ rsync://mirrors.tera-byte.com/gentoo https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl alsa amd64 berkdb bzip2 cli consolekit crypt cxx dri flac fortran gdbm iconv ipv6 jpeg libtirpc multilib ncurses nls nptl openmp pam pcre png qt5 readline seccomp split-usr ssl tcpd udisks unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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 sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

x11-drivers/nvidia-drivers-435.21::gentoo was built with the following:
USE="X driver kms multilib tools -acpi -compat -gtk3 (-libglvnd) -static-libs -uvm -wayland" ABI_X86="32 (64) (-x32)"


Any insight or suggestions would be appreciated. I have tried rebuilding my modules with emerge and the problem persists.

Thanks!


Last edited by dartleader on Fri Sep 20, 2019 10:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24697
Location: here

PostPosted: Fri Sep 20, 2019 5:23 am    Post subject: Re: Power loss during update, startx no longer works. Reply with quote

dartleader wrote:
Any insight or suggestions would be appreciated. I have tried rebuilding my modules with emerge and the problem persists.

After that, you removed old kernel module or you have reboot computer?
If yes, post your uname -a and ls -l /usr/src output
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 356
Location: Stockholm

PostPosted: Fri Sep 20, 2019 6:31 am    Post subject: Reply with quote

Always check filesystems after a crash. After a powerloss the file system (ext4) was corrupt :evil: and I lost several GiB of data. After fsck I could restore data from backup without recreating the filesystem (nearly 9TB).
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7447

PostPosted: Fri Sep 20, 2019 4:14 pm    Post subject: Reply with quote

no big deal there, it just tell you the nvidia was update to 435.21 version, but your kernel still use the 430.40 module.
emerge again nvidia-drivers and it will be fix
it happen either because nvidia drivers was half install while the module was not yet copy and the power get lost
or because you are using a backup kernel that still use older nvidia version
Back to top
View user's profile Send private message
dartleader
n00b
n00b


Joined: 21 Apr 2019
Posts: 59

PostPosted: Fri Sep 20, 2019 10:08 pm    Post subject: Reply with quote

Hey guys, thanks for the posts. I actually managed to fix this issue by updating my kernel to the latest available (4.19.72) and running an update. This can be considered solved.
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