LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-30-2022, 10:35 AM   #1
ts1971
LQ Newbie
 
Registered: May 2008
Posts: 15

Rep: Reputation: 0
Adjust Trackpoint speed on Lenovo P70 / Ubuntu 22.04


Hi,

I recently had to replace a failed keyboard on my Lenovo P70 running Ubuntu 22.04. Generally, everything is working fine, with one exception. The trackpoint (eraser in the middle of the keyboard) is VERY slow and I can't figure out how to adjust it. First I tried turning the speed up for both the touchpad and the mouse in the 'mouse and touchpad' settings dialog. The touchpad changes did take effect, though I don't use the touchpad so that's not much help. I don't use an external mouse, but I did confirm that those settings had no effect on the trackpoint. I've googled around a lot and tried a couple of things, but it seems like most of the suggestions are pretty old at this point, I'm skeptical that they are still relevant to 22.04.

Here is the output of 'input':

Quote:
ThinkPad-P70:~$ xinput
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ xwayland-pointer:16 id=6 [slave pointer (2)]
⎜ ↳ xwayland-relative-pointer:16 id=7 [slave pointer (2)]
⎜ ↳ xwayland-pointer-gestures:16 id=8 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ xwayland-keyboard:16 id=9 [slave keyboard (3)]
It's not even clear to me if one of those devices is the trackpoint. If so, which one?

Anyway, if anyone has any suggestions about how I could move forward here, I'd really appreciate it!

Thanks
 
Old 09-30-2022, 05:16 PM   #2
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
man xinput...

Did you obtain your listing by running the command xinput with the argument --list in its variations and then again with --list-props and the number designation for the trackpoint if it is found by --list?

I would have thought that xinput should have been more informative than what you posted.
 
Old 10-01-2022, 11:27 PM   #3
ts1971
LQ Newbie
 
Registered: May 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by thorkelljarl View Post
man xinput...

Did you obtain your listing by running the command xinput with the argument --list in its variations and then again with --list-props and the number designation for the trackpoint if it is found by --list?

I would have thought that xinput should have been more informative than what you posted.
Hi.xinput --list returns exactly the same thing as xinput with no args. I agree though, it seems like there are things missing. It may have something to do with the warning about running xinput against wayland rather than x. I don't know much about this stuff though.
 
Old 10-02-2022, 01:12 AM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,840

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
I assume that you're running Gnome Wayland? If so, run
Code:
sudo libinput list-devices
It should be possible to adjust the trackpoint behaviour as described here:
https://wiki.archlinux.org/title/Tra...#device-quirks

Last edited by ferrari; 10-02-2022 at 01:14 AM.
 
Old 10-03-2022, 03:16 AM   #5
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
If it's simpler...

Though the command libinput is not persistent and must run at each startup, it might be sufficient to compose an executable txt.sh file, put it in /home where it is easy to find and edit, and use the Ubuntu Startup Application GUI to run it on startup.

https://itsubuntu.com/auto-execute-linux-scripts/

I use this method with xinput in Mint 20.3 Cinnamon to adjust the ratio of my mouse movement to screen pointer movement.

Last edited by thorkelljarl; 10-03-2022 at 06:51 AM.
 
Old 10-05-2022, 10:42 AM   #6
ts1971
LQ Newbie
 
Registered: May 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ferrari View Post
I assume that you're running Gnome Wayland? If so, run
Code:
sudo libinput list-devices
I had to install libinput and after doing so here is the output of libiinput list-devices:

Code:
device:           Power Button
Kernel:           /dev/input/event2
Group:            1
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Video Bus
Kernel:           /dev/input/event16
Group:            2
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Video Bus
Kernel:           /dev/input/event14
Group:            2
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Lid Switch
Kernel:           /dev/input/event0
Group:            3
Seat:             seat0, default
Capabilities:     switch
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Sleep Button
Kernel:           /dev/input/event1
Group:            4
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Integrated Camera: Integrated C
Kernel:           /dev/input/event7
Group:            5
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           AT Translated Set 2 keyboard
Kernel:           /dev/input/event3
Group:            6
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           SynPS/2 Synaptics TouchPad
Kernel:           /dev/input/event4
Group:            7
Seat:             seat0, default
Size:             98x54mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   *two-finger edge 
Click methods:    none
Disable-w-typing: enabled
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           PS/2 Generic Mouse
Kernel:           /dev/input/event5
Group:            8
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           ThinkPad Extra Buttons
Kernel:           /dev/input/event6
Group:            9
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a
It seems like it still doesn't really recognize the trackpoint, though I guess that it's the 'PS2 Generic Mouse'



It should be possible to adjust the trackpoint behaviour as described here:
https://wiki.archlinux.org/title/Tra...#device-quirks
I had a look at this, but it's not clear to me how it could work. If I create local-overrides.quirks and add the following:

Code:
[Trackpoint Override]
MatchUdevType=pointingstick
AttrTrackpointMultiplier=0.75
How does libinput know which device to map those changes to?

Generally, the behavior is even worse than I thought. Initially I thought that the only problem was the speed, but as I use continue to use the device, it has other problems like registering random clicks as I move the cursor around and continuing to move the cursor even after I've stopped touching the keybaord. Maybe I should have sprung for an OEM keyboard rather than this aftermarket one, but I expected the swap to be seamless.
 
Old 10-05-2022, 01:33 PM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,840

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Quote:
Originally Posted by ts1971 View Post
I had a look at this, but it's not clear to me how it could work. If I create local-overrides.quirks and add the following:

Code:
[Trackpoint Override]
MatchUdevType=pointingstick
AttrTrackpointMultiplier=0.75
How does libinput know which device to map those changes to?
That depends on how libinput detects/handles the trackpoint device. I assume this is the pertinent device?
Code:
Device:           PS/2 Generic Mouse
Kernel:           /dev/input/event5
Group:            8
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a

Last edited by ferrari; 10-05-2022 at 01:41 PM.
 
Old 10-05-2022, 01:46 PM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,840

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
You can specify the drive using "MatchName=****". Usually I'd expect something like "MatchName=*TPPS/2 IBM TrackPoint*", but your case the device may only be being detected by the kernel as a "PS/2 Generic Mouse" perhaps. It may be that using a more recent kernel would get the device properly recognized (assuming the hardware in question is new).

Last edited by ferrari; 10-05-2022 at 01:58 PM.
 
Old 10-05-2022, 04:27 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,840

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Just in case this is of value to you
https://wiki.archlinux.org/title/Tra...ves_on_its_own
 
  


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
[SOLVED] Trackpoint/Trackpoint center button scrolling doesn't work on an X230 nekoseam Slackware 15 04-07-2018 05:58 PM
LXer: Lenovo Announces New ThinkPad P50, P70 ‘Mobile Workstation’ LXer Syndicated Linux News 0 08-12-2015 12:51 PM
RHEL6 won't pair with Lenovo bluetooth trackpoint keyboard "Permission denied (13)" mdhennessy Linux - Software 5 12-20-2013 09:58 AM
IBM/Lenovo TrackPoint staus Slackware 6 07-27-2012 12:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:52 AM.

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