Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trackpoint stops working sporadically on Lenovo X1 Carbon #19022

Open
mikael-andersson opened this issue Sep 27, 2016 · 21 comments
Open

Trackpoint stops working sporadically on Lenovo X1 Carbon #19022

mikael-andersson opened this issue Sep 27, 2016 · 21 comments
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

Comments

@mikael-andersson
Copy link

Issue description

When I looked around I found this:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1070207/comments/21

modprobe -rv psmouse && modprobe -v psmouse, as noted in the comment above, makes it work again.

I do have the following set:
hardware.trackpoint.enable = true;

Steps to reproduce

To me it seems like it stops working sporadically. I have not yet been able to identify what could cause this problem.

Technical details

  • System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)
    16.09beta430.c4469ed (Flounder)
  • Nix version: (run nix-env --version)
    nix-env (Nix) 1.11.4
  • Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
    "16.09beta430.c4469ed"
@DamienCassou
Copy link
Contributor

You might want to stop using hardware.trackpoint and replace that by libinput. Try:

{
  services.xserver = {
    libinput.enable = true;
    synaptics.enable = false;

    config = ''
      Section "InputClass"
        Identifier     "Enable libinput for TrackPoint"
        MatchIsPointer "on"
        Driver         "libinput"
        Option         "ScrollMethod" "button"
        Option         "ScrollButton" "8"
      EndSection
    '';
  };
}

@mikael-andersson
Copy link
Author

Thanks for that! I will try that out and report back tomorrow. Have I missed to read the documentation properly or is the documentation missing something? :)

@mikael-andersson
Copy link
Author

So far it is working fine, thanks again! :) Do you have an answer to my question?

@DamienCassou
Copy link
Contributor

@mikael-andersson I don't know about the documentation. You might want to contribute to improve it. Please also consider contributing to https://github.com/NixOS/nixos-hardware.

@Mic92
Copy link
Member

Mic92 commented Sep 30, 2016

Can we make libinput the default in nixos?

@mikael-andersson
Copy link
Author

@DamienCassou Yes, I will be glad to help contributing to the documentation. I just wonder, your suggestion above that seemed to solve my problem, is this applicable for all hardware or is it just because of my hardware, i.e. Lenovo X1 Carbon? I suppose it is more or less what Mic92 asks for as well.

@mikael-andersson
Copy link
Author

I am still having problems with this. The problem is that when moving the pointer with the trackpoint, some button clicks seems to be triggered as well. Thus, the trackpoint is going all crazy. It is not often, maybe once a week. The problem usually stops after a few seconds and the trackpoint works as normal again. Any ideas how I can debug this?

@DamienCassou
Copy link
Contributor

DamienCassou commented Oct 24, 2016

I never experienced that on my T460.

@mikael-andersson
Copy link
Author

I have actually not had any problems with this for some weeks now. If the problems pop up again, I create a new issue for it. Thanks.

@Mic92
Copy link
Member

Mic92 commented Nov 25, 2016

@mikael-andersson sometimes trackpoints calibrate. If you apply constant pressure for instance for some time, the hardware could interpret it as its new origin. If you remove the pressure your pointer will jump into one direction until it recalibrate again. This often happens after suspend.

@mikael-andersson
Copy link
Author

@Mic92 I actually got the problem again same day as I closed this issue... :(

Does it really need to calibrate every now and then? I have not experienced this with e.g. Windows or Ubuntu. If I want it to recalibrate, I would prefer deciding when to do it myself. Would that not be most sensible?

I do not think that the problem have appeared right after a suspend.

I have not been able to trigger a calibration by applying constant pressure as you describe.

@ghost
Copy link

ghost commented Mar 20, 2017

Just thought Id share that libinput does the middle button scroll by default so

{
  services.xserver = {
    libinput.enable = true;
    synaptics.enable = false;

    config = ''
      Section "InputClass"
        Identifier     "Enable libinput for TrackPoint"
        MatchIsPointer "on"
        Driver         "libinput"
      EndSection
    '';
  };
}

Is sufficient

@jcrben
Copy link
Contributor

jcrben commented May 12, 2018

Touchpads and trackpoints are generally unstable right now, at least with libinput - I discuss this a bit more at NixOS/nixos-hardware#56

@gamb
Copy link
Member

gamb commented Sep 27, 2018

Getting similar behavior on X1 (6th gen). NixOS: 18.03.133245.d16a7abceb7 (Impala).

Rebooted using the configs suggested by @DamienCassou. Trackpad and pointer now work eventually. Initially they are unresponsive, then after some time one or both work.

dmesg output:

[   52.232061] psmouse serio2: Failed to enable mouse on synaptics-pt/serio0
[   58.165576] psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 1
[   58.166731] psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 1
[   58.167938] psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 1
[   58.176006] psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 1
[   58.177190] psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 1
[   58.177197] psmouse serio1: issuing reconnect request
[   59.058548] psmouse serio1: synaptics: queried max coordinates: x [..5678], y [..4758]
[   59.103195] psmouse serio1: synaptics: queried min coordinates: x [1266..], y [1094..]
[   60.800149] psmouse serio2: trackpoint: Elan TrackPoint firmware: 0x06, buttons: 3/3
[   61.512262] input: TPPS/2 Elan TrackPoint as /devices/platform/i8042/serio1/serio2/input/input22
[   61.784044] psmouse serio2: Failed to enable mouse on synaptics-pt/serio0

@Mic92
Copy link
Member

Mic92 commented Sep 28, 2018

Does nixos-hardware has this fix?

@gamb
Copy link
Member

gamb commented Sep 28, 2018

Testing again today. Trackpad responds ~30s after load. Pointer is unresponsive until I modprobe -rv psmouse and modprobe -v psmouse.

@gamb
Copy link
Member

gamb commented Oct 10, 2018

For what it's worth... Upgraded to: 18.09.797.617607e0437 (Jellyfish). Fixed numerous quirks, and bugs on my X1 carbon. Trackpad resolved 👍

@baracoder
Copy link
Contributor

(triage) @mikael-andersson do you still have the trackpad problem? If so, can you test, if NixOS 18.09 would fix it?

@mikael-andersson
Copy link
Author

@baracoder, unfortunately, I am not running NixOS at the moment. I will probably do it again but not until a few months. I will try to report back when I get around to test it.

@joepie91
Copy link
Contributor

Used to happen for me intermittently on 18.03 without a clear cause, now happens more often on 18.09. Almost always either during a nixos-rebuild switch (between the setting up /etc and reloading user units for sddm steps), or after resuming from suspension; either immediately upon resumption, or right after login.

The workaround described above sometimes works, but most of the time modprobe -rv psmouse just hangs (running it again in another terminal yields something like Device/resource is busy) and I need to close the lid and reopen it again, then re-run the workaround commands to fix my mouse.

Model: Thinkpad x270. Not sure if there's something specific to SDDM here.

@stale
Copy link

stale bot commented Jun 3, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Projects
None yet
Development

No branches or pull requests

7 participants