LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-14-2004, 07:31 PM   #1
haroldopaulino
LQ Newbie
 
Registered: Jul 2004
Location: USA
Distribution: Fedora Core 2
Posts: 20

Rep: Reputation: 0
Thumbs down Mouse tapping and scrooling with Fedora Core 2


I have a HP-Pavilion 5300 laptop, using Fedora Core 2 but I cant use the tapping/scrooling of my mouse. I found a thread about this, but when I did the procedure, my X server didnt restart any more, so I'm wondering if somebody could help anyway. My mouse is a synaptics and I already got all the drivers, have done all the procedures, but at the end, when I alter the xorg.conf... I loose the X server, then I use the backup xorg to make things work again.

Here is my xorg.conf:

# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "HP Pavilion M45/S40 Monitor"
HorizSync 31.5 - 50.0
VertRefresh 56.0 - 75.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "radeon"
VendorName "Videocard vendor"
BoardName "ATI Radeon (generic)"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection
 
Old 07-14-2004, 10:13 PM   #2
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
Do you know if the HP uses a Synaptic touchpad if so you will need to install the driver found here:
Synaptics Touchpad.

You will want to install the binary unless you have the X source, I had the x source so I just compiled the driver.

Then go into your xorg.conf file and make the following changes:

Section "Module"
...
Load "synaptics"
...
EndSection

Then the following changes:

Section "InputDevice"
Identifier "Synaptics Mouse"
Driver "synaptics"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "MinSpeed" "0.06"
Option "MaxSpeed" "0.12"
Option "AccelFactor" "0.0010"
EndSection

Then go back to the top of your xorg.conf file and make the following changes:

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "AlwaysCore "
InputDevice "Synaptics Mouse" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

HTH Let us know how it goes.
 
Old 07-15-2004, 10:16 AM   #3
haroldopaulino
LQ Newbie
 
Registered: Jul 2004
Location: USA
Distribution: Fedora Core 2
Posts: 20

Original Poster
Rep: Reputation: 0
Unhappy Not Yet

I couldnt do this thing work cause when I run "make" there is a lots of errors and, basically nothing was right. I got another kernel to my Fedora, the 8k stacks to 686s. On the makefile I'm supposed modify the TOP variable, setting the correct xfree-sourcecode tree. One detail: I dont know where is mine xfree-sourcecode tree. Normally would be /usr/src/packages/BUILD/xc, but I have this two differents paths in my system:

/usr/src/linux-2.6.5-1.358 (no package sub-directory in this directory)
/usr/src/redhat (no package sub-directory in this directory, but has BUILD directory, however, empty!!)

so, I tried compile my "linux-2.6.5-1.358" kernel using the basics commands for that, (make, makeconfig...)

this took me more than one hour to get done, and at the end, I tried again, but all the erros continued, I guess it's because I dont know where my xfree-sourcecode tree is.
 
Old 07-15-2004, 11:22 AM   #4
haroldopaulino
LQ Newbie
 
Registered: Jul 2004
Location: USA
Distribution: Fedora Core 2
Posts: 20

Original Poster
Rep: Reputation: 0
Question Getting there

Actually, I found my xc directory, and I did "make" and then got back to the synaptics driver directory and did make again, indicating mt xc directory in the "makefile" before, of course. The was a little list of errors but now I finished the process and restarted the whole computer, to see if works... guess what? My FC2 dont initialize anymore, the last thing I see is: "Type "I" to entering in interactive mode...", after that, the monitor die and all become black, the hard disk stops... well, I'll get this reinstalling the whole operating system, this is not my worry now. I'm worried with my Synaptics Touchpad mouse, and if I have to reinstall my operating system 100 times, there no problem about that, I'm just concerned about my mouse working on the operating system.

I didnt all the steps, carefully and slowly, but didnt work!
 
Old 07-15-2004, 06:42 PM   #5
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
After you untar the file instead of running through compiling try this:
cd to the synaptics directory
cp synaptics_drv.o /usr/X11R6/lib/modules/input


Then make the changes as above the file you are copying is already in binary form.

