home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Applications and Operating Systems
Ask a Tech Support Question (free)!

problems when shutdown in linux

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2142
Discussions: 200,915, Posts: 2,378,974, Members: 246,282
Old February 2nd, 2002, 08:41 PM   Digg it!   #1 (permalink)
Member
 
meanguy21's Avatar
 
Join Date: Jan 2002
Posts: 255
problems when shutdown in linux

hello guys, this has been really annoying " why i always have some weird problems "

well, i used to have debian with 2.4.12 kernel, when i used to shut the machine down using "shutdown -h now" ... the power turns off automatically, but then i had to get 40 gb hardisk, so i had to get a newier kernel, i tried 2.4.17 16 and 14 ... large hardisks are supported in those, but my pc doesn't power off like it used to! ... i asked around, and kept reading, no one knows, .... some told me to enable apm in the kernel, i did that, i enabled also "enable real calls power off " something like that, .... the module is successfully loaded, but still doesn't power off, i also checked if apm is enabled in the bios, and it is, turned it off, and back on again.... i tried everything i could
some ideas would really help =)
thanx
meanguy21 is offline   Reply With Quote
Old February 2nd, 2002, 09:19 PM     #2 (permalink)
Ultimate Member
 
Germ's Avatar
 
Join Date: Oct 2001
Location: Lat:36.5N, Lon:95.5W
Posts: 1,274
Send a message via AIM to Germ Send a message via Yahoo to Germ
Hi meanguy,

You need to put the -p flag in your shutdown script. I'm not sure where it is in debian, probably /etc/init.d/halt or /etc/rc.d/init.d/halt. Should look something like HALTARGS="-i -d -p"

HTH

Germ
__________________
How do you set this laser printer to stun??
Germ is offline   Reply With Quote
Old February 2nd, 2002, 09:41 PM     #3 (permalink)
Member
 
meanguy21's Avatar
 
Join Date: Jan 2002
Posts: 255
#! /bin/sh
#
# halt Execute the halt command.
#
# Version: @(#)halt 2.84-2 07-Jan-2002 miquels@cistron.nl
#

PATH=/sbin:/bin:/usr/sbin:/usr/bin

# See if we need to cut the power.
if [ -x /etc/init.d/ups-monitor ]
then
/etc/init.d/ups-monitor poweroff
fi

# Don't shut down drives if we're using RAID.
hddown="-h"
if grep -qs '^md.*active' /proc/mdstat
then
hddown=""
fi

halt -d -f -i -p $hddown
: exit 0

well, thats my halt script .... if i'm not mistaken it's already there.. right?
thanx! =)
meanguy21 is offline   Reply With Quote
Old February 2nd, 2002, 10:35 PM     #4 (permalink)
Ultimate Member
 
pbharris's Avatar
 
Join Date: Oct 2001
Location: Chicago, IL
Posts: 2,514
Send a message via ICQ to pbharris Send a message via AIM to pbharris Send a message via Yahoo to pbharris
hi menaguy - i assume you are compiling your won kernel and you have attempted to put in APM (power managemnt stuff).

Here are the options you need in to compile in:

Code:
#
# General setup
#
CONFIG_NET=y
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_NAMES=y
# CONFIG_EISA is not set
# CONFIG_MCA is not set
CONFIG_HOTPLUG=y

#
# PCMCIA/CardBus support
#
# CONFIG_PCMCIA is not set
CONFIG_SYSVIPC=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_SYSCTL=y
CONFIG_KCORE_ELF=y
# CONFIG_KCORE_AOUT is not set
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=y
CONFIG_PM=y
# CONFIG_ACPI is not set
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
CONFIG_APM_DO_ENABLE=y
CONFIG_APM_CPU_IDLE=y
# CONFIG_APM_DISPLAY_BLANK is not set
CONFIG_APM_RTC_IS_GMT=y
CONFIG_APM_ALLOW_INTS=y
# CONFIG_APM_REAL_MODE_POWER_OFF is not set
if you need anymore help let us know

niceguy2
__________________
Odds are very good there are several spelling mistakes in this post.
pbharris is offline   Reply With Quote
Old February 2nd, 2002, 10:59 PM     #5 (permalink)
Member
 
meanguy21's Avatar
 
Join Date: Jan 2002
Posts: 255
thanx i'll try that, but where is the kernel config file?. ..
usually i use make xconfig over here, but i read the options, and i change my settings and made them like yours
.......
btw, do u know how to set the hardware clock? since it's the one which usually appearns in the clock display?... is it a problem to change it from gmt to local time?

heh! i know u're a nice guy ... lol i bet u are :P~
meanguy21 is offline   Reply With Quote
Old February 2nd, 2002, 11:25 PM     #6 (permalink)
Member
 
meanguy21's Avatar
 
Join Date: Jan 2002
Posts: 255
back, i tried it , and it didn't work,
some ppl said the same about it....
like power off stopped when they upgraded to 2.4.14 + kernels ,.....
meanguy21 is offline   Reply With Quote
Old February 2nd, 2002, 11:34 PM     #7 (permalink)
Ultimate Member
 
pbharris's Avatar
 
Join Date: Oct 2001
Location: Chicago, IL
Posts: 2,514
Send a message via ICQ to pbharris Send a message via AIM to pbharris Send a message via Yahoo to pbharris
Hello,
the kernel config file is generated when you od teh make xconfig - you have the option to save configuration to file - this is the file you can edit and then load configuration from file or under General setup have it look like this pic attached.

for the clock i go into the bios and set it to GMT then in linux i use timetool or timeconfig to apply my offset (in Chicago that is 6 hours i think...)

hth
Attached Thumbnails
problems-when-shutdown-linux-kernel_config_apm.jpg  
pbharris is offline   Reply With Quote
Old February 2nd, 2002, 11:53 PM     #8 (permalink)
Member
 
meanguy21's Avatar
 
Join Date: Jan 2002
Posts: 255
hey budd, thanx! ... well thats what i did =) i saved the options, and got it compiled. gone all the way, rebooted, and tried the shutdown command, except i have the apm enabled as module ... then i loaded the module is modconfig ...... cuz it doesn't work when i tried checking Y for the apm to be a part of the kernel, thats when i checked the kernel's log, u can ask me to show u some logs if thats gonna help..
heheh about the time, i think i'll try that later ...
.... lets say i want it to show me the time which is 7 am... "man i should stop staying up before college starts again"
....... thats why no one knows whats wrong .. i even downloaded a new kernel, i tried the one in debian source and the one in kernel.org
..
suppose its my hardware? but if so, it wouldn't be working in 2.4.12 ;/
meanguy21 is offline   Reply With Quote
Old February 3rd, 2002, 01:00 AM     #9 (permalink)
Ultimate Member
 
pbharris's Avatar
 
Join Date: Oct 2001
Location: Chicago, IL
Posts: 2,514
Send a message via ICQ to pbharris Send a message via AIM to pbharris Send a message via Yahoo to pbharris
i doubt there is any hardware problem.
it is giving the wrng time - you don't need to have it set to hardware time.
pbharris is offline   Reply With Quote
Old February 3rd, 2002, 01:14 AM     #10 (permalink)
Member
 
meanguy21's Avatar
 
Join Date: Jan 2002
Posts: 255
"nods" ..... so what u think? .... about the time also? what do u think i should do? i used ntpdate to snyc my time with any other server in my area, didn't work ;/
meanguy21 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2829)
Why is Khalid Sheikh Mohammed even .. (7)
Is the PSU I received dead? (10)
Install XP pro and a Vista laptop ?.. (8)
HIS HD5770 graphic card question (15)
A good PSU? (10)
Foreign voltage (7)
Print spooler problem (9)
New Computer wont recognize XP disc (7)
Dept. of HS: NSA 'Helped' Develop V.. (12)
Ideal cheap graph card for PC-Gamin.. (15)
EVGA 9800 gtx help with finding a g.. (7)
Modern Warfare 2: Who Bought It? (60)
Mysterious Boot manager (9)
Recent Discussions
Problem with speed step/turbo boost? (0)
SIS 740 and Widescreen (8)
Baffling Problem with my CPU/MoBo's. .. (0)
Display shows 3x5 inch in middle of s.. (0)
Print spooler problem (9)
windows vista security holes (3)
HIS HD5770 graphic card question (15)
Best file format to play on Windows H.. (0)
PSP Go bought in Japan (0)
Foreign voltage (7)
Asus P4G8X Mobo (3)
World's largest Monopoly Game using G.. (329)
EVGA 9800 gtx help with finding a goo.. (7)
Need hard disk drivers (4)
windows 7 internet problem (4)
What OS for a home server? (other tha.. (1)
Boot Problem? (0)
Logitech G9 laser gaming mouse $59.95.. (2)
$5 off any item with the purchase of .. (1)
Ideal cheap graph card for PC-Gaming? (15)
Install XP pro and a Vista laptop ?? (8)
Cloning old drive to new drive (6)
Amptron monitor G17FP-Black (0)
A good PSU? (10)
Is the PSU I received dead? (10)


All times are GMT -4. The time now is 12:36 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28