Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Left click on touchpad both scrolls and left clicks
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
nuff
n00b
n00b


Joined: 20 May 2005
Posts: 40
Location: Stockholm, Sweden

PostPosted: Fri Jun 19, 2009 8:01 pm    Post subject: Left click on touchpad both scrolls and left clicks Reply with quote

The touchpad on my LG A1 Express laptop has a strange behavior. When I use the left click on the touchpad, it frist scrolls up one step and then send the left click signal which make it very hard to hit a button on a webpage (or any other application).

I wonder if anyone know how to get rid of this? I've not seen this problem with any external USB mouse.

I've only tried with the xf86-input-synaptics driver, I never managed to successfully compile the other one.

My xorg.conf are fairly simple:

Code:

Section "ServerLayout"
        Identifier     "Layout0"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "TouchPad" "AlwaysCore"
        InputDevice    "Mouse1" "CorePointer"
EndSection

Section "Module"
        Load "freetype"
        # Load "xtt"
        Load  "extmod"
        Load  "glx"
        Load  "dri"
        Load  "dbe"
        Load  "record"
        Load  "xtrap"
        Load  "type1"
       Load  "synaptics"
EndSection

Section "InputDevice"
        Identifier "Mouse1"
        Driver "mouse"
        Option "Emulate3Buttons"
        Option "Protocol" "ImPS/2"
        Option "Device" "/dev/input/mice"
EndSection

Section "InputDevice"
        Driver "synaptics"
        Identifier "TouchPad"
  Option      "Protocol" "auto-dev"
  Option      "SHMConfig" "on"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "se"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
 ### Comment all HorizSync and VertRefresh values to use DDC:
#       HorizSync    31.5 - 31.5
#       VertRefresh  50.0 - 70.0
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "intel"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1280x768"
        EndSubSection
EndSection
Back to top
View user's profile Send private message
Poedel
n00b
n00b


Joined: 25 Oct 2006
Posts: 63

PostPosted: Fri Jun 19, 2009 8:45 pm    Post subject: Reply with quote

I suppose you did recently upgrade to xorg-server 1.5x or higher.
There HID devices and many others are per default managed bei hal.
You can still use the old layout, but you should tell your system to do so.

I migrated to the new layout letting hal determine the hardware.
The xf86 drivers are used by the new way of using xorg-server1.5x

For that there is an official how2 somewhere. I only got the german one :?
Probably you already know about that.
Therefore you need to have hal and dbus running, evdev keyboard synaptic in your devices section in make.conf and xorg-server compiled with hal useflag.
Finally there is a policy for synaptic devices that has to be used.

go ahead, friend ;)
Back to top
View user's profile Send private message
nuff
n00b
n00b


Joined: 20 May 2005
Posts: 40
Location: Stockholm, Sweden

PostPosted: Sat Jun 20, 2009 10:53 am    Post subject: Reply with quote

Yes, I took the time to upgrade Xorg now when I don't need the laptop for my daily work a few weeks.

hald and dbus where already running. I recompiled xorg-server with evdev, hald, etc. but still no luck.

Here's a cut from Xorg.0.log

Code:

