https://bugs.kde.org/show_bug.cgi?id=387153

ree...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ree...@gmail.com

--- Comment #9 from ree...@gmail.com ---
Is it possible to just turn off KDM's pointer handling altogether? Or at least
make it possible to run a script when configuring a device.

My problem is that I have three pointing devices: touchpad, trackpoint and
intermittent USB mouse. Every time I plug the mouse in, kcminit screws up the
settings for both touchpad and trackpoint.

Prior to recent updates my /etc configuration worked fine with no interference,
but now KDE cannot be persuaded to just let things alone. 

Here's the config I have in /etc. This works just fine without kdminit's
meddling:

# Match on all pointing devices but joysticks

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

# llaw chwith : llygod = pointers *heb* touchpads & trackpoints

Section "InputClass"
        Identifier "cfr libinput llygod"
        MatchIsPointer "on"
        MatchIsTouchpad "off"
        NoMatchProduct "TrackPoint"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "Left Handed Enabled" "1"
EndSection


# dim ond trackpoint
# addaswyd o https://bbs.archlinux.org/viewtopic.php?pid=1747203#p1747203

Section "InputClass"
        Identifier "cfr libinput trackpoint" 
        MatchIsPointer "on"
        MatchIsTouchpad "off"
        MatchProduct "TrackPoint"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "Accel Speed" "1"
        Option "Accel Profile" "flat"
        Option "Left Handed Enabled" "0"
EndSection

# dim ond touchpads

Section "InputClass"
        Identifier "cfr libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "Tapping" "1"
        Option "TappingDragLock" "1"
        Option "Accel Speed" "1"
        Option "Left Handed Enabled" "0"
EndSection

And here is kcminit-undo, which I must run shortly after I plug a mouse in:

#!/bin/bash -
#set -x
PATH=/usr/bin
export PATH

allan=0

usage="Usage: $0 
Ceisio dadwneud kdminit sy'n torri config llygoden, touchpad a trackpoint."
error () {
        echo "$@" 1>&2
        ((allan++))
        usage_and_exit $allan
}
warning () {
        echo "$@" 1>&2
        ((allan++))
        return 1
}
usage () {
        printf %b "$usage\n"
}
usage_and_exit () {
        usage
        exit $1
}
try () {
        xinput set-prop $1 "$2" $3 || warning "Gwall: na allaf gosod  "$2" $3
am $4."
}

tempargs=$(getopt -o h --long help -- "$@")
if [ $? != 0 ];
then
        usage_and_exit
fi
eval set -- "$tempargs"

while true
do
        case "$1"
        in
                -h | --help)
                        usage;
                        exit $allan;;
                --)
                        shift;
                        break;;
                *)
                        error Unrecognised option "$1".
        esac
done


touch=$(xinput list --id-only "SynPS/2 Synaptics TouchPad")
track=$(xinput list --id-only "TPPS/2 IBM TrackPoint")
mouse=$(xinput list  | grep "Mouse" | sed
's/^.*id=\([0-9][0-9]*\)[^0-9].*$/\1/')

[[ "$mouse" != "" ]] && xinput set-prop $mouse "libinput Left Handed Enabled" 1

try $track "libinput Left Handed Enabled" 0  TrackPoint
try $track "libinput Accel Speed" 1 TrackPoint
try $track "libinput Accel Profile Enabled" "0, 1" TrackPoint
try $touch "libinput Accel Speed" 1 TouchPad
try $touch "libinput Tapping Enabled" 1 TouchPad
try $touch "libinput Tapping Drag Lock Enabled" 1 TouchPad
try $touch "libinput Left Handed Enabled" 0 TouchPad


exit $allan
# vim: set nospell: 

The module seems to have no discretion at all. It sets everything left-handed,
whereas I only want the mouse that way - not the trackpoint. And it drastically
slows pointer speed for the touchpad and, to a lesser extent, the trackpoint.

Please provide an option to disable this functionality in KDE without
uninstalling KDE altogether. I know I have a somewhat specific setup. I don't
expect a GUI to accommodate it. But the GUI needs an off switch so KDE keeps
out of the way again.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to