View previous topic :: View next topic |
Author |
Message |
David_Escott l33t
Joined: 12 Jan 2003 Posts: 952 Location: Boston, MA
|
Posted: Fri Jul 01, 2005 4:38 am Post subject: |
|
|
I'm having the following problem on an Averatec 3150:
Code: | hibernate -v2
....
Unloading blacklisted modules listed /etc/hibernate/blacklisted-modules
hibernate: [95] Executing XHacksSuspendHook2 ...
/bin/echo: write error: Operation not permitted
hibernate: [99] Executing DoSysfsPowerStateSuspend ...
hibernate: Activating sysfs power state disk ...
.... |
and it refuses to hibernate. Where is this write error coming from (the suspend2 hook I presume). Anyone else seen this? |
|
Back to top |
|
|
tuxlover Apprentice
Joined: 21 Oct 2003 Posts: 297 Location: weltweit
|
Posted: Fri Jul 01, 2005 8:37 am Post subject: |
|
|
"Operation not permitted" sounds like a permission problem. (to ask the obvious: Are you running this as root?)
Otherwise, take a look at the suspend script that you're using, and search for the string it prints (XHacksSuspendHook2) and then take a look at the next lines. |
|
Back to top |
|
|
David_Escott l33t
Joined: 12 Jan 2003 Posts: 952 Location: Boston, MA
|
Posted: Fri Jul 01, 2005 5:18 pm Post subject: |
|
|
Yes I am doing this as root. After syncing the stdout and stderr and running at -v5 it seems the error is thrown after it echoes "disk" to something (I can't figure out what).
Code: | + echo hibernate: Activating sysfs power state disk ...
+ '[' -n shutdown ']'
+ '[' -f /sys/power/disk ']'
+ /bin/echo -n disk
/bin/echo: write error: Operation not permitted
+ return 0
|
This is made all the more confusing by the fact that the string "disk" isn't even found in /usr/sbin/hibernate. |
|
Back to top |
|
|
tuxlover Apprentice
Joined: 21 Oct 2003 Posts: 297 Location: weltweit
|
Posted: Fri Jul 01, 2005 7:34 pm Post subject: |
|
|
David_Escott wrote: | it echoes "disk" to something (I can't figure out what). |
Probably /sys/power/state
Code: | $ cat /sys/power/state
standby mem disk |
I'm not sure what could be the problem though... Can you manually run the echo command? AFTER umounting all unnecessary partitions... |
|
Back to top |
|
|
costa1977 n00b
Joined: 16 Sep 2003 Posts: 25 Location: PA, US
|
Posted: Fri Jul 01, 2005 8:24 pm Post subject: |
|
|
I had the same problem yesterday, after I recompile the kernel 2.6.12.2 with Code: | CONFIG_ACPI_SLEEP=y, CONFIG_ACPI_SLEEP_PROC_FS=y | , and uncommented in hibernate.conf, it was fine.
David_Escott wrote: | Yes I am doing this as root. After syncing the stdout and stderr and running at -v5 it seems the error is thrown after it echoes "disk" to something (I can't figure out what).
Code: | + echo hibernate: Activating sysfs power state disk ...
+ '[' -n shutdown ']'
+ '[' -f /sys/power/disk ']'
+ /bin/echo -n disk
/bin/echo: write error: Operation not permitted
+ return 0
|
This is made all the more confusing by the fact that the string "disk" isn't even found in /usr/sbin/hibernate. |
|
|
Back to top |
|
|
David_Escott l33t
Joined: 12 Jan 2003 Posts: 952 Location: Boston, MA
|
Posted: Fri Jul 01, 2005 9:33 pm Post subject: |
|
|
Yeah I missed that line in the HowTo, so it wasn't using Suspend2. Is there any description of what the options in hibernate.conf do? |
|
Back to top |
|
|
tuxlover Apprentice
Joined: 21 Oct 2003 Posts: 297 Location: weltweit
|
Posted: Fri Jul 01, 2005 9:40 pm Post subject: |
|
|
I think you can find a lot of information in the wiki, the suspend2.net wiki, and man hibernate.conf. |
|
Back to top |
|
|
pem Guru
Joined: 29 Aug 2004 Posts: 390 Location: France
|
Posted: Thu Jul 14, 2005 9:45 am Post subject: |
|
|
Did someone succeed to make SwSuspend2 working with the ndiswrapper?
POST EDIT
OK got it working by using net-wireless/ndiswrapper-1.2 with sys-kernel/gentoo-sources-2.6.12-r4, sys-kernel/suspend2-sources-2.6.12-r2 and sys-apps/suspend2-userui-0.5.1.
Now it's time to check few thing on the nvidia driver (seems to be the most difficult thing, though ) _________________ Registered user #30505 |
|
Back to top |
|
|
smg Veteran
Joined: 13 Aug 2004 Posts: 1402 Location: /home/stephan
|
Posted: Mon Jul 18, 2005 5:40 pm Post subject: |
|
|
i dont get fkking lzf compression! :<
cheers. _________________ GnuPG-Key-ID: 0xF8C275D4
Fingerprint: 5B6F 134A 189B A24D 342B 0961 8D4B 0230 F8C2 75D4
Code: | perl -WTe '($")=$/;print qq(@{[reverse('0'..'100')]}$/BOOM!$/);' |
|
|
Back to top |
|
|
livebrain n00b
Joined: 11 Dec 2004 Posts: 6
|
Posted: Mon Nov 14, 2005 7:16 am Post subject: |
|
|
i'm using fglrx
i have pbetool and enable "EnableVbetool yes" in the hibernate.conf
but still freezes when restoring X
what else do i need to do ?
i instaled pbetool through portage. |
|
Back to top |
|
|
Phlogiston Veteran
Joined: 27 Jan 2004 Posts: 1925 Location: Europe, Swizerland
|
Posted: Mon Nov 14, 2005 11:22 am Post subject: |
|
|
livebrain wrote: | i'm using fglrx
i have pbetool and enable "EnableVbetool yes" in the hibernate.conf
but still freezes when restoring X
what else do i need to do ?
i instaled pbetool through portage. |
same here!
probably we can concentrate on that in this thread
I hope some gurus from here can have a look at it
Thanks for your help! _________________ Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor |
|
Back to top |
|
|
Entropysth n00b
Joined: 20 Dec 2005 Posts: 2
|
Posted: Tue Dec 20, 2005 1:29 pm Post subject: [2.6.14-r7] BIG FAT WARNING! |
|
|
Help!
Code: |
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>. http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI No-Shortcut mode
Suspend2 Core.
Suspend2 FileWriter loading.
ACPI wakeup devices:
PWRB LANC CDB OHCI MODM
ACPI: (supports S0 S3 S4 S5)
Set bdev in get target info.
Bmap shift set to 2. Blocks per page is 2.
Suspend2 2.2-rc14: Filewriter: File signature found.
Setting dev info to c0511388.
Suspend2 2.2-rc14: Suspending enabled.
swapper(1): READ block 132040 size 4096 on hda3
swapper(1): READ block 132040 size 4096 on hda3
swapper(1): READ block 66028 size 4096 on hda3
=== Suspend2 ===
BIG FAT WARNING!! Incorrect kernel version 57076.205.166 vs 2.6.14.
If you want to use the current suspend image, reboot and try
again with the same kernel that you suspended from. If you want
to forget that image, continue and the image will be erased.
Press SPACE to reboot or C to continue booting with this kernel
Default action if you don't select one in 25 seconds is: continue booting.
ieee1394: Host added: ID:BUS[0-00:1023] GUID[00065b80010f738e]
swapper(1): READ block 132040 size 4096 on hda3
swapper(1): WRITE block 132040 size 4096 on hda3
Suspend2 2.2-rc14: Image invalidated.
Cleared bdev in filewriter cleanup.
EXT3-fs: hda3: orphan cleanup on readonly fs
kjournald starting. Commit interval 5 seconds
ext3_orphan_cleanup: deleting unreferenced inode 3106909
EXT3-fs: hda3: 1 orphan inode deleted
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 228k freed
Adding 506036k swap on /dev/hda2. Priority:-1 extents:1 across:506036k
EXT3 FS on hda3, internal journal
ACPI: PCI Interrupt 0000:02:05.0[A] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
0000:02:05.0: 3Com PCI 3c905C Tornado at 0xa000. Vers LK1.1.19
ACPI: PCI Interrupt 0000:00:1f.5[B] -> Link [LNKB] -> GSI 10 (level, low) -> IRQ 10
PCI: Setting latency timer of device 0000:00:1f.5 to 64
intel8x0_measure_ac97_clock: measured 55198 usecs
intel8x0: clocking to 48000
pcmcia: Detected deprecated PCMCIA ioctl usage.
pcmcia: This interface will soon be removed from the kernel; please expect breakage unless you upgrade to new tools.
pcmcia: see http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html for details.
|
Grub
Code: |
default 0
timeout 1
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.14-r4
root (hd0,0)
kernel /boot/Entropysth root=/dev/hda3 quiet vga=0x318 splash=silent,theme:livecd-2005.1 CONSOLE=/dev/tty1 resume2=file:/dev/hda3:0x203c8
|
i use a filewriter, to /suspend, 800mb, machine is a Dell Laditude X200, 20 gb, 700 mb
Am I leaving anything out ?
Thanks
Ent. |
|
Back to top |
|
|
mirek Guru
Joined: 20 Sep 2004 Posts: 489 Location: Oslo Norway
|
Posted: Mon Jan 02, 2006 6:32 pm Post subject: |
|
|
I have tried to get swsusp2 working on my Dell Inspiron 5100.
I have set following options for my kernel – 2.6.14-suspend2-r8:
Code: | # Power management options (ACPI, APM)
#
CONFIG_PM=y
CONFIG_PM_DEBUG=y
# CONFIG_SOFTWARE_SUSPEND is not set
CONFIG_SUSPEND2=y
#
# Image Storage (you need at least one writer)
#
CONFIG_SUSPEND2_FILEWRITER=y
CONFIG_SUSPEND2_SWAPWRITER=y
#
# General Options
#
CONFIG_SUSPEND2_DEFAULT_RESUME2=""
# CONFIG_SUSPEND2_CHECKSUMMING is not set
# CONFIG_SUSPEND2_KEEP_IMAGE is not set |
After rebooting my dmseg:
Code: | Suspend2 Core.
Suspend2 Swap Writer loading.
Suspend2 FileWriter loading.
ACPI wakeup devices:
LID PBTN PCI0 USB0 USB1 USB2 USB3 MODM PCIE
ACPI: (supports S0 S1 S3 S4 S5)
Suspend2 2.2-rc15: Swapwriter: Signature found.
Suspend2 2.2-rc15: Suspending enabled.
swapper(1): READ block 0 size 4096 on hdc6
Suspend2 2.2-rc15: Resuming disabled as requested. |
When I try to hibernate my laptop I get the error begin like:
Code: | SOFTWARE SUSPEND
Starting to save the image..
Kernel BUG at kernel/power/suspend_block_io.c:942
invalid operand: 0000 [#1]
... |
and it freezes when starting to save the image. My swap partition is:
Code: | # fdisk -l /dev/hdc
Device Boot Start End Blocks Id System
/dev/hdc6 16 138 987966 82 Linux swap / Solaris |
Here is the entry from my /boot/grub/menu.lst:
Code: | title=Gentoo Linux 2.6.14-suspend2-r8
root (hd0,4)
kernel /boot/vmlinuz-2.6.14-suspend2-r8 root=/dev/hdc7 resume2=swap:/dev/hdc6 noresume2 ro pci=noacpi video=vesafb-tng:ywrap,mtrr,1280x1024-16@60 splash=silent,theme:Emergance CONSOLE=/dev/tty1 quiet
initrd /boot/fbsplash-Emergance-1280x1024 |
Anyone else got this problem, or know how to fix it? |
|
Back to top |
|
|
mirek Guru
Joined: 20 Sep 2004 Posts: 489 Location: Oslo Norway
|
Posted: Sun Jan 08, 2006 8:46 pm Post subject: |
|
|
I have put in my kernel:
Code: | Cryptographic options --->
<*> LZF compression algorithm |
and now all is working perfectly |
|
Back to top |
|
|
gotaserena Apprentice
Joined: 23 Feb 2005 Posts: 153 Location: fourth worst city in the world
|
Posted: Sat Jan 28, 2006 7:05 pm Post subject: |
|
|
I had troubles with X intermittently freezing on resume. After a few tries I found out that xcreensaver was locking up. I re-emerge the older version of it and so far so good. |
|
Back to top |
|
|
asiobob Veteran
Joined: 29 Oct 2003 Posts: 1375 Location: Bamboo Creek
|
Posted: Tue May 02, 2006 1:12 pm Post subject: |
|
|
Welcome to the world of bring a post from the dead
I'm using the hibernate script to hibernate.
In /etc/hibernate/hibernate.conf there is a Verbose option. Regardless of what I set it do it prints out the steps to stdout. I was lead to believe setting the value to zero makes it silent except for errors. Any ideas? It's not a major problem however |
|
Back to top |
|
|
Phlogiston Veteran
Joined: 27 Jan 2004 Posts: 1925 Location: Europe, Swizerland
|
Posted: Tue May 02, 2006 4:40 pm Post subject: |
|
|
Not an answer to your question but I solved my hibernate problem by using agpgart as a module (intel here). System is my T43 Laptop with an ATI X300. (using binary drivers with direct rendering) _________________ Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Last edited by Phlogiston on Wed Aug 16, 2006 10:44 am; edited 1 time in total |
|
Back to top |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Wed Aug 16, 2006 10:40 am Post subject: |
|
|
Hello, have followed the guide on wiki but get the following error trying to hibernate
Code: |
Your kernel does not appear to have Software Suspend 2 support compiled in.
Please follow the HOWTO linked from http://www.suspend2.net/ for instructions
on how to compile Software Suspend into your kernel.
hibernate: Aborting.
|
Dmsg reports it is in kernel:
Code: |
Using IPI Shortcut mode
Suspend2 Core.
Suspend2 Compression Driver loading.
Suspend2 Encryption Driver loading.
Suspend2 Swap Writer loading.
ACPI wakeup devices:
LID PCI0
ACPI: (supports S0 S3 S4 S5)
Suspend2 2.2.7.4: Swapwriter: Signature found.
Suspend2 2.2.7.4: Resuming enabled.
|
any ideas? _________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
Phlogiston Veteran
Joined: 27 Jan 2004 Posts: 1925 Location: Europe, Swizerland
|
Posted: Wed Aug 16, 2006 10:42 am Post subject: |
|
|
Yes upgrade your hibernate-script to latest version. _________________ Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor |
|
Back to top |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Wed Aug 16, 2006 11:00 am Post subject: |
|
|
you mean ~x86 version?
hibernate-ram seem to work but have yet to leave it for long period. _________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
Phlogiston Veteran
Joined: 27 Jan 2004 Posts: 1925 Location: Europe, Swizerland
|
Posted: Wed Aug 16, 2006 11:07 am Post subject: |
|
|
carpman wrote: | you mean ~x86 version?
hibernate-ram seem to work but have yet to leave it for long period. |
Yes! It looks like you updated your kernel, because you are running latest suspend patch, so you have to use latest script too. Otherwise post all the related versions.... _________________ Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor |
|
Back to top |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Wed Aug 16, 2006 1:19 pm Post subject: |
|
|
That works
Have it set to my power button, will have to do bit more testing to make sure all works ok.
Next is to get hibernate-ram to activate when i close lid !
cheers _________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
Noven Tux's lil' helper
Joined: 27 Mar 2005 Posts: 138
|
Posted: Fri Aug 18, 2006 10:31 am Post subject: |
|
|
Can anyone confirm if they've got sus2 working with an intel 945GM integrated graphics controller? I believe the modules related to X are my problem. The relevant modules are:
agpgart
intel_agp
drm
i915
Without X running suspend works fine, with it running I get the message:
"Unable to prepare image". The terminal tells me "Save video state failed".
I have tried playing around with vberestore and other X options to know avail. I tried compiling statically, also to no avail. If someone can confirm they have suspend working with this graphics chip maybe they have some tips, and if not at least I know it's possible and will keep trying. _________________ - Novensiles divi Flamen
>---- Miles Militis Fons ----< |
|
Back to top |
|
|
Watchwolf n00b
Joined: 22 Nov 2006 Posts: 39
|
Posted: Fri Jul 13, 2007 9:28 pm Post subject: |
|
|
hello
I have a strange problem when I hibernate. My computer hibernate correctly, reboot correctly but some commands (as emerge) stunt in a new session (terminal).
- If I run "emerge --search test" on a terminal open before I hibernate, emerge is launch correctly.
- If I open a terminal after I hibernate, emerge stunt. CTRL+C doesn't stop the command, If I close the terminal, the command is stopped.
Code: | watchwolf@Watchwolf >>> emerge
(blank line ...)
watchwolf@Watchwolf >>> strace emerge (I can use CTRL+C with strace)
(.....)
fstat64(6, {st_mode=S_IFREG|0755, st_size=18968, ...}) = 0
open("/usr/lib/python2.4/site-packages/Crypto/Hash/RIPEMD.so", O_RDONLY) = 7
read(7, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\10"..., 512) = 512
fstat64(7, {st_mode=S_IFREG|0755, st_size=18968, ...}) = 0
mmap2(NULL, 21748, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 7, 0) = 0xb76d1000
mmap2(0xb76d6000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 7, 0x4) = 0xb76d6000
close(7) = 0
close(6) = 0
stat64("/usr/sbin/prelink", {st_mode=S_IFREG|0755, st_size=936388, ...}) = 0
pipe([6, 7]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7def6f8) = 10223
close(7) = 0
fstat64(6, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
fstat64(6, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
_llseek(6, 0, 0xbfca9980, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fstat64(6, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f5d000
read(6, 0xb7f5d000, 1024) = ? ERESTARTSYS (To be restarted)
--- SIGWINCH (Window changed) @ 0 (0) ---
(.....)
read(6, 0xb7f5d000, 1024) = ? ERESTARTSYS (To be restarted)
--- SIGWINCH (Window changed) @ 0 (0) ---
read(6, 0xb7f5d000, 1024) = ? ERESTARTSYS (To be restarted)
--- SIGWINCH (Window changed) @ 0 (0) ---
read(6,
|
I use hibernate.conf of the wiki[1] except I removed lines with "eth0" (because my interface are eth2 and eth3) and I edited
Code: | ProcSetting extra_pages_allowance 500
by
ProcSetting extra_pages_allowance 20000 |
because I use fglrx drivers [2]
edit --------
Pidgin have the same problem !
xchat, mplayer work ...
[1] http://gentoo-wiki.com/HOWTO_Software_Suspend_v2
[2] http://www.thinkwiki.org/wiki/Fglrx#Suspending_with_fglrx |
|
Back to top |
|
|
|