LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 07-09-2007, 06:40 PM   #1
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Rep: Reputation: 15
Newbie question: Applying kernel patch for Thinkpad laptop


I am using kernel-2.6.21.5 on Slackware 12.0 on my IBM thinkpad laptop. I would like to re-compile kernel to enable acpi support, so I downloaded a patch file "thinkpad-acpi-0.14-20070701_v2.6.21.5.patch.gz" from
http://ibm-acpi.sourceforge.net/
What I did is unzip the patch file and apply the patch
Code:
# gunzip /home/chunhua/Downloads/thinkpad-acpi-0.14-20070701_v2.6.21.5.patch.gz
# patch -d /usr/src/linux-2.6.21.5/ < /home/chunhua/Downloads/thinkpad-acpi-0.14-20070701_v2.6.21.5.patch 
The next patch would delete the file ibm-acpi.txt,
which does not exist!  Assume -R? [n] 
Apply anyway? [n]
Am I doing something stupid? I should answer yes or no? I have never applied any patches before. Can someone instruct me how to apply a patch?
 
Old 07-09-2007, 07:10 PM   #2
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Hmm, try this:
cd to the Linux kernel source directory
then run patch with -p1
Code:
# cd /usr/src/linux-2.6.21.5
# patch -p1 < /home/chunhua/Downloads/thinkpad-acpi-0.14-20070701_v2.6.21.5.patch
 
Old 07-09-2007, 07:22 PM   #3
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Original Poster
Rep: Reputation: 15
haha,

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Applying Kernel Patch browser Linux - Software 2 08-31-2005 06:18 AM
Applying a kernel patch.. RoaCh Of DisCor Linux - Software 2 05-07-2005 07:41 PM
applying kernel patch pirozzi Debian 1 12-01-2004 07:47 AM
applying ck kernel patch Abe_the_Man Linux - General 1 01-29-2004 11:43 AM
kernel compilation; applying patch h/w Linux - Software 11 07-23-2003 10:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration