Monday, November 8, 2010

Disable WIFI on startup

vi /etc/event.d/wlancond
remove "start on started hildon-desktop"

vi /etc/event.replace.d/wlancond
remove "start on started hildon-desktop"

vi /etc/modprobe.d/blacklist
blacklist wl12xx

Friday, May 28, 2010

Google latitude on N900

Open http://www.google.com/maps/m?view=data&mode=latitude&source=mog on N900

http://talk.maemo.org/showthread.php?p=417739#post417739

Wednesday, May 26, 2010

Remove N900 unused application

1. Amazon Installer
apt-get --purge --auto-remove remove amazon-installer

2. AP News Installer
apt-get --purge --auto-remove remove ap-installer

3. Document To Go Installer
apt-get --purge --auto-remove remove dtg-installer

4. Foreca Installer
apt-get --purge --auto-remove remove foreca-installer

5. tutorial-home-applet
apt-get --purge --auto-remove remove tutorial-home-applet osso-tutorial*
rm -rf /usr/share/tutorial-applet

6. PDF reader
apt-get --purge --auto-remove remove osso-pdf-viewer*

7. RSS
apt-get --purge --auto-remove remove osso-rss-feed-reader*

8. Blocks
apt-get --purge --auto-remove remove maemoblocks

9. Chess
apt-get --purge --auto-remove remove gnuchess osso-graphics-game-chess osso-sounds-game-chess

10. Mahjong
apt-get --purge --auto-remove remove osso-mahjong osso-graphics-game-mahjong osso-sounds-game-mahjong

11. Marbles
apt-get --purge --auto-remove remove osso-lmarbles osso-graphics-game-lmarbles

12. games
apt-get --purge --auto-remove remove osso-games* hildon-games-wrapper0

13. Backup
apt-get --purge --auto-remove remove osso-backup*

14. User Guide
rm /usr/share/applications/hildon/user-guide.desktop

15. OVI Promotion Widget
apt-get --purge --auto-remove remove ovi-promotion-widget

**mp-fremantle-generic-pr**

N900 Modification

Add "~", "|", ">" to X Terminal
1. root
2. gconftool-2 -s /apps/osso/xterm/key_labels -t list --list-type=string "[Tab,Esc,Up,Dn,~,|,>]"
3. gconftool-2 -s /apps/osso/xterm/keys -t list --list-type=string "[Tab,Escape,Page_Up,Page_Down,asciitilde,bar,greater]"


Power Button - Single click to lock
1. root
2. vi /etc/mce/mce.ini
3. PowerKeyShortAction=menu to PowerKeyShortAction=tklock
4. PowerKeyLongAction=poweroff to PowerKeyLongAction=menu


Power Button - Add menu item
1. root
2. vi /etc/systemui/systemui.xml
3. remove <!--
4. remove -->


Enable SmartReflex of OMAP 3
1. vi /etc/pmconfig
2. sr_vdd1_autocomp 0 to sr_vdd1_autocomp 1
3. sr_vdd2_autocomp 0 to sr_vdd2_autocomp 1


Enable SS Code dialing
1. vi /home/user/.osso/call-ui.ini
[supplementary]
ssc=1
2. chown user /home/user/.osso/call-ui.ini
3. chgrp users /home/user/.osso/call-ui.ini


Disabling Auto Updates Check
1. gconftool -s -t int /apps/hildon/update-notifier/check_interval 44640
(<=2147483647)
( vi /var/lib/gconf/apps/hildon/update-notifier/%gconf.xml )


Menu Transitions
1. vi /usr/share/hildon-desktop/transitions ini

[launcher_in]
duration=700
sequenced=1
depth=-300

[launcher_launch]
duration=300
delay=400
duration_out=300
depth=-2





Tuesday, May 25, 2010

wifi-switcher

wifi.sh

#!/bin/sh
#
# Wifi switcher for N900 Copyright (C) 2010 by Tito Ragusa
#
# Wifi switicher is a tool to tenable/disable wifi on the Nokia N900
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Please read the COPYING and README file!!!
#
# Report bugs to
#

print_msg()
{
run-standalone.sh dbus-send --print-reply \
--type=method_call --dest=org.freedesktop.Notifications \
/org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog \
string:"$1" uint32:0 string:'$2'
}

if_failed_print_and_die()
{
if [ $? -ne "0" ] ; then
print_msg "CANNOT $action WLAN: $step FAILED" "KO"
exit 1
fi
}

