Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
configuring my mouse
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Tue Oct 21, 2008 3:53 pm    Post subject: configuring my mouse Reply with quote

I have a touchpad and an usb mouse. neither works the way I want them to, i.e. no scrolling. (left, middle and right button works on both touchpad and mouse.)

/proc/bus/input/devices
Code:

I: Bus=0019 Vendor=0000 Product=0002 Version=0000
N: Name="Power Button (FF)"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
U: Uniq=
H: Handlers=kbd event0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input1
U: Uniq=
H: Handlers=event1
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button (CM)"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input2
U: Uniq=
H: Handlers=kbd event2
B: EV=3
B: KEY=10000000000000 0

I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/devices/virtual/input/input3
U: Uniq=
H: Handlers=mouse0 event3
B: EV=7
B: KEY=70000 0 0 0 0
B: REL=3

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input4
U: Uniq=
H: Handlers=kbd event4
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0011 Vendor=0002 Product=0008 Version=0000
N: Name="PS/2 Mouse"
P: Phys=isa0060/serio1/input1
S: Sysfs=/devices/platform/i8042/serio1/input/input5
U: Uniq=
H: Handlers=mouse1 event5
B: EV=7
B: KEY=70000 0 0 0 0
B: REL=3

I: Bus=0011 Vendor=0002 Product=0008 Version=7321
N: Name="AlpsPS/2 ALPS GlidePoint"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input6
U: Uniq=
H: Handlers=mouse2 event6
B: EV=f
B: KEY=420 70000 0 0 0 0
B: REL=3
B: ABS=1000003

I: Bus=0003 Vendor=1267 Product=0210 Version=0100
N: Name="PS/2+USB Mouse"
P: Phys=usb-0000:00:1d.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/input/input7
U: Uniq=
H: Handlers=mouse3 event7
B: EV=17
B: KEY=70000 0 0 0 0
B: REL=103
B: MSC=10


the only mouse thingy in xorg.conf is this,
Code:

Section "InputDevice"
        Identifier  "Mouse1"
        Driver      "mouse"
        Option      "Protocol" "PS/2"   # PS/2 Mouse
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection
Back to top
View user's profile Send private message
elsphinc
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 139
Location: Lake Tahoe

PostPosted: Tue Oct 21, 2008 4:07 pm    Post subject: mouse Reply with quote

Option "Emulate3Buttons" "yes"

i think you need this line under your Option "Device" line
_________________
elsphinc # kickin_ass &
mysql> create database namesdb;
Back to top
View user's profile Send private message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Tue Oct 21, 2008 4:27 pm    Post subject: Reply with quote

hi that didn't help neither for the touchpad nor the mouse.
Back to top
View user's profile Send private message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Mon Oct 27, 2008 10:59 am    Post subject: Reply with quote

changing from ps2 to "auto", and setting zaxismapping to 45 got me a scrolling mouse. still no touchpad scroll though.


EDIT:

got a touchpad entry from a bud. dloaded the Synaptics driver as well. but still nothing. do I need to compile a kernel or whatever with a Synaptics module?
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Oct 27, 2008 11:52 am    Post subject: Reply with quote

Hi, can you post your emerge --info and also your /etc/X11/xorg.conf plz ?

Mine, I only have this and everything is fine:

Code:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder58)  Wed Oct  1 15:12:53 PDT 2008

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    Identifier   "Mouse0"
    Driver   "mouse"
    Option "Protocol"    "Auto"   # Auto detect
    Option "Device"      "/dev/input/mice"
    Option "Name"        "Logitech USB Gaming Mouse"
    Option "ZAxisMapping"   "4 5 6 7"
    Option "SendCoreEvents" "true"
    Option "Emulate3Buttons"
EndSection



Section "InputDevice"

    Identifier   "Keyboard0"
    Driver   "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc105"
    Option "XkbLayout"   "ca(fr)"

EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
#    HorizSync       30.0 - 110.0
#    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


As you can see, I don't have at all any synaptic.

