linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Aaron Ma <aaron.ma@canonical.com>
To: Sebastian Schmidt <yath@yath.de>
Cc: dmitry.torokhov@gmail.com, linux-input@vger.kernel.org
Subject: Re: PROBLEM: Changing speed on ThinkPad X1 Carbon 5th trackpoint causes "failed to enable mouse"
Date: Sat, 30 Dec 2017 14:43:16 +0800	[thread overview]
Message-ID: <f8795209-1b95-81a5-5fbe-f3e3fdc0d18f@canonical.com> (raw)
In-Reply-To: <20171229190529.GA2108@marax.lan.yath.de>

Please try:
$ xinput set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Speed" -1

The last value of speed can be -1 to 1.

Regards,
Aaron

On 12/30/2017 03:05 AM, Sebastian Schmidt wrote:
> On Thu, Dec 28, 2017 at 11:53:44PM +0800, Aaron Ma wrote:
>> The set on sysfs "speed" will execute the following code:
>> 1, set #define PSMOUSE_CMD_DISABLE     0x00f5;
>> 2, set #define TP_SPEED                0x60    /* Speed of TP Cursor */
>> with the value in speed.
>> 3, set #define PSMOUSE_CMD_ENABLE      0x00f4
>>
>> When set 3rd step, it fails to write the cmd to ps2dev.
>> This issue should be related to trackpoint firmware that response on all
>> commands.
> 
> Sorry, I’m not sure I can follow. Is this a bug in my Trackpoint
> firmware and I need to update it?
> 
>> And for the trackpoint is too fast or sensitive, please change it in
>> setting of gnome (I assume you are using), the setting will use the
>> libinput(wayland) and xerver-input-synaptics driver to set the mouse
>> speed. It should be worked as expected.
> 
> Are you saying the sysfs settings are not supposed to work? From a
> user’s perspective I’ve upgraded my kernel (to a stable version, into
> which that patch was merged), found my mouse too fast and a knob called
> “speed” in sysfs. Just touching that knob (by echoing the same value)
> broke my mouse entirely, and that’s the problem I’m reporting.
> 
> I’m using i3 on “plain” Xorg, no Wayland or any desktop environment.
> synclient only appears to have options for the touchpad, as far as I can
> tell from the names:
> % synclient 
> Parameter settings:
>     LeftEdge                = 77
>     RightEdge               = 1859
>     TopEdge                 = 57
>     BottomEdge              = 1000
>     FingerLow               = 25
>     FingerHigh              = 30
>     MaxTapTime              = 180
>     MaxTapMove              = 97
>     MaxDoubleTapTime        = 180
>     SingleTapTimeout        = 180
>     ClickTime               = 100
>     EmulateMidButtonTime    = 0
>     EmulateTwoFingerMinZ    = 282
>     EmulateTwoFingerMinW    = 7
>     VertScrollDelta         = 44
>     HorizScrollDelta        = 44
>     VertEdgeScroll          = 0
>     HorizEdgeScroll         = 0
>     CornerCoasting          = 0
>     VertTwoFingerScroll     = 1
>     HorizTwoFingerScroll    = 0
>     MinSpeed                = 1
>     MaxSpeed                = 1.75
>     AccelFactor             = 0.090703
>     TouchpadOff             = 0
>     LockedDrags             = 0
>     LockedDragTimeout       = 5000
>     RTCornerButton          = 0
>     RBCornerButton          = 0
>     LTCornerButton          = 0
>     LBCornerButton          = 0
>     TapButton1              = 0
>     TapButton2              = 0
>     TapButton3              = 0
>     ClickFinger1            = 1
>     ClickFinger2            = 3
>     ClickFinger3            = 2
>     CircularScrolling       = 0
>     CircScrollDelta         = 0.1
>     CircScrollTrigger       = 0
>     CircularPad             = 0
>     PalmDetect              = 0
>     PalmMinWidth            = 10
>     PalmMinZ                = 200
>     CoastingSpeed           = 20
>     CoastingFriction        = 50
>     PressureMotionMinZ      = 30
>     PressureMotionMaxZ      = 160
>     PressureMotionMinFactor = 1
>     PressureMotionMaxFactor = 1
>     GrabEventDevice         = 0
>     TapAndDragGesture       = 1
>     AreaLeftEdge            = 0
>     AreaRightEdge           = 0
>     AreaTopEdge             = 0
>     AreaBottomEdge          = 0
>     HorizHysteresis         = 11
>     VertHysteresis          = 11
>     ClickPad                = 1
>     RightButtonAreaLeft     = 968
>     RightButtonAreaRight    = 0
>     RightButtonAreaTop      = 866
>     RightButtonAreaBottom   = 0
>     MiddleButtonAreaLeft    = 0
>     MiddleButtonAreaRight   = 0
>     MiddleButtonAreaTop     = 0
>     MiddleButtonAreaBottom  = 0
> %
> 
> The xinput properties don’t show a (non-zero) speed either:
> % xinput list-props "TPPS/2 IBM TrackPoint"
> Device 'TPPS/2 IBM TrackPoint':
>         Device Enabled (142):   1
>         Coordinate Transformation Matrix (144): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
>         libinput Natural Scrolling Enabled (326):       0
>         libinput Natural Scrolling Enabled Default (327):       0
>         libinput Left Handed Enabled (328):     0
>         libinput Left Handed Enabled Default (329):     0
>         libinput Accel Speed (330):     0.000000
>         libinput Accel Speed Default (331):     0.000000
>         libinput Accel Profiles Available (332):        1, 1
>         libinput Accel Profile Enabled (333):   1, 0
>         libinput Accel Profile Enabled Default (334):   1, 0
>         libinput Scroll Methods Available (335):        0, 0, 1
>         libinput Scroll Method Enabled (336):   0, 0, 1
>         libinput Scroll Method Enabled Default (337):   0, 0, 1
>         libinput Button Scrolling Button (338): 2
>         libinput Button Scrolling Button Default (339): 2
>         libinput Middle Emulation Enabled (340):        0
>         libinput Middle Emulation Enabled Default (341):        0
>         libinput Send Events Modes Available (265):     1, 0
>         libinput Send Events Mode Enabled (266):        0, 0
>         libinput Send Events Mode Enabled Default (267):        0, 0
>         Device Node (268):      "/dev/input/event17"
>         Device Product ID (269):        2, 10
>         libinput Drag Lock Buttons (342):       <no items>
>         libinput Horizontal Scroll Enabled (343):       1
> %
> 
> Thanks,
> Sebastian
> 

  reply	other threads:[~2017-12-30  6:43 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-28  9:11 PROBLEM: Changing speed on ThinkPad X1 Carbon 5th trackpoint causes "failed to enable mouse" Sebastian Schmidt
2017-12-28 10:56 ` Aaron Ma
2017-12-28 14:28   ` Sebastian Schmidt
2017-12-28 15:53     ` Aaron Ma
2017-12-29 19:05       ` Sebastian Schmidt
2017-12-30  6:43         ` Aaron Ma [this message]
2017-12-30  9:57           ` Sebastian Schmidt
2017-12-30 13:54             ` Aaron Ma
2017-12-30 14:11               ` Sebastian Schmidt
2017-12-30 14:17                 ` Aaron Ma
2017-12-30 14:40                   ` Sebastian Schmidt
2017-12-30 15:00                     ` Aaron Ma
2017-12-30 15:02                     ` Greg KH
2017-12-30 15:08                       ` Aaron Ma
2017-12-30 15:26                         ` Greg KH
2017-12-30 15:46                           ` Aaron Ma
2017-12-30 15:53                             ` Sebastian Schmidt
2017-12-30 17:37                               ` Aaron Ma
2017-12-30 18:16                                 ` Sebastian Schmidt
2017-12-30 18:54                                   ` Aaron Ma
2017-12-30 15:24                       ` Sebastian Schmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f8795209-1b95-81a5-5fbe-f3e3fdc0d18f@canonical.com \
    --to=aaron.ma@canonical.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=yath@yath.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).