Patching kernel for Acer Travelmate C100
I finally got around to pulling my old Acer Travelmate C100 (an original Tablet PC!) out of storage and installing Kubuntu 6.10 on it, and it works like a charm, tablet functionality and all.
The problem is, the battery status doesn't work-- it says no battery is even connected. I'm apparently not the only person with this problem. On the Acer Travelmate C100 page on the Gentoo wiki, someone said: Quote:
The patch they list to fix it is pretty short, but targeted against an older kernel. What would be the easiest way to apply a similar fix to a 2.6.17 kernel? I'm good enough at linux to follow the howtos (like this one) to compile my own kernel, but not good enough to author a new diff file. If anyone can help or has other ideas, I'd love to hear it. Thank you! -- Paradoxdruid |
Quote:
Or ubuntu as you seem to have tracked an easy way? Or you author a new diff file... The patch doesn't seem THAT complicated (I know it's relative but here you want to add linux support to something that has windows initially.. it is called hacking.. challenging) If you have a bit of experience in C, it should be possible; the hardest part has been done. Print the patch, study it. Print the current arch/i386/kernel/acpi/boot.c and see how you can inject the patch in this file. If you have no experience in C, you need to learn C. Also you need to understand patch format (not hard at all). -- means lines removed ++ means lines added other ones are lines so that patch can resynchronise on fix lines. Otherwise, keep your running kernel? |
Why not just use a 2.6.11 kernel and patch that?
You could try the patch against the 2.6.17 kernel. If the line numbers in the diff file don't match, patch scans both forwards and backwards for a set of lines matching the context given in the hunk. Maybe you'll get lucky and you've got nothing to lose. The patch is pretty small, you could probably apply it by hand without much problem. This part tells you which file is affected Code:
+++ linux-2.6.11/arch/i386/kernel/acpi/boot.c Code:
@@ -506,27 +506,6 @@ If you are successful at making the changes to the 2.6.17 kernel code, this will create a new patch that you can then share with the community Code:
diff -Naur [old_file...] [new_file...] > [patch_name...].patch |
Hummm
Try it but I'm pessimistic... I ignored a bit this part Quote:
Copy the vmlinuz and /lib/modules/2.6xxx from the CD to the disk. Pray & Reboot |
Quote:
Quote:
Side note, I double-posted this thread to the Ubuntu subforum because I wasn't sure where the best fit was. A moderator closed that thread, so I can't apologize there. But I didn't mean to forum spam! Thanks for all the help so far, everyone! |
Quote:
I thought posting an an ubuntu-only forum. Probably that there are more ubuntu gurus overthere.. An idea (if I understood well that one kernel works) If you take my debian source kernel, it comes like this: vanilla kernel + list of patches Try to get the source package of your working kernel, maybe you get the patch already done? :twocents: Have fun! |
I did it!
I manually applied the patch that Dean Townsley wrote (from the Gentoo Hardware Wiki) to the linux-source-2.6.20 from the Ubuntu repositories. After making my kernel packages and installing them, it works like a charm-- now I see battery status, and I can control the dynamic CPU frequency changes. So I followed your instructions to turn my changes into a patch file to share with the community, attached below. I'll see if I can get it to the Acer Travelmate C100 pages across the web. Quote:
Thanks for the help, all! |
Told ya'. :) Thanks for helping the community.
|
Well done!
|
All times are GMT -5. The time now is 01:35 AM. |