LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-17-2015, 03:59 PM   #16
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 855

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383

I had the same problem with my Elantech touchpad.

I found a workaround with the "enable-softbuttons.sh" script from this GitHub repository. Just put it on a path and make it autostart with X. It might be useful to you.

P.S. Right now GitHub is experiencing outages. If you can't get access to the repository I may paste the script here (it's ~40 LOC long).

Last edited by sombragris; 08-17-2015 at 04:03 PM.
 
Old 08-17-2015, 04:14 PM   #17
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by sombragris View Post
I had the same problem with my Elantech touchpad.

I found a workaround with the "enable-softbuttons.sh" script from this GitHub repository. Just put it on a path and make it autostart with X. It might be useful to you.

P.S. Right now GitHub is experiencing outages. If you can't get access to the repository I may paste the script here (it's ~40 LOC long).
This does utilize xinputs instead of synclient, but I don't think this will enable the ability to enable/disable the pad (but I could certainly be wrong).

To go further with this, find out what device number your mouse is by typing xinput. Once you have that, replace all entries of $ID with your mouse ID #.

Code:
xinput get-button-map $ID
xinput list-props $ID
xinput query-state $ID 
# And then run this again with the button pressed to disable the touchpad to see if anything is different
xinput query-state $ID
 
Old 08-17-2015, 04:16 PM   #18
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
With /etc/X11/xorg.conf.d empty and /etc/modprobe.d/ empty too (no psmouse.conf), here is Xorg.0.log (attachment).

X tries to load the synaptics driver because of /usr/share/X11/xorg.conf.d/50-synaptics.conf.
Attached Files
File Type: txt Xorg.0.log.txt (71.0 KB, 10 views)

Last edited by stf92; 08-17-2015 at 04:28 PM.
 
Old 08-17-2015, 04:34 PM   #19
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by stf92 View Post
With /etc/X11/xorg.conf.d empty and /etc/modprobe.d/ empty too (no psmouse.conf), here is Xorg.0.log (attachment).
Are you sure? I see this in Xorg.0.log:
Code:
[  1174.863] (**) Option "CorePointer"
[  1174.863] (**) Mouse1: always reports core events
[  1174.863] (**) Option "Protocol" "PS/2"
[  1174.863] (**) Option "Device" "/dev/mouse"
and the marker (**) means "from config file".

More generally,
Code:
grep "(\*\*)" Xorg.0.log.txt|wc -l
86
Don't you have a file whose name ends in .conf directly in /etc/X11 then?

Last edited by Didier Spaier; 08-17-2015 at 05:06 PM.
 
Old 08-17-2015, 05:03 PM   #20
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Here are the outputs. And there is a difference between states, though only in the position coordinates. Temporarily I am using this to disable the pad:

alias 0='xinput set-prop 11 "Device Enabled" 0'
Attached Files
File Type: txt xinput.txt (835 Bytes, 10 views)
File Type: txt get-button-map.txt (28 Bytes, 7 views)
File Type: txt list-props.txt (1.8 KB, 9 views)
File Type: txt query-state.txt (302 Bytes, 9 views)
File Type: txt query-state-new.txt (302 Bytes, 8 views)

Last edited by stf92; 08-17-2015 at 05:07 PM.
 
Old 08-17-2015, 05:16 PM   #21
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by Didier Spaier View Post
Are you sure? I see this in Xorg.0.log:
Code:
[  1174.863] (**) Option "CorePointer"
[  1174.863] (**) Mouse1: always reports core events
[  1174.863] (**) Option "Protocol" "PS/2"
[  1174.863] (**) Option "Device" "/dev/mouse"
and the marker (**) means "from config file".

More generally,
Code:
grep "(\*\*)" Xorg.0.log.txt|wc -l
86
Don't you have a file whose name ends in .conf directly in /etc/X11 then?
Yes I have. But only files in /etc/X11/xorg.conf.d are scanned, AFAIK. And the log file posted says; "Using config directory /etc/X11/xorg.conf.d and /usr/share/X11/xorg.conf.d. The latter is where X is reading the name of the driver (synaptics).
 
Old 08-17-2015, 05:19 PM   #22
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Oh yes. It's reading from /etc/X11/xorg.conf. I'll rename it.

Now the log is:
Attached Files
File Type: txt Xorg.0.log.txt (71.9 KB, 12 views)

Last edited by stf92; 08-17-2015 at 05:28 PM.
 
Old 08-17-2015, 05:26 PM   #23
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by stf92 View Post
Yes I have. But only files in /etc/X11/xorg.conf.d are scanned, AFAIK.
That's wrong. Configuration files are gathered from a lot of directories among which /etc/X11. See "man xorg.conf".
 
Old 08-17-2015, 05:32 PM   #24
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Allright. Post #22 has the log now. Now synaptics module is being loaded with no pro blems. Now I think I can follow the steps outlined in post #7 by bassmadrigal. But isn't that way how it all began in the thread?

