1stly I'd like to say thanks to the open source community and I'm lovn' Puppy so far. I'm running Macpup 5.2.8 on a Pendo netbook (d425 atom, Ralink 3090 wireless network card and an Intel n10 integrated graphics controller) and it runs really well however the suspend to ram, intermittently, does not wake properly.

About 1 out of every 4 times that I put it to sleep the screen does not turn back on nor does the WLAN card. Being a netbook with a small battery a working sleep function is fairly important to me and any help with this would be much appreciated

To suspend I use acpitool-s. To get it to suspend automatically I have to install acipd and acipd support and then in setting/screensaver I set the time and suspend on blank. I can't get the sleep button or lid to make it suspend either which would be good if you could help me with this as well. I tried setting the hardware switches with no success

I'm also new to the world of open source so you'll have to talk to me like I'm a child

Thanks bigpup for getting back to me so quickly. The laptop.pet has helped out a lot. The lid closing and sleep button know work but it still doesn't recover from sleep properly with a blank screen and the wireless card does not come on either. The only sign of life is the led and the cpu fan.

Thanks karl godt. sorry for the late reply. I selected to be notified by email from this forum but obviously It didn't. Will give what you said a try and get back to you. I probably wont be able to do this till after Easter though

Further information since my last post:

I have read that acpitool has issues with CPU scaling and I have noticed it crashes more often when switching between ac and battery, so I have been modifying the scripts from the pet big pup suggested and things have been getting better but I'm afraid I don't really know what I'm doing. ATM the computer typically sleeps and resumes as long as I don't unplug or replug the AC

If it is just screen backlight which does not work...you could edit /etc/acpi/sleep.sh script by addint vbetool commands there....
You will need vbetool package for it. Probably in lucid repo.
[url]And see this post....
http://www.murga-linux.com/puppy/viewtopic.php?p=615669#615669[/url]

And the subsequent posts...
It might work or not..and there was the simpler command after that post also....Last edited by pemasu on Mon 02 Apr 2012, 08:22; edited 1 time in total

Thankyou Permusa but I'm sorry to say it did not work. After suspending with the modified sleep and then waking it would go back to sleep again. The second time it would wake but still had the intermittent crashes. I don't think it is a screen back-light but rather a system crash on resume.

I've had a little success modifying some of the acpi scripts but I'm afraid I don't know what I'm doing. Will post some more details about these mods and maybe they might help you pinpoint my problem

karl godt
Looked up the xorg.config and found that the driver is Intel driver and that it is the only one mentioned in then file. I will try the network stuff later. I have some assignments due and not enough time to do them

sorry Karl godT, I must not have explained myself properly. The battery does not get any where near flat I was just meaning that the phenomenon ocours more often if I switch between running the computer on AC to running it on battery power alone and vise versa. For instance the netbook is running on battery power alone and then I plug in the AC and after a while I put my netbook to sleep, it is much more likely to crash.

Okay, Ive finally realised that it is not going to be easy to fix this. I have done everything in this post so far with no success.

This is a summary of what I have done. The results, however, must be taken with a grain of salt as the crashes seem to be completely random and therefore I will just state a range which the crashes occurred between

Installed xorghigh --> no change
Upgraded xdrivers --> no change
Turned of wifi and blacklisted rt2860sta and uninstalled wpa_gui --> no change (to check if it was the wifi causing the issue)

I also started running sleep.sh in the terminal and on this line [ $$ != $PID ] && exit I was getting the following errors unitl I hashed it:
[:8541 unary operator expected
(the number would vary each time ranging from 8486-9764)
on this line[ $$ != $PID ] && exit

I also inserted echos in the lines of sleep.sh to see exactly where the script stopped. On a succesful resume it would echo the last one however on a crash it would echo to the point before "acpitool -s". I'm guessing that this means it is a crash because it didn't even run the if statement to detect the ac.

If there is a better way to log this phenomenon (so that I can help you help me) can you instruct me how. I have read something about dmesg but have no idea of how to use it.

Joined: 11 Apr 2012Posts: 10Location: Usually in the middle of some ocean

Posted: Thu 12 Apr 2012, 08:09 Post subject:

I am pretty new at this, so I may be missing something obvious.

I am suspending to ram in Lucid 528 frugal hdd install without ACPItool or any other pets as far as I can see.

I simply use

echo mem > /sys/power/state

So far, everything has woken up fine everytime when I touch any key - been doing it for about a week without reboot. I have also wrote a little script which runs in the background and suspends to ram when the lid is closed:-

I am suspending to ram in Lucid 528 frugal hdd install without ACPItool or any other pets as far as I can see.

I simply use

echo mem > /sys/power/state

So far, everything has woken up fine everytime when I touch any key - been doing it for about a week without reboot. I have also wrote a little script which runs in the background and suspends to ram when the lid is closed:-

Again there is no difference with the "echo mem > /sys/power/state" still crashed the same way but your post did shed some light on what might be happening.

Quote:

So far, everything has woken up fine everytime when I touch any key

My netbook has a strange arrangement where the mouse and keyboard are disabled in S3 mode (the only indication that it is in s3 is a blinking led). To wake you have to press the power button. Maybe when trying to resume from sleep pup is having trouble restarting the keyboard, Mouse, etc. I have no idea how to go about testing or fixing this or even if its possible but maybe you guys could help

Karl Godt

Quote:

Seems that PID is not filled with something:

bash-3.00# [ $$ != $PID ] && echo "PID of program NOT same as PID variable"
bash: [: 4220: unary operator expected
bash-3.00# PID=999999999
bash-3.00# [ $$ != $PID ] && echo "PID of program NOT same as PID variable"
PID of program NOT same as PID variable

Being a noob that post was beyond my abilities at present, I have no idea of what you wanted me to do, sorry.

Thanks again and I really appreciate the lengths you guys are going to try and help me with this

I have expanded the script a bit after finding that my Lucid machine died on me halfway through a movie when the battery ran out.

The script now also checks battery condition (/proc/acpi/battery/BAT0/state) and gives 2 alarms (configurable within the script thru variables 'low' and 'lowlow'). If battery reserve drops below shutdown level (also configurable thru variable 'shutdown') then a controlled shutdown is performed. I prefer this option over 'suspend-to-ram, as an unattended laptop in suspend-to-ram will eventually lose any unsaved data when the battery completely dies.

It uses 'aplay /usr/share/audio/beep_low.wav' and '/usr/share/audio/logout.wav' to give audible notifications, so if any of these are missing from the host system then it will probably hang. It may be necessary to comment them out

The remaining battery time for the warnings is calculated based on power consumption at that particular time, so the actual gap between the warnings may vary if the power consumption is varying.

I know most of this is available in acpi-laptop-tools, but my script has a small footprint and does all I need so far. It was also a nice scripting excercise.
It is listed below in case anyone feels they can use it

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum