LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 11-06-2012, 02:35 AM   #1
BoraxMan
Member
 
Registered: Apr 2010
Posts: 84

Rep: Reputation: 8
Ordinary GNU programs cause Thinkpad to power off


This is a strange hardware/software issue.

My older laptop (Thinkpad T40 running Fedora 7) is freezing randomly and occasionally powering off all of a sudden at what seemed to be random times. When it freezes, it becomes completely non responsive (non kernel 'magic keys', capslock indicator doesn't change when you press capslock, all sound ceases). When it powers off, it just powers off all of a sudden, even with a charged battery.

It seemed to be random, and I thought kernel related, so I've tried the latest kernel, as well as the original and this made no difference. I also tried running puppy linux, and it still exhibited the same issues.

I ran a PC Doctor diagnostics, tested the RAM/CPU all good. Stress test was no issue..

While trying to find which modules might cause issues I ran the command 'grep -R ehci *' in the /etc directory, and the laptop shut off about 1/2 a second after starting.

It does this EVERYTIME. Yet if I run grep searching for something like 'sas' it works ok' Search for 'ehci' or 'ohci' and the power goes off, everytime. Trying to search the same files under puppy linux is a little different, I may have to run it a few times, but it powers off.

So its not the kernel, its not the distro, but the computer can run fine, except for running grep looking for 'ehci'! I suspect that all the other times, there was some specific set of instructions, or state that set it off.

Does anyone know how I might trouble shoot this? For all purposes, the CPU appears fine, boots OK, but occasionally freezes or powers off. But why it does this, even when cool and just started, running something like grep?
 
Old 11-06-2012, 11:23 PM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,223

Rep: Reputation: 231Reputation: 231Reputation: 231
Less likely it is software, rather, could be the driver. Are you running an intel, or nvidia? What devices you have in the mobo?

~# lspci -v

Can you give us more about hardware-driver background?
 
Old 11-07-2012, 05:51 AM   #3
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,619

Rep: Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585
IIRC, the thinkpad had some issues specifically with interrupts and power, and some kernel options exist solely for IBM Thinkpads. I'd look there first.
<kernel-source>/Documentation/laptops/thinkpad.txt

Random power-offs are also a symptom of power supply failure. I have a desktop doing it atm, and the psu is ordered.
 
Old 11-09-2012, 10:52 PM   #4
BoraxMan
Member
 
Registered: Apr 2010
Posts: 84

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by malekmustaq View Post
Less likely it is software, rather, could be the driver. Are you running an intel, or nvidia? What devices you have in the mobo?

~# lspci -v

Can you give us more about hardware-driver background?

Its a stock Thinkpad T40
http://www.thinkwiki.org/wiki/T40

Kernel 3.4, but Kernel 2.6 does it too. I've tried many kernel revisions and various options.

I'm pretty sure its a faulty CPU, but oddly reacts only to certain code sequences. I'm going to find another Pentium-m CPU and see how that goes.


00:00.0 Host bridge: Intel Corporation 82855PM Processor to I/O Controller (rev 03)
Subsystem: IBM Thinkpad T41
Flags: bus master, fast devsel, latency 0
Memory at d0000000 (32-bit, prefetchable) [size=256M]
Capabilities: [e4] Vendor Specific Information
Capabilities: [a0] AGP version 2.0

00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, fast devsel, latency 96
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 00003000-00003fff
Memory behind bridge: c0100000-c01fffff
Prefetchable memory behind bridge: e0000000-e7ffffff

00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01) (prog-if 00 [UHCI])
Subsystem: IBM Thinkpad R50e model 1634
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at 1800 [size=32]

00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01) (prog-if 00 [UHCI])
Subsystem: IBM Thinkpad R50e model 1634
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at 1820 [size=32]

00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01) (prog-if 00 [UHCI])
Subsystem: IBM Thinkpad R50e model 1634
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at 1840 [size=32]

00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01) (prog-if 20 [EHCI])
Subsystem: IBM Thinkpad R50e model 1634
Flags: bus master, medium devsel, latency 0, IRQ 11
Memory at c0000000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 81) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=08, sec-latency=64
I/O behind bridge: 00004000-00008fff
Memory behind bridge: c0200000-cfffffff
Prefetchable memory behind bridge: e8000000-efffffff

