maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [UPDATE] System Info and date on standby screen - V1.1 IS OUT NOW! (https://talk.maemo.org/showthread.php?t=81798)

damaltor 2012-01-23 03:15

[UPDATE] System Info and date on standby screen - V1.1 IS OUT NOW!
 
After having a short brainstorm, admiral0 and I proudly present:

ls-magic

http://img27.imageshack.us/img27/2417/screen1yf.png

-------
Version 1.1 is out now, including a daemon using far less battery and installation via .deb package!
Also, the Hack is now named lpsmagic.
As i do not have any time at the moment, admiral0 is doing the work, so please give kudos to him. To make updating easier, there is a new thread for this mod, located here:
http://talk.maemo.org/showthread.php?p=1156548
Any questions/ideas/bugs/requests should be placed in the new thread.

-------

admiral0 2012-01-23 03:17

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
1 Attachment(s)
  • Created deb that backs up your system's css and installs new one.
  • CPU usage has dropped (using caching in RAM for images).
  • No more shell scripts. fully py
  • Images moved to /opt/lpsmagic/icons (dpkg complains....)
  • Upstart script. Automatic startup
Steps to successfully run this:
  1. Install deb.
  2. Reboot

Also read this if you are interested in next version of lpsmagic.
Enjoy the deb :)
Alternative link:
http://dl.dropbox.com/u/5225087/ls-magic_1.1_armel.deb

Estel 2012-01-23 03:23

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Is it for N9(50)? If yes, it should sit in Harmattan section (got subsection for harmattanish "apps"), to not waste time of Maemo users. Thanks in advance.

/Estel

damaltor 2012-01-23 03:25

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
estel: you are right, thanks

Arie 2012-01-23 04:36

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Before I go any further, I'd like to ask, is there a way to change the font color, as red/blue are best for my screen....

Also is there a way to change the date to show in the format:
Month/Day/Year...

Thank you for your hard work and look forward to more development of this... maybe even a .deb at some point... This is an amazing...

Edit: Already modified the color of the icons... I assume the font is whatever color you've put your standby screen font to

damaltor 2012-01-23 08:23

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Hi,
you can choose an other font by replacing the font file in /usr/home/MyDocs/ls-magic. If you want to, you can put another font file there, and change the name in the python script.

please tell me if we missed something in the installation routine!

a .deb package is easy to build an we will make one for sure, but it is too early as the code is not really done yet, so that would be a lot of work wich is not neccessary yet.

you can change the color of the text, but the icons are white by default. we are trying to find a good way to recolor them with the text. what changes did you do?

also, for some people (including me) the battery icon does not change, and alsways displays an usb plug. we will adress that soon.

afaq 2012-01-23 08:34

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
excellent. Please work on a UI for customisation. I can see this becoming huge.

ejasmudar 2012-01-23 08:34

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
I've also done something similiar for the LockScreenQuote app. But I have a doubt about the battery consumption. Are you noticing any battery drain? What about the CPU usage of Xterm? I'm getting around 12-25% usage.

damaltor 2012-01-23 08:40

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
as xterm does not need to run, it doesnt take battery. the script is started with nohup, so it does not need a running terminal application anymore.

so far i did not notice extra battery draining, we will see that in a few days of usage.

i will be offline for about ten hours or so from now. feel free to ask stuff, but dont mind if i cant answer. admiral0 will be here later, i guess.

admiral0 2012-01-23 09:21

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
@ejasmudar
You are right about battery consumption. The display will consume 100% more during idle(there are twice things displayed as before), but it's a tradeoff with no info.
The python script for now doesn't do any caching/preloading so it consumes more than it should. Also the code is written at 3am so not the best code out there (loading all the icons that we don't even use...).

if people are interested in this, i can rewrite this in C++/QPainter to be more easy on RAM.

mousse04 2012-01-23 14:37

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
It is not working for me:

After typing nohup I got: appending output /root/nohup.out.

