You are not logged in.

#1 2008-05-12 04:24:08

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

[Partially solved]resume problem

I have a ibmt40, I followed the Wiki for pm-utils, and suspend/hiberation works, only a problem here: after resume the HAL things will automatically mount my usb harddisk again, so I have two removable disk icons on the desktop. I don't have such problem with Fedora 9, so is there anything I should take care of ? Thanks.P

Last edited by ganlu (2008-05-12 06:18:34)

Offline

#2 2008-05-12 06:17:33

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

Re: [Partially solved]resume problem

I ugly solved the problem. I write a "66-umount-removable-media" (whatever you name it) with:

#!/bin/bash
case $1 in
    hibernate)
        umount /media/*
        ;;
    suspend)
        umount /media/*
        ;;
#    thaw)
#        ;;
#    resume)
#        ;;
#        ;;
esac

, chmod +x to make it executive, put it into /etc/pm/sleep.d/, then it works. However I do want to know if there is a better way?

Offline

#3 2008-05-12 06:23:58

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,399
Website

Re: [Partially solved]resume problem

There is a quirks flag that can be passed to pm-utils.  There may be a quirk you can pass that will do this for you.  I think a complete list is on, or linked to from, the pm-utils web site.

Offline

#4 2008-05-12 08:19:48

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

Re: [Partially solved]resume problem

[ganlu@Archlinux ~]$ sudo sh Desktop/quirk-checker.sh
Checking your system...

CRITICAL ERROR: No supported distro

Still searching for a quirk. We here feel real possible aftershocks of one earthquake, so get out for a while.

Offline

#5 2008-05-12 11:14:33

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

Re: [Partially solved]resume problem

It seems the quirks have beening enable, may some where else in Arch.

[ganlu@Archlinux ~]$ sudo lshal | grep system.hardware
  system.hardware.primary_video.product = 19543  (0x4c57)  (int)
  system.hardware.primary_video.vendor = 4098  (0x1002)  (int)
  system.hardware.product = '2374JU1'  (string)
  system.hardware.serial = '99BYZP5'  (string)
  system.hardware.uuid = '8F44B401-4655-11CB-8AA1-85AE97580D0E'  (string)
  system.hardware.vendor = 'IBM'  (string)
  system.hardware.version = 'ThinkPad T40'  (string)
[ganlu@Archlinux ~]$ sudo lshal | grep quirk
  power_management.quirk.s3_bios = true  (bool)
  power_management.quirk.s3_mode = true  (bool)
[ganlu@Archlinux ~]$

Offline

#6 2008-05-12 15:04:00

kjon
Member
From: Temuco, Chile
Registered: 2008-04-16
Posts: 398

Re: [Partially solved]resume problem

I got a S.Q --- Superquestion.

I have seen that problem with the goddamned nautilus automount daemon. I would recommend *disabling* any trace of automounting and then, try again. But remember that gnome 2.22 has 2 sets of automounting options (sort of redundance IMHO). Check at Nautilus Preferences -> Media, and System -> Preferences -> Removable Drives & Media.

I hope it works for you.

P.S. Your "nap screept" looks too boring for me, have a look at this one smile

kjon ~  $  cat /etc/pm/sleep.d/00tuto.sh 
#! /bin/bash
#echo $1 >> /tmp/pm-evento
case $1 in
    sleep)
    sync && sync && sync
    chvt 1
    vbetool vbemode save > /tmp/vbemode
    vbetool vbestate save > /tmp/vbestate
    vbetool dpms off
    ;;
    resume)
    vbetool post
    vbetool vbemode restore < /tmp/vbemode
    vbetool vbestate restore < /tmp/vbestate
    vbetool dpms on
    chvt 7
    ;;
    hibernate)
    sync && sync && sync
    chvt 1
        echo 3  > /proc/sys/vm/drop_caches
    ;;
    thaw)
    chvt 7
    ;;
esac

They say that if you play a Win cd backward you hear satanic messages. That's nothing! 'cause if you play it forwards, it installs windows.

Offline

#7 2008-05-13 05:52:30

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

Re: [Partially solved]resume problem

I would recommend *disabling* any trace of automounting and then, try again. But remember that gnome 2.22 has 2 sets of automounting options (sort of redundance IMHO). Check at Nautilus Preferences -> Media, and System -> Preferences -> Removable Drives & Media.

I uninstalled gnome-volume-manager, and click out the option "browse media..." , still not work. My problem looks like nautilus doesn't umount media clearly instead of automounting media twice (for example there are two 250G media icons, but one 'orginally' mounted as /media/disk is empty).

Your "nap screept" looks too boring for me,

That's why I call it ugly, haha.

Last edited by ganlu (2008-05-13 05:53:39)

Offline

#8 2008-05-18 14:58:35

kjon
Member
From: Temuco, Chile
Registered: 2008-04-16
Posts: 398

Re: [Partially solved]resume problem

After a long struggle with your problem the solution looks quite simple.

Remember my ultra-cool-but-a-little-bit-long-screept-for-sleepin'-and-wakin'-up?

just add "udevtrigger" at the "resume" section and problem solved tongue

See ya.


They say that if you play a Win cd backward you hear satanic messages. That's nothing! 'cause if you play it forwards, it installs windows.

Offline

Board footer

Powered by FluxBB