00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 01)
Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 01) (prog-if 8a [Master SecP PriP])
Subsystem: IBM Thinkpad R50e model 1634
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at 01f0 [size=8]
I/O ports at 03f4 [size=1]
I/O ports at 0170 [size=8]
I/O ports at 0374 [size=1]
I/O ports at 1860 [size=16]
Memory at 40000000 (32-bit, non-prefetchable) [size=1K]

00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
Subsystem: IBM Thinkpad R50e model 1634
Flags: medium devsel, IRQ 11
I/O ports at 1880 [size=32]

00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
Subsystem: IBM Thinkpad T41
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at 1c00 [size=256]
I/O ports at 18c0 [size=64]
Memory at c0000c00 (32-bit, non-prefetchable) [size=512]
Memory at c0000800 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2

00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01) (prog-if 00 [Generic])
Subsystem: IBM Thinkpad T41
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at 2400 [size=256]
I/O ports at 2000 [size=128]
Capabilities: [50] Power Management version 2

01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500] (prog-if 00 [VGA])
Subsystem: IBM Unknown device 0530
Flags: bus master, stepping, fast Back2Back, 66MHz, medium devsel, latency 66, IRQ 11
Memory at e0000000 (32-bit, prefetchable) [size=128M]
I/O ports at 3000 [size=256]
Memory at c0100000 (32-bit, non-prefetchable) [size=64K]
[virtual] Expansion ROM at c0120000 [disabled] [size=128K]
Capabilities: [58] AGP version 2.0
Capabilities: [50] Power Management version 2

02:00.0 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
Subsystem: IBM ThinkPad T30/T40
Flags: bus master, medium devsel, latency 168, IRQ 11
Memory at b0000000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=02, secondary=03, subordinate=06, sec-latency=176
Memory window 0: e8000000-ebfff000 (prefetchable)
Memory window 1: c4000000-c7fff000
I/O window 0: 00004000-000040ff
I/O window 1: 00004400-000044ff
16-bit legacy interface ports at 0001

02:00.1 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
Subsystem: IBM ThinkPad T30/T40
Flags: bus master, medium devsel, latency 168, IRQ 11
Memory at b1000000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=02, secondary=07, subordinate=07, sec-latency=176
Memory window 0: ec000000-effff000 (prefetchable)
Memory window 1: c8000000-cbfff000
I/O window 0: 00004800-000048ff
I/O window 1: 00004c00-00004cff
16-bit legacy interface ports at 0001

02:01.0 Ethernet controller: Intel Corporation 82540EP Gigabit Ethernet Controller (Mobile) (rev 03)
Subsystem: IBM PRO/1000 MT Mobile Connection
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 11
Memory at c0220000 (32-bit, non-prefetchable) [size=128K]
Memory at c0200000 (32-bit, non-prefetchable) [size=64K]
I/O ports at 8400 [size=64]
[virtual] Expansion ROM at c0240000 [disabled] [size=64K]
Capabilities: [dc] Power Management version 2
Capabilities: [f0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-

02:02.0 Network controller: AIRONET Wireless Communications Cisco Aironet Wireless 802.11b
Subsystem: AIRONET Wireless Communications Unknown device 5000
Flags: bus master, fast devsel, latency 64, IRQ 11
I/O ports at 8000 [size=256]
Memory at c0210000 (32-bit, non-prefetchable) [size=16K]
Memory at c0400000 (32-bit, non-prefetchable) [size=4M]
[virtual] Expansion ROM at c0800000 [disabled] [size=2M]
Capabilities: [40] Power Management version 2
Capabilities: [48] Vital Product Data
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
enable power management ipw3495 on ThinkPad T60 Ubuntu 7.10 CharlieBucket Linux - Wireless Networking 3 10-01-2007 06:03 AM
Power Management- IBM Thinkpad T20 systemparadox Linux - Laptop and Netbook 7 02-16-2006 04:47 PM
MiniPCI High Power Cards (Thinkpad T23) ro_nicu Linux - Hardware 0 11-29-2005 07:09 PM
Power Managment on Thinkpad spotslayer Suse/Novell 2 11-25-2004 08:03 PM
how to cross compile those ordinary ./configure programs? karfei00 Linux - Laptop and Netbook 7 06-09-2004 05:33 PM


All times are GMT -5. The time now is 04:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration