How to get the Thinkpad's trackpoint Click function working in FC4

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
One minor thing is bothering me in my Thinkpad Linux setup which is I am very used to the thinkpad trackpoint and my thinkpad the R50e doesn't have touchpad, so when it comes to clicking I am totally depended on the trackpoint, unfortunatley I can't do that in Fc4 so I have to rely on the buttons but that slows me down alot.
Any suggestions/Solutions are appreciated.
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
I went through the mouse settings , nothing that can be changed there that gave me any result, plus the trackpoint's extra functions like click/drag are considered to be something more than what a regular pointing device driver can handle, so for example on the same laptop in windows xp pro, In the mouse properties section, you see an
extra settings installed there especially for trackpoints when you have the regular mouse driver those extra features don't work, therefor I realize that the problem is not with Fedora Core 4 , because Fedora Is doing the logical thing, it detects a trackpoint considers it a mouse installs mouse drivers and moves on, what I am thinking here, the extra trackpoint features need a special driver and in the land of linux somone must have been able to write a driver inorder to make those trackpoint features work.
Wouldn't there be something like that?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: The Linuxator
I went through the mouse settings , nothing that can be changed there that gave me any result, plus the trackpoint's extra functions like click/drag are considered to be something more than what a regular pointing device driver can handle, so for example on the same laptop in windows xp pro, In the mouse properties section, you see an
extra settings installed there especially for trackpoints when you have the regular mouse driver those extra features don't work, therefor I realize that the problem is not with Fedora Core 4 , because Fedora Is doing the logical thing, it detects a trackpoint considers it a mouse installs mouse drivers and moves on, what I am thinking here, the extra trackpoint features need a special driver and in the land of linux somone must have been able to write a driver inorder to make those trackpoint features work.
Wouldn't there be something like that?

http://www.google.com/linux

Try it.
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
OH MAN :Q !!!!! No one would imagine that a device such as a trackpoint would require so much code, I am deeply impressed, I remember when Fedora Core didn't support scroll wheels on any mouse, that was fixed with like 5 lines of code barley inorder to add a third axis.

So here is the question , I copied the whole code into a regular text file, what should I rename it to be ?
And for a driver like this what format should I put this file in.
Where should I in the filesystem move it to ?

n0cmonkey, if this works out nicely I might even wipe out that extra Xp partition, cause this will allow me to be much more productive in Linux than I am right now :beer:

 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: The Linuxator
OH MAN :Q !!!!! No one would imagine that a device such as a trackpoint would require so much code, I am deeply impressed, I remember when Fedora Core didn't support scroll wheels on any mouse, that was fixed with like 5 lines of code barley inorder to add a third axis.

So here is the question , I copied the whole code into a regular text file, what should I rename it to be ?
And for a driver like this what format should I put this file in.
Where should I in the filesystem move it to ?

n0cmonkey, if this works out nicely I might even wipe out that extra Xp partition, cause this will allow me to be much more productive in Linux than I am right now :beer:

Fedora Core is new enough that it would have supported scroll wheels. They've worked for quite a while now, and generally just required an addition to the config file.

I'd check to make sure this isn't in recent kernels.

The file is a diff, so I don't think it'll matter what you name it. I'd suggestion trackpoint.diff or something similar. Then, apply it to the kernel source tree. I'd make a backup (work on a fresh tree or whatever), and then apply it using the patch(1) utility.

 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
How do I apply it to the kernel src tree ? I never had to do that before, And what is the patch(1)utility?
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
So do I go to the terminal as root and type :

man 1 patch /home/sam/trackpoint.diff since I have it saved in the home directory ?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: The Linuxator
So do I go to the terminal as root and type :

man 1 patch /home/sam/trackpoint.diff since I have it saved in the home directory ?

No. Go into the terminal as a non-root user and type: man man

Read that. Then use that knowledge to understand what you need to do with the man 1 patch suggestion.
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
I typed man 1 patch just to see what happens and now it brings up the part about the man one patch that I didn't see when i typ ed man man , I will read that part up and see what I can apply from it.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: The Linuxator
OK still can't see the point here ? The text is very unclear. sorry

I typed man 1 patch just to see what happens and now it brings up the part about the man one patch that I didn't see when i typ ed man man , I will read that part up and see what I can apply from it.

