Active Topics

 



Notices


Reply
Thread Tools
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#31
and if you dont want to use vi to clean your files you and also use one liners like:

# sed -i -e 's/^M//g' /usr/bin/USbS.sh
 

The Following User Says Thank You to rainisto For This Useful Post:
minipac's Avatar
Posts: 63 | Thanked: 19 times | Joined on May 2012
#32
Originally Posted by Dousan View Post
I don't know why you can't move around it works for me when pressing 'esc' then 'i'. I just did it as user and as root.

The thing to delete is ^M, as stated a few times, in the end of most of the lines

Regards Dousan...
Finally i should deleted ^M, i was looking for this answer

so when ever i find ^m i should deleted fro any line
 
minipac's Avatar
Posts: 63 | Thanked: 19 times | Joined on May 2012
#33
now i got this message after deleting all ^m : Write Error: permission denied
 
Dousan's Avatar
Posts: 1,161 | Thanked: 1,707 times | Joined on Jan 2010 @ Denmark
#34
Originally Posted by minipac View Post
now i got this message after deleting all ^m : Write Error: permission denied
Are you doing this as root (devel-su -> rootme)?

Regards Dousan...
__________________
My Procreate art:
https://folio.procreate.art/dousan

My Søciety6:
http://society6.com/Dousan
 

The Following User Says Thank You to Dousan For This Useful Post:
minipac's Avatar
Posts: 63 | Thanked: 19 times | Joined on May 2012
#35
Finally working, now lets search for scripts and how to add
 
ejasmudar's Avatar
Posts: 800 | Thanked: 957 times | Joined on Sep 2010 @ India
#36
Sorry guys, been a bit busy last two days.

Originally Posted by Saturn View Post
Hi ejasmudar,

Thanks for sharing your work. I've noticed you're using a sleep command to update the screen and this is not ideal for power consumption. If it helps you to improve it in a future version here is info on the recommended way:
http://harmattan-dev.nokia.com/docs/...heartbeat.html

cheers
Wow, that was such an insightful read. "Waiting for something to happen in a busyloop (regardless of the inserted sleeps) or with a timer consumes a lot of power. Instead of polling, ensure that the application waits for events." I suspect USbS would be a battery hog at smaller time intervals as the device will continously be woken up.

But, I wont be able to use system heartbeat from a shell script right? So I am now learning to write and compile a small C++ program that invokes the shell script when woken up. It may take time as I am a newb.

Saturn, do you mind if I PM you questions to which google can't help me?


Originally Posted by Saturn View Post
A couple more things:

- in the imager.py, the line "#!/usr/bin/python" needs to be the first line. Then you will be also able to invoke it directly.
- in the main.sh, line 23 is not needed.
Noted and thanks.


Originally Posted by rainisto View Post
zip had lot of ^M dos line-endings that I had to clean out before using.
REALLY? I had made sure to use Unix EOL and opening the script in my device with vi does not show any such thing. Hmm is everyone getting this? Maybe something happened while zipping?
Is it present in all files or just /usr/bin/USbS.sh?


Also guys, please let me know how USbS is affecting your battery life.
__________________
My Device History:Nokia 3510 > SE T230 > Nokia 6600 > HP2210 > SE p910i > SE p990i > N95 > I-mate 9502 > itouch > Nokia N900 > ? N9
My apps for N900:
Conversation Modder

My apps for N9:
LockScreenQuotes
USbS


If you feel I have helped you, don't forget to press Thanks!
 
ejasmudar's Avatar
Posts: 800 | Thanked: 957 times | Joined on Sep 2010 @ India
#37
A script to show the uptime. Place it in /home/user/USbS/Scripts/.

(source:http://brockangelo.com/2009/06/05/ho...ime-using-bash)
Attached Images
 
Attached Files
File Type: zip n9uptime.zip (434 Bytes, 99 views)
__________________
My Device History:Nokia 3510 > SE T230 > Nokia 6600 > HP2210 > SE p910i > SE p990i > N95 > I-mate 9502 > itouch > Nokia N900 > ? N9
My apps for N900:
Conversation Modder

My apps for N9:
LockScreenQuotes
USbS


If you feel I have helped you, don't forget to press Thanks!
 

The Following 2 Users Say Thank You to ejasmudar For This Useful Post:
ejasmudar's Avatar
Posts: 800 | Thanked: 957 times | Joined on Sep 2010 @ India
#38
hmmm looks like this thread might come to an early demise as my device may be water damaged (http://talk.maemo.org/showthread.php...46#post1210846)
__________________
My Device History:Nokia 3510 > SE T230 > Nokia 6600 > HP2210 > SE p910i > SE p990i > N95 > I-mate 9502 > itouch > Nokia N900 > ? N9
My apps for N900:
Conversation Modder

My apps for N9:
LockScreenQuotes
USbS


If you feel I have helped you, don't forget to press Thanks!
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#39
looks like your source has been commercialized : http://store.ovi.com/content/279408

its frustrating when someone takes open-sourced work and commercializes it without giving due credit to the original devs.
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#40
Originally Posted by thedead1440 View Post
looks like your source has been commercialized : http://store.ovi.com/content/279408

its frustrating when someone takes open-sourced work and commercializes it without giving due credit to the original devs.
thp can ofcourse release what ever commercial application which functionality can be similar like than this. Have you checked if he uses the same sources (quite unlikely)? But even if he would thats life, anyone can ask money from open sourced application, and some people do pay if app is nicely packaged, so you don't have to fire up text editor to get things working.
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.
 
Reply

Tags
harmattan, lowpowerscreen


 
Forum Jump


All times are GMT. The time now is 23:26.