Now you just shutdown X server by logging out then back in.

Doing it this way you don't have to have all the devel libraries for X or need the source for your kernel.

Let Us Know how it Goes
 
Old 07-16-2004, 06:28 AM   #6
haroldopaulino
LQ Newbie
 
Registered: Jul 2004
Location: USA
Distribution: Fedora Core 2
Posts: 20

Original Poster
Rep: Reputation: 0
Still trying...

I did all over again, as you said, but nothing worked. This is what happens when I run the "make" of synaptics:

[root@localhost synaptics]# make
rm -f synaptics.o
gcc -c -O2 -ansi -pedantic -Wall -Wpointer-arith -I. -I/home/3d/xc/xc/programs/Xserver/hw/xfree86/common -I/home/3d/xc/xc/programs/Xserver/hw/xfree86/loader -I/home/3d/xc/xc/programs/Xserver/hw/xfree86/os-support -I/home/3d/xc/xc/programs/Xserver/mi -I/home/3d/xc/xc/programs/Xserver/include -I/home/3d/xc/xc/exports/include/X11 -I/home/3d/xc/xc/include/extensions -I/home/3d/xc/xc/include -I/home/3d/xc/xc/programs/Xserver/hw/xfree86 -I/home/3d/xc/xc/programs/Xserver/hw/xfree86/parser -I/home/3d/xc/xc -I/home/3d/xc/xc/exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DDPMSExtension -DPIXPRIV -DPANORAMIX -DRENDER -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DSMART_SCHEDULE -DBUILDDEBUG -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DXFree86Module synaptics.c
In file included from /home/3d/xc/xc/programs/Xserver/hw/xfree86/common/xf86.h:40,
from synaptics.c:42:
/home/3d/xc/xc/programs/Xserver/hw/xfree86/common/xf86str.h:44:21: xf86Pci.h: No such file or directory
In file included from /home/3d/xc/xc/programs/Xserver/hw/xfree86/common/xf86.h:40,
from synaptics.c:42:
/home/3d/xc/xc/programs/Xserver/hw/xfree86/common/xf86str.h:861: error: syntax error before "IOADDRESS"
/home/3d/xc/xc/programs/Xserver/hw/xfree86/common/xf86str.h:861: warning: no semicolon at end of struct or union
/home/3d/xc/xc/programs/Xserver/hw/xfree86/common/xf86str.h:925: error: syntax error before '}' token
/home/3d/xc/xc/programs/Xserver/hw/xfree86/common/xf86str.h:925: warning: type defaults to `int' in declaration of `ScrnInfoRec'
/home/3d/xc/xc/programs/Xserver/hw/xfree86/common/xf86str.h:925: error: ISO C forbids data definition with no type or storage class
In file included from synaptics.c:42:
/home/3d/xc/xc/programs/Xserver/hw/xfree86/common/xf86.h:107: error: syntax error before '*' token
/home/3d/xc/xc/programs/Xserver/hw/xfree86/common/xf86.h:107: warning: type defaults to `int' in declaration of `xf86GetPciConfigInfo'
/home/3d/xc/xc/programs/Xserver/hw/xfree86/common/xf86.h:107: error: ISO C forbids data definition with no type or storage class
/home/3d/xc/xc/programs/Xserver/hw/xfree86/common/xf86.h:271: error: syntax error before "IOADDRESS"
In file included from synaptics.c:58:
synaptics.h:94: error: `SwitchMode' redeclared as different kind of symbol
/home/3d/xc/xc/programs/Xserver/hw/xfree86/common/xf86str.h:905: error: previous declaration of `SwitchMode'
make: *** [synaptics.o] Error 1


it seems like this driver dont work at all, that why I'm passing thru all this.
Actually, I looked the COMPATIBILITY file, and the nearest laptop compatible is the HP PAVILION ZE5400, but mine is ZE5300, and I dont know if this have something to that...

Anyway, I'm still trying.
 
Old 07-16-2004, 06:58 PM   #7
haroldopaulino
LQ Newbie
 
Registered: Jul 2004
Location: USA
Distribution: Fedora Core 2
Posts: 20

