Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 652  / 3 Years ago, sun, august 8, 2021, 12:24:03

The issue at hand



My aim is to enable natural scrolling on system start (or session start), which - up until now - could be easily achieved using a startup script, but since migrating from 12.04 (32 bit) to 13.04 (64 bit) I'm not able to automate this task.



Here's the script used:



#!/bin/sh
xinput set-prop 12 273 -25 -25


it works when running independently, so it seem to be overridden by a later call. How to resolve this?



What have I tried?




  • Adding an entry in the Startup Applications for the trackpad script

  • Using a @reboot flagged entry in crontab to call the xinput command

  • Calling the trackpad script in .bash_login, or in .profile

  • Adding a .conf file in /etc/init

  • I think at some point I even tried to mess around with sequencing directories and sequencing file names under /etc/rc*

  • Including a call in various scripts under /etc/pm (that actually got things working for the boot phase, but any subsequent suspend/sleep would deactivate the trackpad custom settings, again).



Environment



Dell XPS 13, Ubuntu 13.04 64 bit.


More From » 13.04

 Answers
6

This doesn't explain why it is happening, it's just a workaround.



You could automatically reset the property whenever it changes. Use this script:



#!/bin/bash
while true; do
xinput list-props 12 | grep -q "Synaptics Scrolling Distance (273):.*-25, -25" || xinput set-prop 12 273 -25 -25
sleep 5
done

[#30631] Monday, August 9, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
attagjump

Total Points: 272
Total Questions: 127
Total Answers: 124

Location: Taiwan
Member since Fri, Sep 17, 2021
3 Years ago
;