login
Header Space

 
 

the kernel how to power off the machine

October 2, 2008 - 11:10pm
Submitted by Anonymous on October 2, 2008 - 11:10pm.
Linux

My laptop can't power off (have tried halt -p, apm=power_off, etc.) , so this is a serious question for me.

I guess you already tried

October 3, 2008 - 11:03am
Anonymous (not verified)

I guess you already tried 'shutdown -h now' as root.

Yes, I've tried. Regards

October 3, 2008 - 9:52pm
Anonymous (not verified)

Yes, I've tried.

Regards

modules

October 4, 2008 - 4:53am

have you loaded the drivers for the bios fuctions namely apm or acpi? which of both do you use? how old is your notebook, i.e. was it born in acpi era? does the machine hang or print an error message instead of powering off or does it just not know how to power off? i don't know if this happens with power off, but some bioses are buggy and don't execute or advertise functions, habe you checked your bios version?

I can't found a newer bios,

October 4, 2008 - 8:51pm
Anonymous (not verified)

I can't found a newer bios, the following is come from the output of dmidecode:

# dmidecode 2.9
SMBIOS 2.3 present.
23 structures occupying 1483 bytes.
Table at 0x000E4BE0.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: INSYDE
Version: R1.04
Release Date: 10/04/2006
ROM Size: 1024 kB
Characteristics:
PCI is supported
BIOS is upgradeable
BIOS shadowing is allowed
Boot from CD is supported
Selectable boot is supported
BIOS ROM is socketed
......
System Information
Manufacturer: MTC
Product Name: MTC
Version: 1
Serial Number: 123456789
UUID: AA55AA55-AA55-AA55-55AA-55AA55AA55AA
Wake-up Type: Power Switch

Handle 0x0002, DMI type 2, 16 bytes
Base Board Information
Manufacturer: MTC
Product Name: MTC
Version: Base Board Version
Serial Number: Base Board Serial Number
Asset Tag: Base Board Asset Tag
Features:
Board is a hosting board
Board is replaceable
......

Looks like acpi isn't loading

October 6, 2008 - 7:00am

Try acpi=force as argument on boot.

HTH

ACPI is enabled by default.

October 8, 2008 - 8:22am
Anonymous (not verified)

ACPI is enabled by default. dmesg output:

BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000003fcf7000 (usable)
BIOS-e820: 000000003fcf7000 - 000000003fcff000 (reserved)
BIOS-e820: 000000003fcff000 - 000000003fdbd000 (usable)
BIOS-e820: 000000003fdbd000 - 000000003fdbf000 (reserved)
BIOS-e820: 000000003fdbf000 - 000000003fe8a000 (usable)
BIOS-e820: 000000003fe8a000 - 000000003febf000 (ACPI NVS)
BIOS-e820: 000000003febf000 - 000000003ff00000 (ACPI data)
BIOS-e820: 000000003ff00000 - 0000000040000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
.......
DMI 2.3 present.
ACPI: RSDP 000FE020, 0014 (r0 NEC )
ACPI: RSDT 3FEFE038, 0034 (r1 NEC H2O 1 1000013)
ACPI: FACP 3FEFD000, 0074 (r1 NEC H2O 1 MSFT 1000013)
ACPI: DSDT 3FEF8000, 4CDB (r1 NEC H2O 1 MSFT 1000013)
ACPI: FACS 3FE8A000, 0040
ACPI: SSDT 3FEF7000, 020A (r1 NEC H2O 1 MSFT 1000013)
ACPI: APIC 3FEF6000, 0068 (r1 NEC H2O 1 MSFT 1000013)
ACPI: MCFG 3FEF4000, 003C (r1 NEC H2O 1 MSFT 1000013)
ACPI: PM-Timer IO Port: 0x408
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
.....
Enabling APIC mode: Flat. Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
....

Regards

Hmmm, more deeper that I tought...

October 10, 2008 - 6:42am

So, I'm concerned with your problem (because I've never seen that before). Please check if you have these files:

$ locate powerbtn
/etc/acpi/powerbtn.sh
/etc/acpi/events/powerbtn

Into /etc/acpi/events/powerbtn make sure that you have at least these lines below:

event=button[ /]power
action=/etc/acpi/powerbtn.sh

(yes, it has a space between 1st bracket and slash)

Check also if the script powerbtn.sh is in its place.

Good luck

Sorry, maybe I don't

October 10, 2008 - 7:57am
Anonymous (not verified)

Sorry, maybe I don't describe the question clearly.

My power button and others such as halt shudown commands are work correctly. But finally, it shows "Power down", but not power off. I mean the screen is still on, the cpu fan is still noise, the usb devices are still powered on, it seems only the cdrom is powered off, I can't open it. I must press the power button for several seconds to power off completely.

So the problem is not about the acpi event-handler mapping. I use archlinux, and have something like this in /etc/acpi/handler.sh:

case "$1" in
button/power)
#echo "PowerButton pressed!">/dev/tty5
case "$2" in
PWRF) pm-hibernate ;;
*) logger "ACPI action undefined: $2" ;;
esac
...

and it works fine, except one thing, of course, don't power off.

Regards

OK, now things going to clear

October 10, 2008 - 9:48am

Your distro doesn't work as same as mine, so I don't know exactly how to help. But stills quite interesting to me.

http://wiki.archlinux.org/index.php/Category:Laptops_(English)

Is your laptop/notebook listed on the page above?

I've got "Rubik's Complex" long time ago -- always need to solve the puzzle. :)

init 0

October 9, 2008 - 1:51am
Anonymous (not verified)

You could try:

init 0

the other of course would be

Alt+SysReq+r to put the keyboard into 'raw' mode Alt+SysReq+s to sync the discs Alt+SysReq+e to send 'terminate' Alt+SysReq+i to send 'kill' Alt+SysReq+s to sync again (a Good Idea) Alt+SysReq+u to put filesystems into 'read only' Alt+SysReq+b to reboot or Alt+SysReq+o to switch off

(http://club.mandriva.com/xwiki/bin/view/KB/MagicSysRqKey)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary