Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X freezing once per month
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
tux2015
n00b
n00b


Joined: 31 May 2014
Posts: 29

PostPosted: Tue Oct 07, 2014 11:41 pm    Post subject: X freezing once per month Reply with quote

I have problem with X which occurs very rarely. It happened about a month ago and it happened today again. X freezes, after I pressed Ctrl+Alt+F1 and Ctrl+Alt+Backspace many times it switched to console #1 and there was these error messages (X is running by startx from this console):

Code:

(EE) 22: /lib64/libc.so.6 (__libc_start_main+0xf5) [0x7f7792297d85]
(EE) 23: /usr/bin/X (0x400000+0x2a541) [0x42a541]
(EE)
(EE) [mi] EQ overflow continuing.  300 events have been dropped.
(EE)
(EE) Backtrace:
(EE) 0: /usr/bin/X (xorg_backtrace+0x42) [0x58d102]
(EE) 1: /usr/bin/X (0x400000+0x50462) [0x450462]
(EE) 2: /usr/bin/X (xf86PostKeyboardEvent+0x32) [0x488d82]
(EE) 3: /usr/lib64/xorg/modules/input/evdev_drv.so (0x7f778d16b000+0x6909) [0x7f778d171909]
(EE) 4: /usr/bin/X (0x400000+0x78b57) [0x478b57]
(EE) 5: /usr/bin/X (0x400000+0xa1067) [0x4a1067]
(EE) 6: /lib64/libpthread.so.0 (0x7f779361a000+0x110f0) [0x7f779362b0f0]
(EE) 7: /lib64/libc.so.6 (ioctl+0x7) [0x7f7792356457]
(EE) 8: /usr/lib64/libdrm.so.2 (drmIoctl+0x28) [0x7f7793412258]
(EE) 9: /usr/lib64/libdrm.so.2 (drmCommandWrite+0x1b) [0x7f779341459b]
(EE) 10: /usr/lib64/libdrm_nouveau.so.2 (nouveau_bo_wait+0x89) [0x7f778f6e0929]
(EE) 11: /usr/lib64/xorg/modules/drivers/nouveau_drv.so (0x7f778f8e5000+0x7b83) [0x7f778f8ecb83]
(EE) 12: /usr/lib64/xorg/modules/libexa.so (0x7f778f2a0000+0x612b) [0x7f778f2a612b]
(EE) 13: /usr/lib64/xorg/modules/libexa.so (0x7f778f2a0000+0x89ba) [0x7f778f2a89ba]
(EE) 14: /usr/lib64/xorg/modules/libexa.so (0x7f778f2a0000+0x529f) [0x7f778f2a529f]
(EE) 15: /usr/bin/X (0x400000+0x114f16) [0x514f16]
(EE) 16: /usr/bin/X (ValidateGC+0x24) [0x44e3c4]
(EE) 17: /usr/bin/X (0x400000+0x1045bc) [0x5045bc]
(EE) 18: /usr/bin/X (miCompositeRects+0x8b) [0x50476b]
(EE) 19: /usr/bin/X (0x400000+0x10c33d) [0x50c33d]
(EE) 20: /usr/bin/X (0x400000+0x3b836) [0x43b836]
(EE) 21: /usr/bin/X (0x400000+0x3f4cd) [0x43f4cd]
(EE) 22: /lib64/libc.so.6 (__libc_start_main+0xf5) [0x7f7792297d85]
(EE) 23: /usr/bin/X (0x400000+0x2a541) [0x42a541]
(EE)
(EE) [mi] EQ overflow continuing.  400 events have been dropped.
(EE)
(EE) Backtrace:
(EE) 0: /usr/bin/X (xorg_backtrace+0x42) [0x58d102]
(EE) 1: /usr/bin/X (0x400000+0x50462) [0x450462]
(EE) 2: /usr/bin/X (xf86PostKeyboardEvent+0x32) [0x488d82]
(EE) 3: /usr/lib64/xorg/modules/input/evdev_drv.so (0x7f778d16b000+0x6909) [0x7f778d171909]
(EE) 4: /usr/bin/X (0x400000+0x78b57) [0x478b57]
(EE) 5: /usr/bin/X (0x400000+0xa1067) [0x4a1067]
(EE) 6: /lib64/libpthread.so.0 (0x7f779361a000+0x110f0) [0x7f779362b0f0]
(EE) 7: /lib64/libc.so.6 (ioctl+0x7) [0x7f7792356457]
(EE) 8: /usr/lib64/libdrm.so.2 (drmIoctl+0x28) [0x7f7793412258]
(EE) 9: /usr/lib64/libdrm.so.2 (drmCommandWrite+0x1b) [0x7f779341459b]
(EE) 10: /usr/lib64/libdrm_nouveau.so.2 (nouveau_bo_wait+0x89) [0x7f778f6e0929]
(EE) 11: /usr/lib64/xorg/modules/drivers/nouveau_drv.so (0x7f778f8e5000+0x7b83) [0x7f778f8ecb83]
(EE) 12: /usr/lib64/xorg/modules/libexa.so (0x7f778f2a0000+0x612b) [0x7f778f2a612b]
(EE) 13: /usr/lib64/xorg/modules/libexa.so (0x7f778f2a0000+0x89ba) [0x7f778f2a89ba]
(EE) 14: /usr/lib64/xorg/modules/libexa.so (0x7f778f2a0000+0x529f) [0x7f778f2a529f]
(EE) 15: /usr/bin/X (0x400000+0x114f16) [0x514f16]
(EE) 16: /usr/bin/X (ValidateGC+0x24) [0x44e3c4]
(EE) 17: /usr/bin/X (0x400000+0x1045bc) [0x5045bc]
(EE) 18: /usr/bin/X (miCompositeRects+0x8b) [0x50476b]
(EE) 19: /usr/bin/X (0x400000+0x10c33d) [0x50c33d]
(EE) 20: /usr/bin/X (0x400000+0x3b836) [0x43b836]
(EE) 21: /usr/bin/X (0x400000+0x3f4cd) [0x43f4cd]
(EE) 22: /lib64/libc.so.6 (__libc_start_main+0xf5) [0x7f7792297d85]
(EE) 23: /usr/bin/X (0x400000+0x2a541) [0x42a541]
(EE)
[mi] Increasing EQ size to 1024 to prevent dropped events.
[mi] EQ processing has resumed after 491 dropped events.
[mi] This may be caused my a misbehaving driver monopolizing the server's resources.
(II) AIGLX: Suspending AIGLX clients for VT switch


I stopped X by pressing Ctrl+C several times, logged out (Ctrl+D) and logged in again. I tried to re-run `startx` again several times but it didn't work. Sometimes it just showed blank screen, sometimes it showed something but mouse pointer didn't work, it showed previous screen as it was before X crashed.

The only solution was to reboot all system. Only after full reboot X started to work again.

emerge --info:

Code:

# emerge --info
Portage 2.2.8-r2 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.19-r1, 3.14.14-gentoo x86_64)
=================================================================
System uname: Linux-3.14.14-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5400+-with-gentoo-2.2
KiB Mem:     4944404 total,     51376 free
KiB Swap:     524284 total,    524284 free
Timestamp of tree: Mon, 06 Oct 2014 07:45:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p52
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r1
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo kde-sunset
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde-sunset"
SYNC="rsync://rsync1.ca.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl alsa amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fontconfig fortran gdbm gif iconv ipv6 jpeg mmx mmxext modules multilib ncurses nls nptl openmp pam pcre pdf png readline sdl session sse sse2 sse3 ssl tcpd tiff truetype udisks unicode vim-syntax zlib" ABI_X86="64" ALSA_CARDS="cmipci" APACHE2_MODULES="alias auth_basic auth_digest authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex deflate dir env expires filter ext_filter headers include log_config logio mime mime_magic negotiation rewrite setenvif speling unique_id usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="nouveau" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


DE: mate

lspci:

Code:

# lspci
00:00.0 RAM memory: NVIDIA Corporation MCP67 Memory Controller (rev a2)
00:01.0 ISA bridge: NVIDIA Corporation MCP67 ISA Bridge (rev a2)
00:01.1 SMBus: NVIDIA Corporation MCP67 SMBus (rev a2)
00:02.0 USB controller: NVIDIA Corporation MCP67 OHCI USB 1.1 Controller (rev a2)
00:02.1 USB controller: NVIDIA Corporation MCP67 EHCI USB 2.0 Controller (rev a2)
00:04.0 USB controller: NVIDIA Corporation MCP67 OHCI USB 1.1 Controller (rev a2)
00:04.1 USB controller: NVIDIA Corporation MCP67 EHCI USB 2.0 Controller (rev a2)
00:06.0 IDE interface: NVIDIA Corporation MCP67 IDE Controller (rev a1)
00:08.0 PCI bridge: NVIDIA Corporation MCP67 PCI Bridge (rev a2)
00:09.0 IDE interface: NVIDIA Corporation MCP67 AHCI Controller (rev a2)
00:0a.0 Ethernet controller: NVIDIA Corporation MCP67 Ethernet (rev a2)
00:0b.0 PCI bridge: NVIDIA Corporation MCP67 PCI Express Bridge (rev a2)
00:0c.0 PCI bridge: NVIDIA Corporation MCP67 PCI Express Bridge (rev a2)
00:0d.0 PCI bridge: NVIDIA Corporation MCP67 PCI Express Bridge (rev a2)
00:0e.0 PCI bridge: NVIDIA Corporation MCP67 PCI Express Bridge (rev a2)
00:0f.0 PCI bridge: NVIDIA Corporation MCP67 PCI Express Bridge (rev a2)
00:10.0 PCI bridge: NVIDIA Corporation MCP67 PCI Express Bridge (rev a2)
00:11.0 PCI bridge: NVIDIA Corporation MCP67 PCI Express Bridge (rev a2)
00:12.0 VGA compatible controller: NVIDIA Corporation C68 [GeForce 7050 PV / nForce 630a] (rev a2)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:06.0 Multimedia audio controller: C-Media Electronics Inc CMI8738/CMI8768 PCI Audio (rev 10)
01:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139 PCI Fast Ethernet Adapter (rev 10)
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Wed Oct 08, 2014 6:59 am    Post subject: Reply with quote