and nothing happens :(

admiral0 2012-01-23 14:38

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
why do you execute it as root?

mousse04 2012-01-23 14:39

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
I tried to execute it as root and then no root, same results :(

Arie 2012-01-23 14:44

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Quote:

Originally Posted by damaltor (Post 1154290)
Hi,
you can choose an other font by replacing the font file in /usr/home/MyDocs/ls-magic. If you want to, you can put another font file there, and change the name in the python script.

please tell me if we missed something in the installation routine!

a .deb package is easy to build an we will make one for sure, but it is too early as the code is not really done yet, so that would be a lot of work wich is not neccessary yet.

you can change the color of the text, but the icons are white by default. we are trying to find a good way to recolor them with the text. what changes did you do?

also, for some people (including me) the battery icon does not change, and alsways displays an usb plug. we will adress that soon.

I recolored the icons, I'm testing to see if they work now....

Edit: I get the same output as Mousse04
I tried both root and no root and I got the same output as he did...

mousse04 2012-01-23 14:49

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Quote:

Originally Posted by mousse04 (Post 1154418)
I tried to execute it as root and then no root, same results :(

Ok when I go inside nohup.out I have:

can't execute ls-magic.sh: permission denied

admiral0 2012-01-23 14:52

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
oh nice

nohup develsh ls-magic.sh

admiral0 2012-01-23 14:52

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
i will eventually unify python script and shellscript so i can cache in RAM stuff.

admiral0 2012-01-23 14:55

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
it's the zip....
Code:

chmod +x ls-magic.sh
. Tonight after 19:00 GMT i'll do some changes and fix installation.

mousse04 2012-01-23 14:57

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Quote:

Originally Posted by admiral0 (Post 1154430)
oh nice

nohup develsh ls-magic.sh

Ok I got it I just had to chmod the .sh and .py scripts.

Thanks

Arie 2012-01-23 15:10

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Quote:

Originally Posted by mousse04 (Post 1154435)
Ok I got it I just had to chmod the .sh and .py scripts.

Thanks

How do you do that?

admiral0 2012-01-23 15:15

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
will provide installer tonight. don't damage your system :)

mousse04 2012-01-23 15:16

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
just go in:

/home/usr/ls-magic

then

chmod +x ls-magic.sh as indicated by admiral0

mousse04 2012-01-23 15:18

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
just a thing. I used the N9Qtweak application to enlarge my lockscreen text size ... and so with your script the problem is that I can't get all informations displayed on the screen because the size of the text.

How can I enlarge the size of the image corresponding to additional informations you provided with your script?

admiral0 2012-01-23 15:42

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
I didn't have a look at the css file so i know little

Arie 2012-01-23 15:50

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
when i do that it tells me chmod: operation not permitted

mousse04 2012-01-23 15:51

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Quote:

Originally Posted by Arie (Post 1154473)
when i do that it tells me chmod: operation not permitted

even in root?

admiral0 2012-01-23 15:57

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
aegis. chmod as the user which owns the file (probably user). Or be patient till tonight :)

Anynoupy 2012-01-23 16:10

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Thanks a lot, works like a charm even though I got the "appending output /nohup.out" message ;)
Will try with a 30s update, and see if it's much more consuming or not.

ejasmudar 2012-01-23 16:37

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Quote:

Originally Posted by admiral0 (Post 1154320)
@ejasmudar
You are right about battery consumption. The display will consume 100% more during idle(there are twice things displayed as before), but it's a tradeoff with no info.
The python script for now doesn't do any caching/preloading so it consumes more than it should. Also the code is written at 3am so not the best code out there (loading all the icons that we don't even use...).

if people are interested in this, i can rewrite this in C++/QPainter to be more easy on RAM.

Please take a look at my WIP app Lock screen Quotes (http://talk.maemo.org/showthread.php?t=81443).

It would be great if these different scripts for modding the lock screen could be combined into a mega GUI app that can chose what to show on the lockscreen selectively (ie, battery AND/OR RAM AND/OR Uptime etc AND/OR Random Quotes)

I am currently unable to continue development due to other commitments :(

admiral0 2012-01-23 16:40

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Is it ok for you if i use the quotes file?

I got inspired by your work (Thanks!). I first started to mod your script, then changed everything.

ejasmudar 2012-01-23 16:55

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Quote:

Originally Posted by admiral0 (Post 1154493)
Is it ok for you if i use the quotes file?

I got inspired by your work (Thanks!). I first started to mod your script, then changed everything.

Yeah sure go ahead! It would be nice to be mentioned somewhere in the credits or something though ;)

BTW, based on my plans for improving the other script, instead of a full blown GUI, it would be better to store the variables in gconf and allow the user to manipulate it from the settings app.

damaltor 2012-01-23 22:00

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Haha, looks like everyone likes our script.

Sorry about the chmod issue, looks like the files were on a fat partition before i zipped them, so they lost the executable flag. i will modify the first post with the setup instructions so that this problem will be gone.

mousse04 2012-01-24 10:29

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Any news on consumption battery?

And what about my issue if I have enlarged the clock size on lockscreen?

See: http://talk.maemo.org/showpost.php?p...1&postcount=23

damaltor 2012-01-24 11:02

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Battery consumption is a bit higher due to more OLEDs glowing in standby mode.

You would have to resize the image in the css file mentioned in the first post, shat should already be all I guess. try 45mm and 25mm.

mousse04 2012-01-24 11:53

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
thanks a lot I will try :) !!!!

Arie 2012-01-24 13:42

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
It's a pretty cool thing, thank you for all your hard work on this... I removed both ls-magic folders from my N9, but there is still information on my standby screen... How do I get rid of it?

damaltor 2012-01-24 14:10

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
to get rid of the whole thing:
- reboot your phone to stop the script (or stop it via "top" and "kill" if you like that better)
- delete both ls-magic folders
- open terminal or ssh session
- type:
Code:

gconftool-2 --unset  /desktop/meego/screen_lock/low_power_mode/operator_logo
- delete the hidden file /home/user/.lowpowerinfo.png

EDIT: REMOVED TYPO

admiral0 2012-01-24 15:01

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Enjoy second post :)

Created deb.

anig 2012-01-24 15:24

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Thanks,

Do you have to get rid of the whole thing before installing the deb version?

aRTee 2012-01-24 15:28

Re: [ANNOUNCE] System Info and date on standby screen - MOD - ls-magic
 
Thanks a lot guys!!

just a few quick comments:
please correct the first post, for the filename section to change, it says ...operatorlo go with a space too many
reboot, why? That can be done with a command, which I can't find just now... same can be used to get the system to accept the font colour change of the digital clock.

The .deb should probably have that command as prerm:
gconftool-2 --unset /desktop/meego/screen_lock/low_power_mode/operator_logo

As I mentioned elsewhere on this forum about the pentile screen, green has full resolution (i.e. you can go the smallest on fonts and graphic details), red the lowest power consumption. Just something to be aware of.

I'm looking forward to seeing a combined app with options for quotes, system info, whatnot. And please don't forget battery level dependent text colour! :P


All times are GMT. The time now is 08:10.

vBulletin® Version 3.8.8