Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334255 - unplug power cord from laptop, instant system freeze
Summary: unplug power cord from laptop, instant system freeze
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://www.youtube.com/watch?v=OtTt5X...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 10:04 UTC by blub bla
Modified: 2011-01-01 21:17 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 blub bla 2010-08-24 10:04:47 UTC
connected via wlan and then when i unplug the the power cord from my laptop, the whole system freezes. 
http://www.youtube.com/watch?v=OtTt5XFf0AY

i would like to rule out hardware issues or the wlan, since both works well when using debian...

also booting(start of openrc...) is kinda slow and often freezes as well...

Reproducible: Always

Steps to Reproduce:
1.connect to wlan
2.unplug power cord
3.freeze

Actual Results:  
system froze. no mouse movement, no keyboard actions possible

Expected Results:  
no freezing system...

 emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.35.3 i686)
=================================================================
System uname: Linux-2.6.35.3-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 23 Aug 2010 13:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b, 2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
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"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j1"
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="/var/lib/layman/pro-audio"
SYNC="rsync://192.168.88.2/gentoo-portage"
USE="X a52 aac aalib accessibility ace acl acpi alsa amrnb amrwb apm arts autoipd avahi berkdb bluetooth boost bzip2 cairo cdda cdinstall cdr cdrom cli connection-sharing consolekit cracklib crypt curl cxx dar64 dbus devfs-compat divx dolby-record-switch dri dts dv dvb dvbplayer dvd dvdnav dvdr dvdread embedded encode eselect extras ffmpeg flac fortran fpx frei0r ftp gdbm gif git glib glibc-compat20 glut gnutls gphoto2 gpm gs gtk hbci hddtemp hdri hybrid-auth iconv icq ieee1394 innodb ipv6 jack java java5 javascript jbig joystick jpeg jpeg2k kde kipi lame lash lcms libsamplerate libwww lm_sensors logitech-mouse mad matroska md5sum mdnsresponder-compat melt mikmod mmx mmxext mng modules mp2 mp3 mp3rtp mp4 mpeg mplayer mudflap musepack mysql ncurses networkmanager nls nptl nptlonly nsplugin ofx ogg openal openexr opengl openmp oscar otr pam pcre pdf perl png policykit pppd python q32 qt-dbus qt-phonon qt-static qt3support qt4 quicktime rar rdp readline realmedia reflection resolvconf rtc samba sasl schroedinger script secure-delete semantic-desktop session slang smp sound speex spl sql sse sse2 sse3 sse4 ssl ssse3 subversion svg svgz sysfs tcpd tga theora threads threadsafe tiff truetype unicode upnp usb v4l vaapi vboxwebsrv vdpau vnc vorbis wav wavpack webkit wma wmf wmp wxwidgets wxwindows x264 x86 xine xml xmlrpc xorg xulrunner xv xvid xvmc yahoo yv12 zeroconf zlib" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" USERLAND="GNU" 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, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 blub bla 2010-08-24 10:15:43 UTC
i have to add:


when i start the laptop and i am trying to connect to the wlan without the power cord plugged in it freezes as well. 

but when you look at the video you can see that connecting to the wlan is no problem when the power cord is plugged in....
Comment 2 blub bla 2010-08-31 14:00:14 UTC
little update:

i redid my kernel and used the debian config as an example. i havent seen a freeze of the laptop so far.

BUT freezes when booting (after entering init) still occur. with a 50:50 chance...
often after "processing udev events" or the networkmanager-modem stuff or after the start of acpid.

:/
Comment 3 blub bla 2010-08-31 14:01:14 UTC
speed of init/openrc is now faster than before....
Comment 4 George Kadianakis (RETIRED) gentoo-dev 2010-08-31 14:24:31 UTC
I remember that enabling laptop-mode solved this issue for some people.
Also, after a brief Google search I found a bug report claiming that a quick workaround would be to enable nomodeset (at least if it works like that we can be a bit more precise on what is to blame) as a boot option.

All in all though, there are many things that could be going wrong and I don't really know how to debug this.

Do Sysrq keys work when your system is frozen? If yes, you should check on how to get a crashdump from it using sysrq.
Comment 5 blub bla 2010-08-31 15:20:18 UTC
(In reply to comment #4)
> I remember that enabling laptop-mode solved this issue for some people.

that would be 
emerge laptop-mode-tools ?

that would result in a block of pm-utils which are required by kde-base/powerdevil
(powermgmt-base blocking pm-utils)


> Also, after a brief Google search I found a bug report claiming that a quick
> workaround would be to enable nomodeset (at least if it works like that we can
> be a bit more precise on what is to blame) as a boot option.

froze with nomodeset as well....
well i use grub2 due the debian installation and i added nomodeset the way i would do it in grub1...
i am not 100% sure whether that is the right thing to do...


> All in all though, there are many things that could be going wrong and I don't
> really know how to debug this.
> 
> Do Sysrq keys work when your system is frozen? If yes, you should check on how
> to get a crashdump from it using sysrq.

 
that would be alt + print + o or something like that?
no response when i do that.
Comment 6 blub bla 2010-08-31 17:17:46 UTC
"nomodeset" seems to make tha pass:freeze ratio to 3:1 instead of 1:1 :)
it is a little bit better
Comment 7 Mike Pagano gentoo-dev 2010-12-17 13:42:26 UTC
Has anything improved with later kernels?
Comment 8 blub bla 2010-12-17 15:01:25 UTC
(In reply to comment #7)
> Has anything improved with later kernels?
> 

no :(

i doubt that it is a kernel issue.
it usually freezes at  udev, networkmanagerstuff when it is loading the modem stuff, acpid or rsyslog.

Comment 9 blub bla 2010-12-17 15:11:04 UTC
oh wait sorry, i mixed up the bugreports.

i did a singel test a minute ago, and it didnt freeze :)



Comment 10 Mike Pagano gentoo-dev 2011-01-01 21:17:43 UTC
Ok, I think were ok here now.