Your problem is called "nouveau".

The only thing you can do is reporting the bug to them, but don't hold your breath while it gets fixed. If it happens only once a month you are truly fortunate. I haven't ever been able to use it for more than a few minutes, like on four or five different nvidia chips.

I suggest that you post on their mailing list, in any case. Maybe in your concrete case there's some workaround.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
tux2015
n00b
n00b


Joined: 31 May 2014
Posts: 29

PostPosted: Wed Oct 08, 2014 7:46 am    Post subject: Reply with quote

What is the alternative? nv? I am interested only in open source. If nvidia cards cannot be well supported by open source drivers what video adapter to purchase that is well supported by open source drivers?
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Wed Oct 08, 2014 8:43 am    Post subject: Reply with quote

"nv" or "vesa", yes.

The alternatives are two.

A) "radeon", which I have personally tested. For me, it worked perfectly without any glitch. Admittedly, I never use the latest and greatest hardware, so, if you plan on buying the latest video card, check that it will work with your chosen card, just in case. As said, for me everything worked with it: 3d without flaws, xrandr, kms, multiple monitors and tv output. No idea about vdpau and fancy things. My cards usually do not support fancy things anyway. 3d worked perfectly even for gaming purposes though people say that fglrx is better at this. 2d/kms/framebuffer is much better in this driver than in fglrx ;)

B), Intel cards, don't remember the name of the driver. Never used one. People say good things about them. They are supposed to be OSS friendly, but, as said I never used one.

nVidia is by far the worst option, unless you are one of those fortunate persons which don't mind using the "nvidia" binary driver and are lucky enough that it won't bite them in the ass, which is what happens most times.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Wed Oct 08, 2014 8:54 am    Post subject: Reply with quote

really? nouveau has been insanely solid for me. both my laptop and desktop are on nouveau.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Wed Oct 08, 2014 9:06 am    Post subject: Reply with quote

666threesixes666 wrote:
really? nouveau has been insanely solid for me. both my laptop and desktop are on nouveau.


Yes. It's for some people. That doesn't help the fact that it has consistently failed for me in many different boxes with different cards, using different distros and livecds, if you search around the net you will find I am not alone, and if you subscribe to their mailing lists you will also see that the development pace is quite slow.

Nothing to complain about of course, I am just stating the fact: if nouveau works for you that's great, but if it doesn't you'll find no immediate solution but to either migrate to something other driver or use some other video card. Before doing that of course I advice trying to report the bug in their mailing list (bugs that are not reported can't be fixed), you might have some luck.

EDIT: don't misunderstand me. I understand is quite a daunting task, and "radeon" for sure has had much more time to develop and man power behind it. There's also the fact that the range of hardware is also huge, and the developers only have physical access to a limited amount of video cards. Some chips are better tested and supported than others, that's only logical. You just got lucky. I did not. In the middle there are cases like this of the original poster of this thread, which mostly works but sometimes act up in funny things.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
tux2015
n00b
n00b


Joined: 31 May 2014
Posts: 29

PostPosted: Wed Oct 08, 2014 9:17 am    Post subject: Reply with quote

What is the mailing list address to send the bug to nouveau?

I believe this is indeed driver problem because of the fact that X doesn't work when restarted and only system reboot fixes the issue. If the bug was within X itself than it would work after simple restart of startx.

Also, nouveau is part of the kernel, right? Is it possible that upgrading the kernel to more recent version will help? It seems the problem appeared after kernel upgrade.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Wed Oct 08, 2014 9:32 am    Post subject: Reply with quote

You should use the latest kernel (some nouveau stuff went into 3.17) from kernel.org, the latest mesa, libdrm and xf86-video-nouveau, if you truly want to use nouveau.

Compile the 3.17 kernel, install it and reboot into it. Update your /usr/src/linux symlink to point to that directory before building the rest of the following packages.

I suggest installing the "x11" overlay, then add those packages to package.keywords and to package.unmask, and emerge the 9999 version (git live version) for them all.

package.keywords wrote:

x11-drivers/xf86-video-nouveau **
x11-libs/libdrm **
media-libs/mesa **


package.unmask wrote:

x11-drivers/xf86-video-nouveau
x11-libs/libdrm
media-libs/mesa


You can install app-portage/smart-live-rebuild to periodically update and rebuild all the live ebuilds.

Info about the mailing lists: http://lists.freedesktop.org/mailman/listinfo/nouveau

Seems to be down at the moment.
_________________
Gentoo Handbook | My website
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