But, did you add evdev synaptics to your /etc/make.conf and run
Code:
emerge -uDNv world
Back to top
View user's profile Send private message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Mon Oct 27, 2008 12:01 pm    Post subject: Reply with quote

hi. I've been on the irc a bit. I've done this with my xorg,
Code:

Section "InputDevice"
    Identifier    "Synaptics Touchpad"
    Driver        "synaptics"
    Option        "Name" "SynPS/2 Synaptics TouchPad"
#    Option        "SendCoreEvents" "true"
#    Option        "CorePointer"
    Option        "Device" "/dev/event6"
    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        "HorizScrollDelta" "0" # horizontal scroll speed
    Option        "VertScrollDelta" "100" # vertical scroll speed
#    Option         "VertTwoFingerScroll" "1" # toggles 'two finger' vertical scroll
    Option        "MinSpeed" "0.09" # min pointer speed
    Option        "MaxSpeed" "0.15" # max pointer speed
    Option        "AccelFactor" "0.015" # pointer acceleration
    Option        "SHMConfig" "on"
    Option        "Emulate3Buttons" "on"
EndSection

Section "InputDevice"
        Identifier  "Mouse1"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
#       Option      "ZAxisMapping" "4 5 6 7"
        Option      "ZAxisMapping" "4 5"
       Option      "Emulate3Buttons" "yes"
EndSection


also evdev seems to be alright. zgrep CONFIG_INPUT_EVDEV /usr/src/linux/.config gave me this:
Code:

CONFIG_INPUT_EVDEV=y
Back to top
View user's profile Send private message
admax88
n00b
n00b


Joined: 23 Aug 2008
Posts: 21

PostPosted: Mon Oct 27, 2008 5:40 pm    Post subject: Reply with quote

Is there any particular reason why you're not using the evdev X driver for you mouse input? I've found evdev to be pretty good for USB mice

I have this for my USB mouse
Code:

Section "InputDevice"
   Identifier "LogitechUSB"
   Driver   "evdev"
   Option   "Name"   "Logitech USB-PS/2 Optical Mouse"
   Option "evBits" "+1-2"
   Option "keyBits" "~272-287"
   Option "relBits" "~0-2 ~6 ~8"
   Option "Pass" "3"
   Option "Buttons" "9"
   Option "ZAxisMapping" "4 5"
   Option "ButtonMapping" "1 2 3 4 5 8 9 6 7"
EndSection


and this for my synaptics touchpad
Code:

Section "InputDevice"
   Identifier  "TouchPad"
   Driver      "synaptics"
   Option      "Protocol" "auto-dev"
   Option      "SHMConfig" "on"
   Option   "LeftEdge" "1900"
   Option   "RightEdge"   "5400"
   Option   "TopEdge"   "1400"
   Option   "BottomEdge"   "4500"
   Option   "FingerLow"   "25"
   Option   "FingerHigh"   "30"
   Option   "MaxTapTime"   "180"
   Option   "MaxTapMove"   "220"
   Option   "VertScrollDelta"   "20"
   Option   "HorizScrollDelta"   "20"
   Option   "MinSpeed"   "0.02"
   Option   "MaxSpeed"   "0.18"
   Option   "AccelFactor"   "0.0010"
   Option   "TapButton1" "1"
   Option   "TapButton2" "2"
   Option   "TapButton3" "3"
   Option   "PalmDetect" "true"
EndSection
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Mon Oct 27, 2008 7:13 pm    Post subject: Reply with quote

At least

Protocol "IMPS/2"

not "PS/2"
Back to top
View user's profile Send private message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Tue Oct 28, 2008 10:27 am    Post subject: Reply with quote

admax88 wrote:
Is there any particular reason why you're not using the evdev X driver for you mouse input? I've found evdev to be pretty good for USB mice


I see no reason to do that when my current setup works great for the mouse. the touchpad is another issue though. why is there no device option in your xorg for the touchpad?
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Oct 28, 2008 12:09 pm    Post subject: Reply with quote