No, the text is not unclear.

man formats and displays the on-line manual pages.

When you don't know how a command works, try looking at the manual page, or more commonly known as the man page. This is the first thing you should do before asking a question (consulting google is another).

man man is the command to look at the man(1) manual page. It describes the use fo the man command. Pay particular attention to the -k flag.

man 1 patch shows you the manual for the general command patch.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: The Linuxator
Still no luck !!

With what? Understanding the man page? Applying the patches? Compiling the kernel? Getting the trackpoint to dance like a monkey when you turn the crank?

Details are good.
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
You have to put in mind I have never done anything like that before, I am patchineg the file to the kernel src tree, the patch man seems so laid out and simple, then again for somone that knows some main parts about how linux runs, I don't know what I am patching the file against exactly , how all works I am still learning it all so please be nicer about it.
Here is the man page for whoever is intrested in knowing what we are talking about, below is but a sample of it :

PATCH(1) PATCH(1)

NAME
patch - apply a diff file to an original

SYNOPSIS
patch [options] [originalfile [patchfile]]

but usually just

patch -pnum <patchfile

DESCRIPTION
patch takes a patch file patchfile containing a difference listing pro-
duced by the diff program and applies those differences to one or more
original files, producing patched versions. Normally the patched ver-
sions are put in place of the originals. Backups can be made; see the
-b or --backup option. The names of the files to be patched are usu-
ally taken from the patch file, but if there?s just one file to be
patched it can specified on the command line as originalfile.

Upon startup, patch attempts to determine the type of the diff listing,
unless overruled by a -c (--context), -e (--ed), -n (--normal), or -u
(--unified) option. Context diffs (old-style, new-style, and unified)
and normal diffs are applied by the patch program itself, while ed
diffs are simply fed to the ed(1) editor via a pipe.

patch tries to skip any leading garbage, apply the diff, and then skip
any trailing garbage. Thus you could feed an article or message con-
taining a diff listing to patch, and it should work. If the entire
diff is indented by a consistent amount, or if a context diff contains
lines ending in CRLF or is encapsulated one or more times by prepending
"- " to lines starting with "-" as specified by Internet RFC 934, this
is taken into account.

With context diffs, and to a lesser extent with normal diffs, patch can
detect when the line numbers mentioned in the patch are incorrect, and
attempts to find the correct place to apply each hunk of the patch. As
a first guess, it takes the line number mentioned for the hunk, plus or
minus any offset used in applying the previous hunk. If that is not
the correct place, patch scans both forwards and backwards for a set of
lines matching the context given in the hunk. First patch looks for a
place where all lines of the context match. If no such place is found,
and it?s a context diff, and the maximum fuzz factor is set to 1 or
more, then another scan takes place ignoring the first and last line of
context. If that fails, and the maximum fuzz factor is set to 2 or
more, the first two and last two lines of context are ignored, and
another scan is made. (The default maximum fuzz factor is 2.) If
patch cannot find a place to install that hunk of the patch, it puts
the hunk out to a reject file, which normally is the name of the output
file plus a .rej suffix, or # if .rej would generate a file name that
is too long (if even appending the single character # makes the file
name too long, then # replaces the file name?s last character). (The
rejected hunk comes out in ordinary context diff form regardless of the
input patch?s form. If the input was a normal diff, many of the con-
texts are simply null.) The line numbers on the hunks in the reject
file may be different than in the patch file: they reflect the approxi-
mate location patch thinks the failed hunks belong in the new file
rather than the old one.

As each hunk is completed, you are told if the hunk failed, and if so
which line (in the new file) patch thought the hunk should go on. If
the hunk is installed at a different line from the line number speci-
fied in the diff you are told the offset. A single large offset may
indicate that a hunk was installed in the wrong place. You are also
told if a fuzz factor was used to make the match, in which case you
should also be slightly suspicious. If the --verbose option is given,
you are also told about hunks that match exactly.

If no original file origfile is specified on the command line, patch
tries to figure out from the leading garbage what the name of the file
to edit is, using the following rules.

First, patch takes an ordered list of candidate file names as follows:

