Porteus 5.0rc2 touchpad autostart changes overridden

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Porteus 5.0rc2 touchpad autostart changes overridden

Post#1 by Ed_P » 16 Sep 2020, 19:43

For my notebook's touchpad I have a script that customizes some of the settings. In /etc/xdg/autostart I have a desktop file which runs the script. (the same desktop and script files from Porteus 4.0) The script runs because the result of a syndaemon command in it are evident but the synclient settings (PalmDetect=1 PalmMinWidth=4) are not changed.

Is there a different place to put the autostart commands?
Ed

User avatar
babam
Warlord
Warlord
Posts: 526
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

Porteus 5.0rc2 touchpad autostart changes overridden

Post#2 by babam » 17 Sep 2020, 19:16

Try via /etc/rc.d/rc.local
Sorry, my English is bad.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Porteus 5.0rc2 touchpad autostart changes overridden

Post#3 by Ed_P » 18 Sep 2020, 04:04

Thank you babam. :good:

It is interesting to note that replacing the /etc/xdg/autostart file with an entry in /etc/rc.d/rc.local didn't help. But when the /etc/xdg/autostart file is present and an entry is in /etc/rc.d/rc.local file the touchpad changes are effective. :crazy:

Added in 35 minutes 1 second:
Maybe I should try the /etc/xdg/autostart/ desktop file in the /home/guest/.config/autostart folder. :hmmm:
Ed

burdi01
Shogun
Shogun
Posts: 201
Joined: 18 Aug 2013, 12:09
Distribution: Slackware PartedMagic Xubuntu
Location: The Netherlands

Porteus 5.0rc2 touchpad autostart changes overridden

Post#4 by burdi01 » 19 Sep 2020, 09:11

The entry in /etc/rc.d/rc.local is executed once and only once when the system boots. The entry in /etc/xdg/autostart is executed every time X comes up. Have a look at your script with that difference in mind.
And what happens in fresh mode?
:D

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Porteus 5.0rc2 touchpad autostart changes overridden

Post#5 by Ed_P » 19 Sep 2020, 18:57

burdi01 wrote:
19 Sep 2020, 09:11
The entry in /etc/rc.d/rc.local is executed once and only once when the system boots. The entry in /etc/xdg/autostart is executed every time X comes up.
:shock: Amazing the stuff I don't know. Thank you. :beer:

When do files in /home/guest/.config/autostart folder get executed? The same as /etc/xdg/autostart/?
burdi01 wrote:
19 Sep 2020, 09:11
And what happens in fresh mode?
Well it won't have my script in either location. :(
:P

My touchpad.sh script. Nothing fancy.

Code: Select all

#!/bin/sh
# https://www.x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html
# https://wiki.archlinux.org/index.php/Touchpad_Synaptics

# https://forum.porteus.org/viewtopic.php?p=60506#p60506
# To auto run at startup 1. Make a desktop file to execute this script.
#   2. Add file to /etc/xdg/autostart.
# https://forum.porteus.org/viewtopic.php?p=78773#p78773
# Try via /etc/rc.d/rc.local. - 5.0rc2 fix.  Running there also works.
# Another option, the /home/guest/.config/autostart folder. 
# https://forum.porteus.org/viewtopic.php?p=78785#p78785
# /etc/rc.d/rc.local is executed once and only once when the system boots. 
# /etc/xdg/autostart is executed every time X comes up. 

#set -x;

# https://unix.stackexchange.com/questions/109625/shell-scripting-z-and-n-options-with-if
# -z  :  string is null, that is, has zero length

if [ ! -z "$1" ]; then
  synclient -l | grep -i Edge 
  echo
  synclient -l | grep -i RightButtonArea
  echo
  synclient -l | grep -i Tap
  echo
  synclient -l | grep -i Two
  echo
  synclient -l | grep -i Palm
  echo
  ps aux|grep '[0-9] syndaemon'| awk '{print "   ",$1,$9,$10,$11,$12,$13,$14,$15,$16,$17}'
  exit
fi

# https://forum.porteus.org/viewtopic.php?p=13596#p13596
syndaemon -i 1 -d

# https://forum.porteus.org/viewtopic.php?f=81&t=1955
# https://forum.porteus.org/viewtopic.php?f=81&t=5096&p=37761#p37761
synclient PalmDetect=1 PalmMinWidth=4
synclient MinSpeed=.2

# Acer 722
#synclient LeftEdge=30   RightEdge=1385 TopEdge=0    BottomEdge=600

# Acer Aspire One
#synclient  LeftEdge=0   RightEdge=1408 TopEdge=0    BottomEdge=640

#synclient LeftEdge=1472 RightEdge=5888 TopEdge=1408 BottomEdge=5218

# Dell Inspiron 13     
synclient  LeftEdge=30   RightEdge=6942 TopEdge=0    BottomEdge=5218
#synclient RightButtonAreaLeft=3914 RightButtonAreaTop=3918 
synclient RightButtonAreaLeft=3471 RightButtonAreaTop=4062
#synclient HorizEdgeScroll=1  RTCornerButton=0  RBCornerButton=9  LBCornerButton=8
#synclient TapButton2=2 TapButton3=3 MaxDoubleTapTime=180
synclient MaxDoubleTapTime=180 
synclient VertTwoFingerScroll=0
Yes I have had this script for a long time.

My main problem is the cursor skipping all over the place when I type and stuff getting deleted and typed in the wrong place. (Yes I stare at my keys when I type not the screen. :( )

And yes I will see what AF mode does.
Ed

Post Reply