Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378555 - sys-kernel/gentoo-sources{2.6.39,3.0.{0,1}}* with x11-drivers/xf86-video-intel: kernel freeze if I have an external monitor connected when X starts
Summary: sys-kernel/gentoo-sources{2.6.39,3.0.{0,1}}* with x11-drivers/xf86-video-inte...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-09 19:49 UTC by Randy Barlow
Modified: 2011-08-23 14:23 UTC (History)
2 users (show)

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


Attachments
kernel config (.config,63.04 KB, text/plain)
2011-08-09 19:54 UTC, Randy Barlow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Barlow 2011-08-09 19:49:00 UTC
Starting with gentoo-sources-2.6.39, and also with 3.0.0, my laptop appears to freeze when X starts if I have an external monitor connected. Unfortunately, because it appears to be a kernel panic, and because X blanks the screen, I am unable to see the panic message itself, and also nothing appears in the log, which makes this a very difficult problem to search for to determine if it has already been reported.

If I disable the xdm init script, the machine boots to the console just fine. Also, if I do not have any external monitor connected, X will start and operate just fine. If I add the external monitor after I am already logged in to KDE, the second monitor will operate correctly.

I have been able to reproduce this problem with two different external monitors to verify that it isn't the particular monitor I am connecting.

gentoo-sources-2.6.38 does not suffer from this problem.

Reproducible: Always

Steps to Reproduce:
1. Connect an external monitor
2. Boot the machine, with xdm enabled, or start XDM.
Actual Results:  
The laptop's screen appears to turn off (backlight off). The external monitor is on, with a non-blinking cursor appearing in the upper left corner of the screen. At this point, the machine appears to be completely frozen, not responding to ping requests. I am also not able to get to any of the virtual terminals.

Expected Results:  
The machine should boot into KDM.

I am currently using x11-drivers/xf86-video-intel-2.15.0-r1 (the failure also happens with 2.14), and sys-kernel/gentoo-sources-3.0.0 (also happens with 2.6.39).

$ emerge --info
Portage 2.1.10.3 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.12.2-r0, 2.6.38-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r7-x86_64-Intel-R-_Core-TM-_i3_CPU_M_380_@_2.53GHz-with-gentoo-2.0.3
Timestamp of tree: Tue, 09 Aug 2011 15:00:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 Broadcom google-talkplugin"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j9"
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.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dell doc dri dts dvd dvdr emboss encode exif fam firefox flac fontconfig fortran gdbm gdu gif gimp gpg gpm iconv ipv6 jpeg kde kipi laptop lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin nx ogg opengl openmp pam pango pcre pdf perl phonon plasma png policykit ppds pppd python qt3support qt4 raw rdesktop readline samba sdl semantic-desktop session spell sse sse2 sse3 ssh ssl ssse3 startup-notification svg symlink sysfs tcpd threads tiff truetype udev unicode usb vim vim-syntax vnc vorbis x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zeroconf zlib" 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" 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="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="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="canon" USERLAND="GNU" VIDEO_CARDS="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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Randy Barlow 2011-08-09 19:50:50 UTC
I should mention that I have no xorg.conf at all.
Comment 2 Randy Barlow 2011-08-09 19:54:03 UTC
Created attachment 282751 [details]
kernel config

I should, of course, also include my kernel config. Here is lspci:

# lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82577LM Gigabit Network Connection (rev 05)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 05)
00:1c.2 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 (rev 05)
00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 05)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05)
00:1f.2 RAID bus controller: Intel Corporation Mobile 82801 SATA RAID Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 05)
02:00.0 Network controller: Broadcom Corporation Device 4727 (rev 01)
03:00.0 CardBus bridge: Ricoh Co Ltd Device e476 (rev 02)
03:00.1 SD Host controller: Ricoh Co Ltd Device e822 (rev 03)
03:00.4 FireWire (IEEE 1394): Ricoh Co Ltd Device e832 (rev 03)
3f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
3f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
3f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
3f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
3f:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
3f:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
Comment 3 Randy Barlow 2011-08-09 19:54:16 UTC
This is a Dell E6510.
Comment 4 Derk W te Bokkel 2011-08-09 23:43:10 UTC
have you checked the Xorg.0.log, Xorg.0.old, .. etc in /var/log for clues?
Comment 5 Randy Barlow 2011-08-10 15:43:42 UTC
(In reply to comment #4)
> have you checked the Xorg.0.log, Xorg.0.old, .. etc in /var/log for clues?

I have, and there is nothing of interest written there. There is also nothing of interest in /var/log/messages. I believe this actually makes sense, since it appears to be a kernel panic. The kernel doesn't have a chance to flush any logging messages that might have been generated to disk, and likely only displays the panic trace on the virtual terminal, which I am unable to see since I am in the middle of a borked X session.

I appreciate that this gives very little information to go on to help resolve this problem. It's sort of a "help, my computer broke!" kind of report, which is difficult and frustrating.

If you know something I can do to see that traceback, I'd love to try it. Is there a way to ensure that kernel panics get logged and fsync'd before the kernel freezes?
Comment 6 Randy Barlow 2011-08-13 15:08:47 UTC
I confirmed that this also happens with gentoo-sources-3.0.1.
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2011-08-15 19:23:30 UTC
Looks like you've already given all the info we might ask from you.

The best course of action now is for you to file a bug upstream [1] where Intel developers will (hopefully) be able to sort this out.

Please don't forget to add "remi@gentoo.org" as a CC on the upstream bug. I'll gladly assist you if you need any help to try patches should upstream request you to try one.

Thanks

[1] http://intellinuxgraphics.org/how_to_report_bug.html
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2011-08-16 06:42:44 UTC
Whoops, I clicked too fast. Sorry for cutting you guys out of the loop.
Comment 9 Randy Barlow 2011-08-20 19:12:23 UTC
Hey Rémi! I created the upstream ticket at https://bugs.freedesktop.org/show_bug.cgi?id=40257
Comment 10 Randy Barlow 2011-08-23 14:23:06 UTC
Yesterday I upgraded to gentoo-sources-3.0.3 and also to xorg-server-1.10.4 and it works again. I'm not sure which of these packages solved the problem, but I'm satisfied knowing that the latest available packages solve my problem, so I'll resolve this ticket.