(II) config/hal: Adding input device SynPS/2 Synaptics TouchPad
(II) LoadModule: "synaptics"
(II) Loading /usr/lib64/xorg/modules/input//synaptics_drv.so
(II) Module synaptics: vendor="X.Org Foundation"
        compiled for 1.6.1.901, module version = 1.1.2
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 4.0
(II) Synaptics touchpad driver version 1.1.2
(**) Option "Device" "/dev/input/event5"
(II) SynPS/2 Synaptics TouchPad: x-axis range 1472 - 5472
(II) SynPS/2 Synaptics TouchPad: y-axis range 1408 - 4448
(II) SynPS/2 Synaptics TouchPad: pressure range 0 - 255
(II) SynPS/2 Synaptics TouchPad: finger width range 0 - 0
(II) SynPS/2 Synaptics TouchPad: buttons: left right middle double triple
(--) SynPS/2 Synaptics TouchPad: touchpad found
(**) SynPS/2 Synaptics TouchPad: always reports core events
(II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD)
(**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
(**) SynPS/2 Synaptics TouchPad: (accel) filter chain progression: 2.00
(**) SynPS/2 Synaptics TouchPad: (accel) filter stage 0: 20.00 ms
(**) SynPS/2 Synaptics TouchPad: (accel) set acceleration profile 0
(--) SynPS/2 Synaptics TouchPad: touchpad found
(II) config/hal: Adding input device AT Translated Set 2 keyboard
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event4"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "se"
(II) intel(0): [drm] mapped front buffer at 0xd3000000, handle = 0x2fff9000


I think one of the problems are that it's finding a "middle" button which i don't have. I only have a left- and a right click button. When I'm pushing left click it scrolls up and left clicks and when I push the right click button it scrolls down and right clicks.

I tried to override it with saying in xorg.conf that my touchpad only have two buttons but it didn't help. :(

Code:

Section "InputDevice"
    Identifier    "Mouse0"
    Driver        "evdev"
    Option        "Device"    "/dev/input/event1"
    Option        "CorePointer"
    Option        "Buttons"    "2"
EndSection
Back to top
View user's profile Send private message
Poedel
n00b
n00b


Joined: 25 Oct 2006
Posts: 63

PostPosted: Sat Jun 20, 2009 12:48 pm    Post subject: Reply with quote

you should completely leave out the HID area, 'cause they're handled by hal.
Have a look at that what remains of a once real huge xorg.conf:

Code:
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
EndSection

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

Section "ServerFlags"
    Option         "NoPM"   "true"
    Option      "AllowEmptyInput" "true"
    Option      "AutoAddDevices" "true"
EndSection

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

use the area with allow empty input & autoadddevices and you're almost there.

I rearranged my snyptic one 'cause it had strange behaviour, too.

Code:
poedel2duo /etc/hal/fdi/policy # cat 11-x11-synaptics.fdi
<?xml version="1.0" encoding="utf-8"?>
<deviceinfo version="0.2">
  <device>
     <match key="info.capabilities" contains="input.touchpad">
      <merge key="input.x11_driver" type="string">synaptics</merge>
       <merge key="input.x11_options.SHMConfig" type="string">true</merge>
        <merge key="input.x11_options.TapButton1" type="string">1</merge>
         <merge key="input.x11_options.ClickFinger1" type="string">1</merge>
          <merge key="input.x11_options.MaxTapMove" type="string">2000</merge>
           <merge key="input.x11_options.VertEdgeScroll" type="string">1</merge>
            <merge key="input.x11_options.HorizTwoFingerScroll" type="string">0</merge>
             <merge key="input.x11_options.VertTwoFingerScroll" type="string">0</merge>
              <merge key="input.x11_options.SpecialScrollAreaRight" type="string">true</merge>
    </match>
  </device>
</deviceinfo>


hth poedel
Back to top
View user's profile Send private message
nuff
n00b
n00b


Joined: 20 May 2005
Posts: 40
Location: Stockholm, Sweden

PostPosted: Sat Jun 20, 2009 8:22 pm    Post subject: Reply with quote

I tried your configuration but it didn't make any difference besides cleaning up my configuration a bit which isn't too bad either.

After noticed when running "xev" that then button 1 was pressed a button press signal was sent from button 1 but a button release signal was sent from both button 1 and button 4.

Code:

KeymapNotify event, serial 34, synthetic NO, window 0x0,
    keys:  4294967211 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

ButtonPress event, serial 34, synthetic NO, window 0x2400001,
    root 0xab, subw 0x2400002, time 28949091, (44,46), root:(48,66),
    state 0x800, button 1, same_screen YES

ButtonRelease event, serial 34, synthetic NO, window 0x2400001,
    root 0xab, subw 0x2400002, time 28949125, (44,46), root:(48,66),
    state 0x900, button 1, same_screen YES

ButtonRelease event, serial 34, synthetic NO, window 0x2400001,
    root 0xab, subw 0x2400002, time 28949125, (44,46), root:(48,66),
    state 0x800, button 4, same_screen YES

LeaveNotify event, serial 34, synthetic NO, window 0x2400001,
    root 0xab, subw 0x0, time 28949125, (44,46), root:(48,66),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 0


xinput set-button-map "SynPS/2 Synaptics TouchPad" 1 2 3 0 0 solves this problem but disables all kinds of scrolling but I can atleast use my touchpad.
Back to top
View user's profile Send private message
Poedel
n00b
n00b


Joined: 25 Oct 2006
Posts: 63

PostPosted: Sun Jun 21, 2009 4:16 am    Post subject: Reply with quote

try to rename or disable anything concerning input devices and let hal handle it, e.g.
.xbindkeys
.Xmodmap
etc.
You got several things in you system from the old & new style that do not work smoothly together.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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