Hi, we gonna test something,

run this in a console :

Code:

# cat /dev/input/mice


And touch your touchpad....do you see any characters at all when you move ?
Back to top
View user's profile Send private message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Tue Oct 28, 2008 12:43 pm    Post subject: Reply with quote

yes. but I get much more output running event6.
Back to top
View user's profile Send private message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Mon Nov 10, 2008 8:56 pm    Post subject: Reply with quote

anyone?
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Mon Nov 10, 2008 10:51 pm    Post subject: Reply with quote

indietrash wrote:
anyone?


What's your current status ?
Back to top
View user's profile Send private message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Wed Nov 12, 2008 10:36 am    Post subject: Reply with quote

mouse works. pretty much the same as before my first post with the touchpad though. I have evdev and synaptics, and my touchpad entry in x.org looks like this:

Code:
Section "InputDevice"
    Identifier    "Synaptics Touchpad"
    Driver        "synaptics"
    Option        "Name" "SynPS/2 Synaptics TouchPad"
#    Option        "SendCoreEvents" "true"
#    Option        "CorePointer"
    Option        "Device" "/dev/event6"
    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        "HorizScrollDelta" "0" # horizontal scroll speed
    Option        "VertScrollDelta" "100" # vertical scroll speed
#    Option         "VertTwoFingerScroll" "1" # toggles 'two finger' vertical scroll
    Option        "MinSpeed" "0.09" # min pointer speed
    Option        "MaxSpeed" "0.15" # max pointer speed
    Option        "AccelFactor" "0.015" # pointer acceleration
    Option        "SHMConfig" "on"
    Option        "Emulate3Buttons" "on"
EndSection
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Wed Nov 12, 2008 1:58 pm    Post subject: Reply with quote

# Option "SendCoreEvents" "true"
# Option "CorePointer"

You do need one of those, unless you specify this option later in ServerLayout section
Back to top
View user's profile Send private message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Thu Nov 13, 2008 1:29 pm    Post subject: Reply with quote

yeah it works now. great :D

so can anyone help me set it up correctly? as it is now, the left button is the left button. the right is the right. clicking both results in middle-click. great!

but I also want it so that when clicking the touchpad itself, it acts as left-click (this works without the synaptics section in the xorg.conf). also I want vertical scroll by using the right edge of the touchpad and vertical by using the bottom edge. anyone know how to set up this?
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Thu Nov 13, 2008 7:47 pm    Post subject: Reply with quote

indietrash wrote:
yeah it works now. great :D

so can anyone help me set it up correctly? as it is now, the left button is the left button. the right is the right. clicking both results in middle-click. great!

but I also want it so that when clicking the touchpad itself, it acts as left-click (this works without the synaptics section in the xorg.conf). also I want vertical scroll by using the right edge of the touchpad and vertical by using the bottom edge. anyone know how to set up this?


This is my synaptics section that works as you described (think that does not work are what is called 'tap' - 'click' through touchpad do work though)
Code:


Section "InputDevice"

# Identifier and driver

    Identifier   "Touchpad"
    Driver   "synaptics"

    Option   "Protocol"      "dev-auto"
    Option   "SHMConfig"      "true"

    Option "LeftEdge" "130"
    Option "RightEdge" "840"
    Option "TopEdge" "130"
    Option "BottomEdge" "640"
    Option "FingerLow" "5"
    Option "FingerHigh" "20"
    Option "TapButton1" "1"
    Option "MaxTapTime" "180"
    Option "MaxTapMove" "2200"
    Option "EmulateMidButtonTime" "75"
    Option "CoastingSpeed"   "40"
    Option "CornerCoasting"   "true"
    Option "VertScrollDelta" "20"
    Option "HorizScrollDelta" "20"
    Option "MinSpeed" "0.60"
    Option "MaxSpeed" "1.10"
    Option "AccelFactor" "0.030"
    Option "EdgeMotionMinSpeed" "200"
    Option "EdgeMotionMaxSpeed" "200"
    Option "CircularScrolling" "1"
    Option "CircScrollDelta" "0.1"
    Option "CircScrollTrigger" "2"

