Re: [DNG] Disabling touchpad

2020-12-28 Thread Didier Kryn
Le 27/12/2020 à 21:55, Steve Litt a écrit :
> On Sun, 27 Dec 2020 10:20:04 -0500
> Hendrik Boom  wrote:
>
>> My touchpad is absurdly sensitive, and I keep brushing against it by
>> accident. I don't feel the touch at all, but the computer sure does.
>> It can hapen while I'm typing and suddenly my text edit turns into a 
>> shell command in a newsly chosen window.
>> I suspect even a few beard hairs can activate it.
>>
>> Now I usually use a wireless mouse on this computer though
>> occasionally the mouse fails (usually low battery) an then I do want
>> the touchpad.
>>
>> Is there any way to disable the touchpad normally, but to reactivate
>> it easily when the mouse fails?
> Yes!
>
> The attached touchtoggle.sh should fulfill your exact needs. Just
> associate it with a convenient hotkey.
>
> For convenience I'm also putting it in the body, but use it from the
> attachment: I have no idea what email clients do to the characters in
> the file:
>
> ==
> #!/bin/sh
>
> # touchtoggle.sh Copyright (C) 2019 by Steve Litt
> # All rights reserved.
> # Licensed via the 
> # Expat license: https://directory.fsf.org/wiki/License:Expat
>
> # FIRST GET DEVICE'S DEVICE ID CONTAINING CASE INSENSITIVE "TOUCHPAD"
> devid=`xinput | grep -i touchpad | \
>   sed -e"s/.*id=//" | sed -e"s/\s.*//"`
>
> # WITH THAT DEVICE ID, FIND EVERYTING ABOUT PROPERTY
> # CONTAINING CASE INSENSITIVE "DEVICE ENABLED"
> scratchline=`xinput --list-props 11 | \
>   grep -i "device enabled" | \
>   sed -e"s/^\s*//" | sed -e"s/\s*$//"`
> proptext=`echo $scratchline | sed -e"s/\s*(.*//"`
> propid=`echo $scratchline | sed -e"s/.*(//" | sed -e"s/).*//"`
> currstate=`echo $scratchline | sed -e"s/.*):\s*//"`
>
> # DIAGNOSTICS, COMMENT OUT WHEN FULLY FUNCTIONAL
> echo diagnostic devid  =$devid
> echo diagnostic scratchline=$scratchline
> echo diagnostic proptext   =$proptext#
> echo diagnostic propid =$propid
>
> # TOGGLE CURRSTATE VARIABLE
> echo -n "Current state of $currstate "
> if test "$currstate" = "1"; then
>   currstate=0
> else
>   currstate=1
> fi
> echo has been changed to $currstate.
>
> # IMPLEMENT THE PROPERTY VALUE CHANGE
> xinput set-prop $devid $propid $currstate
>
> # UNCOMMENT FOLLOWING LINE IF PROPERTY ID STOPS WORKING
> #xinput set-prop $devid "$proptext" $currstate
>
> ==
>
> I've had several versions of this shellscript, so please let me know
> whether it works for you.

    Note you might as well open your laptop and unplug the touchpad.
Just search for a tutorial on how to change it.

--         Didier


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Disabling touchpad

