[問題]有朋友用beaver當文字編輯器嗎?

歡迎提問 debian desktop 相關問題,何謂 desktop ? 舉凡您日常生活會用到的部份,如上網 ( www 、 bbs ..) 、程式設計、繪圖...等等。 通常以 X Window 環境底下問題為主。

文章Edward G.J. Lee » 週一 3月 13, 2006 8:40 pm

Anonymous 寫:感謝moto上各位朋友的回應,小弟在心理上有感覺被大家安慰到~
這裡的朋友一向都讓我覺得很親切

在下的舊機器真的很慢
CPU-533Mhz(我真想說是533orz,而不是Mhz...),SDRAM-256MB,硬碟5400轉
所以大多程式的啟動都很慢
firefox和OOo-1.1.5初次都要40秒左右,而且firefox操作過程連按選單都還會延遲個1-2秒
小弟已經開了硬碟dma、也用了prelink
不知道大家是否還有什麼軟體調校上的建議~有的話真的是感激不盡...

我覺得你要檢查一下硬體。由於是舊機器,可能要找一下二手的 cpu/ram,換一下試看看。因為這種速度很可能不是軟體這邊的問題了。

我剛剛再試了一下,celeron800+512M RAM。OO writer,第一次啟動花了 18 秒,第二次啟動 10 秒。完全沒有什麼 prelink。

個人的經驗,1g 以下的機器,要使用 X 的話,最好有 512M RAM 會比較順。
LGJ
道隱於小成,言隱於榮華。(莊子.齊物論)
頭像
Edward G.J. Lee
榮譽學長
榮譽學長
 
文章: 211
註冊時間: 週一 11月 10, 2003 9:24 pm
來自: 鄉下

文章訪客 » 週六 3月 18, 2006 6:19 pm

我的主機:celeron 1.3 + 384 ram
我用FC4,OOo.2.0中文加強版 第一次18秒,第二次10秒
訪客
 

文章訪客 » 週六 3月 18, 2006 7:38 pm

1. wm 可以換成 fluxbox ,不難看、好用、應該比 icewm 省
2. 用 free 看一下是不是 mem 被吃光了 (swap 夠大嗎?)
3. 要不要換個 i586 或 i686 based 的 distro (既然要榨效能的話)

總覺得應該是軟體的問題,可是訪客兄又說 dma, prelink 都開了,真是 @@

4. 突然異想天開,有沒有可能是 acpi 的問題, active mode 不是 C0 ?還是 apm ?
(因為最近看到鳥哥的日誌而突發其想)
訪客
 

文章訪客 » 週六 3月 18, 2006 11:30 pm

因為最近比較忙,所以沒空上來回應大家
我真的謝謝大家的幫忙、真的感謝大家的熱心回應 :crying:

我想主要應該是硬碟的問題,因為那是5400轉的硬碟
不暪各位說,那是一台舊筆電啦~(所以CPU是用不著換了...,也換不了)
我查過top,並沒有什麼程式在吃CPU的資源,free指令結果如下:

total used free shared buffers cached
Mem: 240812 229972 10840 0 12620 168620
-/+ buffers/cache: 48732 192080
Swap: 262136 692 261444

的確開過幾個程式之後,swap就被用上了一部份,free只剩10MB左右
或許像Edward G.J. Lee前輩以及訪客兄所講的,或許舊硬體的話記憶體要512才會順不夠吧?
我也曾經想過要加記憶體,不過現在的SDRAM貴得嚇人
不如DDR還比較便宜,不過我的機器不支援DDR...想也沒用
所以硬體部份是沒得商量了

現在能下手的部份大概只剩下軟體的調校
感謝訪客兄的提議,雖然icewm已經很輕小了,但是fluxbox有機會我會試一下
另外,我倒是沒想過acpi和效能會有關~
如果您願意的話,是否可以向小弟多透露一些,或者告訴我連結位址,我願意自己去爬個文
謝謝您

經過小弟一番努力之後,leafpad已能達到初步開啟4秒(比之前省下3秒...Orz,不過還是該高興吧...)
我也不知道到底自己是搞了什麼鬼
反正就是把prelink 以--purge參數移除,重新安裝後再執行prelink一次
把hdparm 參數簡單化,只寫hdparm -d1 /dev/hda
把firefly前輩的16點陣字裝到/dev/shm下,並將路徑寫在xorg.conf裡
然後把~/.gtkrc-2.0裡的預設字換成點陣字

大致上是如此...希望其他跟我一樣是舊硬體的同好也能稍改善效能
不過firefox第二次啟動仍是要28秒

