Wednesday, May 28, 2008

Blog moved to jeffri.net

You are busted! LOL Now, the new blog is open at jeffri.net and in English!

If by somehow you still stopped here, feel free to visit this new blog. You are more than welcome there! Follow all news about my E2 programming and modding there. :)

Read more...

Tuesday, February 5, 2008

How the KG Toolbox looks

KG Toolbox
Probably this is how the final result of KG Toolbox looks. I have create something there, and will start with Wall Changer. As my plan before (read other post), I will add many new thing there.

First of all, the Wall Changer will be able to read list of wallpaper, then create a list file (can create more than one) and will change the wallpaper that listed in file. We can change the wallpaper by interval time, restart or both.

The Advanced Volume Editor won't change much, but will be improved. The Block The Thief will be better than before, I will try to improve and fix the bug. Also the same with Backup Tools, I will also try fix the bug.

E2 Trigger will get much update, also the Advanced Font Editor will be able to edit all *.ini files from the skin. The Device Manager and Autorun Manager will be same as the E2 Revival (soon) have. Another two is still in plan, so I hide them now... :)

Notes: The KG Toolbox screenshot now may be different than when its ready. :)

Read more...

Huh, 64 MB used...?

What?

See above shot, what the hell? Before the Kaleidoscope comes, we may need only 12 MB of swap, since we just have a limited multitasking. Thanks to Russian modder at http://forum.motofan.ru, they offer us a great Kaleidoscope. The most thing I loved is the task manager. We can have an unlimited multitask! Look, the 64 MB (and 4 MB) swap is used almost all! LOL Cool, huh? That improves how useful swap is. Oh, it happens few days ago before I changed my skins.

How I manage use that much memory? Well, it happens when I playing with sensor, so I runs the Moby Explorer and Terminal Emulator at the same time. After edit the source, I compile it with ZGCC using Terminal Emulator. Then after few break, it's going like that... :) I have tried open about 40 application and games together before, it eats about 45 MB of swap. That is a cool thing that E2 can do... :)

Read more...

My phone going crazy!!!

It was a story of two days ago but it still make me shock. What is that? My phone (ROKR E2) going crazy! What the hell is happened? The phone is running to left every times I touched the joystick! Over sensitive..! I think I will need to change joystick but then I know that I'm wrong. It just solved! How?

Well, before talking about how to solve it, let's talk about how it happen. Firstly, my phone is about 6 months old now, and you know, I use it too much. From browsing with Opera Mini, playing Java and SNES games, writing many shell scripts, oh, and mod it. Btw it had fallen once and got a great impact to ground, about 1.5 metres. That impact makes my phone hang at that moment, but wonderfully, there are not any scratch (only a single scratch about 1 mm in lock slide) and no effect in phone for sure. With all of those using and falling, I will not shock if something happens. But I'm shock.

Secondly, I always use joystick when navigate in menu, games, applications, writting (even now), playing, and more...more... With that usage (about 5-6 hours per day, even more), I will not shock if it broken after six months. But again...I'm shocked. LOL It was an over usage, huh?

Then let's get back to the story, the joystick is managed to be over sensitive last week, but it solved itself. Then few days later, the craziness come back again and solved again, by itself. Then two days ago it's going more crazy, touched and it runs to left. Also it runs many steps (like holding it), even in single touch. Oh no! What should I do? Flash to default firmware and claim to warranty? Or fix it with some money?

Then I tried to hold the joystick to left, right, up and down about 30 seconds each. It doesn't change anything. I just want to know maybe something going wrong in position. I read that it can be solved by cleaning the joystick but it's a nightmare for me since I don't know anything about opening phone and don't have any tools for it. Oh, bad...bad...

Solved
Fortunately, it solved now. Hey, know how? Read above paragraph, I said that I hold the joystick for 30 seconds in each position, hope it can be fixed but it doesn't. But there is one thing I haven't tried yet, hold the joystick to center. Then I hold the joystick (or ok) for 30 seconds and what? It solved! Haah... Heh, a while later it craziness back again...so I hold the joystick again to center for minutes and few times. Luckily, it solved! Now, it acts like nothing happen. LOL Imagine how easy I solve it? I think I'm just get a luck for this...but who know it works for you if the samething happen? :)

Read more...

Monday, February 4, 2008

The update of sensor

What is sensor? It was a program to change backlight brightness by reading the light sensor from E2. The light sensor was placed in (or near?) the camera anyway. I have made an update for this with more options to choose. Such as mode and speed. You can download it here.

How the sensor works? The sensor read the value from light_sensor then calculate it and change the backlight. In my update, it will read and calculate then compare the situation with the last. If the change of light condition not significant, it will avoid changing backlight and repeat read-calculate-compare again until five times (if the light stable) and reset the backlight. Btw it was the explanation of stable mode.

Another update is the ability to change speed or actually the delay between read-calculate phrase, to low, medium or fast. The low will have delay for 5 seconds, medium for 3 seconds or fast for a second. I'm not sure but I believe we can save more battery with lower speed.

So here is available flags for calling sensor:
-n >>> normal mode
-s >>> stable mode
-l >>> low speed
-m >>> medium speed
-f >>> fast speed
-h >>> show helps
For example:
sensor -f -n >>> run in fast and normal mode
sensor -sl >>> run in stable mode and low speed
The default is stable mode and medium speed (if no flags specified).

Btw normal mode will not do comparing. Enjoy!

Read more...

My another ROKR look

Today, I playing around my SD card, seeing each files inside, then I saw my old skins folder. Yes, it was old since it stored about one year ago from my first E2, the white one (now I own the mandarin color). I looked around and see many older skin like NFS, Heroes, Motohappy, even the Silvery White skins. But it just a start for this story.

After that I tried the skins one by one, just to remind me how those skins looks. While I tried it (one by one), I think that I got bored with my current skins -the QuickLook- and decide to change it. But every skins there was too out of date and many of them was incomplete, I mean they didn't replace all of the basic icons. Then after play with them, I'm going to search my newer skins that I have downloaded before.

Looking around my EXT3 storage (which I used to store my downloaded files) and found a few skins like Ubuntu, Leopard, Vista, Moto Hell, and more... But again, I have used them for a few while before. Then, I found a file that makes me interest, the name was guijq.rar. I can remember that was a skins that I never use. So I opened the package and copy the skin to one of my list. I saw the name was FREE, but I think it should be Freedom or something like that. Oh, the guijq is the authors of the skins.

First time I tried it, I feel this skins was ugly and like a kind of joke. Why? Because there wasn't a pointer or hightlight the selected menu. We won't know what menu we choose. What the hell...? Oh, one more, the transparency was 0..! So why I use this skin now? The reason is I like the softkey, options, header, and many more except the main menu! Since I'm not good in editing skins graphics and I'm far away from PC, I decide to have some edit in the *.ini files there and edit it every where.

So I open the common.ini, phone_p.ini and mainmenu_p.ini with Moby Explorer and start editing it. With a small knowledge (I'm noob), I change the transparency to 50, make a different size of font in highlighted menu (so it's okay now), decrease every font size, change border of header, softkey, multiline, also change the padding. Then I restart my phone.

After the phone boot, I browse around the menu and feel okay, just something to edit or fix and done. So now I open the ini files again and change something. Btw now I set the transparency to 100, change the icon size to 4x4 menu (use a bigger size), then again, restart my phone. Now I feel better with the skins. Here is some screenshot for my new look of my ROKR E2:
New look
and
New look again

I also changed the font now, from Sylfaen to Teen. :) I also found this font in my old files...lol

Read more...

Play with C

I have been a Bash shell scripter for a few months, now I can write a middle size scripts for my lovely ROKR E2. But then I realized that I need to learn more, especially to make a faster native program, then I will need C, C++ or Python. Python is a nice language, but I read that Python run slower than C. Then after read a thread in www.motorolafans.com about ZGCC (GCC for Zaurus) that works in EZX, I tried to run it and voila, it works! I need this because I don't have a Linux PC and far away from PC, so coding directly in my mobile is the best solution for me.

