Re: userspace ui doesn't work with latest tuxonice-head

François Valenduc <[email protected]> Tue, 17 Apr 2012 17:40:58 +0200
Newsgroups gmane.linux.swsusp.devel
Message-ID <[email protected]>
Le 17/04/12 13:29, Nigel Cunningham a écrit :
> Hi.
>
> On 17/04/12 21:16, François Valenduc wrote:
>> Le 16/04/12 15:35, Andrey Rahmatullin a écrit :
>>> On Sun, Apr 08, 2012 at 12:05:40PM +0200, François Valenduc wrote:
>>>> I have tried the latest tuxonice-head git tree and I notice that the
>>>> userspace interface doesn't work. I get this message in the logs:
>>>>  pc-francois kernel: [   48.132314] userspace ui: Failed to contact
>>>> userspace process.
>>>> I don't encounter this problem with tuxonice on the 3.3 kernel.
>>>>
>>>> Does anybody knows what's happening ?
>>>> Thanks in advance for your help.
>>> I've had this just once on 3.3rc7. It didn't happen before or after that.
>>>
>>> I encounter this problem everytime with the latest tuxonice-head git
>>> tree. The attached patch I made to solve the merge conflicts before
>>> 3.4-rc1 allows userspace ui to work correctly. However, with this,
>>> TuxOnIce can't be compiled as a module.
>>
> Ah.. so I messed up the usermode helper changes. Patch applies cleanly
> to current head - I'm testing it now.
>
> Regards,
>
> Nigel
I don't pretend this patch is perfect as my ability to write C code is
extremely limited. So, you probably need to correct it. In fact I merge
the mainline kernel in my local copy of your tuxonice-head branch and I
did the same in my tuxonice version where I resolved the merge conflicts
in an other way. Then I did a "git-diff" between the two branches and
the patch is more or less the result of that. It also showed some
differences in tuxonice_atomic_copy.c that I removed as it seems it was
unrelated to the userui problem. But as already said, my changes prevent
tuxonice from being compiled as a module and I get this error:

ERROR: "__usermodehelper_disable" [kernel/power/tuxonice_core.ko] undefined!
ERROR: "__usermodehelper_set_disable_depth"
[kernel/power/tuxonice_core.ko] undefined!
make[1]: *** [__modpost] Erreur 1

Thanks,

François

_______________________________________________
TuxOnIce-devel mailing list
[email protected]
http://lists.tuxonice.net/listinfo/tuxonice-devel