如果大家還有其他有效的調校
麻煩不吝指教,謝謝大家~

ps.
多虧了大家的支持,其實這幾天小弟心情較為平復了
雖然覺得很可惜,對於陪伴自己走那麼久的電腦多少也有一點感情
不過想想...舊硬體總是要走入歷史的,我還是放棄好了
訪客
 

文章訪客 » 週日 3月 19, 2006 3:21 am

firefly 的字只有 10646 編碼,修改 bdf 應該可以讓它也支援 Big-5,這樣就可以用在 beaver 裡面了(這可能要研究一下)

或是你也可以用 xmbdfed 把 big-5 點陣字加上英文字,這樣就可以快樂用 beaver(這個比較簡單,大概看一看就會了)

另外你的 swap 真的用太兇了,難怪會那麼慢…
看你的 process 都還有改善的空間,建議多工開少一點,不用的就砍掉,
CPU 533 + 256M RAM 真的不應該那麼慢…
訪客
 

文章訪客 » 週日 3月 19, 2006 7:09 am

我是路過的 :-D
我想,他用的是筆電,VGA是share memory,及vga card不知用什麼chipset也可能有關。如果,樓主post一下你用的chip set同xorg.conf檔會對這事有幫助,因為看到你前post,Xorg就用了00:06:21
訪客
 

文章訪客 » 週日 3月 19, 2006 11:03 am

遇到個例子是,不曉得是不是 kernel 有 bug 還是硬碟有問題 ? 用 SuSE 10.0
開機要三分多鐘!開 OO Writer 要一分多鐘!(256RAM + 800CPU)
用 hdparm -d1 /dev/hda 後再開 OO Writer, 過程中用 rxvt 跑
hdparm -d /dev/hda 觀察,發現 DMA 過一下子又被關掉(變成 0)

所以建議觀察一下你的 DMA, 也就是說,雖然你下過開啟 DMA的指令,但或
許它又跳回去關掉 DMA, 因此程式開啟真的會很慢.

SuSE 10.0 這個例子也還在頭痛,開機時已經設為開啟 DMA, 但開機完再看,
它的 DMA 卻是關掉了!所以開一次機要三分多鐘.
訪客
 

文章訪客 » 週日 3月 19, 2006 11:08 am

更正,上面說用 rxvt 是錯的,是用 konsole
同一粒硬碟上也灌了 ubuntu(dapper flight 4), 但開機只要一分三秒
訪客
 

文章訪客 » 週日 3月 19, 2006 12:37 pm

Anonymous 寫:firefly 的字只有 10646 編碼,修改 bdf 應該可以讓它也支援 Big-5,這樣就可以用在 beaver 裡面了(這可能要研究一下)

或是你也可以用 xmbdfed 把 big-5 點陣字加上英文字,這樣就可以快樂用 beaver(這個比較簡單,大概看一看就會了)

另外你的 swap 真的用太兇了,難怪會那麼慢…
看你的 process 都還有改善的空間,建議多工開少一點,不用的就砍掉,
CPU 533 + 256M RAM 真的不應該那麼慢…


抱歉,我是原post的訪客~
請問訪客兄所指的多工是指/etc/inittab裡的多個虛擬控制台嗎?
我原先已經把它從Debian預設的6個關到只剩3個
現在聽了您的建議我只留兩個

關於怎麼樣把big-5點陣字加入英文字我感到非常有興趣
能否請您多提供一些指引或者請您告訴我告訴我哪裡有相關的文章嗎?
因為我上google找,大多都是利用xmbdfed把ttf轉成iso10646-1點陣字,而不是轉成big5
目前手邊並沒有可得的big5點陣字bdf檔
現有的firefly點陣字型也是iso10646-1
Debian下的倚天點陣字雖是big5,但是卻是pcf字型,xmbdfed不支援
而bdftopcf程式也不再可得

所以...現在要想辦法的是:
1.如何將pcf轉bdf
2.或者是把iso10646-1轉big5

請問各位熟悉字型的前輩能否給點意見
謝謝
訪客
 

文章訪客 » 週日 3月 19, 2006 1:38 pm

Anonymous 寫:我是路過的 :-D
我想,他用的是筆電,VGA是share memory,及vga card不知用什麼chipset也可能有關。如果,樓主post一下你用的chip set同xorg.conf檔會對這事有幫助,因為看到你前post,Xorg就用了00:06:21


Section "Device"
Identifier "SiS VGA chipset"
Driver "sis"
EndSection