However, it can't work 100%, the "make" and the "moc" is some that can't work, exactly it doesn't compatible very well. It also not compatible with some headers, especially the C++ one. But I think it can compile C very well. That is the reason I take a serious learn for C. Another reason is that C sounds easier for me, since I'm Bash shell scripter before, I'm enjoying C better than C++. :)

After a few days deal with C (I started at 31 January 2008), I write the modified of sensor (see another post) by Rider_ALT. I interest with this because this is a wonderful program but very small program too. It helps me a lot for learn C better.

In the beginning, I always forget to include semi-colon (;) in the end of statement. :( It happens because my style of scripting that never include semi-colon (because it doesn't effect much in Bash), but it really needed in C. That makes me confuse every time the compiler tell me an error...lol

I also can't understand much about arrays and pointers, this both is a new thing for me and really confusing. Well...well... It just a few days of learn... I need a couple of months to understand Bash shell better. So it just beginning for a noob like me. :) However, my plan about KG Toolbox (read another post) will need this.

Read more...

Tuesday, January 29, 2008

The new idea!

I got a new idea this past few days. I have made many script until now, from Wall Changer, Advanced Volume Editor, Block The Thief, SD SMS, Backup Tools, E2 Triggers (not released in my website, but shared somewhere) until Advanced Font Editor. The total is seven, but if I include the unreleased script for E2 Revival, it will be nine (Autorun Manager and Device Manager). Somehow, I feel hard to update them all, even if I have more idea every day. So...I think for a solution, how if I combine all of this script into a single program?

The KG Toolbox

Yeah, this is the best solution. If I want to update some, I just need to update the program only, no need to make a separated mpkg for each script. Then in future, all of my script will be released in single program! Isn't it good? When I thinking for the name of this all in one program, I remembered to my last program that used KgApps as the storage folder. As you will be thought, the Kg is taken from my nick name, the "k"-ea-"g"-lez. :) So I named it as KG Toolbox, since all of the script is the "tools" I created. Hehe...

What will be included in KG Toolbox? Of course the list of all script I have made, except the SD SMS. Why? I should call this SD SMS was a failed project. Its work but not comfortable at all, the big bug is never able to fix (you should now the bug). I have think for a long times of how to fix the bug, but I never got it. Sad... Maybe I can use mount --bind instead of create soft links, but I never tried it since my main.db was broken when play with it, so I decide to stop the project. Another reason I don't use mount --bind is I don't want to play with the autorun. Okay, back to laptop, eh, I mean the KG Toolbox. :) (You know Tukul Arwana? He is the famous presenters and comedians in my country, one of his famous show is "Empat Mata" with his favourite words, "Kembali ke laptop!", which is means "back to laptop". He used this words when they going off topic in the shows, you can laugh a lot!)

Besides of the six scripts which will be included (except SD SMS), I will include Autorun Manager and Device Manager too. But of course, after E2 Revival firmware released. So eights, huh? Nope, I plan to add more. It will be ten! The both last script haven't created yet, all is still in plan. One of them will be based from rokr.lin by ilove3d, it will not native, still a script. It will use to extract, apply and load.

So how it updates? Instead of force users to install-uninstall program, I prefer to make the users install only once. Then when the update comes, I will provide a full program for new users and a patch for existing users. So if the users have installed any version of the program, they just need to apply the patch and vise versa.

50% native?

This is also my plan. Instead of make everything in Bash script, it will be better to make the main process in C++. Why? Because C++ is faster than Bash script while load a big task. Have used my Advanced Font Editor? It needs a few minutes to load and save, especially in common.ini. I believe it can go faster if I write it in C++.

So I will load the basic show* binary for GUI with Bash script, then do the main function with C++. This way, I called it 50% native. But why not 100%? Not now, it will, in the future version.

The new Wall Changer?

The Wall Changer is still the most famous script from me, but it also the simpliest script. I plan to make a new version for it, with much update, such as applying wallpaper automatically, no renaming needed, change by time and boot, change wallpaper and screensaver, and much more. Oh, I got an email this past days that suggest me to create a Wall Changer with time and screensaver, so I include it in plan since many people suggested the same thing too.

The future of Block The Thief?

Block The Thief was a low level anti theft tracker, its work but not success in some people. Our E2 haven't got a high level one, since not many developer are interested. So how is the future of Block The Thief? Not sure, it might become a high level anti theft tracker, but its hard! However, this is what I imagined for the future of Block The Thief. It will possible to control the phone with SMS by others phone, of course with a password. It will able to send a SMS that report of what the thief did with the phone. Hey, it just a dream! I'm not sure I can make one, but who knows the future? :)

