View previous topic :: View next topic |
Author |
Message |
peter4 Guru
Joined: 19 Jul 2005 Posts: 359 Location: Wroclaw, Poland
|
Posted: Wed Jul 13, 2011 3:34 pm Post subject: pf-sources: after upgrading p3->p4 hibernation doesn't wo |
|
|
In sys-kernel/pf-sources-2.6.39_p4 this happens when I try to resume from hibernation (using tuxonice):
Code: | Jul 13 17:03:20 localhost kernel: [ 3.714132] TuxOnIce: Image found.
Jul 13 17:03:20 localhost kernel: [ 3.736340] Using dev_t 8:7, returned by blk_lookup_fs_info.
Jul 13 17:03:20 localhost kernel: [ 3.758347] Failed to launch userspace program '/sbin/tuxoniceui_text': Error -2
Jul 13 17:03:20 localhost kernel: [ 3.758350] Launch userspace program failed.
Jul 13 17:03:20 localhost kernel: [ 3.758359] Stopping fuse filesystems.
Jul 13 17:03:20 localhost kernel: [ 3.758361] Freezing user space processes ... (elapsed 0.01 seconds) done.
Jul 13 17:03:20 localhost kernel: [ 3.769024] Stopping normal filesystems.
Jul 13 17:03:20 localhost kernel: [ 3.769026] Freezing remaining freezable tasks ...
Jul 13 17:03:20 localhost kernel: [ 3.773626] Reading kernel & process data...
Jul 13 17:03:20 localhost kernel: [ 3.780039] (elapsed 0.01 seconds) done.
Jul 13 17:03:20 localhost kernel: [ 3.933606] Compress_read returned -22.
Jul 13 17:03:20 localhost kernel: [ 3.933607]
Jul 13 17:03:20 localhost kernel: [ 3.933609]
Jul 13 17:03:20 localhost kernel: [ 3.933610] Breaking out of I/O loop because of result code -22.
Jul 13 17:03:20 localhost kernel: [ 4.546818]
Jul 13 17:03:20 localhost kernel: [ 4.546819] Breaking out of I/O loop because of result code -22.
Jul 13 17:03:20 localhost kernel: [ 4.546820]
Jul 13 17:03:20 localhost kernel: [ 4.546840] Waited for i/o due to readahead not ready 6033 times.
Jul 13 17:03:20 localhost kernel: [ 4.546841] Waited for i/o due to synchronous I/O 3 times.
Jul 13 17:03:20 localhost kernel: [ 4.546843] Failed to read pageset 1.
Jul 13 17:03:20 localhost kernel: [ 4.546844] Restarting all filesystems ...
Jul 13 17:03:20 localhost kernel: [ 4.546847] Restarting tasks ... done. |
Then the system happily continues booting up. Anybody else has this problem? |
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Wed Jul 13, 2011 6:13 pm Post subject: |
|
|
FWIW, it's working OK for me (thinkpad x300) _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Jul 14, 2011 1:41 am Post subject: |
|
|
I suggest you email pfactum, as shown on his page. |
|
Back to top |
|
|
tclover Guru
Joined: 10 Apr 2011 Posts: 516
|
Posted: Sun Jul 24, 2011 11:54 am Post subject: |
|
|
Are you guys kidding or something? His log just show that the TOI helper `/sbin/tuxoniceui_text' is not loaded... Are you booting from an initramfs? If so, just make sure to include the helper in your initramfs. If not, I remember not to bother with the helper path name of the helper before kernel .38. However, if I remember well, since kernel .38.[something] the path name is required in the TOI kernel config. And then come the deafult path name which is `/sbin/local/tuxoniceui_text'--notice the `local/`, just remove it and you'll be fine with it. |
|
Back to top |
|
|
alphis n00b
Joined: 12 Jul 2007 Posts: 70
|
Posted: Sat Jul 30, 2011 5:59 am Post subject: |
|
|
I have the same problem. Just built TOI kernel from the gentoo repo (2.6.37) and it boots fine. When I manually run the hibernate.sh script (getting the buttons to function and call the script is another nightmare im sure ill have to deal with another time) it suspends to disk and shuts down.
When I boot my system again it says the path which CLEARLY EXISTS cannot be found. This is retarded guys seriously. Wtf?
Failed to launch userspace program '/sbin/tuxoniceui_text': Error -2
I have rebuilt the kernel like 90 times changing the path to multiple things each failing the same. I even left it blank in which case I got a not configured error instead. Yay. No I am not using an initramfs.
Any help on this is greatly appreciated as not finding a file that I know exists is clearly a case of shitty config/coding.
thx |
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Sat Jul 30, 2011 1:06 pm Post subject: |
|
|
Quote: | Failed to launch userspace program '/sbin/tuxoniceui_text': Error -2 |
that doesn't say it couldn't be found, just couldn't be launched
I get the same message for a second, and then the machine wakes from
hibernation normally
my kernel is
Code: | 2.6.39-pf4 #1 SMP PREEMPT Wed Jul 13 08:25:53 EDT 2011 i686 Intel(R) Core(TM)2 Duo CPU L7100 @ 1.20GHz GenuineIntel GNU/Linux |
I'm running x86, not amd64 if that's relevant ... _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
alphis n00b
Joined: 12 Jul 2007 Posts: 70
|
Posted: Sat Jul 30, 2011 4:51 pm Post subject: |
|
|
Any idea why it can be found and not loaded? I'm running the latest tuxonice-sources that emerge lets me use by default (2.6.37). After I get this message I get the following:
Launch userspace program failed.
Stopping fuse filesystems.
Freezing user space processes ..done
Stopping normal filesystems.
Freezing remaining freezable tasks done
Reading kernel & process data...
ibm trackpoint stuff
20%....40%.....60%.....80% <------------- just hangs at this point.
Any idea what I'm doing wrong here? I've rebuilt the userspace app after running from the TOI kernel just in case it used kernel sources but same result....
edit: I am also runnng x86 32bit. Its a core 2 duo 2.00ghz |
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Sat Jul 30, 2011 8:40 pm Post subject: |
|
|
I don't know what could be your problem.
if you have the time and inclination, you could try the pf-sources 2.6.39 kernel
which I think has a newer TOI ...
I am suspending to a swapfile rather than partition but I doubt that is
causing your trouble. _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
alphis n00b
Joined: 12 Jul 2007 Posts: 70
|
Posted: Sun Jul 31, 2011 4:53 pm Post subject: |
|
|
So I've switched to using tuxonice-sources 2.6.38-r2 by unmasking. I was using 2.6.37 previously. This fixed my issue with compiling WIRELESS_EXTENSIONS which makes me think that the previous kernel was simply broken. However my issue with hibernation remains. I've followed the gentoo tuxonice guides, I've configured the dedicated file for suspending (not swap partition or swap file) and i've gotten acpi to handle keyboard events to trigger the hibernation scripts. Hibernate-ram works just fine. Hibernate simply doesn't resume due to "unable to load usermode blah blah".
Seriously I'm just not sure what I'm doing wrong here. I've spent all day yesterday rebuilding the kernels and trying different things. All settings are as they are supposed to be, acpid is emerged and responding to key presses and calling necessary scripts. The path to the userui program is correct. I've even hardcoded it in /etc/hibernate/tuxonice.conf. I'm not using an initramfs.
I've built the kernel from pappy seeds for 2.6.38 tuxonice edition. I've gone over everything so many times now. The issue revolves around this stupid ui application simply NOT being launched.
sigh |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Sun Jul 31, 2011 5:33 pm Post subject: |
|
|
I vaguely recall having this problem in the distant past. Excerpt from my kernel .config:
Code: | CONFIG_TOI_USERUI=y
CONFIG_TOI_USERUI_DEFAULT_PATH="/sbin/tuxoniceui_text" |
And my boot commandline (for grub2):
Code: | linux /boot/kernel-2.6.38-tuxonice root=/dev/sda ro resume=swap:/dev/sda:0xdd9c000 |
I think the element "root=/dev/sda" may be important -- it specifies which device is the root fs, so the kernel can actually find "/sbin/tuxoniceui_text". _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
alphis n00b
Joined: 12 Jul 2007 Posts: 70
|
Posted: Mon Aug 01, 2011 1:27 pm Post subject: |
|
|
I've the same in my kernel configs.
As for the grub boot line I have the same thing, with the exception that my root partition refers to the partition /dev/sda3 not the general disk /dev/sda. I don't see why it wouldn't be able to reach the file. Someone earlier said it wasn't that it couldn't be found, but that it couldn't be loaded/launched. |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Mon Aug 01, 2011 1:53 pm Post subject: |
|
|
Please verify that:
Code: | # cat /sys/power/tuxonice/user_interface/program
/sbin/tuxoniceui_text |
_________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
alphis n00b
Joined: 12 Jul 2007 Posts: 70
|
Posted: Mon Aug 01, 2011 2:09 pm Post subject: |
|
|
sure.
Quote: |
alphis@drone_x61 ~/ $ cat /sys/power/tuxonice/user_interface/program
/sbin/tuxoniceui_text
|
|
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Mon Aug 01, 2011 2:28 pm Post subject: |
|
|
The obvious thing to try is to switch to tuxonice-sources and see if you get the same error. If not, it's a problem with the pf-sources . If you do, there's something wrong with your setup, which in principle is easy to correct ... _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
alphis n00b
Joined: 12 Jul 2007 Posts: 70
|
Posted: Mon Aug 01, 2011 2:33 pm Post subject: |
|
|
Sorry I was piggybacking onto this thread so I wouldn't end up making another. I'm using gentoo tuxonice-sources 2.6.38-r2. This + pappy seeds for tuxonice 2.6.38 |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Mon Aug 01, 2011 2:40 pm Post subject: |
|
|
Does you get the same result if you use 'pm-hibernate' from the pm-utils package instead of 'hibernate' ?
Or
Code: | # echo 1 > /sys/power/tuxonice/do_hibernate |
? _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Mon Aug 01, 2011 2:53 pm Post subject: |
|
|
BTW, even if the userspace ui program doesn't run, hibernate should still resume successfully, and it will showing progress in the kernel log like
Code: | Reading caches...
...20%...40%...60%...80%...100% |
Are you sure there are no other errors, besides the complaint about the userspace program? One common problem is to have kernel compression driver (e.g., "lzo") as a module, but if you don't have an initramfs it can't be loaded on resume -- the solution is to build it into the kernel. _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
alphis n00b
Joined: 12 Jul 2007 Posts: 70
|
Posted: Mon Aug 01, 2011 3:39 pm Post subject: |
|
|
I remember trying pm-hibernate and not getting anywhere either but I only tried it once and don't recall exactly what happened. I have all crypto routines built into the kernel.
The only error that I notice on resume is that the userspace program cannot be loaded. As for the resuming anyway it doesn't work for me. I do however get the progress 20%...40%.. etc but it always seems to hang on 80%. I had waited for a few minutes a few times but it never got further. Is there any reason that this might occur?
Edit:
I'm adding the part of my grub config that has the resume variable:
resume=file:UUID=1a8320606d5f40d6a7a3b4dd32f4d690:0xfa118
I am using the dedicated files method which I echo'd TuxOnIce into first followed by concatenating 3G of /dev/zero . This file is in / and I used the guide to determine the file offset. echo /suspend_file /sys/power/tuxonice/file/target followed by cat /sys/power/tuxonice/resume. The output was UUID=1a8320606d5f40d6a7a3b4dd32f4d690:0xfa118 which I put into the resume variable after file |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Mon Aug 01, 2011 4:05 pm Post subject: |
|
|
I don't think the hibernation file is all zeroes. When I used a hibernation file I created it with the procedure here.
You can try a swapfile instead to see if the hibernation file is the problem. I use a swapfile now so hibernation works properly through upower+xfce4-power-manager. _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
alphis n00b
Joined: 12 Jul 2007 Posts: 70
|
Posted: Mon Aug 01, 2011 4:41 pm Post subject: |
|
|
I tried your method of determining the suspend file location on disk and its definitely easier than the guide's method. However the output was exactly the same:
root=/dev/sda3 resume=file:UUID=1a8320606d5f40d6a7a3b4dd32f4d690:0xfa118
which at least is consistent. The only thing I don't get is why I get UUIDs instead of /dev/sda3:0xfa118. perhaps I'll change file:/dev/sda3:0xfa118 and see what happens. I'll try that as soon as I get back home. Other than that the resume stops at 80%..... still not sure whats going on there.
I haven't tried the swapfile but I initially tried this using a swap partition which failed in the same way. I'm thinking that isn't the issue. Of course my swap partition is 512MB so maybe there is something to that though. However resizing a partition on an up and running system isn't something I want to add to my misery which is why I decided on using a dedicated suspend file. |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Mon Aug 01, 2011 4:55 pm Post subject: |
|
|
Right, so I would use a swapfile instead of a swap partition. Just follow the mkswap man page, and put it in your /etc/fstab .
I also vaguely recall not being able to get UUID's to work for files, so I just specified the device name, as shown in my boot commandline above. _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
alphis n00b
Joined: 12 Jul 2007 Posts: 70
|
Posted: Mon Aug 01, 2011 7:09 pm Post subject: |
|
|
From your example grub.conf
Quote: | linux /boot/kernel-2.6.38-tuxonice root=/dev/sda ro resume=swap:/dev/sda:0xdd9c000 |
Does it matter that you aren't specifying the actual partition? swap:/dev/sda as opposed to /dev/sdaX ? I will try to change my file from uuid to /dev/sda3 but I want to be sure that that is the correct notation. Logically you should specify /dev/sda3 but you're example is missing that particion number.... Why? |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Mon Aug 01, 2011 7:16 pm Post subject: |
|
|
I have a partitionless disk, so my root fs is on /dev/sda instead of /dev/sdaX . _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
Odysseus Apprentice
Joined: 23 Jun 2004 Posts: 250 Location: Miami, FL. I miss San Francisco!!!
|
Posted: Wed Aug 17, 2011 8:23 am Post subject: Re: pf-sources: after upgrading p3->p4 hibernation doesn' |
|
|
peter4 wrote: | In sys-kernel/pf-sources-2.6.39_p4 this happens when I try to resume from hibernation (using tuxonice):
Code: | Jul 13 17:03:20 localhost kernel: [ 3.714132] TuxOnIce: Image found.
Jul 13 17:03:20 localhost kernel: [ 3.736340] Using dev_t 8:7, returned by blk_lookup_fs_info.
Jul 13 17:03:20 localhost kernel: [ 3.758347] Failed to launch userspace program '/sbin/tuxoniceui_text': Error -2
Jul 13 17:03:20 localhost kernel: [ 3.758350] Launch userspace program failed.
Jul 13 17:03:20 localhost kernel: [ 3.758359] Stopping fuse filesystems.
Jul 13 17:03:20 localhost kernel: [ 3.758361] Freezing user space processes ... (elapsed 0.01 seconds) done.
Jul 13 17:03:20 localhost kernel: [ 3.769024] Stopping normal filesystems.
Jul 13 17:03:20 localhost kernel: [ 3.769026] Freezing remaining freezable tasks ...
Jul 13 17:03:20 localhost kernel: [ 3.773626] Reading kernel & process data...
Jul 13 17:03:20 localhost kernel: [ 3.780039] (elapsed 0.01 seconds) done.
Jul 13 17:03:20 localhost kernel: [ 3.933606] Compress_read returned -22.
Jul 13 17:03:20 localhost kernel: [ 3.933607]
Jul 13 17:03:20 localhost kernel: [ 3.933609]
Jul 13 17:03:20 localhost kernel: [ 3.933610] Breaking out of I/O loop because of result code -22.
Jul 13 17:03:20 localhost kernel: [ 4.546818]
Jul 13 17:03:20 localhost kernel: [ 4.546819] Breaking out of I/O loop because of result code -22.
Jul 13 17:03:20 localhost kernel: [ 4.546820]
Jul 13 17:03:20 localhost kernel: [ 4.546840] Waited for i/o due to readahead not ready 6033 times.
Jul 13 17:03:20 localhost kernel: [ 4.546841] Waited for i/o due to synchronous I/O 3 times.
Jul 13 17:03:20 localhost kernel: [ 4.546843] Failed to read pageset 1.
Jul 13 17:03:20 localhost kernel: [ 4.546844] Restarting all filesystems ...
Jul 13 17:03:20 localhost kernel: [ 4.546847] Restarting tasks ... done. |
Then the system happily continues booting up. Anybody else has this problem? |
I have the exact same problem and dmesg output using pf-sources-2.6.39_p4 and 3.0.1. I sent a report upstream to them. They got back to me saying they would notify the devs at Tuxonice. The problem appears to be lzo related. Disabling compression either in the kernel or via the hibernation script config file allows resume to proceed normally but extremely slow. I determined the issue to be lzo related because if I attempt to build my kernel or initramfs with lzo compression instead of gzip the build fails with errors.
There were a couple of threads over at the Arch Linux forums discussing this issue.
Perhaps you too can file an upstream bug report (not to gentoo devs) so they can see this is affecting many users.
I hope this helps.
Ciao |
|
Back to top |
|
|
Small_Penguin Tux's lil' helper
Joined: 27 May 2005 Posts: 140
|
Posted: Thu Aug 18, 2011 12:18 am Post subject: |
|
|
I believe this to be a problem with tuxonice apparently not going well with the bfs patch. Using tuxonice alone, these issues go away and everything is ok. |
|
Back to top |
|
|
|