LinuxQuestions.org
Register a domain and help support LQ
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 12-17-2003, 03:41 AM   #1
tireseas
Member
 
Registered: Jun 2003
Location: London, UK
Distribution: Slackware 10 & 10.1
Posts: 149

Rep: Reputation: 15
Unwanted shutdown


Hi folks
I have encountered a perplexing problem and have run out of fresh ideas to try, so would welcome some input please.
I am running Slack 9.0 on an AMD Athlon 2.4, 256MB RAM, using an ASRock mobo.
To provide a history of events:
I had the box up and running for about 3 months continuously when one morning I discovered that it had hard frozen with the Caps Lock and Scroll Lock LEDs on. Nothing I could do would clear it and so I had to do a hard shutoff (i.e. pull the plug). When I rebooted, the machine was fine (quick boot up, and using reiserfs seems to allow a really quick recovery of threads) and the machine ran fine for a few days.
Now about 3 times in the last 5 days in the mornings I have found that the box is off and cannot be restarted unless I first disconnect the main power supply plug and plug it back in. Again, after this it will start just fine and no other apparent problems.

Attempted solutions:
Thinking that it might be heat related I have checked all the fans (it runs a heatsink, an exhaust fan, an intake fan, and the PSU is a dual-fan job) and then as an added precaution I removed the side panelling last night and made sure that it had plenty of air circulation. Still was shut off this a.m. If it is heat, that does surprise me though because it ran fine during the summer but now it is failing in the winter during the hours when the automatic central heating is off.
The problem is definitely not with the mains power because every other electrical time display, for example, is still accurate - no surges or dips.

So, I am out of ideas. I was wondering if I might have a misconfigured crontab running, or that when it does its 4 am database updates it is shutting the thing down, but I can't profess to understand (a) how that would work nor (b) if that is the problem how to fix it.

Your thoughts would be welcomed.
TIA

- Andy
 
Old 12-17-2003, 04:40 AM   #2
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
simple way to tell when it's shutting down, relating to cron anyway is to either touch or log a file every 5 minutes or so, that will tell you if it's around your update times. you may also want to log you power readings overnight.. aside from that, someone will come along with more specific ideas..
 
Old 12-17-2003, 04:50 AM   #3
tireseas
Member
 
Registered: Jun 2003
Location: London, UK
Distribution: Slackware 10 & 10.1
Posts: 149

Original Poster
Rep: Reputation: 15
Thanks for your response.
I don't know how to log my power readings having never had to do so before. Could you give me a steer on how to do that please.

Cheers
- Andy

PS: keep your head down over there mate!!!
 
Old 12-18-2003, 03:11 AM   #4
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
you said you could check your power ? if so what command/program do u use, or is it a multimeter?

also send your cron file so i know what it is doing

add a line to cron to touch /var/power_on every ten minutes
(man cron) will explain that procedure if not ask about it.
you can then do ls la on /var and find the last modified time of power_on to find out when the system chrashed

what devices are physically plugged into your power supply.

also send output of "ps -ef" right before you leave the system so we know whats running when you leave it..
 
Old 12-24-2003, 02:30 PM   #5
tireseas
Member
 
Registered: Jun 2003
Location: London, UK
Distribution: Slackware 10 & 10.1
Posts: 149

Original Poster
Rep: Reputation: 15
About a week ago I posted this particular problem to this board. I subsequently replaced my PSU and have been running continuously for the last 6 days. Thanks for your input. Unexplained shut-downs can be caused by a faulty PSU.
 
Old 12-25-2003, 07:24 AM   #6
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
ok you folks seem to know something about this shutdown-thing....I wonder if there's any help for me?

I'm using an old machine, 566 Celefon, but it has worked fine until this. I used to have redhats installed, and with them there was no problem - for example, redhat9 used to automatically power off when I shut my machine down (I didn't need to touch the power button myself).

Now when I have gentoo, things go like this: reboot works fine. Halt or shutdown, no matter which I use, run a good shutdown: end the processes, log users out etc. (the normal stuff), but when it comes down to the line where reads "Power down" (or was it "off" ?), nothing happens. I think this should also turn the power off itself, but I need to push the button for about 6 seconds to get it completely shut down - so it's like the machine wouldn't run the WHOLE shutdown right?

How could I change this so that the power would go off itself? Please help if you can...
 
Old 12-25-2003, 08:15 AM   #7
tireseas
Member
 
Registered: Jun 2003
Location: London, UK
Distribution: Slackware 10 & 10.1
Posts: 149

Original Poster
Rep: Reputation: 15
My ignorance knows no bounds ... so take this with salt
I figure that it has something to do with having apm installed (I think apm => advanced powered management). I get the same thing with my trusty Slack box. To all intents and purposes from the software point-of-view your box is off.
As to how you would fix it, again poll for input but I suspect that you may have to load an apm module and compile it into your kernel.
But - you know my disclaimer :-D
Hope it works out for you.

- Andy
 
Old 12-25-2003, 10:18 PM   #8
robbage
Member
 
Registered: Dec 2002
Location: Western Australia
Distribution: OpenSuSe 11.x
Posts: 35

Rep: Reputation: 15
Quote:
Originally posted by tireseas
About a week ago I posted this particular problem to this board. I subsequently replaced my PSU and have been running continuously for the last 6 days. Thanks for your input. Unexplained shut-downs can be caused by a faulty PSU.
You might find that the old PSU will work fine on other motherboards. ASRock M/B seem to be tempermental things. 99% of my PC problems went away when I dumped my ASRock.
 
Old 12-26-2003, 06:28 AM   #9
tireseas
Member
 
Registered: Jun 2003
Location: London, UK
Distribution: Slackware 10 & 10.1
Posts: 149

Original Poster
Rep: Reputation: 15
That's interesting: I really wasn't aware of that. Un/fortunately it was on a special deal so I made an investment. After installation, my machine was temperamental in terms of overheating issues (carrying a 2.4 Athlon) despite several pretty kick-ass fans. I wonder if that could also be attributed to the ASRock.
What kinds of issues did you deal with and what mobo are you using now??
 
Old 12-26-2003, 07:13 AM   #10
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
yes, it's the apm module.
if modprobe apm finds nothing, and it's not built into the kernel, you'll
need to recompile it with that option.
 
Old 12-28-2003, 01:42 PM   #11
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
ok... I checked out "modprobe apm" output, which was nothing but how do I go on now? I checked out

modprobe -l | grep apm

and here's what it gave me:

/lib/modules/..(cutoff)../kernel/apm.o

so this means that I can load it without recompiling my kernel, right? how do I do this, so that the module gets loaded always (so I don't have to always load it)? is "insmod" the tool I need?

thank you really much for help...
 
Old 12-28-2003, 08:58 PM   #12
robbage
Member
 
Registered: Dec 2002
Location: Western Australia
Distribution: OpenSuSe 11.x
Posts: 35

Rep: Reputation: 15
Quote:
Originally posted by tireseas
After installation, my machine was temperamental in terms of overheating issues (carrying a 2.4 Athlon) despite several pretty kick-ass fans. I wonder if that could also be attributed to the ASRock.
What kinds of issues did you deal with and what mobo are you using now??
Same CPU here. I had overheating as well (or at least it REPORTED that it was overheating.. maybe the sensors were not working properly). The same CPU is now in a gigabyte M/B and works fine.

I had a lot of issues with powering up. Sometimes nothing would happen when the power button was pressed. Sometimes it would power up but nothing else would happen (lights ok, no POST, no text). Often it would POST but froze up if any USB devices were plugged in.

If it booted ok (dual w!n98se/RH9) some times USB devices weren't detected by either OS. I had a USB2.0 5port PCI card plugged in as well, and that worked well. just the built-in USB were the problem.

Couldn't boot from USB floppy even though the option was there in BIOS and the drive works on other PCs. The drive was detected; it would report the floppy disk wasn't bootable.

The system would suddenly freeze up under 98 and rh9. Totally locked. Even the reset button wouldn't work. Had to unplug the power cord....

There's more that I can't recall now, but I changed over to the gigabyte (everything else was exactly the same.. CPU, RAM etc) and now everything works fine. I tried a different PSU on the ASRock with no luck. The PSU I was using works fine on the new M/B and an old AOpen M/B.

The gigabyte is a GA-7VM400MF uATX. Not the flashiest AMD-compatible but works
The only thing I liked about the ASRock was the BIOS.
 
Old 12-29-2003, 06:20 AM   #13
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
there's different ways, but
just adding
modprobe apm
to the bottom of /etc/conf.d/local.start
that's gentoo right?
 
Old 12-30-2003, 06:31 AM   #14
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
yup, this's gentoo

I'll try that, and tell later if it works....thanks a lot!
 
Old 01-01-2004, 10:08 AM   #15
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
....and it did work!

and happy new year to you, folks.....altough I'm a little bit late
 
  


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
unwanted folders oscotty General 11 08-28-2005 02:01 PM
Linux full shutdown vs. manual shutdown? LQtoto Linux - General 9 01-26-2005 07:21 PM
Unwanted mail sanjibgupta Linux - General 0 07-08-2004 01:07 AM
Unwanted HD detecting. Nukem Mandriva 14 01-24-2004 12:47 PM
konsole shutdown possible? or key combo = shutdown possible? Laptop2250 Linux - Newbie 3 11-16-2003 11:44 AM


All times are GMT -5. The time now is 10:07 AM.

Main Menu
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