It is a plan!

Finally, we are at the end of this post. Just to remind you if you got excited with everything above (except the Block The Thief), all is still in plan! It might not become like what I write just now. :)

Read more...

Friday, January 25, 2008

Device Manager for E2 Revival firmware

Device Manager
Finally I have finished the Device Manager script. I have some hard time to make it flexible. This script will be presented as a part of E2 Revival firmware. Device Manager is a script that let user to choose the device (or partition) then umount or mount it just with a few clicks. It also regconize the swap partition to turn it on or off.

I have delayed the script for a few days (or even week), because I have figured something fun...hehe. But today (and yesterday) I finally complete the script after some hard time. Then how this script work?

Actually, it was simple. Firstly it read the device available, then separate and assign the name, size and type in defined variable. Then it check the status of the device and show it with showMultiSelect dialog. After that it will regconize the users select/unselect, get the command of the each type and execute it. Finally it shows the result, fail or success.

However, it was a middle-long script too. I need a few hours each day (about 3 days of real work) to complete it. :) Now I will improve the Autorun Manager I create earlier. Ah, thanks to arctu for his idea and his help to figure out the way to get whitespace working in the list! No ugly underscore anymore! Hehe... The Autorun Manager and my other future script will not have underscore anymore in list.

BTW, after the E2 Revival project completed, I will make the new version of my first ever script, Wall Changer. When I first create it, my knowledge of shell script is so tiny, that makes the script look ugly when it needs to rename the wallpaper to number. In the next version, it will not need renaming anymore and no need to apply the 0.jpg as wallpaper. :) It just in plan now, but I believe I can do it...hehe. See ya!

Read more...

Monday, January 21, 2008

A1200/E6, E2 and E680i SDK by blackhawk

I just got a mail by blackhawk today. He asked me (or us) to share his update SDK around the world, as I did it now. :) The updated SDK was made for A1200/E6, E2 and E680i. I have uploaded the blackhawk's SDK here. You can download and try it.

The README.txt content:

Tested using arm-linux-gnu-* crosstool taken from http://www.mkezx.org/
installed in /opt/crosstol. Read setenv-[device].sh
included in pictureflow source for details. You might need to edit this
file in other ways depending on how your environment set.

This SDK contains:
- Modified samr7's qte-2.3.6 headers
- foxe6's qte-2.3.8 update: qfont.h, qpixmap.h, qptf.h, qtableview.h,
qt.h, and qwidget.h
- Unmodified flylasly's E2 EZX headers

Copy this SDK to /opt:
$ su // and then type your root password
# mkdir /opt/a1200
# chown blackhawk:blackhawk /opt/a1200 // change 'blackhawk' to your account
# exit
$ cp -a a1200/* /opt/a1200

Save EZX library to phone's MMC over telnet:
# cd /mmc/mmca1
# tar -C /usr -czvf a1200-lib.tar.gz lib

Copy the compressed library to your computer and then extract:
$ tar -C /opt/a1200 -xzvf a1200-lib.tar.gz

Compile example application using this SDK:
$ cd pictureflow
$ source setenv-a1200.sh
$ tmake pictureflow-a1200.pro -o Makefile
$ make
$ ./createpkg.sh

Repeat above step for E2 and E680i if you have a plan to support E2 and
E680i/A780 development.

Remember, this SDK using too much soft link, tested on Fedora 6 and have
no idea how to make this work on Windows. Both E680i and E2 SDK depend
on A1200 SDK because I am trying to share it as small as possible ;)

Good luck!

Thanks to:
- Sam Revitch
- Lasly
- foxe6

Ketut P. Kumajaya

Read more...