Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: [Solved!!] Slaapstand is ermee gestopt  (gelezen 768 keer)

Offline KVL

  • Lid
[Solved!!] Slaapstand is ermee gestopt
« Gepost op: 2009/12/31, 10:44:56 »
Eerst en vooral, m'n excuses als ik dit in het verkeerde forumonderdeel post...

Sinds een paar dagen werkt slaapstand niet meer.
Het is maandag of dinsdag begonnen toen ik zoals altijd m'n laptop in slaapstand wilde zetten.
Ik kreeg een melding dat er geen swap was gevonden, met daarna een zwart scherm en geen activiteit.
Raar,  ik heb niet met swapon/off zitten klooien ofzo.
Bij het heropstarten krijg ik een melding dat m'n swappartitie zoals 'm in fstab staat niet is gevonden.

Ondertussen heb ik via gparted de swappartitie opnieuw aangemaakt, bij "informatie" stond dat het bestandssysteem niet is herkend.
Ik heb ze dan ook maar s op fouten gecontroleerd, geen gevonden.
Na het heraanmaken en activeren kan de swap door programma's worden gebruikt, zonder vastlopers.

Dan nog maar 's in slaapstand gegaan, de gebruikelijke "normale" meldingen worden weergegeven.
Maar bij het heropstarten laat ie het hibernate-image gewoon links liggen.

[quote]swapon: /dev/sda2: software suspend data detected. Rewriting the swap signature[/quote]

pm-suspend.log:
[quote]Initial commandline parameters:
Thu Dec 31 10:07:29 CET 2009: Running hooks for hibernate.
/usr/lib/pm-utils/sleep.d/000record hibernate hibernate: success.
/usr/lib/pm-utils/sleep.d/00auto-quirk hibernate hibernate: Adding quirks from HAL: --quirk-vbe-post
success.
/usr/lib/pm-utils/sleep.d/00logging hibernate hibernate: Linux EddyEmmer 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 i686 GNU/Linux
Module                  Size  Used by
ipt_MASQUERADE          2204  1
iptable_nat             5500  1
nf_nat                 17808  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4      13352  3 iptable_nat,nf_nat
nf_conntrack           67608  4 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
nf_defrag_ipv4          1756  1 nf_conntrack_ipv4
binfmt_misc             8356  1
ppdev                   6688  0
bridge                 47952  0
stp                     2272  1 bridge
bnep                   12060  0
vboxnetadp             80168  0
vboxnetflt             86760  0
vboxdrv               122984  1 vboxnetflt
joydev                 10272  0
arc4                    1660  2
ecb                     2524  2
snd_hda_codec_idt      59844  1
iwl3945                77212  0
snd_hda_intel          26920  2
snd_hda_codec          75708  2 snd_hda_codec_idt,snd_hda_intel
snd_hwdep               7200  1 snd_hda_codec
iwlcore               112540  1 iwl3945
mac80211              181076  2 iwl3945,iwlcore
snd_pcm_oss            37920  0
snd_mixer_oss          16028  1 snd_pcm_oss
snd_pcm                75296  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy           2656  0
iptable_filter          3100  1
dell_wmi                2564  0
uvcvideo               59080  0
videodev               36736  1 uvcvideo
v4l1_compat            14496  2 uvcvideo,videodev
snd_seq_oss            28576  0
snd_seq_midi            6432  0
dell_laptop             8128  0
dcdbas                  7292  1 dell_laptop
sdhci_pci               7100  0
sdhci                  17472  1 sdhci_pci
led_class               4096  3 iwl3945,iwlcore,sdhci
snd_rawmidi            22208  1 snd_seq_midi
snd_seq_midi_event      6940  2 snd_seq_oss,snd_seq_midi
snd_seq                50224  7 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              22276  2 snd_pcm,snd_seq
snd_seq_device          6920  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
cfg80211               93052  3 iwl3945,iwlcore,mac80211
psmouse                56500  0
serio_raw               5280  0
ip_tables              11692  2 iptable_nat,iptable_filter
x_tables               16544  3 ipt_MASQUERADE,iptable_nat,ip_tables
btusb                  11856  0
nvidia               8873924  42
snd                    59204  17 snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore               7264  1 snd
snd_page_alloc          9156  2 snd_hda_intel,snd_pcm
i8k                     6004  0
lp                      8964  0
parport                35340  2 ppdev,lp
dm_raid45              84228  0
xor                    15620  1 dm_raid45
usbhid                 38208  0
ohci1394               29900  0
ieee1394               86596  1 ohci1394
b44                    28684  0
ssb                    35300  1 b44
mii                     5212  1 b44
video                  19380  0
output                  2780  1 video
intel_agp              27484  0
agpgart                34988  2 nvidia,intel_agp
             total       used       free     shared    buffers     cached