· If the header is that of a context diff, patch takes the old and new
file names in the header. A name is ignored if it does not have
enough slashes to satisfy the -pnum or --strip=num option. The name
/dev/null is also ignored.

· If there is an Index: line in the leading garbage and if either the
old and new names are both absent or if patch is conforming to
POSIX, patch takes the name in the Index: line.

· For the purpose of the following rules, the candidate file names are
considered to be in the order (old, new, index), regardless of the
order that they appear in the header.

Then patch selects a file name from the candidate list as follows:

· If some of the named files exist, patch selects the first name if
conforming to POSIX, and the best name otherwise.

· If patch is not ignoring RCS, ClearCase, and SCCS (see the -g num or
--get=num option), and no named files exist but an RCS, ClearCase,
or SCCS master is found, patch selects the first named file with an
RCS, ClearCase, or SCCS master.

· If no named files exist, no RCS, ClearCase, or SCCS master was
found, some names are given, patch is not conforming to POSIX, and
the patch appears to create a file, patch selects the best name
requiring the creation of the fewest directories.

· If no file name results from the above heuristics, you are asked for
the name of the file to patch, and patch selects that name.

To determine the best of a nonempty list of file names, patch first
takes all the names with the fewest path name components; of those, it
then takes all the names with the shortest basename; of those, it then
takes all the shortest names; finally, it takes the first remaining
name.

Additionally, if the leading garbage contains a Prereq: line, patch
takes the first word from the prerequisites line (normally a version
number) and checks the original file to see if that word can be found.
If not, patch asks for confirmation before proceeding.
The upshot of all this is that you should be able to say, while in a
news interface, something like the following:

| patch -d /usr/src/local/blurfl

and patch a file in the blurfl directory directly from the article con-
taining the patch.

If the patch file contains more than one patch, patch tries to apply
each of them as if they came from separate patch files. This means,
among other things, that it is assumed that the name of the file to
patch must be determined for each diff listing, and that the garbage
before each diff listing contains interesting things such as file names
and revision level, as mentioned previously.

OPTIONS
-b or --backup
Make backup files. That is, when patching a file, rename or copy
the original instead of removing it. When backing up a file that
does not exist, an empty, unreadable backup file is created as a
placeholder to represent the nonexistent file. See the -V or --ver-
sion-control option for details about how backup file names are
determined.

--backup-if-mismatch
Back up a file if the patch does not match the file exactly and if
backups are not otherwise requested. This is the default unless
patch is conforming to POSIX.

--no-backup-if-mismatch
Do not back up a file if the patch does not match the file exactly
and if backups are not otherwise requested. This is the default if
patch is conforming to POSIX.

-B pref or --prefix=pref
Prefix pref to a file name when generating its simple backup file
name. For example, with -B /junk/ the simple backup file name for
src/patch/util.c is /junk/src/patch/util.c.
The upshot of all this is that you should be able to say, while in a
news interface, something like the following:

| patch -d /usr/src/local/blurfl

and patch a file in the blurfl directory directly from the article con-
taining the patch.

If the patch file contains more than one patch, patch tries to apply
each of them as if they came from separate patch files. This means,
among other things, that it is assumed that the name of the file to
patch must be determined for each diff listing, and that the garbage
before each diff listing contains interesting things such as file names
and revision level, as mentioned previously.

OPTIONS
-b or --backup
Make backup files. That is, when patching a file, rename or copy
the original instead of removing it. When backing up a file that
does not exist, an empty, unreadable backup file is created as a
placeholder to represent the nonexistent file. See the -V or --ver-
sion-control option for details about how backup file names are
determined.

--backup-if-mismatch
Back up a file if the patch does not match the file exactly and if
backups are not otherwise requested. This is the default unless
patch is conforming to POSIX.

--no-backup-if-mismatch
Do not back up a file if the patch does not match the file exactly
and if backups are not otherwise requested. This is the default if
patch is conforming to POSIX.

-B pref or --prefix=pref
Prefix pref to a file name when generating its simple backup file
name. For example, with -B /junk/ the simple backup file name for
src/patch/util.c is /junk/src/patch/util.c.
--binary
Read and write all files in binary mode, except for standard output
and /dev/tty. This option has no effect on POSIX-conforming sys-
tems. On systems like DOS where this option makes a difference, the
patch should be generated by diff -a --binary.

-c or --context
Interpret the patch file as a ordinary context diff.

-d dir or --directory=dir
Change to the directory dir immediately, before doing anything else.

-D define or --ifdef=define
Use the #ifdef ... #endif construct to mark changes, with define as
the differentiating symbol.

--dry-run
Print the results of applying the patches without actually changing
any files.

-e or --ed
Interpret the patch file as an ed script.

-E or --remove-empty-files
Remove output files that are empty after the patches have been
applied. Normally this option is unnecessary, since patch can exam-
ine the time stamps on the header to determine whether a file should
exist after patching. However, if the input is not a context diff
or if patch is conforming to POSIX, patch does not remove empty
patched files unless this option is given. When patch removes a
file, it also attempts to remove any empty ancestor directories.

-f or --force
Assume that the user knows exactly what he or she is doing, and do
not ask any questions. Skip patches whose headers do not say which
file is to be patched; patch files even though they have the wrong
version for the Prereq: line in the patch; and assume that patches
are not reversed even if they look like they are. This option does
not suppress commentary; use -s for that.
-F num or --fuzz=num
Set the maximum fuzz factor. This option only applies to diffs that
have context, and causes patch to ignore up to that many lines in
looking for places to install a hunk. Note that a larger fuzz fac-
tor increases the odds of a faulty patch. The default fuzz factor
is 2, and it may not be set to more than the number of lines of con-
text in the context diff, ordinarily 3.

-g num or --get=num
This option controls patch?s actions when a file is under RCS or
SCCS control, and does not exist or is read-only and matches the
default version, or when a file is under ClearCase control and does
not exist. If num is positive, patch gets (or checks out) the file
from the revision control system; if zero, patch ignores RCS,
ClearCase, and SCCS and does not get the file; and if negative,
patch asks the user whether to get the file. The default value of
this option is given by the value of the PATCH_GET environment vari-
able if it is set; if not, the default value is zero if patch is
conforming to POSIX, negative otherwise.

--help
Print a summary of options and exit.

-i patchfile or --input=patchfile
Read the patch from patchfile. If patchfile is -, read from stan-
dard input, the default.

-l or --ignore-whitespace
Match patterns loosely, in case tabs or spaces have been munged in
your files. Any sequence of one or more blanks in the patch file
matches any sequence in the original file, and sequences of blanks
at the ends of lines are ignored. Normal characters must still
match exactly. Each line of the context must still match a line in
the original file.

-n or --normal
Interpret the patch file as a normal diff.

-N or --forward
Ignore patches that seem to be reversed or already applied. See
also -R.

-o outfile or --output=outfile
Send output to outfile instead of patching files in place.

-pnum or --strip=num
Strip the smallest prefix containing num leading slashes from each
file name found in the patch file. A sequence of one or more adja-
cent slashes is counted as a single slash. This controls how file
names found in the patch file are treated, in case you keep your
files in a different directory than the person who sent out the
patch. For example, supposing the file name in the patch file was

/u/howard/src/blurfl/blurfl.c

setting -p0 gives the entire file name unmodified, -p1 gives

u/howard/src/blurfl/blurfl.c

without the leading slash, -p4 gives

blurfl/blurfl.c

and not specifying -p at all just gives you blurfl.c. Whatever you
end up with is looked for either in the current directory, or the
directory specified by the -d option.

--posix
Conform more strictly to the POSIX standard, as follows.

· Take the first existing file from the list (old, new, index) when
intuiting file names from diff headers.

· Do not remove files that are empty after patching.

· Do not ask whether to get files from RCS, ClearCase, or SCCS.

· Require that all options precede the files in the command line.

· Do not backup files when there is a mismatch.

--quoting-style=word
Use style word to quote output names. The word should be one of the
following:

literal
Output names as-is.

shell Quote names for the shell if they contain shell metacharac-
ters or would cause ambiguous output.

shell-always
Quote names for the shell, even if they would normally not
require quoting.

c Quote names as for a C language string.

escape Quote as with c except omit the surrounding double-quote
characters.

You can specify the default value of the --quoting-style option with
the environment variable QUOTING_STYLE. If that environment vari-
able is not set, the default value is shell.

