maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Anyway to remove the text "Swipe to unlock" from the lock screen? (https://talk.maemo.org/showthread.php?t=69249)

Bratag 2011-02-22 17:49

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
1 Attachment(s)
To get started you need some perl libraries.

HTML-TokeParser-Simple
HTML-TokeParser
HTML-Tagset
URI
LWP-Simple

You can download all of them to a location on your N900 by using the following commands (this assumes you have wget. If you dont enable extras and get it)

wget http://search.cpan.org/CPAN/authors/...et-3.20.tar.gz
wget http://search.cpan.org/CPAN/authors/...er-3.68.tar.gz
wget http://search.cpan.org/CPAN/authors/...le-3.15.tar.gz
wget http://search.cpan.org/CPAN/authors/...RI-1.58.tar.gz
wget http://search.cpan.org/CPAN/authors/...l-5.837.tar.gz

Once you have all these down you need to extract them. You will need a little room in whatever location you are extracting them to.

tar xvf HTML-Tagset-3.20.tar.gz
tar xvzf HTML-Parser-3.68.tar.gz
tar xvzf HTML-TokeParser-Simple-3.15.tar.gz

Once you have done that you should see a directory structure as below

HTML-Parser-3.68 URI-1.58
HTML-Parser-3.68.tar.gz URI-1.58.tar.gz
HTML-Tagset-3.20 libwww-perl-5.837
HTML-Tagset-3.20.tar.gz libwww-perl-5.837.tar.gz
HTML-TokeParser-Simple-3.15 libwww-perl-5.837.tar.gz.1
HTML-TokeParser-Simple-3.15.tar.gz

Now its a matter of copying the libs into place. For each extracted directory EXCEPT URI do the following.

cd <dir name>/lib
cp -R * /usr/lib/perl/5.8/

For URI do the following

cd URI-1.58
cp URI.pm /usr/lib/perl/5.8/
cp -R URI /usr/lib/perl/5.8/

Now that you have your perl libs you need imagemagick. An optified version can be found at

http://talk.maemo.org/showpost.php?p=918582&postcount=2

Ok now we need to setup the perl script - I am attaching it to this posting. You will need to rename it from .txt to .pl

Firstly some caveats. This script was cranked out in like 1 hour. Its uglier than sin and can probably be done a lot better. Have at it if you can improve it and please post your updates here.

Ok.

You will need to edit the script to point to your weather by changing the variable WEATHER_URL at the top of the script. The current one points to New York.

Next change the BACKGROUND_IMAGE variable to point to the image you want as a background for your slider.
Change the TMP_DIR value to a location on your N900 you want to do the processing in. Depending on the size of your background image you will need about 5 MB.

I have it set to my sdcard and created a tmp location there. If you choose to leave it as is - then don't forget to create that directory.

Lastly set the THEME variable to point to your current theme. In my case I use the plastic-pleego-blue theme but you would substitute your theme directory.

Ok save all your changes and set the script to be executable.

chmod +x weather.pl

Run it. If you don't get any errors then the next time you view the slider screen you should see current weather on the bottom left and tomorrows on the bottom right.

I setup alarmd to run the script hourly - you do as you see fit.

I am making some assumptions here that if you are hacking this kind of stuff you understand how to edit files and put them in a location where you can execute them.

Bratag 2011-02-22 18:04

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
Quote:

Originally Posted by hawaii (Post 952878)
Uh, I understand how it works. Don't try to patronize me.

You can PULL the information from the same methods that OMWeather uses to display on the widget. Query it and use the same icons and then create your lockslider image. This way you don't have to tax the connection with grabbing images, you don't have to change API or crude-methods of grabbing the data from websites and you don't have to time updates - camp on an OMWeather trigger and update the images.

You assume there aren't people who are smarter than you who have already done this. Stop it.

I wrote a simple little script based on the last-fm image work previously done in this thread.

Perhaps camping on an omweather trigger (whatever that means) is something you have done before - I haven't and I lack the time/desire to work out how.

If its so easy then please feel free to show me/us how I am always glad to learn and will happily replace my system with yours.

Bratag 2011-02-28 21:51

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
Quote:

Originally Posted by Bratag (Post 952901)
I wrote a simple little script based on the last-fm image work previously done in this thread.

Perhaps camping on an omweather trigger (whatever that means) is something you have done before - I haven't and I lack the time/desire to work out how.

If its so easy then please feel free to show me/us how I am always glad to learn and will happily replace my system with yours.

Ok I looked into this a little more and now feel I can pull the data I need from the OMWeather data and grab the icons from the icon set of your choosing.

Should hopefully be able to crank something out quickly.

EDIT: Got this working. Will post procedure later today.

J4ZZ 2011-04-28 09:53

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
I don't know if it's the right thread but since it's lockscreen related I will just ask.
I'm still having a semi-transparent overlay (image?) over the date and time info and I'm just having no idea how to remove this... I've renamed everything lockscreen related or replaced it with transparent images. What I am missing?

Edit: nervermind, found it. I had to remove some code (draw 'rectangle') from the lockSlider.pl script.

Greetz,

..::J4ZZ::..

cipper 2011-04-28 13:08

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
insn't possible to modify the osso-system-lock.mo using linux?

cipper 2011-04-28 13:19

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
Quote:

Originally Posted by cipper (Post 996796)
insn't possible to modify the osso-system-lock.mo using linux?

ok, I found something, Is this procedure correct?

msgunfmt osso-system-lock.mo.orig -o osso-system-lock.po
nano osso-system-lock.po #edit the swipe string
msgfmt osso-system-lock.po -o osso-system-lock.mo
scp osso-system-lock.mo root@192.168.0.5:/usr/share/locale/it_IT/LC_MESSAGES/
---
EDIT: works perfectly, thanks!

rjneid 2011-04-28 19:10

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
Quote:

Originally Posted by generationally (Post 939398)
Here is what I have done with my lock screen after reading this thread:

http://media.share.ovi.com/m1/s/2758...54e5e45511.jpg

I took away the 'swipe to unlock' text and the slider graphic. I then created a script containing wget and ImageMagick commands to download my Last Fm statistics as a transparent png image and overlay the image on the green background. The script then copies the final image to the 'backgrounds' folder of my theme. I use Alarmed to automatically do this once a day. So whenever the phone is locked and I press the power button, I get to see my latest Last Fm statistics.

Why? Because it is possible ;) Maybe a weather forecast or other info downloaded from the net would be more useful :)

can you share THIS pic please ?

never mind, found it, sorry

eefo 2011-05-12 17:14

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
as i read the posts in this thread , that there are different files for different regions .
like US has different and Uk's different .
i am from Asia , Pakistan .
which one should i choose ?
i chose US one and forgot to give space in between " " and now it's giving error .


msgid "secu_in_device_wipe_two_tries"
msgstr ""
" Incorrect code. All data will be removed from device after two more "
"incorrect entries."

what should i do now ?
deleted the zip file and downloaded again , replaced the original file again and tried again but it is still the same .

nicholes 2011-05-13 06:29

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
Quote:

Originally Posted by eefo (Post 1005013)
as i read the posts in this thread , that there are different files for different regions .
like US has different and Uk's different .
i am from Asia , Pakistan .
which one should i choose ?
i chose US one and forgot to give space in between " " and now it's giving error .


msgid "secu_in_device_wipe_two_tries"
msgstr ""
" Incorrect code. All data will be removed from device after two more "
"incorrect entries."

what should i do now ?
deleted the zip file and downloaded again , replaced the original file again and tried again but it is still the same .

why dont you try to modify ur own ????/ instead of trying and replacing the zip files

as far as files is concern it depads on what lenguague are you using doe not matter what country in u r.

soon i would make a video tutorial for this in my own thread

http://talk.maemo.org/showthread.php?t=69461

nicholes 2011-05-13 06:30

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
Quote:

Originally Posted by eefo (Post 1005013)
as i read the posts in this thread , that there are different files for different regions .
like US has different and Uk's different .
i am from Asia , Pakistan .
which one should i choose ?
i chose US one and forgot to give space in between " " and now it's giving error .


msgid "secu_in_device_wipe_two_tries"
msgstr ""
" Incorrect code. All data will be removed from device after two more "
"incorrect entries."

what should i do now ?
deleted the zip file and downloaded again , replaced the original file again and tried again but it is still the same .

why dont you try to modify ur own ????/ instead of trying and replacing the zip files

as far as files is concern it depends on what language are you using doe not matter what country in u r.

soon i would make a video tutorial for this in my own thread

http://talk.maemo.org/showthread.php?t=69461


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

vBulletin® Version 3.8.8