anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#1
If you use hibernate and /or suspend (and know that your laptop allows it) could you try it in antiX (version is unimportant).

Here is what you do, as root in a terminal (Make a backup of /usr/local/bin/exitantix.sh)

Code: Select all

cd /usr/local/bin && wget -Nc  http://www.mepisimo.com/antix/test-suspend/antixsuspend.sh && chmod +x antixsuspend.sh

cd /usr/local/bin && wget -Nc  http://www.mepisimo.com/antix/test-suspend/antixhibernate.sh && chmod +x antixhibernate.sh

cd /usr/local/bin && wget -Nc  http://www.mepisimo.com/antix/test-suspend/exitantix.sh && chmod +x exitantix.sh
Now in exit, you can see hibernate and suspend options.

Thanks.
Last edited by anticapitalista on 13 Dec 2008, 19:42, edited 1 time in total.
Reason: typo error spotted by pedro ;)
Posts: 903
plvera
Joined: 11 Oct 2008
#2
Hello:

I tried this on my Dell Inspiron 1721. Hibernate did not work at all, the exit box just disappeared after I clicked on hibernate and nothing happened.

Suspend did work, but when I brought the system back the screen dimentions and the colors were messed up. I couldn't read anytext and everything was blurry. I went alt-cont-f1 and then alt-cont-f7 and that seemed to fix the problem with X windows. I tried both hibernate and suspend twice with the same result each time.

There was a small typo in the previous msg. The original file is in:
/usr/local/bin/exitantix.sh

Pedro
Posts: 903
plvera
Joined: 11 Oct 2008
#3
Hrm...

noticed two odd things with suspend.

It kicks me off wicd, so I have to go back into control center and reconnect.

Also, as I said, the screen is messed up when I bring it back, but I noticed that alt-cont-f1 was giving the following error which kept repeating:

mmc0: Timeout waiting for hardware interrupt
mmc0: Get command interrupt 0x00030000 even though no command appears in progress

I dont know what that means, but I can bring x back with alt-cont-f7, although wicd is messed up.

Pedro
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#4
Thanks for the feedback pedro.
Could you try the suspend option in msystem.
ControlCentre->System-Configure System

Thanks
Posts: 903
plvera
Joined: 11 Oct 2008
#5
I checked the suspend when lid is closed option in msystem. It still worked. However, wicd was still hosed and the x windows came back all messed up so I had to alt-cont-f1 and then alt-cont-f7 to get them back. Then reconnect with wicd

Pedro
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#6
Thanks again.

So it is basically the same.
Posts: 609
dark-D
Joined: 02 Jun 2008
#7
ok tried it on a ibm thinkpad r61i and:
-suspend: works in close lid option in control center. works in exit antix and if close the lid when in suspend and open it it comes back from suspend (with the close lid option disabled) i like that.
-hibernate: first time i tried it it saved an image of the system from what i read on the screen and then restarted. i had to boot antix normaly and i didn't see something to tell me if i come back from hibernate. and now if i try it dosen't do anything and i get this error when i run the script in terminal:
./antixhibernate.sh
method return sender=:1.3 -> dest=:1.117 reply_serial=2
int32 0

edit: it tells me that i have no swap in conky and in gparted my swap is listed as unknown. i'll format it and see what happens if i try hibernate again.
edit2: after i formated the swap i tried hibernate again. and it makes a snapshot again and reboots. when i login i have no swap. it's unknow. my swap is 509MB.

and another thing i had when i got the scripts from the net it downloaded them and but the exitantix.sh didn't worked. i deleted it and runed the command again.

HTH
Posts: 516
oldhoghead
Site Admin
Joined: 01 Oct 2007
#8
anticapitalista,

just tried the suspend and hibernate on my laptop Dell Inspiron 700M worked perfect, first time since I started using Linux that both work!!! Great job. btw, this is on antiX-M7.7-test2 using smxi to the 2.6.27-6.slh.5-sidux-686 kernel.

cheers
oldhoghead
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#9
ICE-M, thanks for the feedback.
I know very little about suspend/hibernate and started this thread to get feedback hopefully from users who know more. I'm thinking of including the options in the final, but only if it it worth it. I mean if it causes more trouble than it solves, it won't be included, but the scripts can be made available.

oldhoghead, I'm very pleased to hear it works for you. If you still have the original MEPIS kernel or any others, could you see if it still works?
I'd appreciate it.
Posts: 609
dark-D
Joined: 02 Jun 2008
#10
hope they will work for everybody. i like the options and i'll keep them no matter of the result. from what i had seen on my laptop tries to hibernate but restarts so i'll do some searching to find out the cause. also i'll try to hibernate by another option to be sure that it works or gives the same thing(restart and swap not seen), for that i'll look in the thinkpad forum. because i don't have the fn keys enabled the suspend option in antix is a bless.

edit: i had look on some forums and all said that there is something from the kernel or some setting i'll look around maybe i'll find the problem. on ubuntu they said that this is fixed in the latest version i wander what they did. so i guess the hibernate script works as well.
Posts: 1,081
OU812
Joined: 29 Sep 2007
#11
Hibernate works on my Toshiba laptop, but not suspend. I forgot what the error message was so I'll need to try it again and post back here with the results.

From what I've read in the ubuntu forums, there are a couple of hacks out there that may be needed for some laptops to use these options. I'm just not sure if we want to go in that direction or not. Consider this: will fixing the problem for one laptop break another?

john
Posts: 516
oldhoghead
Site Admin
Joined: 01 Oct 2007
#12
anticapitalista,

I do not have any Mepis kernels, but have tested these and they all work both suspend and hibernate:

kernel 2.6.27-6.slh.5-sidux-686
kernel 2.6.27-4.slh.2-sidux-686
kernel 2.6.27-2.slh.3-sidux-686

cheers
oldhoghead
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#13
OU812 wrote:Hibernate works on my Toshiba laptop, but not suspend. I forgot what the error message was so I'll need to try it again and post back here with the results.

From what I've read in the ubuntu forums, there are a couple of hacks out there that may be needed for some laptops to use these options. I'm just not sure if we want to go in that direction or not. Consider this: will fixing the problem for one laptop break another?

john
John there are some toshiba specific tools, search synaptic for"toshiba".