-r rejectfile or --reject-file=rejectfile
Put rejects into rejectfile instead of the default .rej file.
-R or --reverse
Assume that this patch was created with the old and new files
swapped. (Yes, I?m afraid that does happen occasionally, human
nature being what it is.) patch attempts to swap each hunk around
before applying it. Rejects come out in the swapped format. The -R
option does not work with ed diff scripts because there is too lit-
tle information to reconstruct the reverse operation.

If the first hunk of a patch fails, patch reverses the hunk to see
if it can be applied that way. If it can, you are asked if you want
to have the -R option set. If it can?t, the patch continues to be
applied normally. (Note: this method cannot detect a reversed patch
if it is a normal diff and if the first command is an append (i.e.
it should have been a delete) since appends always succeed, due to
the fact that a null context matches anywhere. Luckily, most
patches add or change lines rather than delete them, so most
reversed normal diffs begin with a delete, which fails, triggering
the heuristic.)

-s or --silent or --quiet
Work silently, unless an error occurs.

-t or --batch
Suppress questions like -f, but make some different assumptions:
skip patches whose headers do not contain file names (the same as
-f); skip patches for which the file has the wrong version for the
Prereq: line in the patch; and assume that patches are reversed if
they look like they are.

-T or --set-time
Set the modification and access times of patched files from time
stamps given in context diff headers, assuming that the context diff
headers use local time. This option is not recommended, because
patches using local time cannot easily be used by people in other
time zones, and because local time stamps are ambiguous when local
clocks move backwards during daylight-saving time adjustments.
Instead of using this option, generate patches with UTC and use the
-Z or --set-utc option instead.
-u or --unified
Interpret the patch file as a unified context diff.

-v or --version
Print out patch?s revision header and patch level, and exit.

-V method or --version-control=method
Use method to determine backup file names. The method can also be
given by the PATCH_VERSION_CONTROL (or, if that?s not set, the VER-
SION_CONTROL) environment variable, which is overridden by this
option. The method does not affect whether backup files are made;
it affects only the names of any backup files that are made.

The value of method is like the GNU Emacs ?version-control? vari-
able; patch also recognizes synonyms that are more descriptive. The
valid values for method are (unique abbreviations are accepted):

existing or nil
Make numbered backups of files that already have them, otherwise
simple backups. This is the default.

numbered or t
Make numbered backups. The numbered backup file name for F is
F.~N~ where N is the version number.

simple or never
Make simple backups. The -B or --prefix, -Y or --basename-pre-
fix, and -z or --suffix options specify the simple backup file
name. If none of these options are given, then a simple backup
suffix is used; it is the value of the SIMPLE_BACKUP_SUFFIX envi-
ronment variable if set, and is .orig otherwise.

With numbered or simple backups, if the backup file name is too
long, the backup suffix ~ is used instead; if even appending ~ would
make the name too long, then ~ replaces the last character of the
file name.

--verbose
Output extra information about the work being done.
-x num or --debug=num
Set internal debugging flags of interest only to patch patchers.

-Y pref or --basename-prefix=pref
Prefix pref to the basename of a file name when generating its sim-
ple backup file name. For example, with -Y .del/ the simple backup
file name for src/patch/util.c is src/patch/.del/util.c.

-z suffix or --suffix=suffix
Use suffix as the simple backup suffix. For example, with -z - the
simple backup file name for src/patch/util.c is src/patch/util.c-.
The backup suffix may also be specified by the SIMPLE_BACKUP_SUFFIX
environment variable, which is overridden by this option.

-Z or --set-utc
Set the modification and access times of patched files from time
stamps given in context diff headers, assuming that the context diff
headers use Coordinated Universal Time (UTC, often known as GMT).
Also see the -T or --set-time option.

The -Z or --set-utc and -T or --set-time options normally refrain
from setting a file?s time if the file?s original time does not
match the time given in the patch header, or if its contents do not
match the patch exactly. However, if the -f or --force option is
given, the file time is set regardless.

Due to the limitations of diff output format, these options cannot
update the times of files whose contents have not changed. Also, if
you use these options, you should remove (e.g. with make clean) all
files that depend on the patched files, so that later invocations of
make do not get confused by the patched files? times.

