Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-23-2012, 11:22 AM   #1
Ron Pierce
LQ Newbie
Registered: Apr 2012
Distribution: Fedora 16
Posts: 2

Rep: Reputation: 0
Question 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.


Last edited by Ron Pierce; 04-23-2012 at 07:02 PM. Reason: tired and misspelled part of subject
Old 04-24-2012, 09:41 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to execute login command SBN Gentoo 6 12-13-2011 11:55 PM
Using 'say' to login SSH and execute command KavithaAshok Linux - Newbie 1 03-25-2010 08:06 PM
failed to execute login command charlie_lab Slackware 2 06-28-2009 01:09 PM
How to execute some command on GDM Login and Logout? jabran Linux - Desktop 2 08-24-2006 10:55 AM
boot script execute command as non-root user wampfler Linux - Security 7 09-24-2004 04:56 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration