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?
Porteus 5.0rc2 touchpad autostart changes overridden
- babam
- Warlord
- Posts: 528
- Joined: 16 Nov 2016, 10:30
- Distribution: Porteus 5.0rc3 Xfce K6.1.1
- Location: Rainy city
Porteus 5.0rc2 touchpad autostart changes overridden
Try via /etc/rc.d/rc.local
Sorry, my English is bad.
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Porteus 5.0rc2 touchpad autostart changes overridden
Thank you babam.
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.
Added in 35 minutes 1 second:
Maybe I should try the /etc/xdg/autostart/ desktop file in the /home/guest/.config/autostart folder.
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.
Added in 35 minutes 1 second:
Maybe I should try the /etc/xdg/autostart/ desktop file in the /home/guest/.config/autostart folder.
Ed
-
- Shogun
- Posts: 206
- Joined: 18 Aug 2013, 12:09
- Distribution: Slackware PartedMagic Xubuntu
- Location: The Netherlands
Porteus 5.0rc2 touchpad autostart changes overridden
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?
And what happens in fresh mode?
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Porteus 5.0rc2 touchpad autostart changes overridden
Amazing the stuff I don't know. Thank you.
When do files in /home/guest/.config/autostart folder get executed? The same as /etc/xdg/autostart/?
Well it won't have my script in either location.
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
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