General TC > Tiny Core Netbooks

SOLVED: Standby/resume on Eee 900

(1/3) > >>

OldAdamUser2:
SEE Feb 1 POST BELOW FOR IMPROVED SCRIPT:
I've discovered that this script works well for standby/resume on the Asus Eee 900. It may not provide the same amount of power savings as suspend, but it works and it's better than nothing.

Suggestions for improvement are welcome. I'd like, if possible to add an icon on the taskbar to initiate standby instead of having to open a root terminal and enter the command for the script. How would it do that?
__________________________________________________________________________________________
#!/bin/sh

# This standby script was adapted for Tiny Core 2.3 on an Asus 900 by OldAdamUser2.
# Run the script from a root shell.

# write all unwritten data (just in case)
sync

# suspend
echo standby > /sys/power/state

# Reconnect to wifi.
iwconfig wlan0 essid any

# Push power button to restore.

fratermus:

--- Quote from: OldAdamUser2 on November 28, 2009, 10:58:15 AM ---I've discovered that this script works well for standby/resume on the Asus Eee 900. It may not provide the same amount of power savings as suspend, but it works and it's better than nothing.

--- End quote ---

Just tried it on my 900 and seems to work fine.  No corruption, confusion, etc.  I wonder how much drain (over the normal unacceptable amounts of 900 powered-off drain) occurs. 


--- Quote from: OldAdamUser2 on November 28, 2009, 10:58:15 AM ---I'd like, if possible to add an icon on the taskbar to initiate standby instead of having to open a root terminal and enter the command for the script. How would it do that?

--- End quote ---

Adding stuff on the wbar appears to be non-trivial in my brief reading.  I think one has to basically make your own extension. 

But one can easily make an entry on the menu.  Check out the entries in ~/.wmx .  I made a file called MyLauncher that calls other scripts that do stuff on my Eee:


--- Code: ---#!/bin/sh
exec aterm -e sudo {path/to/my/multipurpose-script}
--- End code ---

It appears in the menu and works as intended. 

Backing up the ~/.wmx dir itself has unwanted consequences leading to duplicate menu entries so home/tc/.wmx is in .xfiletool.list.  I tried to adding home/tc/.wmx/MyLauncher  in /opt/.filetool.list to counteract the blanket exclusion of the dir .wmx but it wasn't backed up.

As a quick/dirty solution I put the MyLauncher file in /opt, added that file to .filetool.list, and use rc.bootlocal to copy it into my ~/.wmx dir at boot time.    That works but there has to be a more elegant solution that I am too newb to see.



--- Quote from: OldAdamUser2 on November 28, 2009, 10:58:15 AM ---# suspend
echo standby > /sys/power/state

# Reconnect to wifi.
iwconfig wlan0 essid any

--- End quote ---

This part confused me until I realized the script stops running immediately after the standby line and resumes there after button press and continues with the wifi line.

jur:
I tried it but it didn't recover gracefully - the mouse basically didn't work - well it did but extremely sluggish. The screen settled to a flashing cursor.

I am using the suspend extension with complete success. But it's not a tcz, so I had to manually guess it's address for downloading, also get all the deps, and then made a package from the whole lot.

OldAdamUser2:
I seem to remember trying suspend2ram as a tce extension, but could not get it to work on my 900. What's the secret?

jur:
Once I packaged all the deps along with suspend.tce into a tczl, it worked as is, according to the instructions in the info file. Unfortunately it is over 800k big. 3 of the 4 library deps were not used with other stuff so these bloated the extension.  :(

Navigation

[0] Message Index

[#] Next page

Go to full version