感謝訪客兄
說到要post chip set我就有點不好意思了
因為我用的正是那個常被嫌的sis牌子,是300/305型的,記憶體只有16MB
這個晶片有點機車,
在我裝了sisxdriver這個套件,所以驅動程式沒選錯
這應該已經算是在Debian下能做到的最理想狀況了
大致上,/var/log/Xorg.0.log裡沒有發現任何有關sis的錯誤訊息


---------------------------------------
我的xorg.conf有點長
不過還是post上來給大家瞧瞧好了
ps.為了省資源,一大堆module和字型path都被我胡亂#掉了,不知道有沒有做錯


# XF86Config-4 example (generic)
# See other examples for Dual Head, Xinerama and Merged Framebuffer mode

# ----------- This stuff needs to be adapted to your machine ------------

Section "Files"
# FontPath "unix/:7110"
# local font servery
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/dev/shm/firefly"
FontPath "/dev/shm/try"
# FontPath "/usr/lib/X11/fonts/cyrillic"
# FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
# FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
# FontPath "/usr/share/fonts/truetype"
# FontPath "/usr/share/fonts/truetype/arphic"
# FontPath "/usr/lib/X11/fonts/Type1"
# FontPath "/usr/lib/X11/fonts/CID"
# FontPath "/usr/lib/X11/fonts/Speedo"
# FontPath "/usr/lib/X11/fonts/100dpi"
# FontPath "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
# Load "GLcore" # MUST be there if DRI is enabled
# Load "dbe"
# Load "dri" - no longer needed, driver loads it automatically
Load "extmod"
# Load "glx" - no longer needed, driver loads it automatically
Load "record"
Load "bitmap"
# Load "ddc"
# Load "xtt"
# Load "int10"
#
# Load "pex5"
Load "freetype"
# Load "speedo"
# Load "type1"
# Load "type"
# Load "vbe"
# Load "xie"
Load "synaptics"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Driver "synaptics"
Identifier "Configured Mouse"
Option "Device" "/dev/psaux"
Option "Protocol" "PS/2"
#auto-dev
Option "LeftEdge" "1700"
Option "RightEdge" "50i00"
Option "TopEdge" "1700"
Option "BottomEdge" "3600"
# Option "FingerLow" "14"
# Option "ClickTime" "70"
# Option "FingerHigh" "20"
# Option "MaxTapTime" "160"
# Option "MaxTapMove" "300"
# Option "MaxDoubleTapTime" "80"
# Option "LockedDrags" "0"
# Option "VertScrollDelta" "100"
# Option "HorizScrollDelta" "100"
# Option "MinSpeed" "0.06"
# Option "MaxSpeed" "0.12"
# Option "AccelFactor" "0.0010"
Option "FastTaps" "1"
Option "SHMConfig" "on"
Option "ZAxisMapping" "4 5"
Option "Button" "3"
# Option "Repeater" "/dev/ps2mouse"
EndSection

#Section "Pointer"
# Option "Protocol" "ImPS/2
# Option "Device" "/dev/psaux"
# Option "ZAxisMapping" "4 5"
#EndSection

#Section "InputDevice"
# Identifier "Configured Mouse"
# Driver "mouse"
# Option "CorePointer"
# Option "Device" "/dev/psaux"
# Option "Protocol" "PS/2"
# Option "Emulate3Buttons" "true"
# Option "ZAxisMapping" "4 5"
#EndSection

Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

# ----------------- End of machine specific stuff ------------------------

# ----------------------------------------------------------
# MONITOR section
# ----------------------------------------------------------
# This section contains data for monitor configuration.

# The data in the Monitor section is only used for CRT1 (if VGA),
# and will be ignored for CRT2 (unless CRT2 is a secondary VGA).
# If you only run with CRT2 as LCD or TV (such as on laptops
# without an external monitor connected) or LCD via CRT1, the driver
# will ignore the ranges given here by HorizSync/VertRefresh.

Section "Monitor"
Identifier "Generic|Generic LCD Panel"
VendorName "Monitor Vendor" # value does not matter
ModelName "Monitor Model" # value does not matter
VertRefresh 28-50
HorizSync 43-75
EndSection


# ----------------------------------------------------------
# DEVICE section
# ----------------------------------------------------------
# This section contains configuration data of the video card.

Section "Device"
Identifier "SiS VGA chipset"
VendorName "SiS" # Value does not matter
BoardName "SiS" # Value does not matter

Driver "sis"

# Option "ForceCRT1"
# If CRT1 (=external VGA) monitor is used depends on whether the driver
# detects it during server start. If you want to override this
# automatic detection, set this option to either "on" (to enable
# CRT1) or "off" (to disable CRT1)
#Option "ForceCRT1" "on"
Option "EnableSiSCtrl" "true"
# Option "ForceCRT2Type":
# This option selects the CRT2 output device type and is only useful
# on systems containing a video bridge (such as most laptops).
# Available options are:
# "TV" (if TV connector present),
# "LCD" alias "DVI-D" (if LCD panel present),
# "VGA" alias "DVI-A" (secondary VGA; use this only if your machine
# has a secondary VGA connector or a DVI-I connector
# The VGA plug on your laptop is CRT1!)
# "NONE" (this will switch off CRT2).
# "COMPOSITE" (SiS video bridge only) Force TV to use cvbs connector
# "SVIDEO" (SiS video bridge only) Force TV to use SVHS connector
# "SCART" (SiS video bridge only) Force TV to use SCART connector
# "SVIDEO+COMPOSITE" (SiS video bridge only) for both
# "YPBPR480P", "YPBPR480I", "YPBPR720p", "YPBPR1080I" - see documentation
#Option "ForceCRT2Type" "NONE"

# Option "MaxXFBMem":
# *******************************************
# Only useful on 300 series if DRI is enabled
# *******************************************
# YOU DON'T NEED THIS ON 315/550/65x/M650/661/740/741/Xabre/760
# This option limits the amount of memory X uses for its framebuffer.
# Its purpose is to avoid a clash between X and DRI/DRM/sisfb as regards
# memory management.
# The SiS kernel framebuffer driver (sisfb) is responsible for memory
# management for DRI. It will install a video memory heap at
# - 12 MB (=12288 KB) if more than 16MB of video RAM available,
# - 8 MB (=8192 KB) if between 8 an 16MB if video RAM available,
# - 4 MB (=4096 KB) if less than 8 MB of video RAM available.
# Other amounts can be specified with sisfb's "mem" parameter.
# If this option is set, X only uses the specified amount of memory for
# its screen and its off-screen buffers.
# Limiting X to use only a small part of RAM therefore avoids that
# the kernel framebuffer (and a DRI application using the sisfb's
# memory pool) overwrites X's screen and off-screen memory.
# When setting MaxXFBMem to "8192", memory will be used according
# to the following figure:
# 0-------8------16------24------32------40------48--------56-------64MB
# XXXXXXXX
# FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
# (X=memory used by X, F=memory used by sisfb and thus DRI)
# If DRI is disabled or the framebuffer driver is not loaded, this option
# can and should be left out.
# PLEASE READ THE DOCUMENATION ON THIS OPTION. IT IS NOT THAT TRIVIAL.
# Option "MaxXFBMem" "12288"

# Option "TVStandard"
# Can be "NTSC" or "PAL". On some machines with a 30x/B/LV bridge as well
# as on machines with a Chrontel 7019/7020, also
# "PALM" (for PAL-M) or "PALN" (PAL-N)
# Normally, this will be autodetected acoording to the BIOS setting.
#Option "TVStandard" "PAL"

# Option "XvOnCRT2"
# Only useful on machines with SiS315, 650, 740 or 330 and only if both CRT1
# and CRT2 are available and connected.
# Setting this to "TRUE" will show the Xv video overlay on CRT2, "FALSE" will
# show the overlay on CRT1.
#Option "XvOnCRT2" "true"

# Options for Chrontel TV encoders only (7005 or 7019) ---------------

# Option "CHTVOvercan"
# Setting this to "TRUE" will use overscan modes (larger image on the TV)
# Normally this is autodetected according to the BIOS setting.
#Option "CHTVOverscan" "TRUE"

# Option "CHTVSuperOverscan"
# Not for Chrontel 701x TV encoders!
# Only useful if TV standard is PAL
# Setting this to "true" will force the driver to use a TV mode which is even
# larger than the normal overscan mode. This option overrules the CHTVOverscan
# option. Setting it to "FALSE" will make the driver to fall back on the
# normal overscan setting (BIOS selection or, if set, the CHTVOverscan setting)
#Option "CHTVSuperOverscan" "TRUE"

# Option "CHTVContrast"
# This option accepts numerical values from 0 to 15 and it adjust the contrast
# of the TV image.
#Option "CHTVContrast" "10"

# Options for SiS video bridges only --------------------

# Option "SISTVAntiFlicker"
# This option allows adjusting the bridge's anti flicker engine. It accepts
# "OFF", "LOW", "MED", "HIGH" and "ADAPTIVE"
#Option "SISTVAntiFlicker" "ADAPTIVE"

