The Following 2 Users Say Thank You to peterleinchen For This Useful Post: | ||
|
2012-10-29
, 07:05
|
Posts: 12 |
Thanked: 12 times |
Joined on Sep 2012
@ Moscow
|
#3292
|
start on started hildon-desktop stop on stopping hildon-desktop console none script run-standalone.sh /usr/sbin/dbus-scripts --session end script respawn
start on started hildon-desktop stop on stopping hildon-desktop console none exec run-standalone.sh /usr/sbin/dbus-scripts --session respawn
Just stumbled again in here, as I do not ust bp or sp.
The Following 2 Users Say Thank You to sta_rik For This Useful Post: | ||
|
2012-10-30
, 13:52
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#3293
|
I think "dbus-scripts-session" service is very useful application out of bp or sp context. I use it for "out call vibro" script in my phone, for example.
|
2012-10-31
, 08:17
|
Posts: 12 |
Thanked: 12 times |
Joined on Sep 2012
@ Moscow
|
#3294
|
The Following User Says Thank You to sta_rik For This Useful Post: | ||
|
2012-11-01
, 03:09
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#3295
|
The Following User Says Thank You to karam For This Useful Post: | ||
|
2012-11-01
, 08:15
|
Posts: 238 |
Thanked: 131 times |
Joined on May 2011
@ Bulgaria
|
#3296
|
|
2012-11-03
, 18:00
|
|
Posts: 20 |
Thanked: 5 times |
Joined on Oct 2012
|
#3297
|
/home/user # apt-get install batterypatch
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
batterypatch
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
Need to get 0B/8248B of archives.
After this operation, 115kB of additional disk space will be used.
(Reading database ... 43320 files and directories currently installed.)
Unpacking batterypatch (from .../batterypatch_8.2_armel.deb) ...
dpkg: error processing /var/cache/apt/archives/batterypatch_8.2_armel.deb (--unpack):
trying to overwrite `/etc/event.d/dbus-scripts-session', which is also in package cputweak
rm: can't remove '/usr/share/kernel-power-settings/overclock': No such file or directory
rm: can't remove '/usr/share/kernel-power-settings/overclock-call': No such file or directory
rm: can't remove '/usr/share/kernel-power-settings/overclock-while-in-call': No such file or directory
rm: can't remove '/usr/share/kernel-power-settings/underclock': No such file or directory
rm: can't remove '/opt/batterypatch/dbus-scripts/cpu_normal': No such file or directory
rm: can't remove '/opt/batterypatch/dbus-scripts/cpu_sleep': No such file or directory
loading /usr/share/kernel-power-settings/default
successfully loaded.
Errors were encountered while processing:
/var/cache/apt/archives/batterypatch_8.2_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
/home/user #
HELLO Everybody
This Guide Has 5 Parts :
1: Speed Patch : To speed up N900
2: Battery Patch : To Have A long battery life
3: Battery Patch Non KP : For non kernel-power users
4: FAQS : Frequently asked questions about batterypatch
5: Tweaks : To make you enjoy N900
Part 1: Speed Patch
INFO
A lot of you must have heard about the 200 lines to speed up linux while blackhat announced 4 lines to do that and it is called miracle patch
anyway neither of the available tutorials on internel are working on N900
BUT For Fortunately i was able to apply it to Maemo 5 on N900!!!!!
You will notice a lot of improvements in hildon-desktop
and basically every thing will be improved
CURRENT VERSION : 4.0
What Does It Do
The CFS (completely fair scheduler) in our phone's kernel manages the allocation of resources (cpu/mem) between tasks.
It was designed to cope with server-class machines such as web servers and databases, giving all tasks equal access to resources.
This means if a server is really busy, then all tasks on the machine slow down equally.
Desktop/mobile class machines shouldn't work the same way as servers though.
They have a human user who expects the machine to respond and give feedback within a certain time.
If a machine is slow to respond, the user loses some sense of control over the machine.
This patch addresses the problem by taking note of what the user is doing right now, and using that information to accelerate the current task, and decelerate other tasks on the system.
The user won't notice the background stuff going slower, they will just see their app working fast. The patch does this by creating multiple classes of task
-------------------------------------------
/dev/cgroup/cpu/tasks
/dev/cgroup/cpu/desktop/tasks
/dev/cgroup/cpu/applications/tasks
/dev/cgroup/cpu/applications/standby/tasks
/dev/cgroup/cpu/applications/launcher/tasks
-------------------------------------------
If you look at the contents of these files, you'll see the process IDs of all the tasks in each class. CPU and memory are shared out to these classes using the files "cpu.shares", and "memory_limit_in_bytes".
When lots of tasks are demanding CPU/memory at once, the resources are handed out to tasks depending on their share.
This is why your phone feels nicer when you have this patch - the kernel automatically classifies tasks and devotes more of cpu/mem to the "application" and "desktop" class tasks, and much less to other classes like "standby".
Installing Speed Patch
Then Reboot twiceCode:sudo gainroot apt-get install speedpatch
Uninstalling Speed Patch
To remove the patch:
Then RebootCode:sudo gainroot apt-get purge speedpatch
------------------------------------------------------
Part2 : BATTERY PATCH
INFO
This Tweak Improves The Battery Life of Our N900
For Standby And Continues Time Of Usage
CURRENT VERSION IS: 8.2
Compatible with all KP versions
When device is locked : or system is inactive or the brightness is off (except when having a call)
1-) vfs_cache_pressure goes to 10 : it's proven that doing this saves a lot of battery on standby
2-) change to underclock profile : vdd1 vdd2 enabled, (but with KPv48=> only vdd1 enabled) powersave_bias=20
3-) renice 1 some processes
4-) improve the response when receiving a call by changing MINFREQ to 600 but it returns to 250 after answering the call .. so no OC while talking with N900
5-) pausing some processes that sucks battery in idle mode (TESTING)
When the device is unlocked or the brightness is on
1-) vfs_cache_pressure goes back to 100
2-) overclock profile is loaded : vdd1 vdd2 enabled, conservative mode and powersave_bias=20
3-) renice 0 the previous processes
4-) Continue of the paused processes (TESTING)
Extra Feature
Someone may say "i don't want my N900 to use underclock profile and pause some processes when i lock the screen because i'm downloading a large application to install it"
Solution is :
Open the keyboard, lock the screen and leave the keyboard opened
in that case batterypatch is temporary disabled
so locking the screen will activate it's features
Dependencies
dbus-scripts, kernel-power-flasher | kernel-power-bootimg, kernelpower-settings
Installing Battery Patch
Code:sudo gainroot apt-get install batterypatch
Uninstalling Battery Patch
------------------------------------Code:sudo gainroot apt-get purge batterypatch
Part3 : BATTERY PATCH Non kernel-power users
INFO
This version is for people who doesn't use kernel-power
This Tweak Improves The Battery Life of Our N900
ONLY ON STANDBY
UNLIKE THE Battery Patch Full version
CURRENT VERSION IS: 6.0
When device is locked : or system is inactive
1-) vfs_cache_pressure goes to 10 : it's proven that doing this saves a lot of battery on standby
2-) renice 1 some processes
When the device is unlocked or the brightness is on
1-) vfs_cache_pressure goes back to 100
2-) renice 0 to the previous processes
Dependencies
dbus-scripts
Installing Battery Patch Non kernel-power users
Code:sudo gainroot apt-get install batterypatch-non-kp
Uninstalling Battery Patch Non kernel-power users
----------------------------------------------------------------------Code:sudo gainroot apt-get purge batterypatch-non-kp
There are also 2 extra packages in devel:
1-batterypatch for unstable devices : for those who have really unstable N900s (current version is : 3.0)
2-batterypatch testing : just like the normal batterypatch but includes new unstable tweaks (current version is : 7.1)
----------------------------------------------------------------------
CHECKING
1. To check if Speedpatch was installed Correctly:
Open an xterm window
if no errors appeared that means speedpatch is applied
or
You Should see some filesCode:cd /dev/cgroup/cpu/user/ ls
-------------------
2.To check if Battery Patch was applied :
Then lock the phone and unlock itCode:sudo gainroot echo 1000 >> /proc/sys/vm/vfs_cache_pressure
Then
you should see 100Code:cat /proc/sys/vm/vfs_cache_pressure
If so then the patch is applied
PART4 : FAQS
1-)
Q-) I cannot change max frequency with qcpu or any other gui cpu freq changer!!!!
A-) To change the max cpu frequency you need to edit the max freq at :
/opt/batterypatch/profiles/overclock-new #(if using kernel-power 49 or newer) with any text editor
or
/opt/batterypatch/profiles/overclock-old #(if using kernel-power 48 or older) with any text editor
ex : Leaf Pad
and then change the maxfreq to anything you want down than save and quitCode:sudo gainroot apt-get install leafpad leafpad /opt/batterypatch/profiles/overclock-new
IMPORTANT !!! IF YOU HAVE AN UNSTABLE N900
IT'S RECOMMENDED TO DISABLE VDD1 ... CHANGE IT TO 0
IF YOU WANT TO OVERCLOCK MORE THAN 805
AS BATTERYPATCH MAXFREQ IS 805
Then reboot to take effect
(YOU CAN TEMPORARLY CHANGE THE SPEED BY EDITING THE OVERCLOCK FILE IN /usr/share/kernel-power-settings
BUT IT WON'T BE SAVED UNTILL YOU EDIT THE ONE IN /opt/batterypatch/profiles
2-)
Q-) My N900 shows low battery and when i lock the phone and leave it idle ..the battery bar will rise up again
A-)N900 will recalculate the remaining battery charge according to the way using it
.. if you are using N900 in a heavy way then battery bar will show less than leaving N900 on idle mode
3-)
Q-) My N900 shows temperature UNKNOWN in qcpu !!
A-) This is a kernel problem .... rebooting will solve it
----------------------------------------------------------------------
PART5 : TWEAKS
1-) You may try hardware accelerator wich will make hildon-desktop smoother
BUT it is known to be unstable so if it caused any hildon-dekstop crashs or reboots simply disable it
To enable it :
use any text editor to edit /etc/powervr.d/hildon-desktop.ini and change WSEGL_UseHWSync=0 to WSEGL_UseHWSync=1
so :
and changeCode:sudo gainroot leafpad /etc/powervr.d/hildon-desktop.ini
ToCode:WSEGL_UseHWSync=0
Believe me hildon will be much smoother but as i said before if any reboots occurred then disable it by changingCode:WSEGL_UseHWSync=1
ToCode:WSEGL_UseHWSync=1
Code:WSEGL_UseHWSync=0
IMPORTANT: if you was very unlucky with HWsync you may have to reflash Your N900
because it may cause a reboot loop
otherwise it is stable to use on 80% of N900s
------------------------------------------------------
2-) And you may also want swappolube and it's proposed values
to install it
once installed launch it then press on PROPOSED button then APPLY then STORECode:sudo gainroot apt-get install swappolube
------------------------------------------------------
3-) And you may also want tracker-cfg and lowmemory mode (will make tracker use less CPU and Memory wich will improve the speed a bit)
install it :
once installed launch it and choose lowmemorymodeCode:sudo gainroot apt-get install tracker-cfg
Then save and exit
------------------------------------------------------
4-) And ApMeFo app wich organizes folders your menu(try to reduce the shortcuts by putting them in folders) this will improve transitions
to install:
------------------------------------------------------Code:sudo gainroot apt-get install apmefo
5-) And installing CSSU with it's nice modified hildon-*
for installing it
http://wiki.maemo.org/Community_SSU
------------------------------------------------------
6-)Also kernel-power is recommended
to install it :
----------------------------------------------------------------------Code:sudo gainroot apt-get install kernel-power-flasher
7-)A great app called "Task-Swapper"
which allows To Easily Switch Between Opened Windows Without Passing Through Dashboard (Ctrl+Right or Ctrl+Left)
to install it:
------------------------------------------------------Code:sudo gainroot apt-get install task-swapper
IF YOU DID ALL THE INSTRUCTIONS CORRECTLY
You should have a really fast and smooth N900
BTW The Tweaks Are All optional But For the best result Apply Them All
Enjoy
------------------------------------------
|
2012-11-03
, 18:11
|
|
Posts: 20 |
Thanked: 5 times |
Joined on Oct 2012
|
#3298
|
libhildon-time-zone-chooser0-0 libhildon1
libhildondesktop1 libhildonfm2 libhildonmime0
libhildonnotify0 libicd-network-eap libicd-network-gprs
libicd-network-ipv4 libicd-network-wlan
libicd-network-wps libillumination1 libimagecache
liblocation0 liblomesa0 liblongcat1 libloudmouth1-0
libmaemosec-certman-applet0 libmaemosec-certman0
libmaemosec0 libmaesync libmafw-shared0 libmafw0
libmappero0 libmatchbox1 libnavigation0
libnice-gstreamer0.10 libnice0 libnotify1 libnspr4
libnss3 libnss3-certs libomap3cam libosso-abook
libosso-gnomevfs2-0 libosso-gnomevfs2-common
libpango1.0-0 libpango1.0-common libpoppler-glib4
libpoppler0c2-glib libpoppler5 libpulse-mainloop-glib0
libpulse0 libpurple0 libpyside1.0
libqt4-appdownloader-comm libqt4-bearer-hotfix
libqt4-core libqt4-dbus libqt4-declarative libqt4-gui
libqt4-maemo5 libqt4-multimedia libqt4-network
libqt4-opengl libqt4-phonon libqt4-script libqt4-sql
libqt4-sql-sqlite libqt4-svg libqt4-test
libqt4-translations libqt4-webkit libqt4-xml
libqt4-xmlpatterns libqtm-12 libqtm-12-connectivity
libqtm-12-contacts libqtm-12-feedback libqtm-12-gallery
libqtm-12-location libqtm-12-messaging
libqtm-12-multimedia libqtm-12-organizer
libqtm-12-publishsubscribe libqtm-12-sensors
libqtm-12-serviceframework libqtm-12-systeminfo
libqtm-12-versit libqtm-bearer libqtm-contacts
libqtm-location libqtm-messaging libqtm-multimedia
libqtm-publishsubscribe libqtm-sensors
libqtm-serviceframework libqtm-systeminfo libqtm-versit
librsvg2-2 librtcom-accounts-ui-client0
librtcom-accounts-widgets0 librtcom-call-ui0
librtcom-eventlogger-plugins1 librtcom-eventlogger-ui1
librtcom-eventlogger1 librtcom-eventlogger1-async
libsdl-gles1.2-1 libsdl-haa1.2-1 libsdl-image1.2
libsdl-mixer1.2 libsdl-net1.2 libsdl-ttf2.0 libsdl1.2
libsharing0 libshiboken1.0 libsignon-glib0 libsmpeg0
libsofia-sip-ua-glib3 libsofia-sip-ua0 libsoup2.4-1
libsqlite3-0 libssl0.9.8 libssoautologin
libtelepathy-farsight0 libtelepathy-qt4-0
libtelepathy-qt4-1 libtinymail-1.0-0
libtinymail-camel-1.0-0 libtinymail-gnomevfs-1.0-0
libtinymail-maemo-1.0-0 libtinymailui-1.0-0
libtinymailui-gtk-1.0-0 libtopos0 libtotem-plparser12
libtpsession libunique-1.0-0 libvte4 libwidgetutils
libxml2 libxslt1.1 location-control location-home-applet
location-proxy location-settings-default location-status
location-ui maemo-applet-fmtx maemo-applet-profiles
maemo-applet-tvout maemo-bluez-compat maemo-input-sounds
maemo-installer-utils maemo-launcher maemo-mapper
maemo-statusmenu-fmtx maemo-statusmenu-headset
maemo-statusmenu-volume maemo-tvout-control maemoblocks
maemosec-certman-applet maemosec-certman-common-ca
maemosec-certman-tools maesync-backend mafw-dbus-daemon
mafw-gst-renderer mafw-gst-subtitles-applet
mafw-gst-subtitles-renderer mafw-iradio-source
mafw-playlist-daemon mafw-tracker-source
mafw-upnp-source mapper matchbox-window-manager mce mcsp
mediaplayer mediaplayer-restore mediaplayerhomeapplet mg
microb-eal microb-engine microb-engine-common
microb-geolocation modest modest-as-plugin-0
modest-home-applet modest-nokiamessaging-plugin monorail
mp-fremantle-community-pr mplayer mypaint
nokia-maps-core nokia-maps-maplets nokia-maps-ui
nokiamaps-navigation-provider nokiamessaging nolo obexd
ogg-support ohm-plugins-misc openssl opera-mobile
osso-abook-home-applet osso-abook-plugin-merge-contacts
osso-accounts-plugin-skype osso-addressbook
osso-af-startup osso-af-utils osso-app-killer
osso-applet-device osso-applet-devicelock
osso-applet-display osso-applet-languageregional
osso-applet-memory osso-applet-notificationlight
osso-applet-screencalibration osso-applet-textinput
osso-backup osso-bookmark-engine osso-browser
osso-calculator osso-calculator-ui osso-chess-ui
osso-filemanager osso-filemanager-ui osso-games-startup
osso-icons-default osso-lmarbles osso-maesync-plugin
osso-maesync-ui osso-mahjong osso-memory-backend
osso-mission-control osso-notes osso-pdf-viewer
osso-rss-feed-reader osso-rss-feed-reader-applet
osso-rss-feed-reader-lib osso-sketch osso-startup-wizard
osso-systemui osso-systemui-actingdead
osso-systemui-alarm osso-systemui-devlock
osso-systemui-emergency osso-systemui-modechange
osso-systemui-powerkeymenu osso-systemui-splashscreen
osso-systemui-tklock osso-wlan osso-wlan-security
osso-xterm ota-settings ovi-promotion-widget panorama
pasr pidgin pidgin-l10n pidgin-maemo-docklet pierogi
policy-settings-rx51 preenv presencevnc profilesx
pulseaudio pulseaudio-esound-compat
pulseaudio-module-bluetooth pulseaudio-module-gconf
pulseaudio-module-hal pulseaudio-module-nokia-music
pulseaudio-module-nokia-record
pulseaudio-module-nokia-voice
pulseaudio-policy-enforcement purple-extra-protocols
python python-Imaging python-all python-cairo
python-central python-conic python-crypto python-dbus
python-evolution python-gconf python-gdata
python-gobject python-gst0.10 python-gtk2
python-gtkhtml2 python-hildon python-hildondesktop
python-httplib2 python-location python-lxml
python-notify python-numeric python-numpy python-oauth2
python-openssl python-osso python-papyon python-protobuf
python-pycurl python-pygame python-pyside.qtcore
python-pyside.qtgui python-pyside.qtmaemo5
python-simplejson python-support python-telepathy
python-twitter python-xml python2.5 python2.5-qt4-common
python2.5-qt4-core python2.5-qt4-dbus python2.5-qt4-gui
python2.5-qt4-maemo5 python2.5-qt4-network
python2.5-qt4-phonon python2.5-qt4-webkit python2.5-sip4
qcpufreq qgvdial qmltube qradio qt4-homescreen-loader
qtm-maemo-metapackage qtm-modest-plugin
quickpanorama-pro reaver roadrunner
rtcom-abook-skype-plugin rtcom-accounts-plugin-facebook
rtcom-accounts-plugin-gtalk rtcom-accounts-plugin-jabber
rtcom-accounts-plugin-nokiachat
rtcom-accounts-plugin-sip rtcom-accounts-ui
rtcom-accounts-voip-support rtcom-call-ui
rtcom-messaging-ui rtcom-notification-ui
rtcom-presence-ui rtcom-skype-emoticons-theme
shared-mime-info sharing-account-manager sharing-dialog
sharing-fmms sharing-manager sharing-rtcom
sharing-service-facebook sharing-service-flickr
sharing-service-ovi sharing-twitter-multi signond0
smplayer smsbomb smssend smw snake softupd sqlite3
status-area-applet-activesync-0
status-area-applet-battery
status-area-orientationlock-applet
status-menu-applet-profiles status-menu-applet-tvout
statusbar-alarm statusmenu-fmms tablet-bookmark-manager
tablet-browser-bookmarks-mr0 tablet-browser-controls
tablet-browser-daemon tablet-browser-default-plugin
tablet-browser-dialogs tablet-browser-mediaplayer-plugin
tablet-browser-ui tablet-browser-view
tablet-browser-widgets telepathy-butterfly
telepathy-extras telepathy-gabble telepathy-haze
telepathy-ring telepathy-salut telepathy-sofiasip
telepathy-stream-engine telepathy-theonering testserver
theme-customizer threetictac tone-generator tracker
tracker-distutils tracker-utils transmission ttf-dejavu
tuxrace tweakr ui-fonts unrar-fm vlc vlc-nox vlc-player
vlc-player-nox vncviewer volumecontroldaemon wappushd
wget witter wolan worldtv99 wpeditor0 xchat
xserver-xomap xserver-xorg-core xsltproc yappari ytube
zenity
The following NEW packages will be installed:
batterypatch-non-kp
The following packages will be upgraded:
libqtm-12-declarative
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt
1 upgraded, 1 newly installed, 659 to remove and 1 not upgraded.
Need to get 9252B of archives.
After this operation, 913MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
|
2012-11-03
, 18:18
|
Posts: 1,326 |
Thanked: 1,524 times |
Joined on Mar 2010
|
#3299
|
When I tried installing Battery patch for non kernel power user I got this error.
<snip>
The Following User Says Thank You to MINKIN2 For This Useful Post: | ||
|
2012-11-03
, 23:06
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#3300
|
The Following 4 Users Say Thank You to karam For This Useful Post: | ||
Tags |
autobrick, awesome-script, do no install, f***epitaph, install it now, perfect_ n900, script-a-brick, very safe |
|
But took some ideas from qole/karam and can tell you.
You do not need to do like above (which most probably will only cure for startup, but not during runtime),
Just modify:
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!
Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257
editsignature, http://talk.maemo.org/profile.php?do=editsignature
Last edited by peterleinchen; 2012-10-30 at 20:45. Reason: corrected dbus-scripts-session upstart control file...