out=`ifconfig wlan0`
if [ $? -eq "0" ] ; then
# wlan is up, if running disconnect, then remove module
action="DISABLE"
if [ `echo "$out" | grep -c RUNNING` -gt "0" ] ; then
run-standalone.sh dbus-send --system \
--dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true
fi
# needed to reset ip-monitoring widgets
ifconfig wlan0 0.0.0.0
# down the interface to run hooks in /etc/network/if-*down.d, ignore error
# downing wmaster0 seems to better reset the hardware when it is stuck
# in some undefined state
#ifconfig wmaster0 down
# down the interface to run hooks in /etc/network/if-*down.d, ignore error
ifconfig wlan0 down
# remove the module
step="RMMOD"
rmmod wl12xx
if_failed_print_and_die
# no need to stop wlancond here as it would be respawned by upstart
print_msg "WLAN DISABLED" "OK"
exit 2
else
# wlan is not configured, reload modules
action="ENABLE"
step="MODPROBE"
modprobe wl12xx
if_failed_print_and_die
# Calibrate: do not remove this is needed even if 'start wlancond'
# triggers one more calibration later
step="CALIBRATION"
wl1251-cal
if_failed_print_and_die
# Restart wlancond properly
stop wlancond
start wlancond
# Up the interface, to run hooks in /etc/network/if*/
step="'IFCONFIG WLAN0 UP'"
ifconfig wlan0 up
if_failed_print_and_die
run-standalone.sh dbus-send --print-reply --system \
--dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_ui.show_conn_dlg boolean:false
exit 0
fi

Maemo Application

#Extras

rootsh - Enable root access, via the "sudo gainroot" command

openssh - Secure shell client and server

wifi-switcher - Wifi on/off switcher statusbar plugin.

connectnow-home-widget - A desktop widget to switch internet connections.

personal-gprs-mon - Display your dataplan usage on your desktop

bluezwitch - A widget to switch Bluetooth on/off.

fmms - Send and receive MMS, hopefully.

headphoned - Pauses the media player when headphones are unplugged

storageusage - Shows the disk usage of files as a treemap.

conky - highly configurable system monitor for X based on torsmo

penpen - Handwriting memo/sketch book for quick note taking / drawing with unlimited size of paper

classicprint - Give photos a classic print look

black-plastic-theme - Dark theme PACKAGE for N900.

ttf-droid - Font, used by Google's Android, with extensive style and language support

cal-home-widget - Calendar Home Widget

mstardict - International dictionary for Maemo

fapman - An alternative application/package management UI

fcamera - A camera for the N900 with manual controls



#Extras Testing

hideuseragent - Allows to hide Maemo Web browser User Agent
- iPhone 3GS User Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16
- iPhone 4 User Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8A293 Safari/6531.22.7
- Nokia N8: Mozilla/5.0 (Symbian/3; Series60/5.2 NokiaN8-00/011.012; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/525 (KHTML, like Gecko) Version/3.0 BrowserNG/7.2.7.2 3gpp-gbahttp://erp.go4fiber.com/activateuserkey.aspx?C9CE0DAC-D80C-4AF9-BCE9-29926FE6CACF


#Extras Devel

mscim-n900-ppinputmethod - Penpower Input Method for N900
http://www.penpower.net/nokia/n900/Install.htm

mscim-tables-zh-scj - Smart CangJie Chinese input method data table for SCIM platform

mscim-tables-symbol - Symbol table for SCIM platform

profilesx - Extended Ringtone Profiles

rdesktop - RDP client for Windows NT/2000 Terminal Server
rdesktop-cli - RDP client for Windows NT/2000 Terminal Server

n9profil - N9Profil can create mobile profiles for N900.

hdrcapture - Application for capturing and merging high dynamic range images

lowlight - Application for capturing blur and noise free photographs in low light

Maemo Repositories

1. Fremantle Extras
deb http://repository.maemo.org/extras/ fremantle free non-free

2. Fremantle Extras-testing
deb http://repository.maemo.org/extras-testing/ fremantle free non-free

3. Fremantle Extras-devel
deb http://repository.maemo.org/extras-devel/ fremantle free non-free

4. Opera Catalog
http://deb.opera.com/maemo/ non-free

5. VLC
http://download.videolan.org/pub/videolan/maemo/ fremantle free

6. Mozilla
http://moff.mozilla.com/latest/maemo/multi/ fremantle release

Monday, February 8, 2010

Build Android Platform

1) Get JDK 5.0, update 12 or higher. Java 6 is not supported.
In Ubuntu 9.10, use the Ubuntu 9.04 repositories to get Java5
add the following repositories to /etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

2) Setup development environment
$ sudo apt-get update
$ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind

3) Installing Repo
Create ~/bin directory and add it to PATH
$ cd ~
$ mkdir bin
$ set PATH=~/bin:$PATH

Download the repo script and make sure it is executable:
$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod a+x ~/bin/repo

4) Initializing a Repo client
$ mkdir mydroid
$ cd mydroid
$ repo init -u git://android.git.kernel.org/platform/manifest.git

5) Getting the files
$ repo sync

6) Building the code
$ cd ~/mydroid
$ make

7) Testing
export ANDROID_PRODUCT_OUT=~/mydroid/out/target/product/generic
cd ~/mydroid/out/host/linux-x86/bin
./emulator

8) Building SDK
$ cd ~/mydroid
$ make sdk