Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AC Power = fine; Battery Power => reboot / freeze on T41
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
SpiderPigLoki
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2008
Posts: 90

PostPosted: Sun Dec 07, 2008 11:26 am    Post subject: AC Power = fine; Battery Power => reboot / freeze on T41 Reply with quote

Hi there.

As you (hopefully) can reead from the title, I got a problem with my battery.

When I run the Laptop with AC Power it just boots fine, but when I want to run it from battery it loads Grub, loads the kernel, but during loading it, it freezes for a few seconds and then reboots, loads grubs, starts to load the kernel, etc. etc.

The last thing the kernel alsways says is

Quote:
piix 0000:00:1f:1 : not 100% native mode: will probe irqs later
ide0 : BM-DMA of 0x1860 - 0x1867
ide1 : BM-DMA of 0x1868 - 0x1860


I also got something from the dmesg (when it runs on AC)
Quote:
/*bla bla normal boot */
[ 0.987740] Uniform Multi-Platform E-IDE driver
[ 1.002354] piix 0000:00:1f.1: IDE controller (0x8086:0x24ca rev 0x01)
[ 1.017086] pci 0000:00:1f.1: enabling device (0005 -> 0007)
[ 1.032339] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
[ 1.047220] pci 0000:00:1f.1: PCI INT A -> Link[LNKC] -> GSI 11 (level, low) -> IRQ 11
[ 1.062484] piix 0000:00:1f.1: not 100% native mode: will probe irqs later
[ 1.077775] ide0: BM-DMA at 0x1860-0x1867
[ 1.092983] ide1: BM-DMA at 0x1868-0x186f /*this is where it gets stuck on bat.*/
[ 1.107920] Probing IDE interface ide0...
[ 1.396191] hda: SAMSUNG HM160HC, ATA DISK drive
/*bla bla normal boot */


In my eyes this is kernel-related (or something with my USE-Flags?), because it can boot-up an live-cd (tested with Gentoo 2007 Install CD) on battery.

My make.conf looks like this

Code:

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

MAKEOPTS="-j3"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANGUAGE="49"
LINGUAS="de"
LANG="de_DE.utf8"
FEATURES="candy ccache buildpkg noinfo nodoc parallel-fetch unmerge-oprhans"
VIDEO_CARDS="vesa"
INPUT_DEVICES="keyboard mouse synaptics"
CCACHE_DIR="/Zeug/ccache"
CCACHE_SIZE="1G"
PKGDIR="/Zeug/PKG/"
USE="alsa nls vim-pager -amarok -arts -berkdb -debug -esd -gnome -gpm
     -gstreamer -jack -kate -kde -kde4 -nptl -qt3 -qt4"


In my kernel (2.6.27.4 from eu.kernel.org - so not gentoo-sources) I got ACPI activated, but I couldn't find the "piix"-module.
Also : Since my Laptop (IBM Thinkpad T41) is pretty old, I assume that it doesn't have ATA but IDE Drives, so I can deactivate the ATA-Support.

I hope that you can help me. If there is anything else I should tell you, please let me know.

Greetz SPL
Back to top
View user's profile Send private message
Abraxas
l33t
l33t


Joined: 25 May 2003
Posts: 814

PostPosted: Mon Dec 08, 2008 3:17 am    Post subject: Reply with quote

Tha'ts weird that it only happens on battery. Are you using cpufreq? I had major issues with the conservative governor. It hard locked my laptop consistently. I would also take a look at http://www.thinkwiki.org/wiki/ThinkWiki. There are a lot of tips and tricks to get your thinkpad working correctly under Linux. I seem to recall an article posted to ThinkWiki discussing some issues with T4* disks and how to resolve the issues. As for ATA/IDE you have both in your T41. ATA refers to the a standard of which IDE drives confrom to. IDE drives are Parellel ATA as apposed to Serial ATA.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Mon Dec 08, 2008 9:28 am    Post subject: Reply with quote

Post the results of lspci -n and cat /proc/cpuinfo as well as your /etc/fstab file and your complete .config. I'll take a look and see if there's anything suspicious. From an initial look, it could be a power supply problem or a battery problem. However, I'll make sure there's nothing flaky in your .config causing this.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
SpiderPigLoki
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2008
Posts: 90

PostPosted: Mon Dec 08, 2008 3:02 pm    Post subject: Reply with quote

Well THX for the two awnsers
Quote:
lspci -n
gives me
Quote:
00:00.0 0600: 8086:3340 (rev 03)
00:01.0 0604: 8086:3341 (rev 03)
00:1d.0 0c03: 8086:24c2 (rev 01)
00:1d.1 0c03: 8086:24c4 (rev 01)
00:1d.2 0c03: 8086:24c7 (rev 01)
00:1d.7 0c03: 8086:24cd (rev 01)
00:1e.0 0604: 8086:2448 (rev 81)
00:1f.0 0601: 8086:24cc (rev 01)
00:1f.1 0101: 8086:24ca (rev 01)
00:1f.3 0c05: 8086:24c3 (rev 01)
00:1f.5 0401: 8086:24c5 (rev 01)
00:1f.6 0703: 8086:24c6 (rev 01)
01:00.0 0300: 1002:4c57
02:00.0 0607: 104c:ac46 (rev 01)
02:00.1 0607: 104c:ac46 (rev 01)
02:01.0 0200: 8086:101e (rev 03)
02:02.0 0200: 168c:1014 (rev 01)



cat .config |grep cpu gives me nothing...so I think I don't hacve cpufreq.
Quote:

/dev/hda2 none swap sw 0 0
/dev/hda1 /boot jfs defaults 1 2
/dev/hda3 / jfs defaults 0 1
/dev/hda5 /home jfs defaults 0 0
/dev/hda6 /zeug jfs defaults 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0


And a link to my Config
http://rapidshare.com/files/171452806/.config.html
I think psoting the hole config would be a little big.....

I hope thats all you need

Greetz SPL
Back to top
View user's profile Send private message
Abraxas
l33t
l33t


Joined: 25 May 2003
Posts: 814

PostPosted: Mon Dec 08, 2008 3:44 pm    Post subject: Reply with quote

The options are all in caps so you should "grep CPU". When you do you'll notice that you are using cpu frequency scaling. You also have the conservative governor set in the config. You may or may not be using it though depending on your userspace setup. As for ATA it doesn't look like you have PIIX ATA support activated which should be necessary for your machine. I would start there.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Mon Dec 08, 2008 10:15 pm    Post subject: Reply with quote

I was looking for the cpu type with the command cat /proc/cpuinfo. But no matter. As long as it was initially correct, it will still be.

I did notice a few things that made me suspicious, so I turned them off, most specifically, the thinkpad module. This could be the cause of the problem, so you might want to do a bit of experimentation after the fact.

Click here for your new .config. Compile as is and see if the trouble goes away. If so, then you got lucky. If not, try using windoze (if installed) and see if the same problem arises. If so, then it's time to go to the shop.

You will have to change your fstab around to match the libata drivers, or change things back to using the ATA/ATAPI/MFM/RLL drivers ONLY. I'd recommend making the change from hd(x) to sd(x) as DMA support is set up by default. If you need help or guidance, let me know via private message.


When you get the system to boot, please post /var/log/dmesg so I can see how things loaded.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
Abraxas
l33t
l33t


Joined: 25 May 2003
Posts: 814

PostPosted: Tue Dec 09, 2008 12:22 am    Post subject: Reply with quote

I use the thinkpad-acpi module without issue so I don't think that is a problem. It seems you are using experimental PATA drivers instead of the standard ATA drivers. Also you are using the SFF ATA module but did not specify chipset support. I would turn off the SATA/Experimental drivers and instead use the standard ATA/ATAPI drivers. The proper driver for your machine should be the Intel PIIX/ICH chipset driver. I also noticed some P4 options in your config while I believe that all T4* series laptops use Pentium M.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Tue Dec 09, 2008 10:31 am    Post subject: Reply with quote

All the more reason to post the result of cat /proc/cpuinfo.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
SpiderPigLoki
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2008
Posts: 90

PostPosted: Fri Dec 12, 2008 1:08 pm    Post subject: Reply with quote

Sorry, that I didn't write you earlier, but I was very busy

Thanks for the great ideas and for the config, but that didn't help.
I also installed Debian on it, with the same results... right now I'm running a badblock-test on the TP and see how that is going to end up.
After that I'm going to install Windows on it and we'll see.


Once again THX for the great support and wish me luck.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Fri Dec 12, 2008 7:27 pm    Post subject: Reply with quote

Good luck. If it's doing the same thing with Debian, then you know it's a hardware issue, but yes, due diligence would dictate the need for Windoze as a means of troubleshooting. Wow, it's actually good for something. :lol:

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
Caleb9
Tux's lil' helper
Tux's lil' helper


Joined: 22 Nov 2005
Posts: 79
Location: PL & DK

PostPosted: Thu Jan 01, 2009 3:53 pm    Post subject: Reply with quote

I have similar problem - after upgrading from gentoo-sources-2.6.26-r4 to 2.6.27-r7 laptop (Asus F3M) doesn't boot up on battery. It works fine with the 2.6.26 kernel so it's surely a software related issue. Let me know which logs/confs to post if you think you can have an idea on what's the prob.
Back to top
View user's profile Send private message
Caleb9
Tux's lil' helper
Tux's lil' helper


Joined: 22 Nov 2005
Posts: 79
Location: PL & DK

PostPosted: Thu Jan 01, 2009 4:39 pm    Post subject: Reply with quote

Managed to solve in my case by adding ACPI_SBS to kernel.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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