problems when shutdown in linux  | | |
February 2nd, 2002, 08:41 PM
|
#1 (permalink)
| | Member
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  |
| |
February 2nd, 2002, 09:19 PM
|
#2 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Lat:36.5N, Lon:95.5W
Posts: 1,274
|
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??
|
| |
February 2nd, 2002, 09:41 PM
|
#3 (permalink)
| | Member
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! =) |
| |
February 2nd, 2002, 10:35 PM
|
#4 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Chicago, IL
Posts: 2,514
|
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.
|
| |
February 2nd, 2002, 10:59 PM
|
#5 (permalink)
| | Member
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~ |
| |
February 2nd, 2002, 11:25 PM
|
#6 (permalink)
| | Member
Join Date: Jan 2002
Posts: 255
| |
| |
February 2nd, 2002, 11:34 PM
|
#7 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Chicago, IL
Posts: 2,514
|
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 |
| |
February 2nd, 2002, 11:53 PM
|
#8 (permalink)
| | Member
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 ;/ |
| |
February 3rd, 2002, 01:00 AM
|
#9 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Chicago, IL
Posts: 2,514
|
i doubt there is any hardware problem.
it is giving the wrng time - you don't need to have it set to hardware time. |
| |
February 3rd, 2002, 01:14 AM
|
#10 (permalink)
| | Member
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 ;/ |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |