http://bugzilla.kernel.org/show_bug.cgi?id=9518

           Summary: Regression from 2.6.21: Can not use echo -n
                    "5">/proc/acpi/sleep
           Product: ACPI
           Version: 2.5
     KernelVersion: 2.6.24-rc4
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Power-Off
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


Most recent kernel where this bug did not occur:2.6.21
Distribution:xandros, debian
Hardware Environment:Asus EeePC, Asus EP20
Software Environment:
Problem Description:We had originally some problems using a regular "C"
reboot(poweroff) call from our init C prog, however writing 5 to
/proc/acpi/sleep worked OK.
It was broken in 2.6.22, and still is in 2.6.24-rc4

Steps to reproduce:
echo -n "5">/proc/acpi/sleep
will fail with ENODEV, because in (2.6.24)

kernel/power/main.c/valid_state(4)/suspend_ops->valid(state) 

returns NULL

Call chain:

valid_state() is called from drivers/acpi/sleep/proc.c/acpi_system_write()
which calls drivers/acpi/sleep/main.c/acpi_suspend(5)
which calls kernel/power/main.c/pm_suspend(4)
which calls kernel/power/main.c/enter_state(4)
which calls kernel/power/main.c/valid_state(4)


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to