You are not logged in.

#1 2008-08-31 03:08:52

ioky
Member
Registered: 2008-06-19
Posts: 93

Pm-utils do both suspend and hibernate, But can't resume from both

I just did a clean installation on my Toshiba Portege M100 Laptop, Everything is working perfectly except resume from suspend and hibernate. I have try everything I can possibly think of, but nothing seem helping. The Log didn't tell me anything.

Whenever I resume from suspend, the system freeze, right after a blink at the top left corner. And when I resume from hibernate, the system load everything back to Ram which take about 10sec, and freeze right after.

this not just happen to pm-utils, but also s2disk. I am pretty such that is the config/software's problem, because I installed xubuntu on this laptop before, and suspend/hibernate work out of the box.

Did anyone know what cause this problem, and how to fix it?

Thanks

Last edited by ioky (2008-08-31 03:12:18)

Offline

#2 2008-08-31 09:18:10

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: Pm-utils do both suspend and hibernate, But can't resume from both

Hi ioky,

I had similar problem.

For hibernation:

Be sure to pass to grub your swap partition. When your system starts the hibernation your session must be saved somewhere and this place is swap. Your swap partition should be big enough, same amount or more than your ram size would be better.

Example, in my case is resume=/dev/sda4 :

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/9adf5120-9cce-4c3e-b3da-fb0b408fb760 ro vga=792 resume=/dev/sda4 elevator=deadline
initrd /boot/kernel26.img

For both suspension/hibernation:

Check your hardware and modules, maybe, during suspension/hibernation,  you have to unload some modules and loading them again when you resume your session.

This has to be done from /etc/pm/sleep.d/ scripts.

Example, in my case, i have a script called 66dummy that loads/unloads acpi-cpufreq:

arael[~]$cat /etc/pm/sleep.d/66dummy 
#!/bin/bash
case $1 in
    suspend)
        rmmod -f acpi_cpufreq
                /etc/rc.d/mpd stop
        ;;
    hibernate)
        rmmod -f acpi_cpufreq
                /etc/rc.d/mpd stop
        ;;
    resume)
        modprobe acpi_cpufreq
                hdparm -B 224 /dev/sda >> /dev/null
                /etc/rc.d/mpd start
        ;;
    *)  echo "somebody is calling me totally wrong."
        ;;
esac

arael[~]$

So just search on google for your hardware and find which modules to load/unload.

Last edited by ArchArael (2008-08-31 09:29:50)

Offline

#3 2008-08-31 23:02:34

ioky
Member
Registered: 2008-06-19
Posts: 93

Re: Pm-utils do both suspend and hibernate, But can't resume from both

I know my hardware pretty well, I just don't know which need to be unload/load, and why. It is kind of hard to found any information about how linux work under this laptop too. I also try all the quirk, non of them seem working. I really want the ubuntu people tell me how they do their suspend/hibernate because xubuntu able to do both and resume perfectly on this laptop. But they didn't tell me. Although I know it most likely wouldn't work directly under arch, but it would give me some idea what might go wrong. Now, I really have no idea what goes wrong. haha.

Last edited by ioky (2008-08-31 23:06:08)

Offline

#4 2008-08-31 23:12:19

SiC
Member
From: Liverpool, England
Registered: 2008-01-10
Posts: 430

Re: Pm-utils do both suspend and hibernate, But can't resume from both

Which graphics card are you using?  I found that mine (Radeon 2400) used to have problems suspending and resuming if I was in X11... This was solved by a combination of catalyst and kernel upgrades.

Offline

#5 2008-08-31 23:34:49

ioky
Member
Registered: 2008-06-19
Posts: 93

Re: Pm-utils do both suspend and hibernate, But can't resume from both

Intel 885GM which work great with the driver it come with arch

Offline

#6 2008-09-01 02:54:51

ioky
Member
Registered: 2008-06-19
Posts: 93

Re: Pm-utils do both suspend and hibernate, But can't resume from both

I have a Question, is there any thing you can do to check what have the system done in the resume process. I mean my biggest problem right now is I have no idea what is the problem really is. Therefore, I don't know what to fix. haha

Thanks all the help so far.

Offline

#7 2008-09-03 23:21:27

ioky
Member
Registered: 2008-06-19
Posts: 93

Re: Pm-utils do both suspend and hibernate, But can't resume from both

Just some update of my problems here.

I tried suspend from just a console. (no WM is used) and it seem working with" pm-suspend --quirk-vbemode-restore ". However, the quirk doesn't work when xfce is used, and with hibernate. If anyone have a similar problem or you know what cause this, can you please let me know?

Thanks

Offline

#8 2008-09-04 01:04:56

wizzard
Member
From: PA, US
Registered: 2006-10-17
Posts: 33

Re: Pm-utils do both suspend and hibernate, But can't resume from both

as far as where to look, check out /var/log/pm-suspend.log (not 100% sure on file name)

Rob

Offline

#9 2008-09-04 05:34:54

ioky
Member
Registered: 2008-06-19
Posts: 93

Re: Pm-utils do both suspend and hibernate, But can't resume from both

wizzard wrote:

as far as where to look, check out /var/log/pm-suspend.log (not 100% sure on file name)

Rob

This file only tell what is going on about the suspend, and it doesn't have any info about resume. Do you know any where I can take a look on the log about resume?

Thank you

Offline

#10 2008-09-04 08:23:25

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: Pm-utils do both suspend and hibernate, But can't resume from both

Yes others are reporting similar problems. Just in the past day there was also http://bbs.archlinux.org/viewtopic.php?id=54664.

Offline

#11 2008-09-04 17:45:48

wizzard
Member
From: PA, US
Registered: 2006-10-17
Posts: 33

Re: Pm-utils do both suspend and hibernate, But can't resume from both

pm-suspend.log should have info about the resume process. your computer must be freezing before the resume hooks are ran (or maybe the hooks run, but computer freezes before the log gets sync'd to disk)

I am seeing the same thing that you are: I suspend OK, but upon resume the computer locks, and there's nothing in pm-suspend.log about the resume process. I tried it in Ubuntu, and it would resume back to X before locking (probably a different problem, fglrx tongue) and there was stuff about resume in pm-suspend.log

it's funny because I remember resume working just fine both in Arch and Ubuntu a month or two ago...

Rob

Offline

#12 2008-09-04 22:28:44

ioky
Member
Registered: 2008-06-19
Posts: 93

Re: Pm-utils do both suspend and hibernate, But can't resume from both

I see ah, that is odd.

the thing that really bothers me is that it work with xubuntu, but not Arch, that means it is possible to work, but I just don't know how to get there. haha.

Offline

#13 2008-09-13 18:00:54

ioky
Member
Registered: 2008-06-19
Posts: 93

Re: Pm-utils do both suspend and hibernate, But can't resume from both

the new Pm-utils 1.2 just released, don't know how much it would help in my case, but it problem would be solve. hehe. Hope the Arch term put it in the repo soon.

Offline

Board footer

Powered by FluxBB