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?
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
......
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.
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
I guess you already tried
I guess you already tried 'shutdown -h now' as root.
Yes, I've tried. Regards
Yes, I've tried.
Regards
modules
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,
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
Try acpi=force as argument on boot.
HTH
ACPI is enabled by default.
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...
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
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
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
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)