Last edited by stf92; 08-17-2015 at 05:39 PM.
 
Old 08-17-2015, 05:41 PM   #25
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Yes... You still have the settings that come from /usr/share/X11/xorg.conf.d/50-synaptics.conf.

If you want to change them, do this:
Code:
cp /usr/share/X11/xorg.conf.d/50-synaptics.conf /etc/X11/xorg.conf.d
and edit the copy as advised in the file itself, that also suggests you to use "synclient -l" to see all available options and "man synaptics" for details about what the options do.

PS Nowadays it's generally better to let the X server use its default settings, and by exception write only the specific settings you need in small files ending in .conf. Also, making only one change at a time helps testing and checking the effects of your customization.

Last edited by Didier Spaier; 08-17-2015 at 05:48 PM. Reason: PS added.
 
Old 08-17-2015, 05:52 PM   #26
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by stf92 View Post
Now synaptics module is being loaded with no pro blems. Now I think I can follow the steps outlined in post #7 by bassmadrigal. But isn't that way how it all began in the thread?
Of course the advice bassmadrigal already gave you in post #7 was the way to go. If only you didn't have this xorg.conf that confused us
 
Old 08-17-2015, 07:50 PM   #27
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thank you guys. As to the contents of 50-synaptics.conf, I feel lost here. In the synaptics man page, there is
Code:
 Option "LTCornerButton" "integer"
              Which  mouse  button  is  reported on a left top corner tap.
              Set to 0 to disable. Property: "Synaptics Tap Action"
And
Code:
      Option "TouchpadOff" "integer"
              Switch off the touchpad.  Valid values are:

              0   Touchpad is enabled
              1   Touchpad is switched off
              2   Only tapping and scrolling is switched off
              Property: "Synaptics Off"
I think I must use those options, but in what way? The behavior I'd like to get is: tapping the pad upper left corner, where there is an on/off indicator LED, toggles the pad state between off and on. The hardware can do this, because that behavior was observed by me under Windows 7.
Are you sure the synaptics driver can do this?

Last edited by stf92; 08-17-2015 at 08:11 PM.
 
Old 08-18-2015, 08:19 AM   #28
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Guess you guys got quite far while I was asleep. Right now, synclient will be your friend. This is used for temporary modification of the synpatics driver on the fly. Once you find the desired configuration, you can then import it into your xorg conf files.

As far as LTCornerButton, this allows you to assign a mouse button to the Left Top corner, I don't believe there is any button that can function to turn off the pad, so I don't think the synaptics driver is capable of this (but, I could certainly be wrong on this). I tried finding a listing of the mouse buttons you can emulate, but I came up empty. From memory, I'm pretty sure leftclick=1, middleclick=2, rightclick=3, back=8, forward=9.

The other option you listed is a way for you to completely disable the touchpad itself, but it isn't based on any inputs on the touchpad, it would be a command you'd need to type (synclient TouchpadOff=1), although, you could probably set up a hotkey to run a script to do this for you.

To start, run synclient -l to see what options are available for your mouse and what they are set as.
 
Old 08-18-2015, 11:15 AM   #29
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I hope you slept well. Here it is:
Code:
bill@server:/almacen/STORE1/Nonsoft/libros/history$ synclient -l
Parameter settings:
    LeftEdge                = 1753
    RightEdge               = 5211
    TopEdge                 = 1628
    BottomEdge              = 4336
    FingerLow               = 25
    FingerHigh              = 30
    MaxTapTime              = 180
    MaxTapMove              = 224
    MaxDoubleTapTime        = 180
    SingleTapTimeout        = 180
    ClickTime               = 100
    EmulateMidButtonTime    = 0
    EmulateTwoFingerMinZ    = 282
    EmulateTwoFingerMinW    = 7
    VertScrollDelta         = 102
    HorizScrollDelta        = 102
    VertEdgeScroll          = 0
    HorizEdgeScroll         = 0
    CornerCoasting          = 0
    VertTwoFingerScroll     = 0
    HorizTwoFingerScroll    = 0
    MinSpeed                = 1
    MaxSpeed                = 1.75
    AccelFactor             = 0.0391773
    TouchpadOff             = 1
    LockedDrags             = 0
    LockedDragTimeout       = 5000
    RTCornerButton          = 0
    RBCornerButton          = 0
    LTCornerButton          = 0
    LBCornerButton          = 0
    TapButton1              = 1
    TapButton2              = 2
    TapButton3              = 3
    ClickFinger1            = 1
    ClickFinger2            = 3
    ClickFinger3            = 2
    CircularScrolling       = 0
    CircScrollDelta         = 0.1
    CircScrollTrigger       = 0
    PalmDetect              = 0
    PalmMinWidth            = 10
    PalmMinZ                = 200
    CoastingSpeed           = 20
    CoastingFriction        = 50
    PressureMotionMinZ      = 30
    PressureMotionMaxZ      = 160
    PressureMotionMinFactor = 1
    PressureMotionMaxFactor = 1
    GrabEventDevice         = 1
    TapAndDragGesture       = 1
    AreaLeftEdge            = 0
    AreaRightEdge           = 0
    AreaTopEdge             = 0
    AreaBottomEdge          = 0
    HorizHysteresis         = 8
    VertHysteresis          = 8
    ClickPad                = 1
    RightButtonAreaLeft     = 0
    RightButtonAreaRight    = 0
    RightButtonAreaTop      = 0
    RightButtonAreaBottom   = 0
    MiddleButtonAreaLeft    = 0
    MiddleButtonAreaRight   = 0
    MiddleButtonAreaTop     = 0
    MiddleButtonAreaBottom  = 0
