Thursday, March 19, 2009

How to optimize your Nokia N810 System

N810 系统优化攻略(欢迎添加)

N810 系统优化攻略

本帖综合网上大部分前辈高人的心血,在此再次感谢各位大大,特别是MYHTPC上各位老大.

提示:系统修改有风险,自行斟酌,风险自负!

准备工具:现在N810上安装好OPENSSH,PC上安装WINSCP。以下大部分步骤都是用WINSCP登录到N810上的.
N810终端是操作的都需要ROOT权限,请安装相关软件.
命令行输入简易方法:把命令在PC复制到文本放到N810里面,在终端贴上,省去敲打时间.

0— 让N810全速运行
终端下输入
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

说明:N810有几种运行状态conservative ondemand null powersave performance ,这里是以效能为优先

echo 400000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

说明:这个是设定最低运行速度,默认是165000,可修改为165000 266000 330000 400000

注意:每次重新开机后都会变回默认状态,重新在终端粘贴输入吧.

########################或者安装Liqbase这个软件###############################

1---关掉Nokia N810显示欢迎画面(Nokia Hands)

将 /etc/osso-af-init/startup-greeting.sh 重命名,或者删除就行了

2---修改Nokia N810 上关机键菜单

只要修改 /etc/systemui/systemui.xml 即可,把 去掉,重启 N810 ,就会发现关机菜单里多了一些东西,包括 reboot :)

3---关掉Nokia N810中的服务

到 /etc/rc2.d/ 下,把下来原本 S 开头的文件 mv 成 D 开头的如下文件,重启即可。

这是我关掉的,欢迎各位补充

D54gpsdriver –gps服务,现在没可用的导航,关吧
D54osso-ipv6 --ipv6,关吧
D56bluez-utils
D57btcond -------蓝牙,我不用
D58wide-dhcpv6-client ---ipv6,关吧
D99mediaplayer-daemon –自带播放器,关闭也是可以打开的
D99metalayer-crawler0 ---自带媒体资料库扫描,强烈建议关闭


MicroB浏览器优化

4---安装ad blocker或者flash block这两款软件,屏蔽大部分广告和flash,加快浏览器。

5—重开机后,不要打开浏览器。请先备份/home/user/.mozilla/microb/prefs.js

