LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-23-2012, 12:22 PM   #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.

Ron

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

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
  


Reply


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-14-2011 12:55 AM
Using 'say' to login SSH and execute command KavithaAshok Linux - Newbie 1 03-25-2010 09:06 PM
failed to execute login command charlie_lab Slackware 2 06-28-2009 02:09 PM
How to execute some command on GDM Login and Logout? jabran Linux - Desktop 2 08-24-2006 11:55 AM
boot script execute command as non-root user wampfler Linux - Security 7 09-24-2004 05:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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