ENVIRONMENT
PATCH_GET
This specifies whether patch gets missing or read-only files from
RCS, ClearCase, or SCCS by default; see the -g or --get option.

POSIXLY_CORRECT
If set, patch conforms more strictly to the POSIX standard by
default: see the --posix option.

QUOTING_STYLE
Default value of the --quoting-style option.

SIMPLE_BACKUP_SUFFIX
Extension to use for simple backup file names instead of .orig.

TMPDIR, TMP, TEMP
Directory to put temporary files in; patch uses the first environ-
ment variable in this list that is set. If none are set, the
default is system-dependent; it is normally /tmp on Unix hosts.

VERSION_CONTROL or PATCH_VERSION_CONTROL
Selects version control style; see the -v or --version-control
option.

FILES
$TMPDIR/p*
temporary files

/dev/tty
controlling terminal; used to get answers to questions asked of the
user

SEE ALSO
diff(1), ed(1)

Marshall T. Rose and Einar A. Stefferud, Proposed Standard for Message
Encapsulation, Internet RFC 934 <URL:ftp://ftp.isi.edu/in-
notes/rfc934.txt> (1985-01).

NOTES FOR PATCH SENDERS
There are several things you should bear in mind if you are going to be
sending out patches.

Create your patch systematically. A good method is the command
diff -Naur old new where old and new identify the old and new directo-
ries. The names old and new should not contain any slashes. The diff
command?s headers should have dates and times in Universal Time using
traditional Unix format, so that patch recipients can use the -Z or
--set-utc option. Here is an example command, using Bourne shell syn-
tax:

LC_ALL=C TZ=UTC0 diff -Naur gcc-2.7 gcc-2.8

Tell your recipients how to apply the patch by telling them which
directory to cd to, and which patch options to use. The option string
-Np1 is recommended. Test your procedure by pretending to be a recipi-
ent and applying your patch to a copy of the original files.

You can save people a lot of grief by keeping a patchlevel.h file which
is patched to increment the patch level as the first diff in the patch
file you send out. If you put a Prereq: line in with the patch, it
won?t let them apply patches out of order without some warning.

You can create a file by sending out a diff that compares /dev/null or
an empty file dated the Epoch (1970-01-01 00:00:00 UTC) to the file you
want to create. This only works if the file you want to create doesn?t
exist already in the target directory. Conversely, you can remove a
file by sending out a context diff that compares the file to be deleted
with an empty file dated the Epoch. The file will be removed unless
patch is conforming to POSIX and the -E or --remove-empty-files option
is not given. An easy way to generate patches that create and remove
files is to use GNU diff?s -N or --new-file option.

If the recipient is supposed to use the -pN option, do not send output
that looks like this:

diff -Naur v2.0.29/prog/README prog/README
--- v2.0.29/prog/README Mon Mar 10 15:13:12 1997
diff -Naur v2.0.29/prog/README prog/README
--- v2.0.29/prog/README Mon Mar 10 15:13:12 1997
+++ prog/README Mon Mar 17 14:58:22 1997

because the two file names have different numbers of slashes, and dif-
ferent versions of patch interpret the file names differently. To
avoid confusion, send output that looks like this instead:

diff -Naur v2.0.29/prog/README v2.0.30/prog/README
--- v2.0.29/prog/README Mon Mar 10 15:13:12 1997
+++ v2.0.30/prog/README Mon Mar 17 14:58:22 1997

Avoid sending patches that compare backup file names like README.orig,
since this might confuse patch into patching a backup file instead of
the real file. Instead, send patches that compare the same base file
names in different directories, e.g. old/README and new/README.

Take care not to send out reversed patches, since it makes people won-
der whether they already applied the patch.

Try not to have your patch modify derived files (e.g. the file config-
ure where there is a line configure: configure.in in your makefile),
since the recipient should be able to regenerate the derived files any-
way. If you must send diffs of derived files, generate the diffs using
UTC, have the recipients apply the patch with the -Z or --set-utc
option, and have them remove any unpatched files that depend on patched
files (e.g. with make clean).

While you may be able to get away with putting 582 diff listings into
one file, it may be wiser to group related patches into separate files
in case something goes haywire.

DIAGNOSTICS
Diagnostics generally indicate that patch couldn?t parse your patch
file.