修改下列配置,没有的请添加
user_pref("browser.cache.memory.capacity", 8192);
user_pref("nglayout.initialpaint.delay",2000);
user_pref("content.notify.interval", 1250000);
user_pref("content.notify.ontimer", true);
user_pref("network.http.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 1000);
user_pref("network.http.max-connections", 2);
user_pref("network.http.max-connections-per-server", 1);
user_pref("network.http.max-persistent-connections-per-server", 1);

打开虚拟内存支持,就是控制面板那个,不会的也请不要玩了。

然后打开/etc/init.d/ sysctl

修改如下
 sysctl -w net.ipv4.tcp_window_scaling=0
sysctl -w net.ipv4.tcp_sack=0
 sysctl -w net.ipv4.tcp_keepalive_time=1800
 sysctl -w net.ipv4.tcp_fin_timeout=10
 sysctl -w net.ipv4.tcp_timestamps=0
 sysctl -w vm.swappiness=25
 sysctl -w vm.vfs_cache_pressure=150
 sysctl -w net.ipv4.tcp_dsack=0
 sysctl -w vm.min_free_kbytes=768

最后步骤:打开n810终端,
输入
ln -s /etc/init.d/sysctl /etc/rc2.d/S99sysctl
重启完成!

----附件提供了我的prefs.js和sysctl ,部分设置和教程有小许不一样,喜欢的可以研究,懒惰的可以直接复制进机器.
;

6—用Configuration Editor软件修改Rss feed reader缓存设置

RSS阅读器自带的实在不错,起码我在IPHONE里面就没有可以离线图片的(目前)。可是自带的只允许8MB图片CACHE,实在不够。用CE修改到80MB,存放位置改到卡上吧^^
http://www.myhtpc.com.cn/viewthr ... &extra=page%3D2


7-Mplayer设置范例http://www.myhtpc.com.cn/viewthr ... &extra=page%3D3

打开etc/mplayer/mplayer.conf
ao=gst,sdl,
vo=omapfb,xv,sdl,x11, 后面加逗号代表如果列出的视频解码器不可用,自动改用系统其他解码器
framedrop=yes 自动丢帧,最好设置yes
afm=liba52,pcm,dvdpcm,ffmpeg,libmad,faad, 音频解码列表
noslices=true
monitorpixelaspect=1
fs=yes
zoom=yes 自动缩放到全屏
cache=8192 加大缓存
font=/usr/share/fonts/SwaRR4nh.ttf
subfont-text-scale=3 字幕字体大小,设置为3最佳
overlapsub=1 对所有字幕格式启用重叠字幕支持
sub-fuzziness=1 加载字幕的方式,设置为1代表加载当前目录下所有包含视频名称的字幕文件
subpos=100 字幕高度,100最低,0最高
osdlevel=2 设置为2代表播放视频默认左上角显示已经播放的时间(根据个人喜好设置)
menu=yes 显示菜单
sws=0
vf=rotate=6 如果遇到90度视频,自动旋转成横向的视频
af=volnorm 增大默认音量
monitoraspect=5:3 显示默认比例

8-个人觉得最好用的主题

这个是在myhtpc论坛上下的,诚恳感谢作者.适合手指操作,因为滚动条等作了加大。实在找不到出处了所以没放链接,附件提供。

9-关于把系统安装复制到外置卡的感想:
个人觉得完全没必要,多此一举。说说你们的动机吧…

10- N800/N810的交流論壇
http://www.hi-pda.com/forum/forumdisplay.php?fid=7
  
 http://forum.51nb.com/
  
  http://www.myhtpc.com.cn/forumdisplay.php?fid=29&page=1
  
  http://risumfiriri.blogspot.com/search/label/N810
  
  http://www.internettablettalk.com/
  
  http://maemo.org/
  
  Internet Tablet Chinese
  http://cnnit.blogspot.com
  
  http://hi.baidu.com/nokia_n810

Install Mplayer to Nokia N810

http://maemo.org/downloads/product/OS2008/mplayer/
安装之后可以播放多种视频,常见的除了rmvb外都能播放。

增大Mplayer的默认音量(附Mplayer设置范例)

播放某些avi时,默认的音量太小,在etc/mplayer/mplayer.conf文件中加入一行af=volnorm即可增大默认音量,
如果禁用该功能,只需在该行前面加上#,即#af=volnorm
(网上也提到修改为af=volnorm,volume=v (v 取值 -200 到 +60 dB, ps: 不要取太大的值,会有很大的噪音的),这种方法我没有试验,一般设置为volnorm就已经效果不错了)

下面是我修改的完整mplayer.conf的文件,(不包括红色部分)供大家设置参考!


ao=gst,sdl,
vo=omapfb,xv,sdl,x11, 后面加逗号代表如果列出的视频解码器不可用,自动改用系统其他解码器
framedrop=yes 自动丢帧,最好设置yes
afm=liba52,pcm,dvdpcm,ffmpeg,libmad,faad, 音频解码列表
noslices=true
monitorpixelaspect=1
fs=yes
zoom=yes 自动缩放到全屏
cache=8192 加大缓存
font=/usr/share/fonts/SwaRR4nh.ttf
subfont-text-scale=3 字幕字体大小,设置为3最佳
overlapsub=1 对所有字幕格式启用重叠字幕支持
sub-fuzziness=1 加载字幕的方式,设置为1代表加载当前目录下所有包含视频名称的字幕文件
subpos=100 字幕高度,100最低,0最高
osdlevel=2 设置为2代表播放视频默认左上角显示已经播放的时间(根据个人喜好设置)
menu=yes 显示菜单
sws=0
vf=rotate=6 如果遇到90度视频,自动旋转成横向的视频
af=volnorm 增大默认音量
monitoraspect=5:3 显示默认比例

Repositories for Nokia Internet Tablets

Tried to find Repositories for Nokia Internet Tablets, then I found this website which is useful and I will test update my N810 later:

http://www.gronmayer.com/it/

"Here you will find a collection of repositories for the Nokia N810, N800 and 770 Internet Tablets running maemo IT OS 2008 / 2007 / 2006. Browse this site with your Internet Tablet and click on the repository icon for a simple install into Application Manager.

With OS 2008 it is now possible to add multiple repositories with a single install file. Click on the checkbox of each repository you need and then click "Install Selected".
Avoid duplicate entries! If a repository is already installed on your system, avoid installing it again. There appears to be a problem with how this is handled. It only works correctly if you first delete ALL repositories from your system and refresh the application list. After that your system should be able to correctly handle duplicate entries."

How to update Nokia N810 firmware(OS) using the Update Wizard for Windows PCs

1. The firmware on Nokia's internet tablets can be updated on Windows PCs using the Nokia Internet Tablet Software Update Wizard, which you can download for free at the following link:

http://europe.nokia.com/A4305010 (Scroll to the bottom of the page)

After you've downloaded the Update Wizard file (it ends with .exe), double click on it to install it, and follow all the instructions.

2. At this point, make sure your N800 or N810 is fully charged. Even if the battery logo looks full on the desktop, it may not actually be full. Plug the charger into tablet, and it should tell you when it really is full.

3. Try and find the USB cable that came with your tablet (specifically, a miniUSB cable with the N800, a microUSB cable with the N810). Make sure your tablet is switched off, and connect it to your PC using the USB cable.

4. Start the Update Wizard on your PC, but don't do anything with it.

5. Press and hold the bottom button on the front of the N800, or the top button on the front of the N810. (See the appropriate video above if you're unsure which button to press.) While holding the correct button down, turn on the tablet with the power switch on the top. This will put the tablet into update mode, and if you do it correctly it will stop on the Nokia logo with a black USB logo in the top right hand corner of the screen. You can let go of both buttons now.

6. On the Update Wizard on your PC, you should see the Wizard's welcome message. Press the Next button to go to the warning page. Then press the Next button to go to an instruction page, and it should show that it's found your device at the bottom of the screen. Press Next.

7. The Update Wizard should now tell you two pieces of information: what firmware version you have on your tablet, and what the latest official version is. If the versions are the same, you probably don't need to update at all and can press Cancel. If the versions are different, click on Next to continue with the update. (If you get error messages instead of firmware versions, try pressing Back and then Next again, and if it still doesn't work try doing it again a few hours later.)

8. Click on I Accept The Agreement and Next.

9. The update will now start, and should be completely automatic from now on. You probably won't need to do anything more. The Wizard will first of all download the firmware (which can take a long time depending on the speed of your home internet connection), then it install it on your tablet (which happens very quickly). If you see an error message during the download process such as "File Corrupted", press Back and then Next. If you see "File Corrupted" several times in a row, this may indicate that Nokia's servers which provide the firmware aren't working at the moment, and you should try again in a few hours time.

10. After the tablet's firmware has been updated, it will automatically start up with the new firmware version, and you can unplug it when this happens.

11. When the tablet starts up for the first time with the new firmware, if you have made a backup of your settings and data it will ask you if you want to restore this backup. This should work fine, unless you're upgrading from OS 2007 to OS 2008 in which case say no. For some reason many people upgrading from OS 2007 to OS 2008 have experienced problems using restored settings.

12. When the tablet starts with new firmware, it may also ask you if you want to automatically reinstall the extra applications you had installed before the update. As noted above, this may or may not work, and if it doesn't you can reinstall the apps yourself one by one.

AUTHENTICATION/CLOCK ERROR NOTE: If you get a mysterious error message while using the wizard which talks about authentication and adjusting a clock, don't worry, you don't have to adjust any clocks. Try pressing the "back" button on the Update Wizard and then the "next" button.

N800刷机方法/中文显示, 专给新手看

N800刷机方法/中文显示, 专给新手看

N800快两周了,遇到的问题太多太多了,每解决一个问题都要特别费劲儿,因为能搜索到的资料不是很多,而论坛里的资料又比较零散,很多老玩家随意说出的一个操作,由于对一些细节没怎么解释,对于新手来说都会是非常难以理解的事。

因此,把我用机器的这段时间遇到的问题,以新手的目光记录下来,希望对其它新手有所帮助。
都是些基础的东西,只是描述的稍为细一些,比较让新手容易理解,老鸟勿笑~~

特别感谢所有帮忙解惑的人们~
完整版请查看我的blog
http://nwgale.com/blog/?p=78

1、怎么让机器支持中文显示?我拿到N800之后第一件事是WIFI上网,发现中文网站一律用“==”代替,立马想到的是安装中文字体。

实际上要支持中文有两个方法

一是安装CJK Support:(这个方法不太好,建议直接看方法二)
N800上网,点击这个网址http://maemocjk.garage.maemo.org/install.html,会看到大名鼎鼎的maemo的CJK安装界面,然后点那上“汉”的图标,系统会提示你"open"还是"save",选Open就是了,系统会下载,安装... 和PC差不多。

如果安装失败了,检查你的系统版本。点四个块的图标,setting-->control panel-->about product, 看一下Internet Table OS和版本号,一般应该是 2007。再切换到CJK support的网页,看左上角,有不同的版本支持,选择你自己的版本,再安装。(我第一次安装时就以为版本越高越好,狂装OS2008的汉化就是装不 上,汗~)

还有,你应该知道怎么切换任务吧?屏幕左下角有一个图标,是两个重叠的方块,点击它。(考虑到有很多新手)

二是刷机,升级到OS2008。(强烈推荐)
我们知道N800不 是个电话,基本上算是手持电脑。(开始不知道还打算狂装我那一堆的S60软件的,汗~)它的系统是以Linux为核心的。默认情况下,应该是 OS2007,这个版本是不支持中文显示的。08年初的时候NOKIA发布了OS2008,代号Diablo,所以有人老说刷成Diablo,是一码事。 (之所以要说明一下是因为我当时被别人策晕了)OS2008经过半年的修正,我昨天升级的,现在已经是VERSION 4.2008.23-14版了,升级了你就知道,比原来的版本漂亮太多了。

其实在网上能搜到刷机的贴,但我发现都说的不太详细或者不太清楚,(就是那一点点不清楚害死人了~) 所以根据我刷机的过程整理了这个贴,希望对新手们有帮助。嗯,说正事,开始刷机!

保证你的N800是充满电的,刷机断电我没试过,不过听说很恐怖 另外,把你应该备份的资料备一下。


● 首先在你的电脑上(WINDOWS系统)安装刷新软件Nokia N800 Internet Tablet support。
去官网下载吧。http://europe.nokia.com/A4305010(在页面的最下面,有一个download)
或者点这里直接下载,我链接
了那个软件。



● 安装好软件之后,打开它。点两次NEXT,按照提示你应该能看到,这段英语我这么烂的水平都能看懂你一定也能

它要求你“首先关掉你的N800,然后用USB连线边接电脑,然后再摁住swap键,不要松手,再开机,直到N800右上角出现USB连接的图标时才松开swap键

如果你知道swap键是哪个就跳过这句:可怜我当时愣是不知道swap键是哪个,发现开关旁边那个+和-之间有一个键,上面有两个方框做切换状很符合 swap的意思,就按住它狂开机~~我汗啊~~ 后来发现连不上,就去网上查swap键倒底是哪个~ 可是,百度和google竟然都没查到~ 忘说了,我没说明书,而且我一向觉得电子产品不需要说明书,摸一摸就能上手的~~ 说到底,哪个是swap键呢? 就是前面板最下面的那个,小房子图标的键。


● 好,你的机器应该连上USB了,因为N800的右上角有了那个USB图标,软件界面上也会提示出你的设备型号是N800,当然你如果是N810应该显示N810这是废话。点下一步,系统提示你将从原来的旧版(from)更新到最新版(lastet),当然你可以点change来选择不是最新版 (比如从最新版变成06版~有点怪啊),点NEXT开始刷机,如下图。


● 这时候界面会提示你正在下载相关的升级包,下载完后会执行升级,大约100多M,升级时间取决于你的网速。通常二十多分钟差不多可以搞定了,升级之后系统 会提示你was successfully updated,然后断开USB连线,点finish,系统重启。刷机成功,是不是发现界面漂亮了很多?上网,中文也可以显示了,卡里的中文文件名也能看 到了~~搞定。


● 特殊情况:中途不要断网(没事别去乱按modal电源或者拨网线什么的),如果不慎断网,(我就在99%地断了网,我的无线网线太烂了)系统会提示你 Retry,当我去Retry的时候,惊恐的发现,不支持断点继续~~ 于是又从1%开始了饿地神哪~ 到99%的时候我的无线网又失去连接了崩溃~

如果你有类似的状况,请直接下载升级的ROM包存到本地磁盘,Retry的时候换一下方式--从本地ROM文件升级。
下载方式如下:
用你的电脑访问这个地址http://tablets-dev.nokia.com/nokia_N800.php
它会要求你输入你的wlan码来验证,然后就可以下载了。135M啊,好像不支持迅雷下载。
wlan码在哪里?打N800后盖就能看到了。

至此,N800应该可以正常显示中文了。