LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to disable a feature in a driver or disable a certain driver all together? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-disable-a-feature-in-a-driver-or-disable-a-certain-driver-all-together-889866/)

theif519 07-04-2011 01:00 PM

How to disable a feature in a driver or disable a certain driver all together?
 
For instance, the one thing I hated more than anything, was the touch-pad on here, and I mean whenever you touched it it counted as a mouse click. I always hated it and in Windows I found a way to disable it with disabling the entire mouse pad, how do I do the same in Ubuntu? In every other distribution I didn't have to worry about it, but I suppose that I'm using the proprietary drivers or something.


Anyway, TL;DR: How do I disable a touch pad feature

TobiSGD 07-04-2011 01:17 PM

Use your xorg configuration files. For example, for my Synaptics touchpad I have the following file, named 50-synaptics.conf, in the folder /etc/X11/xorg.conf.d
Code:

# Use "synclient -l" to see all available options
# Use "man synaptics" for details about what the options do
#
Section "InputClass"
        Identifier "touchpad"
        Driver "synaptics"
        MatchDevicePath "/dev/input/event*"
        MatchIsTouchpad "on"
        Option "TapButton1" "1"
        Option "TapButton2" "0"
        Option "TapButton3" "0"
        Option "VertEdgeScroll" "1"
        Option "HorizEdgeScroll" "1"
        Option "MinSpeed" "1.1"
        Option "MaxSpeed" "1.9"
EndSection

As you can see I have disabled the middle and right mouseclick with the TapButton options. For the single click you have to use TapButton1, just set the option to 0. This way the touchpad will work normal, but just don't click anymore.
For more options that can be used in that file have a look at
Code:

synclient -l
.
Remember, this all is for Synaptics touchpads, I don't know how to configure other touchpads.

theif519 07-04-2011 03:53 PM

Quote:

Originally Posted by TobiSGD (Post 4404635)
Use your xorg configuration files. For example, for my Synaptics touchpad I have the following file, named 50-synaptics.conf, in the folder /etc/X11/xorg.conf.d
Code:

# Use "synclient -l" to see all available options
# Use "man synaptics" for details about what the options do
#
Section "InputClass"
        Identifier "touchpad"
        Driver "synaptics"
        MatchDevicePath "/dev/input/event*"
        MatchIsTouchpad "on"
        Option "TapButton1" "1"
        Option "TapButton2" "0"
        Option "TapButton3" "0"
        Option "VertEdgeScroll" "1"
        Option "HorizEdgeScroll" "1"
        Option "MinSpeed" "1.1"
        Option "MaxSpeed" "1.9"
EndSection

As you can see I have disabled the middle and right mouseclick with the TapButton options. For the single click you have to use TapButton1, just set the option to 0. This way the touchpad will work normal, but just don't click anymore.
For more options that can be used in that file have a look at
Code:

synclient -l
.
Remember, this all is for Synaptics touchpads, I don't know how to configure other touchpads.

[theif519@theif519-Aspire-5520 ~]$ nano /etc/X11/xorg.conf
[theif519@theif519-Aspire-5520 ~]$ cd /etc/X11
[theif519@theif519-Aspire-5520 X11]$ ls
app-defaults rgb.txt xorg.conf Xsession
cursors X Xreset Xsession.d
default-display-manager xinit Xreset.d Xsession.options
fonts xkb Xresources Xwrapper.config
[theif519@theif519-Aspire-5520 X11]$

I don't have that configuration file. If it means anything, I'm using Ubuntu 10.10 on this laptop *For now*


Code:

[theif519@theif519-Aspire-5520 X11]$ synclient -l
Parameter settings:
    LeftEdge                = 153
    RightEdge              = 870
    TopEdge                = 115
    BottomEdge              = 652
    FingerLow              = 12
    FingerHigh              = 14
    FingerPress            = 127
    MaxTapTime              = 180
    MaxTapMove              = 56
    MaxDoubleTapTime        = 180
    SingleTapTimeout        = 180
    ClickTime              = 100
    FastTaps                = 0
    EmulateMidButtonTime    = 75
    EmulateTwoFingerMinZ    = 139
    EmulateTwoFingerMinW    = 7
    VertScrollDelta        = 25
    HorizScrollDelta        = 25
    VertEdgeScroll          = 1
    HorizEdgeScroll        = 0
    CornerCoasting          = 0
    VertTwoFingerScroll    = 0
    HorizTwoFingerScroll    = 0
    MinSpeed                = 0.4
    MaxSpeed                = 0.7
    AccelFactor            = 0.0391236
    TrackstickSpeed        = 40
    EdgeMotionMinZ          = 14
    EdgeMotionMaxZ          = 79
    EdgeMotionMinSpeed      = 1
    EdgeMotionMaxSpeed      = 102
    EdgeMotionUseAlways    = 0
    UpDownScrolling        = 1
    LeftRightScrolling      = 1
    UpDownScrollRepeat      = 1
    LeftRightScrollRepeat  = 1
    ScrollButtonRepeat      = 100
    TouchpadOff            = 0
    GuestMouseOff          = 0
    LockedDrags            = 0
    LockedDragTimeout      = 5000
    RTCornerButton          = 2
    RBCornerButton          = 3
    LTCornerButton          = 0
    LBCornerButton          = 0
    TapButton1              = 1
    TapButton2              = 2
    TapButton3              = 3
    ClickFinger1            = 1
    ClickFinger2            = 1
    ClickFinger3            = 2
    CircularScrolling      = 0
    CircScrollDelta        = 0.1
    CircScrollTrigger      = 0
    CircularPad            = 0
    PalmDetect              = 0
    PalmMinWidth            = 10
    PalmMinZ                = 99
    CoastingSpeed          = 0
    PressureMotionMinZ      = 14
    PressureMotionMaxZ      = 79
    PressureMotionMinFactor = 1
    PressureMotionMaxFactor = 1
    GrabEventDevice        = 1
    TapAndDragGesture      = 1
    AreaLeftEdge            = 0
    AreaRightEdge          = 0
    AreaTopEdge            = 0
    AreaBottomEdge          = 0
    JumpyCursorThreshold    = 0
[theif519@theif519-Aspire-5520 X11]$

How do I edit the file? I can't find the first file you suggested.

TobiSGD 07-04-2011 04:03 PM

The file is not there by default. Either you copy that section to your existing /etc/X11/xorg.conf or you create the folder /etc/X11/xorg.conf.d and then create that file in it.
Both solutions should work.


All times are GMT -5. The time now is 05:43 AM.