EndSection


it is, however, set on a sensitive side
Back to top
View user's profile Send private message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Fri Nov 14, 2008 7:01 am    Post subject: Reply with quote

hi. worked like A CHARM :D
now I just gotta set the sensitivity, heh. thanks heaps bro :D
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Fri Nov 14, 2008 5:05 pm    Post subject: Reply with quote

indietrash wrote:
hi. worked like A CHARM :D
now I just gotta set the sensitivity, heh. thanks heaps bro :D


Thinks that I particularly had adjected are
Code:

    Option "FingerLow" "5"
    Option "FingerHigh" "20"


somehow my touchpad + my fingers rarely generate rpressure 'force' above 90, and 40 is a frequent value for light touch.

To see what pressure values your touchpad generates *) , do

synclient -m 1

press touchpad and read off the values in 'z' column

*) as you may know it is really not the force of the press, but the surface area of the contact that is registered by many touchpads.
So numbers depend somewhat on your finger :)

Traditional value for 'MaxTapMove' is 200, what I have is the leftover of my tries to make it it work (which does not on my touchpad)
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Fri Nov 14, 2008 5:07 pm    Post subject: Reply with quote

indietrash wrote:
hi. worked like A CHARM :D
now I just gotta set the sensitivity, heh. thanks heaps bro :D


Also, try circular scrolling (which is enabled in my setup). You start scrolling on a side but then move finger to circle it around
the center of touchpad in Ipod style.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Sat Nov 15, 2008 5:26 am    Post subject: Reply with quote

BTW, I solved my issue with not having tap and drag feature

MaxTapTime=180

is too short for me (this is in milliseconds between tap and hold to start dragging).

I put it to

MaxTapTime=1000

and everything works beatifully. Did not try smaller values
Back to top
View user's profile Send private message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Sat Nov 15, 2008 9:34 pm    Post subject: Reply with quote

what controls how close to the left edge you have to be in order to use vertical scrolling? as of now it is too close to the center for my tastes.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Sat Nov 15, 2008 9:39 pm    Post subject: Reply with quote

indietrash wrote:
what controls how close to the left edge you have to be in order to use vertical scrolling? as of now it is too close to the center for my tastes.


Don't know of the top of my head, but

Code:

man synaptics


has all (unless there are some hidden) options described

And do you really mean left, and not right edge ?


Options "Option "RightEdge" "840" " may have something to do with it. Remember Touchpads, usually have 1024x768
resolutions, so the edge options as stand in my configuration take approx 130 points (or more - for the scrolling
right 1024-840=184 points !) on each for the edge.

Play again with synclient -m 1 and see the coordinates that you get when your finger is close to the edge where
you like. I noticed it is difficult (i.e requires special care) with my fat finger to get closer than 40 points to the formal
1024x768 edges. So try, say, 900 or 920 for the right edge (actually I agree it is a bit close to the center even for me,
I catch scroll accidently from time to time)
Back to top
View user's profile Send private message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Sun Nov 16, 2008 5:02 pm    Post subject: Reply with quote

whops yes right edge. 920 works alright. thanks. the reason I asked instead of read is because it is a quite large man entry and I only wanted this one specific thing. now everything works according to my tastes. thanks heaps. all of yous :D
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Sun Nov 16, 2008 8:59 pm    Post subject: Reply with quote

indietrash wrote:
whops yes right edge. 920 works alright. thanks. the reason I asked instead of read is because it is a quite large man entry and I only wanted this one specific thing. now everything works according to my tastes. thanks heaps. all of yous :D


I don't mind helping, the reason I mentioned man is that I was in the office without access to my notebook with synaptics and thought pointing you to man will produce faster results than me going home :)

BTW thanks to you as well, because of this thread I returned to the issue and made tap and drag to work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum