Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot patch Kernel with swsusp2!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
gattu_marrudu
n00b
n00b


Joined: 30 Dec 2004
Posts: 65
Location: Sardinia, Italy

PostPosted: Sun Mar 13, 2005 5:33 pm    Post subject: Cannot patch Kernel with swsusp2! Reply with quote

Hi,
I'm try to get the Berlios' software suspend to work on my kernel (2.6.10-gentoo-r5). I downloaded the swsusp patch from the Berlios site (software-suspend-2.1.7-for-2.6.10) and tried to apply the patch.
I got this message:
Quote:
laptop1 root # cd /usr/src/linux
laptop1 linux # /usr/local/src/software-suspend-2.1.7-for-2.6.10/apply /usr/local/src/software-suspend-2.1.7-for-2.6.10/
Applying 100-kdb-v4.4-2.6.10-common-1 ...
100-kdb-v4.4-2.6.10-common-1 will not apply cleanly. Reverse applied patches [Yn]? y
Reversing patches...
Done.


So, when I make menuconfig the menu item "Software Suspend 2 is not there!
The same thing happens if I don't reverse the patches.
What does "reversing" actually mean? Is there a way to apply the patch manually?
gm
Back to top
View user's profile Send private message
inode77
Veteran
Veteran


Joined: 20 Jan 2004
Posts: 1303
Location: Heart of Europe

PostPosted: Sun Mar 13, 2005 7:33 pm    Post subject: Reply with quote

Why don't use the inoffical ebuilds from this howto?
http://gentoo-wiki.com/HOWTO_Software_Suspend_v2
Back to top
View user's profile Send private message
gattu_marrudu
n00b
n00b


Joined: 30 Dec 2004
Posts: 65
Location: Sardinia, Italy

PostPosted: Thu Mar 17, 2005 8:39 am    Post subject: Reply with quote

That's exactly the instructions I followed.

Quote:
To apply your the swsusp2 kernel patch, first go to your kernel source directory, and run the supplied "apply" script from there, specifying where you put the patches:
Code:
cd /usr/src/linux/
/tmp/software-suspend-x.x.x-for-2.x.x/apply /tmp/software-suspend-x.x.x-for-x.x.x/

You can also ask the apply script for help:
Code:
/tmp/software-suspend-x.x.x-for-2.x.x/apply --help

The kernel should now be patched.

No way.
Quote:

If errors occurred, the patches for some reason didn't work with your kernel version. A reason for this could be that the gentoo kernel versions already contain a custom patchset. Try to download a different version of the patch and/or your kernel sources.

I already tried with another kernel version, and with another patch version. It didn't work, and anyway it doesn't seem a real solution.
I remember I read somewhere that I should edit the patches manually. But how?
Back to top
View user's profile Send private message
inode77
Veteran
Veteran


Joined: 20 Jan 2004
Posts: 1303
Location: Heart of Europe

PostPosted: Thu Mar 17, 2005 12:32 pm    Post subject: Reply with quote

Quote:
Install kernel sources

Get the current 2.6 kernel sources:

# emerge development-sources

Unofficial sys-kernel/suspend2-sources ebuilds which automate the process of applying the software-suspend patch are available from: http://dev.gentoo.org/~brix/files/overlay/sys-kernel/suspend2-sources/


I never said apply patches, I said use an unoffical ebuild.
Back to top
View user's profile Send private message
eduardo451
Apprentice
Apprentice


Joined: 29 Apr 2005
Posts: 173
Location: Indianapolis, IN

PostPosted: Sat May 07, 2005 2:56 pm    Post subject: Reply with quote

I've been reading up on using unofficial ebuils and portage overlays, but I am still not clear on how to obtain the suspend2-sources ebuild. Does Brix's site work with gensync, or is there some other way to let my system know where to get it? I've set up a /usr/local/portage directory, and have a portage overlay in my make.conf file pointing to it. I am not sure what else I need to do. Thanks in advance.
Back to top
View user's profile Send private message
seventhguardian
Apprentice
Apprentice


Joined: 10 May 2004
Posts: 261
Location: Portugal

PostPosted: Sat May 14, 2005 9:51 pm    Post subject: Reply with quote

Hi!

I'm emerging the suspend2-sources right now, but I have a doubt: this kernel is based upon what? gentoo-sources? or other?

I was happy with the gentoo-sources kernel, and I'm a bit reluctant to swicth.. :roll:
Back to top
View user's profile Send private message
eduardo451
Apprentice
Apprentice


Joined: 29 Apr 2005
Posts: 173
Location: Indianapolis, IN

PostPosted: Sun May 15, 2005 6:33 am    Post subject: Reply with quote

I can only guess it's based on the vanilla kernel. I figured out how to emerge the swsusp2 ebuild, and at first I thought it didn't work b/c it didn't appear in my kernel after. It turns out there was a new kernel in my /usr/src directory called 2.6.11-suspend2.
Back to top
View user's profile Send private message
seventhguardian
Apprentice
Apprentice


Joined: 10 May 2004
Posts: 261
Location: Portugal

PostPosted: Sun May 15, 2005 1:59 pm    Post subject: Reply with quote

Yes... It seems a plain vanilla with the swsusp2 patch applied..... :?

I had to manually patch with squashfs and vesa tng. And I found the system a bit unresponsive with this kernel (probably it also misses other gentoo patches..), so I don't like it as it is.

Also, the software suspend is giving me lots of headaches with the x server.. So I'm not as excited as I was before.... :?
Back to top
View user's profile Send private message
eduardo451
Apprentice
Apprentice


Joined: 29 Apr 2005
Posts: 173
Location: Indianapolis, IN

PostPosted: Sun May 15, 2005 4:49 pm    Post subject: Reply with quote

Tell me about it. The swsusp2 does not resolve any problems with modules. At least it didn't for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum