Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285059 - X hang after a while (intel pre-9xx)
Summary: X hang after a while (intel pre-9xx)
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-15 08:01 UTC by Petric Frank
Modified: 2009-11-15 07:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petric Frank 2009-09-15 08:01:12 UTC
Hardware: Pentium 4 + Intel i865G onboard graphics
Kernel: (gentoo) 2.6.31 (the same happens with gentoo-sources-2.6.30-r4)

When starting into kdm after a few keypressed X is hanging. Only the mouse is working - but mouse clicks have no effect.
System is still running (i can log in into the system remotely using ssh).

<Alt>-<Ctr>-Fx is not working.

Reproducible: Always

Steps to Reproduce:
1. Boot system into grahical kdm-login
2. Enter same letters
3. Hang

Actual Results:  
X is hanging. Needs a reboot to get the local display running again.

Expected Results:  
Should work.

After some googling i got to a kernel fix:

 http://lists.freedesktop.org/archives/intel-gfx/2009-September/004122.html
and its follow-up:
 http://lists.freedesktop.org/archives/intel-gfx/2009-September/004128.html

This makes my system working again.

I suggest to add this patch to the gentoo kernel 2.6.3x-rx line.

unstable packages i used:
  x11-base/xorg-server-1.6.3
  media-libs/mesa-7.5.1
  x11-drivers/xf86-video-intel-2.7.1 (the same problem happens with -2.8.x)
  x11-libs/libdrm-2.4.12

emerge --info is this:
----------------------------- cut --------------------------
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.31-gentoo i686)
=================================================================
System uname: Linux-2.6.31-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-gentoo-1.12.11.1
Timestamp of tree: Thu, 10 Sep 2009 01:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-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 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X accessibility acl acpi alsa apache2 arts audiofile berkdb bzip2 cairo cdr cli cracklib crypt cups dbus dga dri dvd dvdr dvdread exif fastcgi ffmpeg foomaticdb fortran ftp gdbm gif gnome gpm gtk gtk2 hal iconv isdnlog java jikes jpeg kde kdehiddenvisibility ldap lm_sensors mmx mozilla mudflap mysql mysqli ncurses nis nls nptl nptlonly opengl openmp pam pcre pdf perl png ppds pppd python qt qt3 qt3support qt4 readline reflection samba session spl ssl svg sysfs tcpd tidy tiff truetype unicode usb v4l v4l2 vorbis win32codecs x86 xml xml2 xorg xpm xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="access actions alias auth authn_dbm authn_anon auth_digest authn_file authz_host autoindex asis case_filter case-filter-in charset-lite cache cern-meta cgi cgid dav dav-fs deflate dir disk-cache echo env expires ext-filter file-cache filter headers imap info include mem-cache mime mime-magic proxy proxy-connect proxy-ftp proxy-http unique_id usertrack vhost-alias speling rewrite log_config logio setenvif status negotiation userdir so" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="fbdev intel v4l vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2009-09-19 21:33:36 UTC
This has been a known issue on 865 for a very long time.

Fortunately, those bugs were fixed last week and so the next releases should work just fine on this chipset.

Until then, you can try using the x11 overlay but that will probably cause more problems if you want something simple.

In the mean time, I can only recommend using the vesa driver. That's all I have to offer.

Thanks
Comment 2 Petric Frank 2009-09-19 23:48:39 UTC
For me it's ok.

The patches given in the mails i referenced in this bug report solves the issue for me.

So i only wantend to save others from searching for solutions on this specific problem. Due it took me a long time to find a fix for my problem.

Also i assume this fix would be included in kernel 2.6.32 and this is taking at least 2-3 months (from now) to be released.
Comment 3 Robert Lippmann 2009-11-15 04:27:06 UTC
I've tried 2.6.32-rc6 from vanilla-sources, and I still have the problem.  Looking at the source, vanilla-sources has the patch applied, so I don't think this bug is just going to go away with the next kernel upgrade.  Although I have an 845G, not an 865G.

The easiest way to force it to happen is fire up xine (and I have xine compiled -xvmc).  Also, playing music via myspace/flash seems to kill things.  Although, randomly just using firefox does it.  

I've been banging my head against the wall about this bug for a month, and the simplest solution I've found (well, it's working so far) is to add nomodeset to the kernel boot parameters.

Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2009-11-15 07:01:17 UTC
(In reply to comment #3)
> I've been banging my head against the wall about this bug for a month, and the
> simplest solution I've found (well, it's working so far) is to add nomodeset to
> the kernel boot parameters.

KMS is going to become mandatory starting with the next release. You should definitely file a bug upstream [1] if you want it solved before it's too late.

Thanks

[1] http://intellinuxgraphics.org/how_to_report_bug.html