Ho patchato il kernel con tuxonice.
Ho installato lo script hibernate.
Ho commentato in /etc/hibernate/blacklisted-module il modulo nvidia(dato che ora supporta il letargo).
In lilo inserisco append="resume=swap:/dev/sda7".
Il pc si iberna bene e si risveglia più o meno bene.
L'unico problema è KDE! Si risveglia senza salvare la sessione precedente, in pratica se prima avevo firefox aperto lo ritrovo chiuso.
Allego hibernate.log
Codice: Seleziona tutto
Starting suspend at Tue Feb 19 23:28:30 CET 2008
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing CheckRunlevel ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [10] Executing EnsureSwsusp2Capable ...
hibernate: [11] Executing XHacksSuspendHook1 ...
hibernate: [59] Executing RemountXFSBootRO ...
hibernate: [89] Executing SaveKernelModprobe ...
hibernate: [91] Executing ModulesUnloadBlacklist ...
hibernate: [95] Executing XHacksSuspendHook2 ...
hibernate: [97] Executing ChangeToSwsuspVT ...
hibernate: [98] Executing CheckRunlevel ...
hibernate: [98] Executing FullSpeedCPUSuspend ...
hibernate: [98] Executing Swsusp2ConfigSet ...
hibernate: [99] Executing DoSwsusp2 ...
hibernate: Activating suspend ...
---- Output from dmesg: ----
TuxOnIce 3.0-rc5, with support for checksumming, usm, compression, swap storage, file storage, userui.
Initiating a hibernation cycle.
userspace ui: Failed to contact userspace process.
Freezing processes & syncing filesystems.
Stopping fuse filesystems.
Fuse filesystem done.
Fuse filesystem done.
Fuse filesystem done.
Freezing user space processes ... (elapsed 0.00 seconds) <6>done.
Stopping normal filesystems.
Freezing remaining freezable tasks ... (elapsed 0.71 seconds) <6>done.
Preparing Image. Try 1.
Restarting normal filesystems.
Stopping fuse filesystems.
Freezing user space processes ... (elapsed 0.00 seconds) <6>done.
Stopping normal filesystems.
Freezing remaining freezable tasks ... (elapsed 0.82 seconds) <6>done.
Starting to save the image..
Writing caches...
20%...done.
Waited for i/o due to synchronous I/O 3 times.
Doing atomic copy.
Going atomic.
Suspending console(s)
sd 2:0:0:0: [sda] Synchronizing SCSI cache
sdhci [sdhci_suspend()]: Suspending...
mmc0: clock 0Hz busmode 1 powermode 0 cs 0 Vdd 0 width 0 timing 0
ACPI handle has no context!
ACPI: PCI interrupt for device 0000:03:01.1 disabled
ACPI handle has no context!
ACPI: PCI interrupt for device 0000:03:00.0 disabled
ACPI handle has no context!
NVRM: RmPowerManagement: 3
ACPI: PCI interrupt for device 0000:00:1f.2 disabled
ACPI: PCI interrupt for device 0000:00:1d.7 disabled
ACPI: PCI interrupt for device 0000:00:1d.3 disabled
ACPI: PCI interrupt for device 0000:00:1d.2 disabled
ACPI: PCI interrupt for device 0000:00:1d.1 disabled
ACPI: PCI interrupt for device 0000:00:1d.0 disabled
Disabling non-boot CPUs ...
Breaking affinity for irq 14
CPU 1 is now offline
SMP alternatives: switching to UP code
CPU1 is down
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Enabling non-boot CPUs ...
SMP alternatives: switching to SMP code
Booting processor 1/1 eip 3000
Initializing CPU#1
Calibrating delay using timer specific routine.. 3995.35 BogoMIPS (lpj=1997677)
CPU: After generic identify, caps: bfebfbff 20100000 00000000 00000000 0000e3bd 00000000 00000001 00000000
monitor/mwait feature present.
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
CPU: After all inits, caps: bfebfbff 20100000 00000000 00003940 0000e3bd 00000000 00000001 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#1.
CPU1: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz stepping 06
CPU1 is up
PCI: Setting latency timer of device 0000:00:01.0 to 64
PCI: Setting latency timer of device 0000:00:1c.0 to 64
PCI: Setting latency timer of device 0000:00:1c.1 to 64
PCI: Setting latency timer of device 0000:00:1c.3 to 64
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 20 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:00:1d.0 to 64
usb usb2: root hub lost power or was reset
ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 21 (level, low) -> IRQ 20
PCI: Setting latency timer of device 0000:00:1d.1 to 64
usb usb3: root hub lost power or was reset
ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 22 (level, low) -> IRQ 21
PCI: Setting latency timer of device 0000:00:1d.2 to 64
usb usb4: root hub lost power or was reset
ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 23 (level, low) -> IRQ 22
PCI: Setting latency timer of device 0000:00:1d.3 to 64
usb usb5: root hub lost power or was reset
ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 20 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:00:1d.7 to 64
usb usb1: root hub lost power or was reset
ehci_hcd 0000:00:1d.7: debug port 1
PCI: cache line size of 32 is not supported by device 0000:00:1d.7
PCI: Setting latency timer of device 0000:00:1e.0 to 64
PM: Writing back config space on device 0000:00:1f.2 at offset 1 (was 2b80001, writing 2b80005)
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 17 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1f.2 to 64
NVRM: RmPowerManagement: 4
ata1.01: _GTF evaluation failed (AE 0x1001)
ata2.00: _GTF evaluation failed (AE 0x1001)
ata2.01: _GTF evaluation failed (AE 0x1001)
ata1.00: ACPI cmd ef/10:03:00:00:00:a0 succeeded
ata1.00: configured for UDMA/100
sd 2:0:0:0: [sda] 312581808 512-byte hardware sectors (160042 MB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
ata2.00: configured for UDMA/33
PM: Writing back config space on device 0000:0c:00.0 at offset 1 (was 100106, writing 100102)
ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 17 (level, low) -> IRQ 17
PM: Writing back config space on device 0000:03:00.0 at offset 1 (was 100102, writing 100106)
sdhci [sdhci_resume()]: Resuming...
PM: Writing back config space on device 0000:03:01.1 at offset 4 (was 0, writing ecbfd400)
PM: Writing back config space on device 0000:03:01.1 at offset 3 (was 800000, writing 804000)
PM: Writing back config space on device 0000:03:01.1 at offset 1 (was 2100000, writing 2100106)
ACPI: PCI Interrupt 0000:03:01.1[B] -> GSI 18 (level, low) -> IRQ 23
i8042 aux 00:04: activation not supported
i8042 kbd 00:05: activation not supported
mmc0: clock 0Hz busmode 1 powermode 1 cs 0 Vdd 21 width 0 timing 0
mmc0: clock 128906Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
mmc0: clock 128906Hz busmode 1 powermode 2 cs 1 Vdd 21 width 0 timing 0
sd 2:0:0:0: [sda] Starting disk
mmc0: starting CMD0 arg 00000000 flags 000000c0
mmc0: req done (CMD0): -123: 00000000 00000000 00000000 00000000
mmc0: clock 128906Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
mmc0: starting CMD8 arg 000001aa flags 000002f5
mmc0: req done (CMD8): -123: 00000000 00000000 00000000 00000000
mmc0: starting CMD5 arg 00000000 flags 000002e1
mmc0: req failed (CMD5): -123, retrying...
mmc0: req failed (CMD5): -123, retrying...
mmc0: req failed (CMD5): -123, retrying...
mmc0: req done (CMD5): -123: 00000000 00000000 00000000 00000000
mmc0: starting CMD55 arg 00000000 flags 000000f5
mmc0: req done (CMD55): -123: 00000000 00000000 00000000 00000000
mmc0: starting CMD55 arg 00000000 flags 000000f5
mmc0: req done (CMD55): -123: 00000000 00000000 00000000 00000000
mmc0: starting CMD55 arg 00000000 flags 000000f5
mmc0: req done (CMD55): -123: 00000000 00000000 00000000 00000000
mmc0: starting CMD55 arg 00000000 flags 000000f5
mmc0: req done (CMD55): -123: 00000000 00000000 00000000 00000000
mmc0: starting CMD1 arg 00000000 flags 000000e1
mmc0: req done (CMD1): -123: 00000000 00000000 00000000 00000000
mmc0: clock 0Hz busmode 1 powermode 0 cs 0 Vdd 0 width 0 timing 0
Post atomic.
Reading caches...
20%...40%...60%...80%...done.
Waited for i/o due to readahead not ready 206 times.
Cleaning up...
Restarting all filesystems ...
Restarting tasks ... <6>usb 1-1: USB disconnect, address 6
done.
usb 1-1: new high speed USB device using ehci_hcd and address 8
TuxOnIce debugging info:
- TuxOnIce core : 3.0-rc5
- Kernel Version : 2.6.24.2-smp
- Compiler vers. : 4.1
- Attempt number : 3
- Parameters : 0 573456 0 1 0 5
- Overall expected compression percentage: 0.
- Checksum method is 'md4'.
0 pages resaved in atomic copy.
- Compressor is 'lzf'.
Compressed 1010671616 bytes into 566253430 (43 percent compression).
- Max readahead 2048. Max outstanding io 138728.
Memory_needed: 2048 x (4096 + 180 + 64 + 40) = 8970240 bytes.
- SwapAllocator active.
Swap available for image: 676223 pages.
- FileAllocator inactive.
- I/O speed: Write 39 MB/s, Read 33 MB/s.
- Extra pages : 55 used/500.
Idx Allocs Frees Tests Fails Max Description
1 279505 279505 0 0 0 get_io_info_struct
2 4 4 0 0 0 extent
4 1 1 0 0 0 userui channel
5 1 1 0 0 0 userui arg
6 41 41 0 0 0 attention list metadata
8 1 1 0 0 0 bdev metadata
11 138728 138728 0 0 0 bio queue
12 2048 2048 0 0 0 prepare_readahead
13 138730 138730 0 0 0 i/o buffer
14 1 1 0 0 0 writer buffer in bio_init
15 968 968 0 0 0 checksum buffer
16 2 2 0 0 0 compression buffer
20 1 1 0 0 0 debugging info buffer
27 2 2 0 0 0 checksum page
28 4 4 0 0 0 worker rw loop
31 1 1 0 0 0 remove swap image
37 1 1 0 0 0 boot kernel data buffer
---- End of dmesg output ----
A me pare che il problema sia tutto di kde, secondo voi?
Fire.
PS: nel control center ho già verificato "componenti KDE --> Gestione della sessione --> All'accesso" tutte e 3 le opzioni. Senza ottenere nulla.