Momentarily I'm using
Code:
alias 0='xinput set-prop 11 "Device Enabled" 0'
to disable the pad, and an analog one to enable it.

Last edited by stf92; 08-18-2015 at 12:05 PM.
 
Old 08-18-2015, 01:05 PM   #30
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by stf92 View Post
I hope you slept well. Here it is:
Code:
bill@server:/almacen/STORE1/Nonsoft/libros/history$ synclient -l
Parameter settings:
    LeftEdge                = 1753
    RightEdge               = 5211
    TopEdge                 = 1628
    BottomEdge              = 4336
    FingerLow               = 25
    FingerHigh              = 30
    MaxTapTime              = 180
    MaxTapMove              = 224
    MaxDoubleTapTime        = 180
    SingleTapTimeout        = 180
    ClickTime               = 100
    EmulateMidButtonTime    = 0
    EmulateTwoFingerMinZ    = 282
    EmulateTwoFingerMinW    = 7
    VertScrollDelta         = 102
    HorizScrollDelta        = 102
    VertEdgeScroll          = 0
    HorizEdgeScroll         = 0
    CornerCoasting          = 0
    VertTwoFingerScroll     = 0
    HorizTwoFingerScroll    = 0
    MinSpeed                = 1
    MaxSpeed                = 1.75
    AccelFactor             = 0.0391773
    TouchpadOff             = 1
    LockedDrags             = 0
    LockedDragTimeout       = 5000
    RTCornerButton          = 0
    RBCornerButton          = 0
    LTCornerButton          = 0
    LBCornerButton          = 0
    TapButton1              = 1
    TapButton2              = 2
    TapButton3              = 3
    ClickFinger1            = 1
    ClickFinger2            = 3
    ClickFinger3            = 2
    CircularScrolling       = 0
    CircScrollDelta         = 0.1
    CircScrollTrigger       = 0
    PalmDetect              = 0
    PalmMinWidth            = 10
    PalmMinZ                = 200
    CoastingSpeed           = 20
    CoastingFriction        = 50
    PressureMotionMinZ      = 30
    PressureMotionMaxZ      = 160
    PressureMotionMinFactor = 1
    PressureMotionMaxFactor = 1
    GrabEventDevice         = 1
    TapAndDragGesture       = 1
    AreaLeftEdge            = 0
    AreaRightEdge           = 0
    AreaTopEdge             = 0
    AreaBottomEdge          = 0
    HorizHysteresis         = 8
    VertHysteresis          = 8
    ClickPad                = 1
    RightButtonAreaLeft     = 0
    RightButtonAreaRight    = 0
    RightButtonAreaTop      = 0
    RightButtonAreaBottom   = 0
    MiddleButtonAreaLeft    = 0
    MiddleButtonAreaRight   = 0
    MiddleButtonAreaTop     = 0
    MiddleButtonAreaBottom  = 0
Momentarily I'm using
Code:
alias 0='xinput set-prop 11 "Device Enabled" 0'
to disable the pad, and an analog one to enable it.
Based on that, all your corner tap buttons are disabled (so it would just act like a normal tap like anywhere else on the pad). You have Tap 2 fingers at once set to right click, and tap 3 fingers at once for a middle click.

I still don't see a way for you to enable/disable the touchpad based on tapping a corner. You could simplify that alias a bit by using synclient, however, I would probably use something other than a single character... maybe something like:

Code:
alias pad_off='synclient TouchpadOff=1'
 
  


Reply



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
HP Mini 210-1100: where is the six-key pad in tbe keyboard? stf92 Linux - Laptop and Netbook 6 03-19-2015 09:30 AM
slackware 13.37 on hp mini: touchpad and usb mouse together dracolich Slackware 0 08-18-2011 08:06 AM
synaptic touchpad in HPmini 210 netbook skipperx Debian 14 11-03-2010 06:48 PM
LXer: Avoiding Linux Installation Problems on the HP Mini 110 and Mini 210 Netbooks LXer Syndicated Linux News 0 06-13-2010 10:10 PM
Linux on a 210 MB Mini CD-R njdube Linux - Distributions 1 04-05-2006 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:19 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