maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Run application automatically on boot (https://talk.maemo.org/showthread.php?t=73439)

akorvemaker 2011-05-25 17:54

Run application automatically on boot
 
Is there an easy way to automatically run an application after booting up?

Specifically, I want to run osso-xterm. My touchscreen is getting flaky and unreliable, and I want some way of interacting with the system.

Andy

geekgirl74 2011-05-25 19:27

Re: Run application automatically on boot
 
do you have a screen protector on the lcd? if so, have you already tried if it's better without? there was a thread some days ago, where misbehaving touchscreens suddenly were like new after removing the screen protector...

akorvemaker 2011-05-25 19:32

Re: Run application automatically on boot
 
Yeah, I tried removing the screen protector. I tried reflashing too. Neither made any difference.

Thanks for the tip though. If you have any other thoughts, I'd love to hear them.

gionni88 2011-05-25 20:49

Re: Run application automatically on boot
 
EDIT: my bad, didn't read it wasn't Maemo5...

maacruz 2011-05-25 21:28

Re: Run application automatically on boot
 
Quote:

Originally Posted by akorvemaker (Post 1015404)
Yeah, I tried removing the screen protector. I tried reflashing too. Neither made any difference.

Thanks for the tip though. If you have any other thoughts, I'd love to hear them.

Have you installed DiabloTurbo?, it has an improved touchscreen driver for flaky screens.

akorvemaker 2011-05-25 21:46

Re: Run application automatically on boot
 
@gionni88: That doesn't seem to work for me (ctrl-shift-x). Any ideas why it wouldn't? My only thought of something that might interfere is Advanced SystemUI.

@maacruz: Yes, I have tried DT (and love it). Unfortunately it didn't help with my touchscreen issue.

misiak 2011-05-25 22:17

Re: Run application automatically on boot
 
Quote:

Originally Posted by akorvemaker (Post 1015542)
@gionni88: That doesn't seem to work for me (ctrl-shift-x). Any ideas why it wouldn't? My only thought of something that might interfere is Advanced SystemUI.

@maacruz: Yes, I have tried DT (and love it). Unfortunately it didn't help with my touchscreen issue.

Well, gionni88 probably didn't know you posted in Diablo section, as this is shortcut for running terminal in Maemo 5 on N900 ;)

Where is osso-xterm located? is it /usr/bin/osso-xterm ? if so, you could try this (although I cannot confirm it will work, as I don't have any Diablo device):
- Create file in /etc/init.d , for example /etc/event.d/runossoxterm.sh
- Edit it to have contents:
Code:

#!/bin/sh
/usr/bin/osso-xterm

- Save, exit
- Run "chmod a+x /etc/event.d/runossoxterm.sh" to make it executable
- Finally run:
Code:

update-rc.d runossoxterm.sh start 99 2 .
EDIT: Thanks auouymous! Of course you are right :)

auouymous 2011-05-26 05:48

Re: Run application automatically on boot
 
Use /etc/init.d instead of /etc/event.d and after chmod'ing it run:
Code:

update-rc.d runossoxterm.sh start 99 2 .
And don't use the sleep.

misiak 2011-05-26 08:23

Re: Run application automatically on boot
 
Quote:

Originally Posted by auouymous (Post 1015778)
Use /etc/init.d instead of /etc/event.d and after chmod'ing it run:
Code:

update-rc.d runossoxterm.sh start 99 2 .
And don't use the sleep.

You are right, thnk you, I updated post above now. I was so tired last evening I totally forgot abot /et/init.d, or rather maybe mistake it with /etc/event.d because of the other thread here about problems with event.d... I should sleep more.

akorvemaker 2011-05-30 18:50

Re: Run application automatically on boot
 
Many thanks! I get an error with the update-rc.d command:
Code:

update-rc.d: error: no <basename>
followed by general usage instructions.

Any ideas?


All times are GMT. The time now is 00:13.

vBulletin® Version 3.8.8