You are not logged in.

#1 2010-07-14 16:07:29

kismet010
Member
Registered: 2009-09-02
Posts: 137

[solved] some issues with hibernation on dwm

edit: solved with hibernate-script

hi
i've configured my laptop for suspend/hibernation
all working but the dwm's bar scripts doesn't work (still the same time and date, same info for cpu, ram, temp, etc, no gmail's scripts actualized). I don't use conky, only "cat /proc.." and shell scripts.
and pidgin is at the same look that when hibernated, but doesn't enter on a chat, and messages me back.

what's the problem?

thank u

edit: for now i have that hook:

#!/bin/bash
case $1 in
    hibernate)
        echo "Hibernando el sistema..."
        ;;
    suspend)
        echo "Suspendiendo el sistema..."
        ;;
    thaw)
        echo "Volviendo de la hibernación..."
        su kismet -c 'killall pidgin && pidgin'
#for restart the program
        su kismet -c 'xsetroot -name "volviendo de la hibernación"'
#for clean the stdout
        ;;
    resume)
        echo "Volviendo de la suspensión"
        ;;
    *)  echo "somebody is calling me totally wrong."
        ;;
esac

but i'd like to know a more elegant way...

edit2: and now after the first hibernation, i can't hibernate/suspend anymore until i reboot it's getting worst.. lol

log file

Initial commandline parameters: 
mié jul 14 20:15:17 CEST 2010: Running hooks for hibernate.
Running hook /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:
Linux delorean 2.6.34-ARCH #1 SMP PREEMPT Mon Jul 5 22:12:11 CEST 2010 x86_64 Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz GenuineIntel GNU/Linux
Module                  Size  Used by
st                     36260  0 
option                 22363  0 
usbserial              32018  1 option
arc4                    1362  2 
ecb                     1993  2 
ath9k                  72310  0 
ath9k_common            2529  1 ath9k
ath9k_hw              216792  2 ath9k,ath9k_common
ath                     8790  2 ath9k,ath9k_hw
mac80211              182791  2 ath9k,ath9k_common
cfg80211              141568  4 ath9k,ath9k_common,ath,mac80211
sky2                   48192  0 
fglrx                2390882  36 
snd_hda_codec_atihdmi     2723  1 
snd_hda_codec_realtek   267667  1 
snd_hda_intel          21906  1 
snd_hda_codec          76595  3 snd_hda_codec_atihdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               6126  1 snd_hda_codec
snd_pcm_oss            39096  0 
snd_pcm                71653  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              19660  1 snd_pcm
snd_page_alloc          7201  2 snd_hda_intel,snd_pcm
snd_mixer_oss          16932  1 snd_pcm_oss
snd                    57225  10 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               6089  1 snd
iTCO_wdt               10669  0 
iTCO_vendor_support     1849  1 iTCO_wdt
sony_laptop            25703  0 
shpchp                 30059  0 
pci_hotplug            24639  1 shpchp
sdhci_pci               6874  0 
sdhci                  16083  1 sdhci_pci
mmc_core               53346  1 sdhci
uvcvideo               59591  0 
videodev               39355  1 uvcvideo
v4l1_compat            15554  2 uvcvideo,videodev
v4l2_compat_ioctl32    10681  1 videodev
led_class               2347  2 ath9k,sdhci
serio_raw               4470  0 
psmouse                53592  0 
pcspkr                  1803  0 
evdev                   8775  13 
i2c_i801                8598  0 
radeon                790188  0 
ttm                    45713  1 radeon
i2c_algo_bit            5071  1 radeon
drm_kms_helper         23740  1 radeon
drm                   162265  3 radeon,ttm,drm_kms_helper
i2c_core               18364  6 videodev,i2c_i801,radeon,i2c_algo_bit,drm_kms_helper,drm
tpm_tis                 8216  0 
tpm                    11109  1 tpm_tis
tpm_bios                5457  1 tpm
intel_agp              29074  0 
btusb                  11433  0 
bluetooth              50828  1 btusb
rfkill                 15518  3 cfg80211,sony_laptop,bluetooth
video                  19077  0 
output                  1956  1 video
thermal                12258  0 
button                  4818  0 
battery                10055  0 
ac                      3089  0 
cpufreq_powersave        942  0 
cpufreq_ondemand        7990  4 
acpi_cpufreq            6491  1 
freq_table              2339  2 cpufreq_ondemand,acpi_cpufreq
processor              29008  5 acpi_cpufreq
vboxdrv              1740107  0 
rtc_cmos                8886  0 
rtc_core               14439  1 rtc_cmos
rtc_lib                 1882  1 rtc_core
ext4                  330125  3 
mbcache                 5762  1 ext4
jbd2                   75607  1 ext4
crc16                   1281  1 ext4
ehci_hcd               36042  0 
usbcore               145485  6 option,usbserial,uvcvideo,btusb,ehci_hcd
sr_mod                 14842  0 
cdrom                  35809  1 sr_mod
sd_mod                 27923  5 
ahci                   36940  4 
libata                155099  1 ahci
scsi_mod               94212  4 st,sr_mod,sd_mod,libata
             total       used       free     shared    buffers     cached
Mem:       5967792     488028    5479764          0      20424     188524
-/+ buffers/cache:     279080    5688712
Swap:      5855688          0    5855688

/usr/lib/pm-utils/sleep.d/00logging hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate:

/usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/01grub hibernate hibernate:

/usr/lib/pm-utils/sleep.d/01grub hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/01laptop-mode hibernate hibernate:

/usr/lib/pm-utils/sleep.d/01laptop-mode hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/11netcfg hibernate hibernate:

/usr/lib/pm-utils/sleep.d/11netcfg hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate:

/usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager hibernate hibernate:
Having NetworkManager put all interaces to sleep...Done.

/usr/lib/pm-utils/sleep.d/55NetworkManager hibernate hibernate: success.
Running hook /etc/pm/sleep.d/66info hibernate hibernate:
Hibernando el sistema...

/etc/pm/sleep.d/66info hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate:

/usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock hibernate hibernate:

/usr/lib/pm-utils/sleep.d/90clock hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/91wicd hibernate hibernate:

/usr/lib/pm-utils/sleep.d/91wicd hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate:

/usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/95led hibernate hibernate:

/usr/lib/pm-utils/sleep.d/95led hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate:
ATI Catalyst driver detected, not using quirks.

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/99video hibernate hibernate:

/usr/lib/pm-utils/sleep.d/99video hibernate hibernate: success.
mié jul 14 20:15:21 CEST 2010: performing hibernate
mié jul 14 20:16:32 CEST 2010: Awake.
mié jul 14 20:16:32 CEST 2010: Running hooks for thaw
Running hook /usr/lib/pm-utils/sleep.d/99video thaw hibernate:

/usr/lib/pm-utils/sleep.d/99video thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler thaw hibernate:

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/95led thaw hibernate:

/usr/lib/pm-utils/sleep.d/95led thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq thaw hibernate:

/usr/lib/pm-utils/sleep.d/94cpufreq thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/91wicd thaw hibernate:

/usr/lib/pm-utils/sleep.d/91wicd thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock thaw hibernate:

/usr/lib/pm-utils/sleep.d/90clock thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules thaw hibernate:
Reloaded unloaded modules.

/usr/lib/pm-utils/sleep.d/75modules thaw hibernate: success.
Running hook /etc/pm/sleep.d/66info thaw hibernate:
Volviendo de la hibernación...

Last edited by kismet010 (2010-08-11 18:21:31)

Offline

Board footer

Powered by FluxBB