[ltp] G41 ACPI Suspend to RAM

D. Sen linux-thinkpad@linux-thinkpad.org
Wed, 05 Jan 2005 05:45:03 +1100


Lupine wrote:

>On Tue, 2005-01-04 at 17:28 +1100, D. Sen wrote:
>  
>
>>Lupine wrote: 
>>    
>>
>>>On Mon, 2005-01-03 at 22:52 +0100, André Wyrwa wrote:
>>>  
>>>      
>>>
>>>>Hi,
>>>>
>>>>    
>>>>        
>>>>
>>>>>Above, when you mentioned "echo -n mem > /sys/power/sleep"  did you mean
>>>>>"echo -n mem > /sys/power/state" instead?  There is no /sys/power/sleep
>>>>>only state.
>>>>>      
>>>>>          
>>>>>
>>>>Yes, sorry, of course state is what i meant.
>>>>
>>>>    
>>>>        
>>>>
>>>>>I'm guessing my next course of action is just sending all my information
>>>>>over
>>>>>to http://ibm-acpi.sourceforge.net As the G41 is not even listed as
>>>>>compatible.
>>>>>      
>>>>>          
>>>>>
>>>>I think Boris will be happy about this.
>>>>However, i doubt your troubles here are really with ibm-acpi, since from
>>>>my understanding this is only triggering the events. Since your acpid
>>>>recieves the event everything regarding this seems to be fine. Your
>>>>trouble is that the suspend doesn't work. In fact, i think your echo or
>>>>something else with the script doesn't work.
>>>>
>>>>The acpid log states that the script exits with exit code 1, which means
>>>>an error. The only call in your script is the echo line. The return code
>>>>(exit code) of the echo command is independent from what happens after
>>>>the "mem" gets written into /sys/power/state. This means that either
>>>>echo is not able to write into /sys/power/state or the execution of the
>>>>whole sleep.sh script fails.
>>>>
>>>>Please check if your /etc/acpi/actions/sleep.sh is set to executable.
>>>>And if so try launching it manually from a root console and see if you
>>>>get any output.
>>>>
>>>>André.
>>>>
>>>>    
>>>>        
>>>>
>>>Just to make sure:
>>>
>>>#ls -lah /etc/acpi/actions/sleep.sh
>>>-rwxr-xr-x  1 root root 46 2005-01-04 00:56 /etc/acpi/actions/sleep.sh
>>>
>>>#cat /sys/power/state
>>>standby mem disk
>>>
>>>#echo "mem" > /sys/power/state
>>>#cat /sys/power/state
>>>standby mem disk
>>>
>>>Is there some other kernel logging I could maybe turn on to see what is
>>>going on?
>>>
>>>-Lup
>>>
>>>
>>>  
>>>      
>>>
>>Edit /etc/acpi/actions/sleep.sh to add a single line like 
>>
>>echo "hello" > /tmp/acpi_test
>>
>>then see if /tmp/acpi_test was created. This will show if sleep.sh is
>>being called. 
>>
>>(I just spent the holidays getting a T42p to work with acpi, etc).
>>Only thing that doesnt seem to work is DRI with x.org :/ Other than
>>that the transition from my T30 seems to have worked quite well :-)
>>    
>>
>
>
>Yes, that works perfectly fine.  It creates the /tmp/acpi_test file with
>hello in it.
>
>  
>
Can you type in:

`echo 3 > /proc/acpi/sleep`

from the command line (as root)?

Does that work?