-
2008-07-20
firefox about:config备份 - [软件]
以下是我的firefox about:config设置,记录以作备份
network.http.pipelining=true
network.http.pipelining.maxrequests=10
network.http.proxy.pipelining=true
network.dns.disableIPv6=false
content.interrupt.parsing=true
content.max.tokenizing.time=2250000
content.notify.interval=750000
content.notify.ontimer=true
content.notify.backoffcount=5
content.switch.threshold=750000
nglayout.initialpaint.delay=0
config.trim_on_minimize=true
browser.sessionhistory.max_total_viewers=8 -
2008-07-05
xubuntu中wine中文显示 - [软件]
代码: mousepad ~/.wine/system.re
搜索: LogPixels
找到的行应该是:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
将其中的:
“LogPixels”=dword:00000060
改为:
“LogPixels”=dword:00000070
搜索: FontSubstitutes
找到的行应该是:[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]
将其中的:
“MS Shell Dlg”=”Tahoma”
“MS Shell Dlg 2″=”Tahoma”
改为:
“MS Shell Dlg”=”SimSun”
“MS Shell Dlg 2″=”SimSun”拷贝simsun.ttc文件到wine中的windows/fonts下面。
-
2008-07-03
解决Xubuntu下锁屏问题 - [软件]
装好Xubuntu后,一直存在着这个不能锁屏的问题,但是自己一直在忙,也懒的去弄这个事情。刚刚今天下班比较早,就来处理了一下。Google了一下,发现这是一个已经报告的bug,已经有了解决方案。
https://bugs.launchpad.net/ubuntu/+source/xfce4-utils/+bug/200665
Binary package hint: xfce4-utils
1) Ubuntu version: Xubuntu 8.04
2) Source package: xfce4-utils and xfce4-panel
3) Package version: 4.4.2-3ubuntu2
4) What you expected to happen:
The "Lock screen" button should lock the screen.
5) What happened instead:
It doesn't lock the screen.
6) Steps to reproduce:
1. Right click on the Panel -> Add New Item -> Action Buttons -> Add
2. Select action type: Lock screen
3. Click on the "Lock screen" button in the Panel.
4. Nothing happening.
7) Possible reason:
The "Action Buttons" panel plugin uses the /usr/bin/xflock4 script (provided by the package xfce4-utils).
This script try to use xscreensaver to lock the screen ("xscreensaver-command -lock"), but if xscreensaver isn't running, try to use gnome-screensaver ("gnome-screensaver-command --lock"), but if gnome-screensaver isn't running, try to use the "xlock" command to lock the screen.
But, by default, neither xscreensaver, nor gnome-screensaver is running, and none of the packages providing "xlock" are installed (xlockmore and xlockmore-gl).
8) Possible solutions:
- Modify the xflock4 script, to show a warning, if xscreensaver or gnome-screensaver isn't running.
OR
- Make xfce4-panel depend on xlockmore or xlockmore-gl, so it will be able to lock the screen, even if xscreensaver or gnome-screensaver isn't running.
[9) Another suggestion: May be good, to use the keyboard shortcut Ctrl+Alt+L to lock the screen. Currently Ctrl+Alt+Del is used, but it could be useful, to let lock the screen also with Ctrl+Alt+L as in GNOME and KDE.]查了一下我的Xubuntu,发现没有安装xlock,下载xlockmore安装后,问题解决。xlockmore可以在这里下载:http://ftp.debian.org/debian/pool/main/x/xlockmore/xlockmore-gl_5.22-1.4_i386.deb
-
2008-03-20
Ubuntu的load/unload cycles损伤硬盘的问题 - [软件]
今天很累也很困了,但是在浏览文章中发现了Ubuntu如果设置不好,会损坏甚至毁坏笔记本硬盘的问题,于是决定将这篇文章看完并写下这篇文章。这里就是看到的第一篇文章<Ubuntu电源管理问题的说明和解决方案>,看完之后对这个所谓的Load/unload Cycle还不是很了解,于是就做了一些调查,并且发现这个问题已经发给官方了,具体BUG Report可以在这里看到(https://bugs.launchpad.net/ubuntu/+bug/104535)。请看上图,所谓的load/unload cycle就是slider与硬盘盘片接触的周期,每一个硬盘出厂前都会有这么一个参数是固定的,也就是当硬盘快接近这个出厂参数时,就意味着这块硬盘已经接近报销的边缘。在西部数据官方上找到我的硬盘的相关参数信息,里面就有一个是Load/unload cycles at ambient condition 600,00(DATA Sheet),也就是说,我的硬盘的寿命取决于现有使用的这个参数值与官方值是否接近,具体查看及设置方法如下:- 安装smartmontools,因为需要名为smartctl的来检查相关的信息
sudo apt-get install smartmontools - 启用硬盘SMART监控功能
sudo smartctl -s on /dev/sda
brucebot@brucebot-laptop:/etc/laptop-mode$ sudo smartctl -s on /dev/sda
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
注:/dev/sda请选择你的硬盘,如果是IDE的,则是/dev/hda - 查看当前硬盘的详细状态
sudo smartctl -d ata -A /dev/sda
brucebot@brucebot-laptop:/etc/laptop-mode$ sudo smartctl -d ata -A /dev/sda
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 199 197 051 Pre-fail Always - 426
3 Spin_Up_Time 0x0003 185 180 021 Pre-fail Always - 1733
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 450
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 200 200 051 Pre-fail Always - 0
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 480
10 Spin_Retry_Count 0x0013 095 095 051 Pre-fail Always - 23
11 Calibration_Retry_Count 0x0012 100 100 051 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 263
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 153
193 Load_Cycle_Count 0x0032 195 195 000 Old_age Always - 15977
194 Temperature_Celsius 0x0022 108 099 000 Old_age Always - 39
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0012 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0009 100 253 051 Pre-fail Offline - 0
请看,红色的即为我的硬盘的load/unload cycles看起来,已经有了四分之一多了,也就是说这块硬盘的四分之一寿命已经没有了。
当然,如果仅仅想知道这个参数,可以使用sudo smartctl -a /dev/sda | grep Load_Cycle_Count仅仅导出这个参数。如果你安装了Ubuntu,并且没有经过相应的设置,再次执行上面的命令后,load_Cycle_count的数值会不断增大。 Ubuntu默认不会改动内置的参数,笔记本硬盘内置的自动进入低耗状态的参数过于严厉,导致频繁的Load/Unload,其他系统则无视或者不使用硬盘的这一功能,反而保护了硬盘的寿命。也就是说,只有Ubuntu存在这个问题。 - 解决方法
- 关闭高级电源管理模块(Advanced Power Management setting)
Sudo hdparm -B 255 /dev/sda
brucebot@brucebot-laptop:/etc/laptop-mode$ sudo hdparm -B 255 /dev/sda
/dev/sda:
setting Advanced Power Management level to disabled - 使用laptop-mode-tools
- Sudo apt-get install laptop-mode-tools
- 查看Laptop-mode是否启动
grep ENABLE_LAPTOP_MODE /etc/default/acpi-supportbrucebot@brucebot-laptop:/etc/laptop-mode$ grep ENABLE_LAPTOP_MODE /etc/default/acpi-support
ENABLE_LAPTOP_MODE=false 启动laptop-mode
sudo cp /etc/default/acpi-support /etc/default/acpi-support_backup
sudo gedit /etc/default/acpi
找到ENABLE_LAPTOP_MODE=false,并且将其设置成true
注:我是同时设置了两种方法,使用命令sudo smartctl -d ata -A /dev/sda多次后可以看到,Load_cycle_count的值没有再增长。至此,问题解决!
- 关闭高级电源管理模块(Advanced Power Management setting)
- 安装smartmontools,因为需要名为smartctl的来检查相关的信息
-
2008-02-27
To do list for utilize ubuntu on F31A - [软件]
Lenovo F31A has used many technology from thinkpad, such as Active Protection system for the hard disk(HDAPS).What is APS system? Here we go.
The Active Protection System
With the new series of ThinkPads IBM introduced the Active Protection System (APS) in 2003. The APS is a protection system for the ThinkPad's internal harddrive. A sensor inside the ThinkPad recognizes when the notebook is accelerated. A software applet then is triggered to park the harddisk. This way the risk of data loss in case of when the notebook is dropped is significantly reduced since the read/write head of the harddrive is parked and hence can't crash onto the platter when the notebook drops onto the floor.
The hardware sensor is capable of not only recognizing acceleration of the notebook, but also (to a certain degree) of its whole orientation in space, relative to gravity's axis. Furthermore, having the actual control put into software, its functionality is extendable and it gives chance to implement features like the "ignore minor shocks" feature which is present in the Windows based control applet. (This feature prevents the harddrive from parking in case of minor regular shocks such as occur when in a train or car.)
And the following websites are recorded for the future configuration for my notebook.1.http://www.thinkwiki.org/wiki/Active_Protection_System
2.http://article.gmane.org/gmane.linux.drivers.hdaps.devel/1040
3.http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS
-
2008-02-04
Ubuntu文件管理器Nautlius中键盘无法输入的问题 - [软件]
在使用的Nautilus文件管理器的时候,经常会无法输入文字,以下为解决方法,此解决方法在Ubuntu 7.10及SCIM输入法下测试通过。
1.取消SCIM的自动启动: 进入终端输入 im-switch -s none,注销后重新登录。
2. 进入终端输入 sudo gedit ~/.scim/config, 找到并设置/FrontEnd/X11/Dynamic=true.
3. 恢复SCIM的自动启动: 进入终端输入 im-switch -s scim,注销后重新登录 -
2008-02-01
Install Ubuntu 7.10 on My Lenovo F31A - [软件]
Table of Contents
1.Introduction
2.Summary
3.Computer details
1.Introduction
I purchased a Lenovo F31A laptop days ago, it is a great laptop except the pre-installed OS VISTA, I really do not like it. As I have some experence to use ubuntu on the PC, so I decide to install the Ubuntu 7.10 to the laptop. And the installation is very easy,just download the iso file from ubutnu homepage and burn it to a CD-ROM, then use this CD to boot laptop, follow the normal way to install ubuntu. It can easily automaitcally detect almost all the hardware and install the driver to them, except two hardware, the wireless card driver and the sound driver.
WIRELESS
1.Download a software named bcm43xx-fwcutter_20060108-6build1_i386.deb and install it.Here http://linuxwireless.org/en/users/Drivers/b43 you will find more details about b43.
2.Click the icon on the right above panel---Restricted Drivers, and enable the firmware for broadcom 43xx chipset family, then it will pop-up a window ask you to slect the firmware to download, pls choose the second one which is http://xeve.de/down/wl_apsta.o ,after finishing the download,ubuntu will automatically install the firmware.SOUND
I have tested all the alsa driver version, and some patches, which still have no effect to drive my sound card. Finally I found this article http://ubuntuforums.org/showpost.php?p=3768914&postcount=60 which help me to solve my sound card issue, so now I can listen music and watch movies under my new laptop now.
2.Summary
Hardware component
Status under Ubuntu 7.10
Notes
Intel(R) Pentium(R) Dual CPU T2330 @ 1.60GHz
Works
13.3¨WXGA TFT(1280X800)
Works
nVidia GeForce 8400M GS(128MB)
Works
1GB RAM
Works
160GB HDD(WDC WD1600BEVS-2)
Works
DVD±RW(DVD RW AD-7640A)
Works
NetLink BCM5906M Fast Ethernet PCI Express
Works
BCM94311MCG wlan mini-PCI
Works
82801H (ICH8 Family) HD Audio Controller
Works
OSS
Memory Card Reader
Not test
Internal 56K modem
Not test
Lenovo EasyCamera
Not test
Bluetooth
Works
3.Computer Details
Pls see the details attached pdf file.
Download Install Ubuntu 7.10 on My Lenovo F31A Howto
-
ALSA的驱动一直没有对ICH8系列的支持,试了很多版本后机子一直无法发出声音,实在是无奈,最后还是安装了OSS之后,机子终于可以发声了。至此,机子的所有硬件问题都已经解决了,下一步就要做一些美化的工作,以方面自己使用了。
关于这次安装,正在准备写一个安装过程说明,过几天贴出来。
-
2008-01-28
Install Ubuntu 7.10 to Lenovo F31A - [软件]
Just bought a Lenovo F31A some days ago, the default OS is Windows Vista Home Premium, which looks nice, but I really do not like.The Effect is not very good.Ubuntu has a better solution about this. So I delete all the partition, and reinstall the Ubuntu 7.10 to my New notebook.
Everything is Ok when finish the normal installation procedure expcept the Wireless bcm4xx firmware and the sound card.For the first issue, here with a solution:
1.Download a software named bcm43xx-fwcutter_20060108-6build1_i386.deb and install it.Here http://linuxwireless.org/en/users/Drivers/b43 you will find more details about b43.
2.Click the icon on the right above panel---Restricted Drivers, and enable the firmware for broadcom 43xx chipset family, then it will pop-up a window ask you to slect the firmware to download, pls choose the second one which is http://xeve.de/down/wl_apsta.o ,after finishing the download,ubuntu will automatically install the firmware.For the sound card, i am still under searching a way to solve it.Hope someone can give me a hand.
-
2008-01-27
Lenovo F31A sound card - [软件]
Record this information for reference to solve the sound card issue.
brucebot@brucebot-laptop:~$ lspci -vv|grep Audio
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
brucebot@brucebot-laptop:~$ cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xfb500000 irq 23
brucebot@brucebot-laptop:~$ cat /proc/asound/devices
2: : timer
3: : sequencer
4: [ 0- 6]: digital audio playback
5: [ 0- 6]: digital audio capture
6: [ 0- 2]: digital audio capture
7: [ 0- 1]: digital audio playback
8: [ 0- 0]: digital audio playback
9: [ 0- 0]: digital audio capture
10: [ 0- 1]: hardware dependent
11: [ 0- 0]: hardware dependent
12: [ 0] : control
brucebot@brucebot-laptop:~$ lsmod|grep snd
snd_hda_intel 291488 1
snd_pcm_oss 43008 0
snd_mixer_oss 17664 2 snd_pcm_oss
snd_pcm 80004 2 snd_hda_intel,snd_pcm_oss
snd_page_alloc 11400 2 snd_hda_intel,snd_pcm
snd_hwdep 10244 1 snd_hda_intel
snd_seq_dummy 4740 0
snd_seq_oss 33152 0
snd_seq_midi 9600 0
snd_rawmidi 25728 1 snd_seq_midi
snd_seq_midi_event 8448 2 snd_seq_oss,snd_seq_midi
snd_seq 53360 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 24324 2 snd_pcm,snd_seq
snd_seq_device 9228 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 54788 10 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 8800 2 snd
brucebot@brucebot-laptop:~$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.15rc3.
brucebot@brucebot-laptop:~$






