rc.local / touchpad problem [Solved]
Posted: 25 Nov 2017, 18:17
For some reason rc.local isn't working for me.
My rc.local file:
My touchpad.sh script:
Both files are executable. And run fine via the command line once I've booted.
My systems are netbooks/notebooks with touchpads and without running my script certain aspects of my touchpad don't work. The right button, scrolling, whatever.
BTW This problem exists on my 3.2.2 system also.
-update-
The script is executed when booting. It executes right before the Welcome to Porteus line.
So why aren't my touchpad changes taking??
Is there another auto start option??
My rc.local file:
Code: Select all
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
/home/guest/touchpad.sh
Code: Select all
#!/bin/sh
# To auto run at startup 1. Add to /etc/rc.d/rc.local. 2. And make rc.local executable.
if [ ! -z "$1" ]; then
synclient -l | grep -i Palm
echo
synclient -l | grep -i Edge
echo
synclient -l | grep -i RightButtonArea
echo
synclient -l | grep -i Tap
exit
fi
# https://forum.porteus.org/viewtopic.php?f=81&t=1955
synclient PalmDetect=1 PalmMinWidth=4
#synclient LeftEdge=30 RightEdge=1385 TopEdge=0 BottomEdge=600
# Acer 722
#synclient LeftEdge=0 RightEdge=1408 TopEdge=0 BottomEdge=640
#synclient MinSpeed=.2
# Acer Aspire One
#synclient LeftEdge=1472 RightEdge=5888 TopEdge=1408 BottomEdge=5218
#synclient MinSpeed=.2
# Dell Inspiron 13 http://forum.porteus.org/viewtopic.php?f=81&t=5096&p=37761#p37761
#synclient RightButtonAreaLeft=3914 RightButtonAreaTop=3918
synclient RightButtonAreaLeft=3471 RightButtonAreaTop=4062
synclient LeftEdge=30 RightEdge=6942 TopEdge=0 BottomEdge=5218
synclient MinSpeed=.2
#synclient HorizEdgeScroll=1 RTCornerButton=0 RBCornerButton=9 LBCornerButton=8
#synclient TapButton2=2 TapButton3=3 MaxDoubleTapTime=180
synclient MaxDoubleTapTime=180
My systems are netbooks/notebooks with touchpads and without running my script certain aspects of my touchpad don't work. The right button, scrolling, whatever.
BTW This problem exists on my 3.2.2 system also.
-update-
The script is executed when booting. It executes right before the Welcome to Porteus line.
Code: Select all
INIT: Entering runlevel: 4
Failed to connect to X Server
Failed to connect to X Server
Failed to connect to X Server
Failed to connect to X Server
>> rc.local executes the touchpad.sh script here <<<
***************************
Welcome to Porteus
Is there another auto start option??