Bug 2253

Summary: reboot instead of ATX poweroff
Product: ACPI Reporter: SGh (sgh)
Component: Power-OffAssignee: Len Brown (lenb)
Status: CLOSED PATCH_ALREADY_AVAILABLE    
Severity: normal    
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.3, 2.6.4, 2.6.5, 2.6.6, 2.6.7, 2.6.8.1 Subsystem:
Regression: --- Bisected commit-id:

Description SGh 2004-03-04 22:25:54 UTC
Distribution: Mandrake 9.2
Hardware Environment:
00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 03)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 06)
00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
00:0b.0 Multimedia audio controller: Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev b2)
MB Soltek SL75KAV, CPU AMD Athlon K7
 
Problem Description:
If I compile the kernel with ACPI support then when I try to shutdown computer,
it wrote "acpi_power_off called" and reboot instead of power down.
with APM all works fine. 

Steps to reproduce: halt, poweroff, shutdown -p now
Comment 1 SGh 2004-09-02 22:58:03 UTC
It seems like I find a solution, byt I can't implement it...
in file drivers/acpi/sleep/poweroff.c
I add line

#include </usr/src/linux/arch/i386/kernel/apm.c>

and in function acpi_power_off I comment all lines and replace it with 

apm_power_off

Now when I try to power off, it wrote 

acpi_power_off_called
GENERAL PROTECTION FAILURE (or something like).... (and many lines)

I think that for use APM to power off I must uninit ACPI first and init APM,
When I try to add 

apm_init
apm_pwer_off

to acpi_power_off function then it says That "32bit BIOS access not supported" (or something like) and PROTECTION FAILURE again
Anybody know how can I do it???
Comment 2 Alexey Starikovskiy 2004-10-20 02:37:26 UTC
Could you please check if the problem still exists in a recent kernel (2.6.9)?
If it does, could you please attach dmesg output and /proc/acpi/dsdt and
/proc/acpi/fadt?
Comment 3 SGh 2004-10-20 23:34:06 UTC
Thank you, guys!!! In 2.6.9 Seems like it work fine, it power off my computer properly! THANKS! :)