Fedora Linux Support Community & Resources Center
  #1  
Old 9th July 2010, 01:34 PM
ForLorn SouL Offline
Registered User
 
Join Date: Jul 2010
Posts: 3
linuxfedorafirefox
Unhappy [SOVLVED] how to install synaptics driver, modify and recompile it?

hey guys

Im new to fedora
I've been using ubuntu for about two years

my inspiron laptop has a problem with the touchpad
if fails to regester some of the taps
this issue exists only in linux, in all distros
while in windows it works perfectly

on ubuntu I used to solve the problem by modifying and recompiling the synaptics driver
this how I fix it on ubuntu

Code:
1. apt-get source xserver-xorg-input-synaptics
2. sudo apt-get build-dep xserver-xorg-input-synaptics
3- modify the file in the home folder/xserver-xorg-input-synaptics-1.2.2/src/synaptics.c 

4. save & close the file
5. sudo dpkg-buildpackage
I don't know how to do it in fedora
when I tried yum install xserver-xorg-input-synaptics
it says no package

if anyone can help me I would be thankfull

Last edited by ForLorn SouL; 9th July 2010 at 05:24 PM. Reason: solved
Reply With Quote
  #2  
Old 9th July 2010, 02:22 PM
parish Offline
Registered User
 
Join Date: Feb 2005
Posts: 594
linuxfedorafirefox
Re: how to install synaptics driver, modify and recompile it?

Quote:
Originally Posted by ForLorn SouL View Post
/...snip/

I don't know how to do it in fedora
when I tried yum install xserver-xorg-input-synaptics
it says no package

if anyone can help me I would be thankfull
On my F13 system the package is called xorg-x11-drv-synaptics; xorg-x11-drv-synaptics-1.2.2-6.fc13.i686 to be exact.

Last edited by parish; 9th July 2010 at 02:24 PM.
Reply With Quote
  #3  
Old 9th July 2010, 02:41 PM
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 4,752
linuxubuntufirefox
Re: how to install synaptics driver, modify and recompile it?

Here's the quick and dirty way.

Code:
yumdownloader --source xorg-x11-drv-synaptics
su -c 'yum-builddep xorg*rpm'
rpm -ivh xorg*.src.rpm
cd ~/rpmbuild/SOURCES/
tar xvf xf*bz2
rm xf*bz2
vi xf86-input-synaptics-1.2.2/src/synaptics.c
tar cjvf xf86-input-synaptics-1.2.2.tar.bz2 xf86-input-synaptics-1.2.2/
rm -rf xf86-input-synaptics-1.2.2
cd ../SPECS/
rpmbuild -bb xorg-x11-drv-synaptics.spec
You'll find the resulting rpm packages in the ~/rpmbuild/RPMs directory.

By the way the only difference between this and the proper way is that you would not directly edit the files but instead generate a patch, then modify the spec file to apply your new patch.
Reply With Quote
  #4  
Old 9th July 2010, 02:44 PM
ForLorn SouL Offline
Registered User
 
Join Date: Jul 2010
Posts: 3
linuxfedorafirefox
Re: how to install synaptics driver, modify and recompile it?

yep buddy I got it

but now Im even more confused
this is the original bug in ubuntu
https://bugs.launchpad.net/debian/+s...cs/+bug/133060

the solution was to modify the driver
exactly doing this
Code:
The file to modify is in xserver-xorg-input-synaptics-1.2.2/src/synaptics.c just after the line 2518 where it says:

 Bool inside_active_area;

 /* update hardware state in shared memory */
 if (shm)
 {
    shm->x = hw->x;
    shm->y = hw->y;
    shm->z = hw->z;
 ...

Now it should look like:

    Bool inside_active_area;

    if (hw->x == 1 && hw->y == 5855)
    {
        hw->numFingers = 0;
        hw->fingerWidth = 0;
        hw->z = 0;
        hw->x = HIST(0).x;
        hw->y = HIST(0).y;
    }

    /* update hardware state in shared memory */
    if (shm)
    {
        shm->x = hw->x;
        shm->y = hw->y;
        shm->z = hw->z;
now in the F13 driver
there is no file such as "synaptics.c"
so I don't know what to modify
Reply With Quote
  #5  
Old 9th July 2010, 02:52 PM
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 4,752
linuxubuntufirefox
Re: how to install synaptics driver, modify and recompile it?

Hmm... I'm not sure what you downloaded, but that file is definitely in the xorg-x11-drv-synaptics source rpm.

BUT it's only around 2400 lines so...
Reply With Quote
  #6  
Old 9th July 2010, 03:27 PM
ForLorn SouL Offline
Registered User
 
Join Date: Jul 2010
Posts: 3
linuxfedorafirefox
Re: how to install synaptics driver, modify and recompile it?

^^
I'm trying to find the correct line
sorry my reply above was to Parish
before I see ur solution
I'm working on it now

---------- Post added at 05:27 PM CDT ---------- Previous post was at 04:56 PM CDT ----------

Quote:
Originally Posted by Dies View Post
Here's the quick and dirty way.

Code:
yumdownloader --source xorg-x11-drv-synaptics
su -c 'yum-builddep xorg*rpm'
rpm -ivh xorg*.src.rpm
cd ~/rpmbuild/SOURCES/
tar xvf xf*bz2
rm xf*bz2
vi xf86-input-synaptics-1.2.2/src/synaptics.c
tar cjvf xf86-input-synaptics-1.2.2.tar.bz2 xf86-input-synaptics-1.2.2/
rm -rf xf86-input-synaptics-1.2.2
cd ../SPECS/
rpmbuild -bb xorg-x11-drv-synaptics.spec
You'll find the resulting rpm packages in the ~/rpmbuild/RPMs directory.

By the way the only difference between this and the proper way is that you would not directly edit the files but instead generate a patch, then modify the spec file to apply your new patch.
AWEEEEEEEEEESOME

it works 100%
although I had to use natiuls to modify the file and save
because i didn't know how to save it using the terminal

otherwise everthing worked great

thaaaaaaanx alot
Reply With Quote
Reply

Tags
driver, install, modify, recompile, synaptics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
synaptics driver help Bassinator Hardware & Laptops 3 29th June 2008 03:31 AM
how to modify network install kernel ? interzoneuk Servers & Networking 0 24th August 2006 10:35 AM
Synaptics touchpad driver help kkempter Using Fedora 0 29th July 2005 11:30 PM


Current GMT-time: 14:39 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat