LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-26-2023, 02:17 PM   #1
Andy-1
Member
 
Registered: Jan 2023
Posts: 202

Rep: Reputation: 14
Question Text Jumping to cursor mid-sentence while typing


Have looked on internet but can’t find a solution…
Perhaps I am not asking the right question as it seems to affect windoze too?

This guy in the exact same predicament asked LibreOffice yet strangely thread was closed without a solution - weird

https://ask.libreoffice.org/t/cursor...word-doc/23243

Thought you guys at LQ might now how to fix this annoying trait
Tried moving cursor off the visible page yet text insertion will still jump mid word so I have to do a couple of Ctrl+z undoes.
It also happens in other scenarios whilst typing

cheers

ps: apologies for boring or uninteresting topic
 
Old 03-26-2023, 04:22 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
You do not say whether your system is a laptop or not, but I experienced this on a newer laptop with large sensitive touchpad, this fixed it very well (on Slackware64-15.0).

Code:
# cp /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d/

Add Option "Tapping" "True" to relevent input device section.
Give that a try if it seems applicable to your case, adjust for your distro.

Last edited by astrogeek; 03-26-2023 at 04:32 PM.
 
Old 03-27-2023, 01:28 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,992

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
I just switched off the touchpad completely (I have a real mouse).
 
Old 03-27-2023, 03:57 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

I use this script from my KDE session via terminal command line;
Code:
./touchpad.sh
Code:
~$ cat touchpad.sh

 #!/bin/bash 

# touchpad.sh Written by Atanas S / Siteground Support Team 

# First we need to get the device ID from the xinput 
# if it does not work for you, you may need to set the cut -f option to another number 
# I would suggest that you test the command in your terminal first to see the result 
# It should output an integer usually between 8-15, at least on my lap top :D 

getdev=`xinput list |grep pointer |grep PS |cut -f 2` 
devid=${getdev/id=/} 

#Second we need to get the device status, if it is enabled or not 

# if it does not work for you, you may need to set the cut -f option to another number 
# I would suggest that you test the command in your terminal first to see the result 
# It should output 0 or 1 

getstatus=`xinput list-props $devid |grep 'Device Enabled' |cut -f 3` 

#once we get the device status depending on the status we set it the other way arround 
        if [ "$getstatus" == "1" ]; then 
        newstatus="0" 
        else 
        newstatus="1" 
        fi 
`xinput set-prop $devid "Device Enabled" $newstatus`

My big hands and fingers would always cause unwanted actions on my laptop when the touch pad is enabled.
Hope this helps!

Last edited by onebuck; 03-27-2023 at 01:07 PM. Reason: typo
 
1 members found this post helpful.
Old 03-27-2023, 11:29 AM   #5
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 493

Rep: Reputation: 182Reputation: 182
I too was 'annoyed' by problem, but as above it was the touchpad. Turning it off solved the problem. Use external mouse.
 
1 members found this post helpful.
Old 03-28-2023, 02:53 PM   #6
Andy-1
Member
 
Registered: Jan 2023
Posts: 202

Original Poster
Rep: Reputation: 14
Smile Don't know how to switch off touchpad but......

Hey, thanks guys - I suppose with LXDE Openbox; settings could be different or do not exist. Mouse and keyboard settings but no touchpad settings.
I desperation I removed the entire LibreOffice suite and installed Abiword to no avail.

I have just reduced mouse sensitivity towards low from high but that has not helped much - or has it...? Will reboot to confirm either way.....
LXDE Openbox has a mouse settings GUI with slider bars for Acceleration and Sensitivity.

Think it has helped so have reduced the sensitivity further.
Leaving mouse cursor buried in nearby text I cannot provoke errand behaviour - fingers crossed
Will leave this setting as is and report back soon.
If I am honest I am not sure what mouse sensitivity is, in any context...


I managed to extract this information but doubt if of any use...?


live@Loc-OS:~$ inxi -M
Machine:
Type: Laptop System: Dell product: Latitude E6420 v: 01

Mobo: Dell model: 038C0K v: A00 BIOS: Dell v: A17 date: 03/07/2013

live@Loc-OS:~$ cat /proc/bus/input/devices | grep -i touchpad
N: Name="AlpsPS/2 ALPS DualPoint TouchPad"

live@Loc-OS:~$ synclient -l
Parameter settings:
LeftEdge = 300
RightEdge = 1700
TopEdge = 210
BottomEdge = 1190
FingerLow = 12
FingerHigh = 15
MaxTapTime = 180
MaxTapMove = 107
MaxDoubleTapTime = 180
SingleTapTimeout = 180
ClickTime = 100
EmulateMidButtonTime = 75
EmulateTwoFingerMinZ = 141
EmulateTwoFingerMinW = 7
VertScrollDelta = 48
HorizScrollDelta = 48
VertEdgeScroll = 1
HorizEdgeScroll = 0
CornerCoasting = 1
VertTwoFingerScroll = 1
HorizTwoFingerScroll = 1
MinSpeed = 1
MaxSpeed = 2
AccelFactor = 0.075
TouchpadOff = 0
LockedDrags = 0
LockedDragTimeout = 5000
RTCornerButton = 0
RBCornerButton = 9
LTCornerButton = 0
LBCornerButton = 8
TapButton1 = 1
TapButton2 = 2
TapButton3 = 3
ClickFinger1 = 1
ClickFinger2 = 1
ClickFinger3 = 1
CircularScrolling = 1
CircScrollDelta = 0.1
 
Old 03-28-2023, 03:47 PM   #7
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
With respect to all who have replied, at the risk of repeating myself and acknowledging that my own experience is limited to Slackware so your mileage may vary, I will ask again whether you have tried to configure libinput?

The problem I experienced was so annoying, and the fix so simple and perfect, at least in my own case, I would look no further until I gave it a try!

From the page linked above:

Quote:
From the libinput wiki page:

libinput is a library to handle input devices in Wayland compositors and to provide a generic X.Org input driver. It provides device detection, device handling, input device event processing and abstraction to minimize the amount of custom input code compositors need to provide the common set of functionality that users expect.

The X.Org input driver supports most regular input devices. Particularly notable is the project's goal to provide advanced support for touch (multitouch and gesture) features of touchpads and touchscreens. See the libinput documentation for more information.
...
Configuration
...
For Xorg, a default configuration file for the wrapper is installed to /usr/share/X11/xorg.conf.d/40-libinput.conf. No extra configuration is necessary for it to autodetect keyboards, touchpads, trackpointers and supported touchscreens.
The italicized part was my experience exactly.

And from man 4 libinput:

Code:
Option "DisableWhileTyping" "bool"
         Indicates if the touchpad should be disabled while typing on the
         keyboard  (this  does  not apply to modifier keys such as Ctrl or Alt).
I am not sure whether/how it is available for non-Slackware distros, but I am sure it should be similar and simple, for Xorg and Wayland.

Good luck!

Last edited by astrogeek; 03-28-2023 at 04:03 PM.
 
1 members found this post helpful.
Old 03-28-2023, 03:58 PM   #8
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 493

Rep: Reputation: 182Reputation: 182
You don't have the command xinput?

$ xinput list
...

$ xinput disable <device id>
 
1 members found this post helpful.
Old 03-29-2023, 10:41 AM   #9
Andy-1
Member
 
Registered: Jan 2023
Posts: 202

Original Poster
Rep: Reputation: 14
Thanks RClark, I have now installed xinput....
Presume xinput disable <device id> can be enabled later as my wife uses the touchpad..? Do I enter text string or just id=14.. for device id..?

live@Loc-OS:~$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ PixA琀 USB Optical Mouse id=11 [slave pointer (2)]
⎜ ↳ AlpsPS/2 ALPS DualPoint TouchPad id=14 [slave pointer (2)]
⎜ ↳ AlpsPS/2 ALPS DualPoint Stick id=15 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ Laptop_Integrated_Webcam_FHD: I id=10 [slave keyboard (3)]
↳ Dell WMI hotkeys id=12 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=13 [slave keyboard (3)]

Thanks Astrogeek

Found this in usr/share/X11/xorg.conf.d
40-libinput.conf

# Match on all types of devices but joysticks
#
# If you want to configure your devices, do not copy this file.
# Instead, use a config snippet that contains something like this:
#
# Section "InputClass"
# Identifier "something or other"
# MatchDriver "libinput"
#
# MatchIsTouchpad "on"
# ... other Match directives ...
# Option "someoption" "value"
# EndSection
#
# This applies the option any libinput device also matched by the other
# directives. See the xorg.conf(5) man page for more info on
# matching devices.

Section "InputClass"
Identifier "libinput pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection

Section "InputClass"
Identifier "libinput keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection

Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection

Section "InputClass"
Identifier "libinput touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection

Section "InputClass"
Identifier "libinput tablet catchall"
MatchIsTablet "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection

Think we are getting above my experience, confidence level with:
# If you want to configure your devices, do not copy this file.
# Instead, use a config snippet that contains something like this:
Er, why do they repeat the same text (paragraph) over and over..?
 
Old 03-29-2023, 12:50 PM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

I provided a script in my post to control a laptop touchpad. You can disable the pad. And rerunning the script will toggle the state. If you look at the script you will see the xinput being used to test state and to toggle the state.

Hope this helps.
 
1 members found this post helpful.
Old 03-29-2023, 03:01 PM   #11
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
Years ago I had something like this in my .bashrc:
Code:
alias tpoff='synclient TouchpadOff=1'
alias tpon='synclient TouchpadOff=0'
 
Old 03-29-2023, 07:05 PM   #12
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 493

Rep: Reputation: 182Reputation: 182
Quote:
Presume xinput disable <device id> can be enabled later as my wife uses the touchpad..?
$ xinput disable 14
$ xinput enable 14
 
1 members found this post helpful.
Old 03-29-2023, 11:51 PM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,992

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
I don't really understand usually there is an FnX for this, so you only need to press that key to switch it on/off.
 
1 members found this post helpful.
Old 03-30-2023, 08:26 AM   #14
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
A quick Google search for disable+touchpad+while+typing yields solutions for several OSs.
 
1 members found this post helpful.
Old 03-30-2023, 10:24 AM   #15
Andy-1
Member
 
Registered: Jan 2023
Posts: 202

Original Poster
Rep: Reputation: 14
Wink My brain hurts

I think this is turning into quite an interesting topic so need to say a big thank you to all you kind people that understand my lack of confidence in writing config snippets or config files in general.

Thanks again to rclark and onebuck - yes will try xinput --disable 14 followed by xinput --enable 14 or I could use xinput --disable AlpsPS/2 ALPS DualPoint TouchPad but that’s a bit long winded
I might as well disable the nipple id=15 or AlpsPS/2 ALPS DualPoint Stick as that never gets tweaked, sorry used

As pan64 says there should be a FnX or keystroke to toggle the touchpad on/off. Do we know of one, common to most linux distros or DEs..?

Thanks to rknichols for useful search term - as I said previously I did not know if I was asking the right question. I added linux to the term and came up with an app....
https://www.linuxandubuntu.com/home/...-while-writing
https://launchpad.net/touchpad-indicator
Yes you guessed it; an app with a gui for idiots like me Does it only work with ubuntu? https://ubuntuhandbook.org/index.php...n-not-working/ However most will know I like to keep my system light and free of unnecessary apps and gizmos like this.
I also found this interesting post on StackEx...
https://unix.stackexchange.com/quest...hile-im-typing

syndaemon - a program that monitors keyboard activity and disables the touchpad when the keyboard is being used.

Disabling the touchpad while typing avoids unwanted movements of the pointer that could lead to giving focus to the wrong window.

Example: syndaemon -i 1 -t -d

This deactivates tapping after one second. There is also synclient with more options to set up the touchpad.
https://unix.stackexchange.com/quest...-for-x-session

Hope it does not rely on SystemD as Debian based Antix and Loc-OS are deliberately systemd free. What do you guys think...?
Would be very clever if it works in practice to solve our in window trait.

Also - peculiar to Dell laptops; Double tap in the upper left hand corner to disable the touchpad quickly without having to make any changes to the drivers or the settings. OMG My brain hurts (Monty-Python)
https://www.dell.com/community/Linux...g/td-p/4718542
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Typing unstable, text jumps, typing delay xubuntu18.04 dell Inspiron Billkram01@gmail.com Linux - Newbie 15 05-26-2019 11:38 AM
Keyboard Cursor Jumps While Typing thund3rstruck Slackware 15 02-08-2015 04:39 AM
mouse cursor jumps while typing subetai Slackware 3 07-16-2008 07:24 AM
Strange problem with cursor jumping to menus in Slackware 12.1 teddyt Slackware 15 06-27-2008 06:44 AM
Mouse cursor jumping erratically + takes clicking action when not moved? JZL240I-U Linux - Software 23 04-30-2008 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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