Score:0

Something over-writes my start-up script defined calls to "xinput set-prop" and "synclient [property]=". How can I find out what is causing this?

sh flag

I am trying to enable synaptics touchpad "natural scrolling" on startup, based on the registry key "EnableNaturalScrolling".

    if [ $ENS -eq 1 ] && [ $VSD -gt 0 ] ; then
             VSD=$(synclient | grep VertScrollDelta | cut -d "=" -f2)
             VS_INVERT=$((VSD * -1))
             TPAD_ID=$(xinput | grep Synaptics | awk '{print $6}' | cut -d "=" -f2)
             xinput set-prop $TPAD_ID "Synaptics Scrolling Distance" $VS_INVERT $VS_INVERT
             synclient VertScrollDelta=$VS_INVERT
    fi

When this condition runs, all values are as expected ($ENS=1, $VSD=112, VS_INVERT=-112, TPAD_ID is what I need it to be)

The last two commands are two separate ways of enabling "natural scrolling on a Synaptics touchpad by reversing the Scrolling Distance.

xinput list-props $TPAD_ID | grep "Distance" shows negative values for this property I changed.

However, by the time GUI starts up, Scrolling Distance values are positive if I xinput list-props $TPAD_ID

How can I figure out why my changes are being altered or reverted by some program?

Raffa avatar
jp flag
Does this answer your question? [Startup script not executing](https://askubuntu.com/questions/1450604/startup-script-not-executing)
Niko Senkov avatar
sh flag
I have proof that the startup script executes via logger debug statements.
Organic Marble avatar
us flag
How about delaying the execution of the script until whatever is messing it up has run?
Niko Senkov avatar
sh flag
Workarounds certainly exist but I would rather determine what is changing my code and why. I'll be sure to update once I figure it out!
Niko Senkov avatar
sh flag
The something that over-writes my changes is Xserver reloading the synaptics touchpad 39 seconds after boot. My script needs to run after this.
Score:0
sh flag

The "something" that over-writes my changes is Xserver reloading the synaptics touchpad 39 seconds after boot.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.