If the --verbose option is given, the message Hmm... indicates that
there is unprocessed text in the patch file and that patch is attempt-
ing to intuit whether there is a patch in that text and, if so, what



 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
If you know the answer already then tell me, and then maybe I can see what I am missing in here and how we got to the point, but then again I can't interpret it correctly myself it's beyond what I know and I don't want to screw my configurations up, just like that without asking anyone how to get it right.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
You have to put in mind I have never done anything like that before, I am patchineg the file to the kernel src tree, the patch man seems so laid out and simple, then again for somone that knows some main parts about how linux runs, I don't know what I am patching the file against exactly , how all works I am still learning it all so please be nicer about it.

You be nicer. Read the man pages, use google, try things on your own, and ask intelligent questions. Stop the newbie whining crap, it's annoying.

Originally posted by: The Linuxator
If you know the answer already then tell me, and then maybe I can see what I am missing in here and how we got to the point, but then again I can't interpret it correctly myself it's beyond what I know and I don't want to screw my configurations up, just like that without asking anyone how to get it right.

You're not interested in doing anything yourself are you? You just want the answer handed to you?

Download the kernel source files and unpack them in your home directory. I'll call that Linux-xxx from now on.

patch.diff is the patch file you downloaded.

Try this:

cd Linux-xxx/
patch -p0 < ~/patch.diff


If it asks you for a file to patch, try: ~/Linux-xxx/drivers/input/mouse/trackpoint.c

Modify the directory structure as necessary (I have neither the Linux kernel or a Linux machine to test this with, ATM).
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
Originally posted by: n0cmonkey
You have to put in mind I have never done anything like that before, I am patchineg the file to the kernel src tree, the patch man seems so laid out and simple, then again for somone that knows some main parts about how linux runs, I don't know what I am patching the file against exactly , how all works I am still learning it all so please be nicer about it.

You be nicer. Read the man pages, use google, try things on your own, and ask intelligent questions. Stop the newbie whining crap, it's annoying.

Originally posted by: The Linuxator
If you know the answer already then tell me, and then maybe I can see what I am missing in here and how we got to the point, but then again I can't interpret it correctly myself it's beyond what I know and I don't want to screw my configurations up, just like that without asking anyone how to get it right.

You're not interested in doing anything yourself are you? You just want the answer handed to you?

Download the kernel source files and unpack them in your home directory. I'll call that Linux-xxx from now on.

patch.diff is the patch file you downloaded.

Try this:

cd Linux-xxx/
patch -p0 < ~/patch.diff


If it asks you for a file to patch, try: ~/Linux-xxx/drivers/input/mouse/trackpoint.c

Modify the directory structure as necessary (I have neither the Linux kernel or a Linux machine to test this with, ATM).

WOW, you are annoying you SNOB, how smart you think you are ? This forum is about getting help and especially if you are a noobie, you are such an arrogant POS
If you want to help out then your help is much appreciated and I will remember it for you, but if you want to sit there and start directing insults at me then take your help and shove it , getting a trackpint to work isn't worth my dignity.
You get someone and throw a man page at them, full of nothing they have passed on before, WTF ?
 

bersl2

Golden Member
Aug 2, 2004
1,617
0
0
Originally posted by: The Linuxator
Originally posted by: n0cmonkey
You have to put in mind I have never done anything like that before, I am patchineg the file to the kernel src tree, the patch man seems so laid out and simple, then again for somone that knows some main parts about how linux runs, I don't know what I am patching the file against exactly , how all works I am still learning it all so please be nicer about it.

You be nicer. Read the man pages, use google, try things on your own, and ask intelligent questions. Stop the newbie whining crap, it's annoying.

Originally posted by: The Linuxator
If you know the answer already then tell me, and then maybe I can see what I am missing in here and how we got to the point, but then again I can't interpret it correctly myself it's beyond what I know and I don't want to screw my configurations up, just like that without asking anyone how to get it right.

You're not interested in doing anything yourself are you? You just want the answer handed to you?

Download the kernel source files and unpack them in your home directory. I'll call that Linux-xxx from now on.

patch.diff is the patch file you downloaded.

Try this:

cd Linux-xxx/
patch -p0 < ~/patch.diff


