User:Mr pingu

(Setting up the device)
Line 52: Line 52:
swapon /dev/mmcblk1p2
swapon /dev/mmcblk1p2
swapoff /dev/mmcblk0p3
swapoff /dev/mmcblk0p3
-
echo 5 > /proc/sys/vm/page-cluster
+
echo 0 > /proc/sys/vm/page-cluster
echo 256 > /sys/block/mmcblk0/queue/nr_requests
echo 256 > /sys/block/mmcblk0/queue/nr_requests
echo 512 > /sys/block/mmcblk1/queue/nr_requests
echo 512 > /sys/block/mmcblk1/queue/nr_requests

Revision as of 10:28, 13 June 2012

In this page I post all my snippets of tweak and mods, I made this for the reference of all tweaks I did and might need after a reflash


Repositories

/etc/apt/sources.list.d/hildon-application-manager.list

deb https://downloads.maemo.nokia.com/fremantle/ssu/apps/ ./ 
deb https://downloads.maemo.nokia.com/fremantle/ssu/mr0 ./ 
deb https://downloads.maemo.nokia.com/fremantle1.2/ovi/ ./ 
deb http://repository.maemo.org/extras/ fremantle-1.3 free non-free
deb http://repository.maemo.org/community-testing/ fremantle free non-free
deb http://repository.maemo.org/extras-devel/ fremantle free non-free
deb http://my-maemo.com/repository/ fremantle user
deb http://repository.maemo.org/ fremantle/sdk free
deb http://repository.maemo.org/ fremantle/tools free
deb http://repository.maemo.org/extras-testing/ fremantle free non-free
deb http://qole.org/repository/ maemo fremantle


Setting up the device


Setting up the most important applications

apt-get update 
apt-get install  kernel-power-flasher linux-backports-modules-power recovery-boot busybox-power powertop shortcutd tracker-cfg wpakey-editor powertop sudser phone-control nano-opt gconf-editor procps bash3 swappolube


improve performance

  • Tracker-cfg tick lowmemorymode and set throttle to 10
  • Use proposed swappolube settings, except swappiness should be 50
  • Turn off swap on eMMC, enable on uSD

Boot script placed in /etc/event.d/swapusd

start on started hildon-desktop
stop on starting shutdown
console none
service

script

sleep 60
swapon /dev/mmcblk1p2
swapoff /dev/mmcblk0p3
echo 0 > /proc/sys/vm/page-cluster
echo 256 > /sys/block/mmcblk0/queue/nr_requests
echo 512 > /sys/block/mmcblk1/queue/nr_requests
echo 7 > /sys/block/mmcblk0/queue/iosched/slice_idle
echo 7 > /sys/block/mmcblk1/queue/iosched/slice_idle
echo 4 > /sys/block/mmcblk0/queue/iosched/quantum
echo 4 > /sys/block/mmcblk1/queue/iosched/quantum
echo 125 > /sys/block/mmcblk0/queue/iosched/fifo_expire_sync
echo 125 > /sys/block/mmcblk1/queue/iosched/fifo_expire_sync
echo 250 > /sys/block/mmcblk0/queue/iosched/fifo_expire_async
echo 250 > /sys/block/mmcblk1/queue/iosched/fifo_expire_async

end script



  • Installing handy tools
apt-get install conkylayoutswitcher flashlight-applet alarmed ssh-status clipman led-pattern-editor cl-launcher macchanger hostmode-gui extkbd extmou easy-deb-chroot extended-contacts-search gconf-editor less simple-brightness-applet
  • Installing some garbage I like to use
apt-get install aircrack-ng stkeys brainparty cutetube-qml dosbox supertux-stable frogatto colorflood pierogi telepathy-msn-pecan leafpad opera filebox irggu

Personalizing the device

  • Install widgets and themes
 apt-get install awoken-icon-theme black-plastic-theme plastic-addon-pack-1 cal-home-widget connectnow-home-widget queen-beecon quick-launch
  • Make the FMTX applet always visible
gconftool-2 -s /apps/osso/maemo-statusmenu-fmtx/always_visible -t bool true



Tweaks

  • Use sudo while already root. Sometimes when I am root I still type sudo in-front of a command and it spits out the help of sudo. This will add root to sudoers and solve that. Not very useful but it's a small and convenient tweak
sudo gainroot
echo "user ALL=(ALL) NOPASSWD: ALL" >> everybody.sudoers
echo "root ALL=(ALL) NOPASSWD: ALL" >> everybody.sudoers
mv everybody.sudoers /etc/sudoers.d
update-sudoers
  • My transitions.ini based on dragoss91 smoothest transitions.ini