Original Poster
Rep: Reputation: 0
HELP ME!!!!!!!

Does anyone have any clue about this problem?
 
Old 07-16-2004, 09:20 PM   #8
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
Did you try just copying the synaptics_drv.o file to /usr/X11R6/lib/modules/input.

Look in the untarred directory and you will see that synaptics_drv.o is in this directory you don't have to make,make install since it is already compiled just a straight copy should do it.

cp synaptics_drv.o /usr/X11R6/lib/modules/input from within the untarred directory.

You will need to su before using the above command.
 
Old 07-16-2004, 10:28 PM   #9
haroldopaulino
LQ Newbie
 
Registered: Jul 2004
Location: USA
Distribution: Fedora Core 2
Posts: 20

Original Poster
Rep: Reputation: 0
Question Not yet

I copied manually the file as you told some threads above, but the problem is ahead, when I alter the Xfree configuration. Something happens that make the whole system die. Actually, there is something that I make, but i'm not sure about, like create another "input" section, with the mouse stuff (the idea of have two mouse input drive me crazy), the same regarding the "serverlayout", indicating 2 mouses, even using "alwayscore" or "corepoint"...

The truth is: I DONT KNOW WHAT ELSE TO DO.
 
Old 07-19-2004, 05:45 PM   #10
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
The two mouse inputs would allow you to use a USB mouse and also your touchpad, if you don't use a USB mouse or PS/2 mouse you don't need the InputDevice "Mouse0" "AlwaysCore" , if down in the config file you had changed the line that starts with

Section "InputDevice"
Identifier "Mouse0"
etc..

And you didn't have the line for "Mouse0" "AlwaysCore" could lead to difficulties.

What does your config file look like after the changes you had made?
 
Old 08-16-2004, 05:08 PM   #11
jlconnor
LQ Newbie
 
Registered: Aug 2004
Distribution: Fedora Core 2
Posts: 4

Rep: Reputation: 0
synaptics driver and fedora core 2

One problem with the configuration is that Fedora Core 2 no longer uses the /dev/psaux device as the mouse. It uses /dev/input/mice for all mice. But that still doesn't cure the problem. I installed the binary, changed my xorg.config, and pointed my synaptice mouse to /dev/input/mice and the whole system locks when it tries to start X. This is annoying because the Xord.log file doesn't get written into, so I have no idea what the problem is now.
If anyone has any ideas, please post them here. I'd love to get this thing working.
 
Old 08-16-2004, 05:33 PM   #12
jlconnor
LQ Newbie
 
Registered: Aug 2004
Distribution: Fedora Core 2
Posts: 4

Rep: Reputation: 0
BTW if you don't care about the scrolling, just add the option <i>psmouse.proto=imps</i> to your kernel arguments in grub.conf.
But I'm still interested in getting this whole thing working, so please, if anyone still has any ideas... ;-)

[EDIT]: actually adding the kernel argument above solved all my problems. even scrolling works on Fedora Core 2!

Last edited by jlconnor; 08-17-2004 at 02:16 PM.
 
Old 08-18-2004, 09:52 AM   #13
ianni67
LQ Newbie
 
Registered: Aug 2004
Distribution: fedora core 3
Posts: 6

Rep: Reputation: 0
Thank you all! the last suggestion by jlconnor worke perfectly on my ASUS L8400, without any need for further drivers!

Last edited by ianni67; 08-20-2004 at 09:15 AM.
 
  


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
USB mouse and Fedora Core 4 jeffpr Linux - Laptop and Netbook 2 06-26-2005 10:15 AM
Mouse PS/2 in Fedora Core 3 jasooon Linux - Hardware 1 06-19-2005 01:15 PM
Mouse PS/2 Fedora Core 3 jasooon Linux - Hardware 1 06-17-2005 03:11 PM
mouse undetected on Fedora Core Niflheim Linux - Hardware 4 03-25-2005 10:59 AM
Touchpad mouse - tapping and scrooling haroldopaulino Linux - Hardware 0 07-19-2004 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:28 PM.

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