# Option "SISTVSaturation"
# This option allows tuning the color saturation of the TV image. It accepts
# values from 0 to 15.
#Option "SISTVSaturation" "15"

# Option "TVXPosOffset"
# Useful on machines with SiS6326+TV, Chrontel 700x TV encoder or SiS video
# bridge.
# This option allows adjusting the TV image's horizontal position. It accepts
# values from -32 to 32 (on the 6326 -16 to 16)
#Option "TVXPosOffset" "8"

# Option "TVYPosOffset"
# Like TVXPosOffset, but for vertical adjustments.
#Option "TVYPosOffset" "-3"

# Please see http://www.winischhofer.net/linuxsisvga.shtml for more information

EndSection

# ----------------------------------------------------------
# SCREEN section
# ----------------------------------------------------------
# This section defines the available resulutions and depths.

Section "Screen"
Identifier "screen1"
Device "SiS VGA chipset"
Monitor "Generic|Generic LCD Panel"
DefaultDepth 16
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600"
EndSubSection

EndSection

# ----------------------------------------------------------
# Server layout: Combine Monitor, Screen and Device sections
# ----------------------------------------------------------

Section "ServerLayout"
Identifier "Default Layout"
Screen "screen1"
InputDevice "Generic Keyboard"
# InputDevice "Configured Mouse"
InputDevice "Configured Mouse" "CorePointer"
InputDevice "USB Mouse"
# Option "DontZoom" "true"
Option "BlankTime" "10"
Option "OffTime" "20"
EndSection

# ----------------------------------------------------------
# DRI section: Only needed if DRI is enabled (300 series only)
# ----------------------------------------------------------

Section "DRI"
Mode 0666
EndSection
訪客
 

文章訪客 » 週日 3月 19, 2006 4:57 pm

Anonymous 寫:因為我上google找,大多都是利用xmbdfed把ttf轉成iso10646-1點陣字,而不是轉成big5

轉碼可以用 fontforge,iso10646 和 big-5 可以互轉
把 firefly font 或 wqy font 轉成 big-5 就行了
不過 fontforge 在你的機器上跑可能會很慢…

Anonymous 寫:Debian下的倚天點陣字雖是big5,但是卻是pcf字型,xmbdfed不支援

原始碼都是 bdf,用 apt-get source 把官方的 orig.tar.gz 拿下來就是 bdf

另外 BV1AL 的 DSL 不是可以用嗎?參考一下他的設定,說不定不用這麼麻煩…
訪客
 

文章訪客 » 週日 3月 19, 2006 7:30 pm

找到原因了。

DSL 的 beaver 是 0.2.7 可同時指定兩種字體(中英文用不同字)
Debian 的 beaver 是 0.2.3 只能指定一種字體

把 DSL 的 beaver 拿來用,設定檔裡設成
Font = -eten-fixed-medium-r-normal--16-150-75-75-c-160-big5-0,8x16
這樣就可以了(這裡是使用 Debian 官方字型)

DSL 裡是這樣設定
Font = -et-fixed-medium-r-normal-*-*-150-*-*-c-*-big5-0,8x16

另外 DSL 裡的 beaver 仍是使用 big-5 bdf/pcf,不是使用 firefly font
訪客
 

文章訪客 » 週一 3月 20, 2006 12:56 am

Hi~訪客兄
很高興聽到這個好消息,真的非常謝謝您的幫忙~

不過我在google上一直找不到beaver新一點的deb
(我的關鍵字是「beaver 0.2.7 deb」如果有不妥,煩請指正)
也不知道DSL的package要去哪裡下載(我在DSL首頁找了很久都找不到)
能否請您指點一下要去哪裡取得package呢?
謝謝您~~~
訪客
 

文章訪客 » 週一 3月 20, 2006 1:54 am

我是直接從 DSL 拿下來用啦…
不過在 www.apt-get.org 我有找到,應該可以用吧…(沒試驗)
http://www.joomart.de/debian/pool/main/ ... 1_i386.deb
http://www.joomart.de/debian/pool/main/ ... 1_i386.deb
訪客
 

文章訪客 » 週一 3月 20, 2006 8:47 am

哦~~~我的天!!!感謝訪客兄!真的能用!!!!
beaver在我的舊電腦上瞬間開啟!!!
現在在Debian上使用文字編輯器,也有順暢的快感了~!!!
有大家的幫忙小弟很感動呀!
謝謝您~也謝謝大家多日來的回饋~~~
訪客
 

上一頁

回到 debian desktop

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客