View previous topic :: View next topic |
Author |
Message |
ccpaging
Joined: 07 Dec 2006 Posts: 757
小企鹅: 16604
|
Posted: 2006-Apr-28 Fri, pm9:01 |
|
Post subject: C1000,屏贴的使用经验 |
|
买USB充电器和充电线的时候最好别去PSP配件柜台。
上海玩PSP的大部分是学生,对价格没概念,反正用的是BBMM的钱,JS一听是PSP配件,狂开价。
JS开价,深圳产的充电器120元,充电线45元,屏贴号称日本货100元。最后经过反复砍价,充电线+屏贴=100元,充电器死活不让步了。
因为工作的关系,经常需要买直流电源,电源还是看重量,那充电器在赛格电子市场最多能卖20元左右,就因为是给PSP配,身价涨了几多倍。
一气之下,多赚了一圈,买了个柯达相机的电源,2A的,65元。屏贴国产的,50元。
回去太着急装屏贴,贴的时候粘上灰尘了,留下几个气泡。我的经验是:
1、先准备好的眼镜布,最好是麂皮;钢尺;单面剔须刀或者新的美工刀;信用卡类的硬卡片。
2、贴屏前先在纸上画框,跟实际屏幕一样大小,最好小0.5毫米。反复对照尺寸,要比实际屏幕略小。
3、用剃须刀+钢尺,按纸上的框下,切割屏贴,注意安全,俺们没打算炒肉片。反复对照尺寸,要比实际屏幕略小。一旦你揭
开保护膜,就无法修整了,尤其不能太大。
4、用眼镜布仔细擦屏幕,不要大力。没有贴屏前,检查、测试时注意不要用手接触屏幕。由于触摸屏上有特殊的涂层,不能用洗洁剂、酒精。
5、揭开保护膜,借助硬卡片,小心的把屏贴粘到屏幕上。有气泡的时候,揭起来一点,用卡片压一下。环境要保持清洁,不要选灰尘大的地方,屏贴揭开后,有很大的静电,容易吸附空中的灰尘。我的失误就是尺寸没切割好,拿着揭开的保护膜走到另一个房间找剪刀修整,这个过程中粘上了灰。 |
|
Back to top |
|
badog 论坛管理员
Joined: 01 Nov 2006 Posts: 1021
小企鹅: 6575
|
Posted: 2006-Apr-28 Fri, pm9:32 |
|
Post subject: |
|
可以水洗一下,不过有水迹,很难办;
一边毛了,还可以用另一边应用。
我都请卖的人贴好。 |
|
Back to top |
|
ccpaging
Joined: 07 Dec 2006 Posts: 757
小企鹅: 16604
|
Posted: 2006-Apr-28 Fri, pm11:17 |
|
Post subject: 谢谢老大关心 |
|
已使用CF极速卡
正在设置swap
老大有没说明,爬文好累。 |
|
Back to top |
|
badog 论坛管理员
Joined: 01 Nov 2006 Posts: 1021
小企鹅: 6575
|
Posted: 2006-Apr-28 Fri, pm11:22 |
|
Post subject: |
|
dd if=/dev/zero of=/mnt/cf/swap bs=4M cont=32
mkswap /mnt/cf/swap
swapon /mnt/cf/swap |
|
Back to top |
|
ccpaging
Joined: 07 Dec 2006 Posts: 757
小企鹅: 16604
|
Posted: 2006-Apr-29 Sat, am12:02 |
|
Post subject: 关于swap文件的不同意见 |
|
About swap files
I heard that it’s a good idea to add swap space. What’s the common opinion about it and how do I get one?
我听别人说加swap空间是个不错的主意。关于这点是否有什么意见,我怎么能得到swap空间?
What is "swap"?
什么是swap
From Jargon File (4.3.1, 29 Jun 2001):
swap vt. 1. [techspeak] To move information from a fast-access memory to a slow-access memory ("swap out"), or vice versa ("swap in"). Often refers specifically to the use of disks as "virtual memory". As pieces of data or program are needed, they are swapped into core for processing; when they are no longer needed they may be swapped out again.
swap可以把信息从快速空间移到慢速的内存(swap out),或者相反(swap in)。这常常是指把硬盘作为虚拟内存。当需要数据块或程序时,他们被交换进核心处理器;当不再需要它们时,可能被再次交换出去。
Why do I need a swap file?
为什么我们需要swap文件?
You don’t want to use a swap file under normal usage of the ROM. If you want to compile programs on your Zaurus, using the native development enviroment or if you want to use more memory eater applications simultaneously (for example Firefox, Gimp and Abiword) then maybe you need it.
在常规的ROM使用情况下,你不需要使用swap文件。如果你要在Z机上编译程序,使用其自带的开发环境,或者你想用同时使用那些消耗更多内存的应用程序(例如 FireFox,Gimp,Abword),那么你可能需要swap。
In these cases a swap file can help you not to run out of the memory. If no memory left, then the Out Of Memory Killer starts working and will kill the most memory consuming application, usually your running compilation, your window manager or the browser/word processor/image manipulator, so usually what you were working on at the moment.
在这些情况下,swap文件可能帮助你避免出现内存不足。如果没有剩余内存时,Out Of Memory Killer(内存杀手)开始工作,强制关闭使用内存最多的应用程序,通常是正在进行的编译过程,窗口管理器,或者浏览器、文字编辑、图片浏览器,通常是恢复到你原来正常工作的状态。
Will my Zaurus work faster if I add one?
如果我增加swap,Z机会工作的更快吗?
No. It can slow your Zaurus down. But in some cases it will help to solve situations like those I mentioned above. Memory read/write is much faster than writing swap on a flash card, so if the system swap out some program in the virtual memory, it takes time to swap it back in.
不会,它可能减慢你Z机的运行。但是在某些情况下,例如上面提到的,它将有所帮助。内存读写通常比写闪存卡快,这样如果系统把一些程序交换到虚拟内存,系统还要花时间换回来。
Okay, I dediced that I need this, I will make it on my internal flash, right?
好吧,我已经决定安装swap,而且把它安装到内部闪存上,这样行吗?
No! The internal NAND flash drive is too precious to use for swap. About the flash cards lifespan (quoted from here):
"Individual flash memory cells have a limited lifespan. That’s the bad news. The good news is that their lifespan is measured in the hundreds of thousands or even millions of erase/write cycles. CompactFlash cards are designed to automatically and transparently map out memory cells that go bad, or in some cases when they reach a predefined limit, i.e. 300,000 erase/write cycles (note that this figure is just an example; manufacturers may use a different figure). Cards should continue to function long after a few cells have expired, since even the busiest flash memory card won’t start turning off a significant number of memory cells until after many years of service."
不!NAND闪存驱动太宝贵了,下面是关系闪存卡的寿命的说明:
“个别的内存单元有寿命限制。这是个坏消息。好消息是它们的寿命在十万次甚至百万次擦除/写周期。CF卡可以自动透明地标出已损坏的单元,或者在一些情况下,当它们达到一个预定的限制,例如30万次擦除写周期(注:这个数字仅仅是一个例子;生产厂商可能使用不同的数字)。CF将继续长期发挥作用,即使一些单元已经终结,因此,甚至使用最频繁的闪存卡也不会关闭大量的单元,直到服务很多年以后。”
Swaping is quite an intense reading/writing process, that’s why nobody recommends using a NAND/CF/SD memory card as swap place. Moreover, you cannot change your internal flash if it dies. Read scary stories about bricked Zaurus PDAs in this thread. They are not in connection with swap usage, nor with a specified ROM, they are just about without-a-reason died internal NANDs. I just wanted to emphasise that it can really happen that a flash dies, as it happened with the writer of this article.
swap是十分剧烈的读写过程,这就是为什么没人推荐使用NAND/CF/SD内存卡作为swap空间。此外,你不能更换你的内部flash,当它不能工作时。读读那些可怕的故事,他们没有使用swap,也没有指定rom,就是无理由的死在内部NANDS。我只是要强调,FLash的死亡是会发生的,而且对于这篇文章的作者来说确实发生过。
The best solution is to store the swap on a CF microdrive or use it over the network (this can be really slow!).
最好的解决方案是把swap安装到CF MD上,或者是网络上(虽然这确实很慢)。
How to make it then?
如何设置swap?
First you have to use a filesystem like ext2 or ext3 on your memory card, swap files on FAT partitions will not work.
首先要把你闪存卡的文件系统格式化成ext2或者ext2,在FAT分区上建立swap文件没有用。
The following command makes a 16 MB file named swapfile,
filled with 0 characters, in the current directory
下面的命令在当前目录下建立一个16MB的swap文件,内容初始化为0。
$ dd if=/dev/zero of=swapfile bs=16M count=1
Format the file in swapfile format:
把文件格式化成swap文件格式
$ mkswap swapfile
Tell the system to use it:
告诉系统启用它
$ swapon swapfile
(If you don’t delete the swapfile after you used it, then next time you only have to issue the last command.)
如果你不删除swap文件,下一次只需要最后一条命令
How can I check how much memory/swap space is being used?
See the output of this command:
检查内存/swaps的使用情况:
$ free |
|
Back to top |
|
badog 论坛管理员
Joined: 01 Nov 2006 Posts: 1021
小企鹅: 6575
|
Posted: 2006-Apr-29 Sat, am1:27 |
|
Post subject: |
|
补充1:建立在极速CF卡上,SWAP能大幅提高大程式的运行和启动速度.因为极速CF卡达到了20M/S的吞吐量,比RAM慢不了多少,相当于扩大了内存.
补充2:SWAP大小建议设定为RAM的2倍.如果你的RAM是64M,建立设立为128M.
补充3:对原系统或卡卡类的OS,没有必要设SAWP,因为程式多是小小的. |
|
Back to top |
|
ccpaging
Joined: 07 Dec 2006 Posts: 757
小企鹅: 16604
|
Posted: 2006-Apr-29 Sat, am9:36 |
|
Post subject: |
|
后2篇文章加精吧 |
|
Back to top |
|
goodstyle
Joined: 27 Oct 2005 Posts: 393
小企鹅: 238
|
Posted: 2006-Apr-29 Sat, am9:38 |
|
Post subject: |
|
這麽傷卡,我趕緊把SD上的swap銷掉。
不過cacko的swap設置很簡單啊!如果Cacko+X/QT可能還是要用到swap的  |
|
Back to top |
|
goodstyle
Joined: 27 Oct 2005 Posts: 393
小企鹅: 238
|
|
Back to top |
|
hades
Joined: 04 Nov 2006 Posts: 73
小企鹅: 474
|
Posted: 2006-Apr-29 Sat, am10:14 |
|
Post subject: |
|
你们说的急速cf卡,是什么牌的什么规格啊?? |
|
Back to top |
|
goodstyle
Joined: 27 Oct 2005 Posts: 393
小企鹅: 238
|
|
Back to top |
|
ccpaging
Joined: 07 Dec 2006 Posts: 757
小企鹅: 16604
|
Posted: 2006-Apr-29 Sat, am10:33 |
|
Post subject: |
|
老兄真能、真敢败啊,去北京东路科技新城得赛格电子广场看看,或者去虬江路淘电子垃圾。 |
|
Back to top |
|
goodstyle
Joined: 27 Oct 2005 Posts: 393
小企鹅: 238
|
Posted: 2006-Apr-29 Sat, am10:36 |
|
Post subject: |
|
ccpaging wrote: |
老兄真能、真敢败啊,去北京东路科技新城得赛格电子广场看看,或者去虬江路淘电子垃圾。 |
主要是身边有工具,有些环境!况且software自己不强,反而论坛里硬件DIY的文不多。故...  |
|
Back to top |
|
ccpaging
Joined: 07 Dec 2006 Posts: 757
小企鹅: 16604
|
Posted: 2006-Apr-29 Sat, pm12:14 |
|
Post subject: 您先练 |
|
搞我都有点心动了,有成果通报下,软件俺能做。 |
|
Back to top |
|
ruf
Joined: 30 Mar 2006 Posts: 71
小企鹅: 1378
|
Posted: 2006-Apr-30 Sun, pm2:55 |
|
Post subject: |
|
屏保贴花了我15元,包贴好,柜台伙计技术熟练,贴上后一点痕迹都看不出来。
如果用X,还是需要swap的,我用XQT+FIREFOX的时候swap用到30MB。 |
|
Back to top |
|
|