If it asks you for a file to patch, try: ~/Linux-xxx/drivers/input/mouse/trackpoint.c

Modify the directory structure as necessary (I have neither the Linux kernel or a Linux machine to test this with, ATM).

WOW, you are annoying you SNOB, how smart you think you are ? This forum is about getting help and especially if you are a noobie, you are such an arrogant POS
If you want to help out then your help is much appreciated and I will remember it for you, but if you want to sit there and start directing insults at me then take your help and shove it , getting a trackpint to work isn't worth my dignity.
You get someone and throw a man page at them, full of nothing they have passed on before, WTF ?

OK, man page probably has too much information to cope with. That's why it's important to show just what you understand from it, and just what you don't. The idea is that you surely aren't helpless; show us how you think things work, and we'll correct wrong ideas as you go; but don't just throw your hands up (or give us such an impression), because we don't like doing things for you.

It's the old "give a man a fish, and you feed him for a day; teach a man to fish, and you feed him for a lifetime" principle.

So, how do you think patch(1) works? What do you think is the structure of a patch file (hint: find other patches, and also play around with diff(1)), and what does this suggest about how the program works? What does Google say about patch (granted, it's a common word, and the idea has many different forms in a computing context)?
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
Originally posted by: bersl2
Originally posted by: The Linuxator
Originally posted by: n0cmonkey
You have to put in mind I have never done anything like that before, I am patchineg the file to the kernel src tree, the patch man seems so laid out and simple, then again for somone that knows some main parts about how linux runs, I don't know what I am patching the file against exactly , how all works I am still learning it all so please be nicer about it.

You be nicer. Read the man pages, use google, try things on your own, and ask intelligent questions. Stop the newbie whining crap, it's annoying.

Originally posted by: The Linuxator
If you know the answer already then tell me, and then maybe I can see what I am missing in here and how we got to the point, but then again I can't interpret it correctly myself it's beyond what I know and I don't want to screw my configurations up, just like that without asking anyone how to get it right.

You're not interested in doing anything yourself are you? You just want the answer handed to you?

Download the kernel source files and unpack them in your home directory. I'll call that Linux-xxx from now on.

patch.diff is the patch file you downloaded.

Try this:

cd Linux-xxx/
patch -p0 < ~/patch.diff


If it asks you for a file to patch, try: ~/Linux-xxx/drivers/input/mouse/trackpoint.c

Modify the directory structure as necessary (I have neither the Linux kernel or a Linux machine to test this with, ATM).

WOW, you are annoying you SNOB, how smart you think you are ? This forum is about getting help and especially if you are a noobie, you are such an arrogant POS
If you want to help out then your help is much appreciated and I will remember it for you, but if you want to sit there and start directing insults at me then take your help and shove it , getting a trackpint to work isn't worth my dignity.
You get someone and throw a man page at them, full of nothing they have passed on before, WTF ?

OK, man page probably has too much information to cope with. That's why it's important to show just what you understand from it, and just what you don't. The idea is that you surely aren't helpless; show us how you think things work, and we'll correct wrong ideas as you go; but don't just throw your hands up (or give us such an impression), because we don't like doing things for you.

It's the old "give a man a fish, and you feed him for a day; teach a man to fish, and you feed him for a lifetime" principle.

So, how do you think patch(1) works? What do you think is the structure of a patch file (hint: find other patches, and also play around with diff(1)), and what does this suggest about how the program works? What does Google say about patch (granted, it's a common word, and the idea has many different forms in a computing context)?


I agree with some of what you are saying, but can you explain this to me, where does it in the man page say that I need to downlaod the krnl source and work with arecompile the kernel, then replacing the original with the new one and ...etc ok wew were talking about patching the kernel,
 

Glendor

Diamond Member
Mar 23, 2000
3,911
0
76
I thought I saw something INSIDE FC4 that you had to select if you had a ThinkPad laptop. There was also something specific to check if you have a Toshiba I think. I don't have my Linux box running or I would look for it myself, but I'm pretty sure that what I saw enabled certain features unique to the laptop brand. Maybe the trackpoint stuff is part of that.

Good Luck,
Glendor...
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
That would be great I am gonna try look for that , but can you be more specefic if you can remembere is it something in the system tools or more like in the system prefrences ?