Mem:       2060220     924256    1135964          0      58308     574276
-/+ buffers/cache:     291672    1768548
Swap:      2104504          0    2104504
success.
/usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate: success.
/usr/lib/pm-utils/sleep.d/01PulseAudio hibernate hibernate: success.
/etc/pm/sleep.d/10_grub-common hibernate hibernate: success.
/etc/pm/sleep.d/10_unattended-upgrades-hibernate hibernate hibernate: success.
/usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate: not applicable.
/usr/lib/pm-utils/sleep.d/55NetworkManager hibernate hibernate: success.
/usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: success.
/usr/lib/pm-utils/sleep.d/90clock hibernate hibernate: not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate: success.
/usr/lib/pm-utils/sleep.d/95anacron hibernate hibernate: stop: Unknown instance:
success.
/usr/lib/pm-utils/sleep.d/95led hibernate hibernate: not applicable.
/usr/lib/pm-utils/sleep.d/96laptop-mode hibernate hibernate: success.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video hibernate hibernate: success.
/usr/lib/pm-utils/sleep.d/99video hibernate hibernate: success.
/etc/pm/sleep.d/action_wpa hibernate hibernate: success.
Thu Dec 31 10:07:32 CET 2009: performing hibernate[/quote]

Slaapstand werkte hiervoor al 2 jaar zonder problemen.

Alle hulp is welkom :-)


Mijn configuratie:

Ubuntu 9.10 (verse install, geen update)
Kernel 2.6.31-16-generic
Dell Inspiron 1520
Nvidia Geforce 8600m GT
Intel core 2 duo T7250


In code gezet. :)
« Laatst bewerkt op: 2009/12/31, 11:24:04 door KVL »

Offline KVL

  • Lid
Re: Slaapstand is ermee gestopt
« Reactie #1 Gepost op: 2009/12/31, 11:23:30 »
Google zij dank!

De oplossing staat hier: http://turbulentsky.com/resume-from-hibernate-failed-on-ubuntu.html
Waarschijnlijk is m'n swap corrupt geraakt en door het herformatteren klopte het één en ander niet meer.

Voorlopig werkt alles terug normaal. :-)

1. First, you need to know the /dev path to your swap file (e.g. /dev/hda2). If you don’t know what it is, take a look inside the /etc/fstab file. In the recent versions of Ubuntu, there is a comment above each device’s UUID entry to tell you what path it points to. Look for a line with

UUID=a-bunch-of-letters-and-numbers none swap sw 0 0

On the line above it should be a comment that says what partition it is (e.g. # /dev/hda2)

Now, armed with that information, do the following:

2. sudo mkswap /dev/your-swap-partition
For /dev/your-swap-partition, fill in the swap partition path you found in the /etc/fstab file. This will reinitialize your swap partition and create a new UUID. Copy down the new UUID (e.g. copy it to the clipboard).

3. sudo gedit /etc/fstab
Look for the same UUID= line from step #1 (the one for your swap partition). Replace the existing UUID value with the new one that you copied in step #2. Then, save the file.

4. sudo gedit /etc/initramfs-tools/conf.d/resume
Replace the old UUID value that appears after RESUME=UUID= in the file with the new value from step #2. Save.

5. cd /dev/disk/by-uuid
This directory contains symlinks from UUIDs to actual partitions.

6. sudo rm your-old-UUID
Enter the old UUID for the swap partition in place of your-old-UUID. This will remove the old, incorrect symlink.

7. sudo ln -s ../../your-swap-partition your-new-UUID
Now, create a new symlink from your swap partition to the new UUID.

8. sudo swapon -va
This will mount the swap partition based on the UUID settings you entered. If it succeeds, you didn’t make any mistakes. If it fails, then you need to verify that you have the correct UUID and partitions in the steps above.

9. sudo update-initramfs -u
This will create a new initramfs image. When it’s done, you’ll be able to hibernate and resume again.