# This file contains timings and values for transitions in hildon-desktop
# duration = time in milliseconds
# zoom = amount to zoom out the background. 1 = none, 0.5 = zoom to half size
# radius = radius of blur (this is actually the number of blur iterations,
# so the bigger the number the longer it takes)
# saturation = the amount of colour left in the background (0 = grey, 1 = normal)
# brightness = brightness of the background (0 = black, 1 = normal)

[blur]
turbo = 0
duration = 150

# Zoom out of the task navigator before it fades out
# -- zoom: how much to scale the switcher when going to launcher
# (the second layer of the launcher would scale it twice
# as much but the switcher is hidden by that time currently)
# -- zoom_for_home: how much to scale the switcher when leaving for home
# -- zoom_duration: the number of miliseconds to spend on zooming
# a thumbnail
# -- fly_duration: how long should it take for the thumbnails to rearrange
# -- notifade_in/out: time to fade the notifications
#
[task_nav]
zoom = 0.85
zoom_for_home = 0.9
zoom_duration = 250
fly_duration = 250
notifade_in = 150
notifade_out = 150
tile_font = SwissA 15

# Blurring of the home view
# -- radius: amount of iterations of blur filter to perform when not zoooming
# eg. for dialogs
# -- radius_more: amount of iterations of blur filter to perform when zooming
# eg. for launcher/task navigator
# -- saturation: saturation of the background when blurred
# -- brightness: brightness of the background when blurred
# -- zoom: Basic amount to scale the home view by (gets multiplied by how many
# 'levels' deep the UI is - eg. launcher is one level, launcher submenu
# is another)
# -- zoom_applets: Amount to scale applets by when zooming out
# -- zoom_on_press: set to 1 to include a zoom effect when the screen is pressed
# -- parallax: Amount of parallax between desktop and widget layers when panning

[home]
radius = 0
radius_more = 0
saturation = 1
brightness = 1
zoom = 1
zoom_applets = 1.0
zoom_on_press = 0
parallax = 1.0

# These control the deceleration of the launcher pages. When panning freely
# (decelerating) the velocity of the launcher page is adjusted by this much.
# strong_deceleration_rate is effective in the bouncing zones. Uncomment if
# you want faster panning.
[launcher]
#deceleration_rate = 0.98
#strong_deceleration_rate = 0.7

# The glow effect around launcher buttons[launcher_glow]
duration_in = 100
duration_out = 200
radius = 14
brightness = 0.95

# The items below are for the transitions that are applied
# to a 'page' of launcher icons
# -- duration: time in ms
# -- depth: amount to move icons backwards and forwards (with perspective)
#           this is pretty much how big or small the icons get     
# -- sequenced: for in and in_sub, whether icons swoop nicely in (1)
#               or whether they just all zoom in as one (0)
# -- keyframes: A list of values that are linearly interpolated between 
#               to produce the movement of the launcher tiles. There can 
#               be any number of values as long as there are 2 or more. 
#               <1 means nearer the viewer, >1 means further away
# -- keyframes_label: The values used for fading in the labels. 0=transparent
#                     1=opaque
# -- keyframes_icon: The values used for fading in the icons. 0=transparent
#                     1=opaque
# Launcher top layer first appearing
[launcher_in]
duration=600
sequenced=1
depth=300
keyframes=0,0.17,0.39,0.65,0.87,1.13,1.26,1.22,1.17,1.13,1.09,1.04,1,1,1,1,1,1,1,1,1
keyframes_icon=0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1,1,1,1,1,1,1,1,1,1,1
keyframes_label=0,0,0,0,0,0,0,0,0,0,0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1

# Launcher top layer disappearing
[launcher_out]
sequenced=1
keyframes=0,0.17,0.39,0.65,0.87,1.13,2,1.13,0.87,0.65,0.39,0.17,1,1,1,1,1,1,1,1,1
depth=-100
keyframes_label=0,0,0,0,0,0,0,0,0,0,0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1
keyframes_icon=0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1,1,1,1,1,1,1,1,1,1,1
duration=100

# launcher top layer disappearing when a layer in front
[launcher_out_back]
duration=200
depth=50

# launch animation
# duration_out - amount of time to take when fading the launcher out and application in
# delay - the amount of time to wait after the window has appeared before we fade out
# (this time is *included* in duration_out, so it must be <= duration_out)
[launcher_launch]
duration = 400
delay = 500
duration_out = 700
depth = 100

# sub-menu appearing
[launcher_in_sub]
duration=600
sequenced=1
depth=300
keyframes=0,0.17,0.39,0.65,0.87,1.13,1.26,1.22,1.17,1.13,1.09,1.04,1,1,1,1,1,1,1,1,1
keyframes_icon=0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1,1,1,1,1,1,1,1,1,1,1
keyframes_label=0,0,0,0,0,0,0,0,0,0,0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1

# sub-menu disappearing
[launcher_out_sub]
sequenced=0
keyframes=0,0.17,0.39,0.65,0.87,1.13,2,1.13,0.87,0.65,0.39,0.17,1,1,1,1,1,1,1,1,1
depth=-100
keyframes_label=0,0,0,0,0,0,0,0,0,0,0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1
keyframes_icon=0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1,1,1,1,1,1,1,1,1,1,1
duration=100

# main disappearing when sub-menu appears
[launcher_back]
duration=150
depth=-450

# main appearing when sub-menu disappears
[launcher_forward]
duration=150
depth=-450



# Screen rotation transition
# duration_in = time for rotation before blanking
# duration_out = time for rotation after blanking
# damage_timeout = in the rotation transition, the amount of milliseconds to
# leave after we get a damage event before we transition back
# from blanking.
# damage_timeout_max = maximum amount of time we may wait if we keep getting
# damage events.
# angle = rotation angle for each transition, in degrees. Ideally this is set
# so that the screen looks like it keeps turning at the same speed
# during blanking. 0 is none, 90 degrees is side-on
[rotate]
duration_in = 150
duration_out = 150
damage_timeout = 0
damage_timeout_plus = 0
damage_timeout_max = 0
angle = 0
# changed from 100 in order to reduce jerkiness of transition (also changed the
# fade-out so it doesn't fade to black completely)

# App close transition
[app_close]
duration = 380


# Popup for dialogs and status menu
[popup]
duration_in = 250
duration_out = 250

# Fade in for banners
# _alpha specifies the final transparency of various things
# currently only banner_note and info_note are supported
[fade]
duration_in = 200
duration_out = 500
banner_note_alpha = 0.85
info_note_alpha = 0.85

# Transition for notification previews
[notification]
is_cool = 0
duration_in = 400
duration_out = 450

# Sliding subview window transition
[subview]
duration_in = 250
duration_out = 250

[loading_timeout]
# This is multiplied by the load average to find the timeout
# in seconds. before "Unable to load" is displayed. There is
# a minimum of 10s.
load_average_factor = 4.5

# Edit mode configuration
[edit_mode]
snap_grid_size=8
# Set to 0 if snap to grid should be only happen when widget is released
snap_to_grid_while_move = 1

##
# Special tweaks (a restart might be required)
##
[thp_tweaks]
# Blurless desaturation (0 = default, 1 = MeeGo/Symbian-style)
blurless = 1
# saturation value for blurless (0 = no color, 1 = full color)
blurless_saturation = 0
# [home] brightness, is used for the brightness

# Bigger task switcher (0 = default, 1 = single column, 2 = two columns)
taskswitcher = 0

# Rotation around the Z axis (0 = rotate around X/Y, 1 = rotate around Z)
zaxisrotation = 0

# Forced app auto-rotation (0 = default, 1 = auto-rotate every app)
forcerotation = 0

# Popup feedback using the "tactile" utility (0 = disabled, 1 = enabled)
# You need to install "tactile" from the maemo.org repositories for this
tactilepopups = 0

# Lock application window in landscape mode. 
# Example: blacklist = mediaplayer osso-xterm worldclock image-viewer camera-ui
whitelist = osso-browser tablet-browser-ui rtcom-messaging-ui leafpad 

Chroot

  • When using a Maemo 5 PR1.3 qchroot /home/opt/ from the real maemo installation is mounted which results in a big mess. So we need to edit the qchroot to only mount MyDocs and not the whole /home/ folder
#/sbin/qchroot/
Comment out line 82

81 # Do it the Fremantle way.
82 # mount /dev/mmcblk0p2 "$CHROOT/home"


  • pymaemo-optify works not as expected while it's one file system instead of 3 partitions.
To fix this install pymaemo-optify first
Then 

mv /etc/event.d/pymaemo-optify /etc/eventd.d/pymaemo-optify.bak
mv /etc/init.d/pymaemo-optify /etc/init.d/pymaemo-optify.bak

Fix Wifite.py

 sudo sed -i "s/(prefix='wifite')/(prefix='wifite',dir='\/opt\/tmp')/g" /home/user/MyDocs/MyScripts/wifite.py; sudo if [ ! -d "/opt/tmp" ]; then mkdir /opt/tmp; fi 

Record video with Gstreamers

 Enable SDK and tools repo
apt-get install gst-tools gstreamer0.10-plugins-good-extra

http://forum.meego.com/showthread.php?t=4833