[opensuse] Running a command on resume and boot

I need to run a command to disable the touchpad every time my ThinkPad T520 starts up from sleep/hibernation/boot. It probably could be disabled in the BIOS but I prefer something easier to change if I am letting a touchpad comfortable person use it. TIA, Jeffrey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org

Quoting Jeffrey L. Taylor <jeff@abluz.dyndns.org>:
I need to run a command to disable the touchpad every time my ThinkPad T520 starts up from sleep/hibernation/boot. It probably could be disabled in the BIOS but I prefer something easier to change if I am letting a touchpad comfortable person use it.
Some additional information. I am using KDE and the KDE setting to disable the touchpad on startup has no effect that I can see. Jeffrey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org

On 16/05/11 15:08, Jeffrey L. Taylor wrote:
Quoting Jeffrey L. Taylor<jeff@abluz.dyndns.org>:
I need to run a command to disable the touchpad every time my ThinkPad T520 starts up from sleep/hibernation/boot. It probably could be disabled in the BIOS but I prefer something easier to change if I am letting a touchpad comfortable person use it.
Some additional information. I am using KDE and the KDE setting to disable the touchpad on startup has no effect that I can see.
Jeffrey
I think what you want is in /etc/pm/{sleep.d},{power.d} . Tejas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org

Quoting Tejas Guruswamy <tejas.guruswamy@opensuse.org>:
On 16/05/11 15:08, Jeffrey L. Taylor wrote:
Quoting Jeffrey L. Taylor<jeff@abluz.dyndns.org>:
I need to run a command to disable the touchpad every time my ThinkPad T520 starts up from sleep/hibernation/boot. It probably could be disabled in the BIOS but I prefer something easier to change if I am letting a touchpad comfortable person use it.
Some additional information. I am using KDE and the KDE setting to disable the touchpad on startup has no effect that I can see.
Jeffrey
I think what you want is in /etc/pm/{sleep.d},{power.d} .
For /etc/pm/sleep.d, X Windows is not running yet. Tried 00xinput and 50xinput and 99xinput. Same results. Thanks anyway, Jeffrey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org

Am Montag, 16. Mai 2011 schrieb Jeffrey L. Taylor:
Quoting Jeffrey L. Taylor <jeff@abluz.dyndns.org>:
I need to run a command to disable the touchpad every time my ThinkPad T520 starts up from sleep/hibernation/boot. It probably could be disabled in the BIOS but I prefer something easier to change if I am letting a touchpad comfortable person use it.
Some additional information. I am using KDE and the KDE setting to disable the touchpad on startup has no effect that I can see.
Happens here too. This is how I disabled it within synaptiks: "Automatic touchpad control"->"Automatically switch off touchpad, if a mouse is plugged" and did not ignore the TrackPoint. Gruß Jan -- Change is certain, progress is not. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org

Quoting Jan Ritzerfeld <suse@mailinglists.jan.ritzerfeld.org>:
Am Montag, 16. Mai 2011 schrieb Jeffrey L. Taylor:
Quoting Jeffrey L. Taylor <jeff@abluz.dyndns.org>:
I need to run a command to disable the touchpad every time my ThinkPad T520 starts up from sleep/hibernation/boot. It probably could be disabled in the BIOS but I prefer something easier to change if I am letting a touchpad comfortable person use it.
Some additional information. I am using KDE and the KDE setting to disable the touchpad on startup has no effect that I can see.
Happens here too. This is how I disabled it within synaptiks: "Automatic touchpad control"->"Automatically switch off touchpad, if a mouse is plugged" and did not ignore the TrackPoint.
Doesn't work on my laptop. No mouse devices are ignored, but still has no effect. Thanks, Jeffrey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org

El 16/05/11 09:04, Jeffrey L. Taylor escribió:
I need to run a command to disable the touchpad every time my ThinkPad T520 starts up from sleep/hibernation/boot. It probably could be disabled in the BIOS but I prefer something easier to change if I am letting a touchpad comfortable person use it.
create an executable script on /etc/pm/sleep.d for example /etc/pm/sleep.d/99touchpad #!/bin/bash . /usr/lib/pm-utils/functions case "$1" in hibernate|suspend) <run stuff in suspend/hibernate> ;; thaw|resume) <run stuff on resume....> ;; *) ;; esac exit 0 See file /usr/lib/pm-utils/functions for the commonly used routines. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Cristian Rodríguez
-
Jan Ritzerfeld
-
Jeffrey L. Taylor
-
Tejas Guruswamy