LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   how to get mandrake 9.0 shut down the computer without pushing the power button? (https://www.linuxquestions.org/questions/mandriva-30/how-to-get-mandrake-9-0-shut-down-the-computer-without-pushing-the-power-button-110036/)

sirpelidor 10-29-2003 02:10 PM

how to get mandrake 9.0 shut down the computer without pushing the power button?
 
when shut down mandrake,
once you see: system halted [ok]
power down.

thats it!!! u gotta reach your hand to the back of the box and switch that power switch, or u gotta press the power button in front and a few sec to shut it down.

i thought it was "normal" for a while, until i installed rh9, rh9 can shut down the system by itself without having me push anything. so i realized there must be a code or something i can edit to shut down my system, without having me push that power switch.

thank you :study:

aaa 10-29-2003 02:16 PM

You'll have to enable apm or acpi, which are power management systems. For acpi, Mandrake often includes a 'acpi=off' entry in the kernel options, in the config file for the bootloader. Try removing it.

sirpelidor 11-24-2003 01:23 AM

thank you for your reply aaa.

would you mind please walk me (newbie) through how to enable acpi under console?

i tried your suggestion under GUI (using kde3 here), but it doesn't seem to be working. and i heard a lot people telling me lilo.conf under kde is kindda buggy.

thank you :)

aaa 11-24-2003 07:28 AM

Well you don't have to use KDE's configuration tool to configure lilo in KDE. Just open any editor as root: 'Go' button>'Run Command'>Type in your favorite editor>Click 'Options'>Check 'run as different user'>Enter 'root' & the password>Press Enter. Use the editor to open the /etc/lilo.conf file.

In the terminal:

user@localhost$su -
Password:
(type the password at the above prompt)

root@localhost$pico /etc/lilo.conf

(The pico editor will now show up with lilo.conf ready for editing. Use any editor you like/have, it could be something like nano or joe or vi.)
In lilo.conf, look for a set of line like this:
Code:

image=/boot/vmlinuz
label="linux"
root=/dev/hda4
initrd=/boot/initrd.img
append="quiet devfs=mount acpi=off"
vga=788
read-only

In here are a bunch of options for the kernel, most of which are in the 'append' line. Note the 'acpi=off' here. Remove this, because it stops acpi from working. If you have apm, you should use it instead of acpi. Also take a look at these threads:
http://www.linuxquestions.org/questi...=acpi+mandrake

http://www.mandrakeusers.org/index.p...t=0#entry78118

unwrittenlaw 11-25-2003 01:31 AM

ok i have mandrake 9.2 and i have this on my /etc/lilo.conf and i have the same problem after it says halted or something like it just stops and i get very lazy to press the on button i just leave like that and i also thought it was normal too but i guess is not cuz on my friends comp it works fine and i was wondering if it could also work on mandrake 9.2 and where do i have to edit things i would really appreciated thank you lates
boot=/dev/hda
map=/boot/map
default="linux"
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/hda1
initrd=/boot/initrd.img
append="devfs=mount hdc=ide-scsi acpi=ht resume=/dev/hda5"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hda1
initrd=/boot/initrd.img
append="devfs=nomount hdc=ide-scsi acpi=on resume=/dev/hda5
failsafe"
read-only
other=/dev/fd0
label="floppy"
unsafe

sirpelidor 11-25-2003 01:47 AM

after done some research, this is what i've found (hope would get any of us a bit closer to solution)

1) your motherboard must support acpi, or apm, if it doesn't, then even having apm or acpi won't help
2) either apm or acpi works, both can't work together
3) motherboard probably support either apm or acpi also. may need to search online to see what your motherboard support.
4) if support acpi, then enable acpi, and i believe acpi=power_off should help. search on google with keyword: acpi mandrake power or acpi mandrake shut
5) same goes to amp

i've been follow these few rules, and i believe my motherboard support acpi, add thing was, when i try enable acpi, i got this error msg at boot:

acpid: can't open /proc/acpi/event: No such file or directory

i download my acpid through mandrake install, and i got a feeling this is a wrong one.

i'm not sure, hopfully i'm at the right path.... but seems like acpid need to compile with kernel. so can't just install like a normal software.

if you use mdk 9.2, mostly it come with acpi, next u gotta do is to figure out what your motherboard support and go through there.

p.s: plz slap the back of my head to the correct direction to solve this problem, if my method and understanding isn't correct.

thanks

zedrob 11-25-2003 05:45 AM

Hi Unwrittenlaw
do you have an smp or ht processor?
I got the same problem with an P4 HT processor and I solved it adding into lilo.conf (append section) the string
append="apm=smp ....."
Hope this helps.
Regards

aaa 11-25-2003 11:55 AM

MDK 9.2 needs more than just removing 'acpi=off', you have to force it with 'acpi=on' or something. When acpid says there is no /proc/acpi/event, it means that mobo doesn't support acpi or it's not enabled from bios, or that the kernel doesn't have acpi and needs to be recompiled (Mandrake shouldn't need this, it probably has it in a module). If you have APM, use it, because it works better in Linux.

sirpelidor 11-25-2003 12:11 PM

even if i found out my motherboard support acpi, and my mdk only got apm, no acpi. am i still able to shut down my computer using apm??

i looked thru all my apm conf, and i have it on append="apm=on apm=power_off" under lilo.conf
doesn't look like i can shut down my box. but i can get it shut down using redhat.


All times are GMT -5. The time now is 08:26 PM.