-
Senior Member
registered user
Originally Posted by
utu
Another approach might be to take your script and add it to /etc/rc.local.
This file should also be root:root AND executable. We really should see your script
before you do this.
But I am surprised the Xsession.d approach doesn't work for you.
Let us know how it goes in any event.
Can't really put that in /etc/rc.local because the program synclient need to contact the X server.
OK there is some further details need to take note about the script synclient, there must be no spaces between the equal sign, the quotes are optional however :-
synclient TouchpadOff=1 - works
synclient TouchpadOff =1 - does not work
synclient TouchpadOff = 1 - does not work
synclient "TouchpadOff=1" - works
-
Senior Member
registered user
Zeroing in on the problem...
Originally Posted by
kl522
synclient "TouchpadOff=1" - works
Then, I think what wspc wants is
synclient "TouchpadOff=0" , with or w/o the quotes,
with properties root:root, not executable.
He wants to ENABLE the touchpad.
Last edited by utu; 03-10-2012 at 06:03 AM.
-
Senior Member
registered user
Originally Posted by
kl522
Can't really put that in /etc/rc.local because the program synclient need to contact the X server.
I was really surprised rc.local was NOT an alternative, since the same material entered into an xterminal works just fine.
I'd still like to see what 'script' does the job.
-
Senior Member
registered user
Originally Posted by
utu
I was really surprised rc.local was NOT an alternative, since the same material entered into an xterminal works just fine.
I'd still like to see what 'script' does the job.
Because when you open an xterminal, there is an environment variable called DISPLAY.
$ echo $DISPLAY
:0
$ set | grep DISPLAY
DISPLAY=:0
However, when you run it in rc, the DISPLAY is not set, so synclient does not know which Xserver DISPLAY you are talking about.
$ unset DISPLAY
$ synclient -l
Failed to connect to X server
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
DELL PowerEdge R730 Server 2x E5-2690v4 2.6GHz =28 Cores 128GB H730 4xRJ45
$458.00
HP ProLiant DL380 Gen9 8SFF Server - E5-2698 v3 - 32Cores - 128GB Ram - 1TB HDD
$299.00
HP ProLiant DL360 Gen9 Server 2x E5-2620v4 2.1GHz =16 Cores 32GB P440AR 4xRJ45
$220.00
DELL PowerEdge R630 8SFF Server 2x E5-2680v4 2.4GHz =28 Cores 128GB H730 4xRJ45
$379.00
Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD
$89.99
Dell R630 Server 2x E5-2620 V4 2.1GHz =16 Cores 128GB DDR4 1x 960GB 2x 1G 2x 10G
$210.00
Dell Poweredge R210 II Server Xeon E3-1220 v2 3.1ghz Quad Core / NoRam / 1x Tray
$69.99
HP ProLiant DL360 G9 Server 2x Xeon E5-2690 V3 24 Cores 2.6GHz P440ar 128GB DDR4
$249.99
Dell Poweredge R220 Server Xeon E3-1270 v3 3.5ghz Quad Core / 16gb / 1x Tray
$139.99
DELL PowerEdge R730XD Server 2x E5-2697v4 2.3GHz =36 Cores 32GB H730 4xRJ45
$378.00