LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Fedora 16: Trying to execute an xinput command at boot up before login. Cmd works in terminal as su (https://www.linuxquestions.org/questions/linux-newbie-8/fedora-16-trying-to-execute-an-xinput-command-at-boot-up-before-login-cmd-works-in-terminal-as-su-941326/)

Ron Pierce 04-23-2012 11:22 AM

Fedora 16: Trying to execute an xinput command at boot up before login. Cmd works in terminal as su
 
I ran redhat about 7 years ago and have just about forgot everything.

I am trying to execute a command at boot up that works fine when I am in a terminal and su.
The command turns off the touchpad completely in my Prresario cq56.

The command I run in the terminal is:
xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 0

I have placed this in the /etc/rc.local file with execute permission enabled (755).

It is not working at boot up.
The entire contents of the /etc/rc.local file are:

#! /bin/sh
#! turn off touchpad
#!
xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 0


This is fedora 16 downloaded and clean installed about a month ago.


Thanks very much for any help.

Ron

Tinkster 04-24-2012 09:41 PM

Your problem is that the rc.local is executed before X11 is
up & running. You'll need to find out how Fedora brings X up,
and integrate your xinput-bit with THAT script instead.



Cheers,
Tink


All times are GMT -5. The time now is 10:10 PM.