[Klug-general] Running a script @ StartUp (Ubuntu10.04)
Peter Childs
pchilds at bcs.org
Thu Feb 10 07:48:15 UTC 2011
On 9 February 2011 20:52, Alex Layfield <alex at alexlayfield.force9.co.uk>wrote:
> Tried .xinitrc & .xsessionrc...
>
> I think correctly...
>
> Do I have to run any upd8ing script after fiddling around?
>
> Am leaving her house now, to recuperate...
>
> Still in need of help...
>
> Does this have anything to do with udev?
>
>
> /A
>
> -----Original Message-----
> From: James Morris <jwm.art.net at gmail.com>
> Sender: kent-bounces at mailman.lug.org.uk
> Date: Wed, 9 Feb 2011 20:22:36
> To: Kent Linux User Group - General Topics<kent at mailman.lug.org.uk>
> Reply-To: Kent Linux User Group - General Topics <kent at mailman.lug.org.uk>
> Subject: Re: [Klug-general] Running a script @ StartUp (Ubuntu10.04)
> I'm not sure, but try executing the script in ~/.xinitrc or more
> likely, ~/.xsession
>
> (you might need to use 'exec TouchOff' (without quotes))
>
> I don't have Ubuntu nor Gnome/KDE!
>
>
> On 9 February 2011 20:18, Alex Layfield <alex at alexlayfield.force9.co.uk>
> wrote:
> > OMG!
> >
> > I'm going NUTS!
> >
> > Have made a simple script that I'd like to run as X starts to turn off
> the ALPS touchpad on a Dell Vostro 1700...
> >
> > BTW, there's no BIOS option...
> >
> > It works in the terminal...
> >
> > I have even made a file called "TouchOff", put it in the /etc/lib/bin so
> it registers as a script...
> >
> > (I have added executable status)
> >
> > All I have to do now is type "TouchOff" in the terminal & 'hey presto'...
> >
> > But... Going to System-Preferences-StartUp Applications-Add
> >
> > TouchOff
> >
> > -or-
> >
> > xinput set-prop "AlpsPS/2 ALPS GlidePoint" 154 0
> >
> > (The Xid of the ALPS seems to change @ each boot)
> >
> > Doesn't work...
> >
> > I've added to /etc/rc.local
> >
> > Do I have to run an upd8 script after adding to rc.local?
> >
> > Is there anything missing?
> >
>
That will not work. That is because xinput is a X command, and needs X to be
running before it will work, which its not if your using rc.local.
There are several ways to solve this issue.
1. You may be able to adjust the config of X so it does not talk to the
touch pad.
2. There are a number of startup scripts in /etc/X11/Xsession.d that run
when an X session starts you should be able to put your script in here.
Actially look at /etc/X11/Xsession which runs when you login.
Hope that helps
Peter
> OMG... Help me...
> >
> > All because a little old lady can't type on her lappy keyboard without
> drooping her wrists!
> >
> >
> > /A
> >
> > _______________________________________________
> > Kent mailing list
> > Kent at mailman.lug.org.uk
> > https://mailman.lug.org.uk/mailman/listinfo/kent
> >
>
>
>
> --
> _
> : http://jwm-art.net/
> -audio/image/text/code/
>
> _______________________________________________
> Kent mailing list
> Kent at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/kent
> _______________________________________________
> Kent mailing list
> Kent at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/kent
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/kent/attachments/20110210/4fa2231f/attachment-0001.htm>
More information about the Kent
mailing list