maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   The Colf project - i need help :D (https://talk.maemo.org/showthread.php?t=67769)

santiago 2011-01-02 10:25

The Colf project - i need help :D
 
THE Colf
hi guys, i'm creating a new app that can play videos and sounds during the purge of the system files. I'm totally noob about the bash, but i don't surrender :D

i need help to create a string to execute:

1) play a video file using the media player (default)

i did this but it sometimes works... Not every times i'm able to run it in the right setup

#Promo
/usr/bin/dbus-send --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:/home/LINKS/promo.avi && sleep 26
Maybe is the sleep?? I tryed to delete the sleep but it doesn't work at all...


2) i need a value or a command line to keep the light on, in the LCD i mean...
gconftool -s -t bool /system/osso/dsm/locks/touchscreen_keypad_autolock_enabled false
this one doesnt work too...


3) i need a command line to Kill a Script.sh, becouse of errors, the script can be pressed more times and the sounds effects aren't good to hear

4) I wanna have a command line to use the led patterns
(dbus)??? i'm noob, i'll be happy to find a dummy Guide about that....

Have a good year, sorry for my english i'm italian :D (the true is that i did'nt study it very well, i hated my teacher becouse she given me very bad Votes :D ) thanks again, i leave you a video promo about what i wanna do.

noobmonkey 2011-01-02 11:46

Re: The Colf project - i need help :D
 
not sure what lanuage you are using but check the healthcheck(python version in extras/testing) as it does the led's and sound playing...

santiago 2011-01-02 18:37

Re: The Colf project - i need help :D
 
Quote:

Originally Posted by noobmonkey (Post 909676)
not sure what lanuage you are using but check the healthcheck(python version in extras/testing) as it does the led's and sound playing...

i think that the python cose is different. I'm starting to create it using simple calls with bash scripting. i'm scared becous the only guide that i found, it's 680 pages

silviu 2011-01-03 12:09

Re: The Colf project - i need help :D
 
Regarding the bash part I can't help you if you give me more details about the project.

noobmonkey 2011-01-03 12:47

Re: The Colf project - i need help :D
 
Quote:

Originally Posted by santiago (Post 909931)
i think that the python cose is different. I'm starting to create it using simple calls with bash scripting. i'm scared becous the only guide that i found, it's 680 pages

hehe i'm not the greatest bash expert, but really do check the python code - 90% of it is terminal code ;) - (ie run from within x-terminal) and the dbus calls should be easy enough to turn back into standard dbus calls.


All times are GMT. The time now is 04:43.

vBulletin® Version 3.8.8