2020-12-28 Thread Hendrik Boom
On Mon, Dec 28, 2020 at 09:39:04AM +0100, Didier Kryn wrote:
> Le 27/12/2020 à 21:55, Steve Litt a écrit :
> > On Sun, 27 Dec 2020 10:20:04 -0500
> > Hendrik Boom  wrote:
> >
> >> My touchpad is absurdly sensitive, and I keep brushing against it by
> >> accident. I don't feel the touch at all, but the computer sure does.
> >> It can hapen while I'm typing and suddenly my text edit turns into a 
> >> shell command in a newsly chosen window.
> >> I suspect even a few beard hairs can activate it.
> >>
> >> Now I usually use a wireless mouse on this computer though
> >> occasionally the mouse fails (usually low battery) an then I do want
> >> the touchpad.
> >>
> >> Is there any way to disable the touchpad normally, but to reactivate
> >> it easily when the mouse fails?
> > Yes!
> >
> > The attached touchtoggle.sh should fulfill your exact needs. Just
> > associate it with a convenient hotkey.
> >
> > For convenience I'm also putting it in the body, but use it from the
> > attachment: I have no idea what email clients do to the characters in
> > the file:
> >
> > ==
> > #!/bin/sh
> >
> > # touchtoggle.sh Copyright (C) 2019 by Steve Litt
> > # All rights reserved.
> > # Licensed via the 
> > # Expat license: https://directory.fsf.org/wiki/License:Expat
> >
> > # FIRST GET DEVICE'S DEVICE ID CONTAINING CASE INSENSITIVE "TOUCHPAD"
> > devid=`xinput | grep -i touchpad | \
> >   sed -e"s/.*id=//" | sed -e"s/\s.*//"`
> >
> > # WITH THAT DEVICE ID, FIND EVERYTING ABOUT PROPERTY
> > # CONTAINING CASE INSENSITIVE "DEVICE ENABLED"
> > scratchline=`xinput --list-props 11 | \
> >   grep -i "device enabled" | \
> >   sed -e"s/^\s*//" | sed -e"s/\s*$//"`
> > proptext=`echo $scratchline | sed -e"s/\s*(.*//"`
> > propid=`echo $scratchline | sed -e"s/.*(//" | sed -e"s/).*//"`
> > currstate=`echo $scratchline | sed -e"s/.*):\s*//"`
> >
> > # DIAGNOSTICS, COMMENT OUT WHEN FULLY FUNCTIONAL
> > echo diagnostic devid  =$devid
> > echo diagnostic scratchline=$scratchline
> > echo diagnostic proptext   =$proptext#
> > echo diagnostic propid =$propid
> >
> > # TOGGLE CURRSTATE VARIABLE
> > echo -n "Current state of $currstate "
> > if test "$currstate" = "1"; then
> > currstate=0
> > else
> > currstate=1
> > fi
> > echo has been changed to $currstate.
> >
> > # IMPLEMENT THE PROPERTY VALUE CHANGE
> > xinput set-prop $devid $propid $currstate
> >
> > # UNCOMMENT FOLLOWING LINE IF PROPERTY ID STOPS WORKING
> > #xinput set-prop $devid "$proptext" $currstate
> >
> > ==
> >
> > I've had several versions of this shellscript, so please let me know
> > whether it works for you.
> 
>     Note you might as well open your laptop and unplug the touchpad.
> Just search for a tutorial on how to change it.
> 
> --         Didier

Yes, in principle.  The times I need my touchpad are
  * when my mouse battery runs out and I don't have a new one at hand
  * when my mouse mysteriously fails
  * when I'm travelling and I've forgotten my mouse
  etc.
In few of these cases is it practical to take my computer apart and 
reconnect the touchpad, 
but it can be easy to run a shell command after hitting control-alt-F1 
and logging in.

-- hendrik

> 
> 
> ___
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Disabling touchpad

2020-12-28 Thread Steve Litt
On Mon, 28 Dec 2020 09:39:04 +0100
Didier Kryn  wrote:


> 
>     Note you might as well open your laptop and unplug the touchpad.
> Just search for a tutorial on how to change it.
> 
> --         Didier

Huh? How did you draw that conclusion?
 
SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Disabling touchpad

2020-12-28 Thread Didier Kryn
Le 28/12/2020 à 16:00, Steve Litt a écrit :
> On Mon, 28 Dec 2020 09:39:04 +0100
> Didier Kryn  wrote:
>
>
>>     Note you might as well open your laptop and unplug the touchpad.
>> Just search for a tutorial on how to change it.
>>
>> --         Didier
> Huh? How did you draw that conclusion?

    Well, it's a hardware problem you are trying to solve by a software
method; why not solving it by a hard method? If your touchpad is
unusable and is always in your way, the most radical method to get rid
of it is to unplug it, no? And my experience with an old laptop is that
it may be easy to do. I have changed the keyboard of this old laptop and
I could see the connector of the touchpad.

    Or you might replace it with a working one.

--    Didier


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Disabling touchpad

2020-12-28 Thread Steve Litt
On Mon, 28 Dec 2020 16:30:55 +0100
Didier Kryn  wrote:


>     Or you might replace it with a working one.

This has happened on every laptop I've owned (at least eight). I have
big hands and they invariably hit the mousepad.

 
SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] Another document listing systemd deficiencies

2020-12-28 Thread Steve Litt
Hi all,

This is a fun document:

https://suckless.org/sucks/systemd/

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Disabling touchpad

2020-12-28 Thread d...@d404.nl
On 28-12-2020 12:42, Hendrik Boom wrote:
> On Mon, Dec 28, 2020 at 09:39:04AM +0100, Didier Kryn wrote:
>> Le 27/12/2020 à 21:55, Steve Litt a écrit :
>>> On Sun, 27 Dec 2020 10:20:04 -0500
>>> Hendrik Boom  wrote:
>>>
 My touchpad is absurdly sensitive, and I keep brushing against it by
 accident. I don't feel the touch at all, but the computer sure does.
 It can hapen while I'm typing and suddenly my text edit turns into a 
 shell command in a newsly chosen window.
 I suspect even a few beard hairs can activate it.

 Now I usually use a wireless mouse on this computer though
 occasionally the mouse fails (usually low battery) an then I do want
 the touchpad.

 Is there any way to disable the touchpad normally, but to reactivate
 it easily when the mouse fails?
>>> Yes!
>>>
>>> The attached touchtoggle.sh should fulfill your exact needs. Just
>>> associate it with a convenient hotkey.
>>>
>>> For convenience I'm also putting it in the body, but use it from the
>>> attachment: I have no idea what email clients do to the characters in
>>> the file:
>>>
>>> ==
>>> #!/bin/sh
>>>
>>> # touchtoggle.sh Copyright (C) 2019 by Steve Litt
>>> # All rights reserved.
>>> # Licensed via the 
>>> # Expat license: https://directory.fsf.org/wiki/License:Expat
>>>
>>> # FIRST GET DEVICE'S DEVICE ID CONTAINING CASE INSENSITIVE "TOUCHPAD"
>>> devid=`xinput | grep -i touchpad | \
>>>   sed -e"s/.*id=//" | sed -e"s/\s.*//"`
>>>
>>> # WITH THAT DEVICE ID, FIND EVERYTING ABOUT PROPERTY
>>> # CONTAINING CASE INSENSITIVE "DEVICE ENABLED"
>>> scratchline=`xinput --list-props 11 | \
>>>   grep -i "device enabled" | \
>>>   sed -e"s/^\s*//" | sed -e"s/\s*$//"`
>>> proptext=`echo $scratchline | sed -e"s/\s*(.*//"`
>>> propid=`echo $scratchline | sed -e"s/.*(//" | sed -e"s/).*//"`
>>> currstate=`echo $scratchline | sed -e"s/.*):\s*//"`
>>>
>>> # DIAGNOSTICS, COMMENT OUT WHEN FULLY FUNCTIONAL
>>> echo diagnostic devid  =$devid
>>> echo diagnostic scratchline=$scratchline
>>> echo diagnostic proptext   =$proptext#
>>> echo diagnostic propid =$propid
>>>
>>> # TOGGLE CURRSTATE VARIABLE
>>> echo -n "Current state of $currstate "
>>> if test "$currstate" = "1"; then
>>> currstate=0
>>> else
>>> currstate=1
>>> fi
>>> echo has been changed to $currstate.
>>>
>>> # IMPLEMENT THE PROPERTY VALUE CHANGE
>>> xinput set-prop $devid $propid $currstate
>>>
>>> # UNCOMMENT FOLLOWING LINE IF PROPERTY ID STOPS WORKING
>>> #xinput set-prop $devid "$proptext" $currstate
>>>
>>> ==
>>>
>>> I've had several versions of this shellscript, so please let me know
>>> whether it works for you.
>>     Note you might as well open your laptop and unplug the touchpad.
>> Just search for a tutorial on how to change it.
>>
>> --         Didier
> Yes, in principle.  The times I need my touchpad are
>   * when my mouse battery runs out and I don't have a new one at hand
>   * when my mouse mysteriously fails
>   * when I'm travelling and I've forgotten my mouse
>   etc.
> In few of these cases is it practical to take my computer apart and 
> reconnect the touchpad, 
> but it can be easy to run a shell command after hitting control-alt-F1 
> and logging in.
>
> -- hendrik

Depending on your hardware and driver the easiest solution is to
blacklist the synaptics driver and modprobe it by hand whenever necessary.

Grtz

Nick




signature.asc
Description: OpenPGP digital signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Disabling touchpad

2020-12-28 Thread Mason Loring Bliss
On Sun, Dec 27, 2020 at 03:55:37PM -0500, Steve Litt wrote:

> The attached touchtoggle.sh should fulfill your exact needs. Just
> associate it with a convenient hotkey.

Something worth noting is that it's reasonable to reference your stuff by
name. For instance, on my T420:

$ xinput | grep Synaptics
⎜   ↳ SynPS/2 Synaptics TouchPadid=11   [slave  pointer (2)]


Note that you *don't* have to parse out the ID. I can say, as an example:

xinput disable "SynPS/2 Synaptics TouchPad

...and it'll do the right thing, far more simply.

-- 
Mason Loring Bliss  ma...@blisses.org  Ewige Blumenkraft!
awake ? sleep : random() & 2 ? dream : sleep; -- Hamlet, Act III, Scene I


signature.asc
Description: PGP signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng