2010-02-08

ArchLinux安装小记

本子是Thinkpad SL400 7NC,折腾了3-4天,终于差不多弄好了。小记一下以备参考。总的来说,得益于新内核,大问题不多。不过小问题不断,记录以备参考。

  1. dhcpcd总会把我的网卡的mtu设置成576,造成网络连接不稳定,貌似是我的无线路由的问题。不管他了,在dhcpcd.conf里面加上nohook mtu就行了。

  2. 待机问题。这个问题开始的时候一筹莫展,查询后在thinkwiki上看到了一点希望,可能是读卡器的问题(我常年插着一个tf卡)。另外,待机恢复后的摄像头灯会一直亮着,同样卸掉摄像头模块。

    /etc/pm/config.d/suspend_modules:

    SUSPEND_MODULES="uvcvideo sdhci"
    

    不要忘记chmod +x suspend_modules

  3. 媒体键可以被xev检测出来了(以前在某个版本的ubuntu里面是检测不出来的),于是在xfce4的键盘设置里面建立快捷键即可:

    Command                        |  Shortcut
    amixer -c 0 set Master 5dB-    |  XF86AudioLowerVolume
    amixer -c 0 set Master 5dB+    |  XF86AudioRaiseVolume
    amixer -c 0 set Master toggle  |  XF86AudioMute
    
  4. 小红帽的速度敏感度调节:

    echo -n 200 > /sys/devices/platform/i8042/serio4/serio5/sensitivity
    echo -n 80 > /sys/devices/platform/i8042/serio4/serio5/speed
    
  5. 去掉beep声音:

    .inputrc:

    set bell-style none
    

    /etc/rc.conf:

    MODULES=(!pcspkr)
    
  6. flash中文字缺失:

    字体一开始是文泉驿正黑0.8.38,flash中的中文缺失很严重。按网上的方法处理/etc/fonts/conf.d/49-sansserif.conf没有效果。后来更换为文泉驿微米黑等其他字体问题解决。

  7. qt程序(如VirtualBox)字体的抗锯齿:

    .fonts.conf:

    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
    <match target="font">
        <edit name="antialias" mode="assign"><bool>true</bool></edit>
        <edit name="hinting" mode="assign"><bool>true</bool></edit>
        <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
        <edit name="rgba" mode="assign"><const>rgb</const></edit>
    </match>
    </fontconfig>
    
  8. cpu频率设置:

    使用cpufrequtils。在/etc/rc.conf的MODULES中加入acpi-cpufreq,在DAEMONS中加入cpufreq,在/etc/conf.d/cpufreq中设置governer即可。

  9. 无线设置:

    使用wpa_supplicant + wpa_auto + wpa_supplicant_gui即可。

    /etc/wpa_supplicant.conf:

    ctrl_interface=/var/run/wpa_supplicant
    ctrl_interface_group=network
    update_config=1
    
  10. 蓝牙耳机

    在blueman里面和耳机pair,连上audio sink服务,然后修改:

    ~/.asoundrc:

    pcm.bluetooth {
       type bluetooth
       device 00:0D:3C:B0:99:4A
    }
    
    pcm.!default {
        type plug
        slave.pcm "bluetooth"
    }
    

    这是alsa下面的配置。如果使用pulse audio,那么使用blueman的PulseAudio插件即可。推荐后者,可以实现音频流的无缝切换。

    另:我的耳机会同时连接Headset服务,但是blueman的PulseAudio插件连接上Headset服务时会有问题,所以我直接编辑/usr/lib/python2.6/site-packages/blueman/plugins/applet/PulseAudio.py, 加入了Ignore Headset Profile的选项:

    /usr/lib/python2.6/site-packages/blueman/plugins/applet/PulseAudio.py (patch):

    95c94,95
    <       "move_streams": (bool, True, "Move streams", "Move existing audio streams to bluetooth device")
    ---
    >       "move_streams": (bool, True, "Move streams", "Move existing audio streams to bluetooth device"),
    >       "ignore_hsp": (bool, True, "Ignore Headset Profile", "Don't set up for headset streams.")
    163a165,167
    >       if self.get_option('ignore_hsp'):
    >           return
    >
    
  11. nouveau驱动

    折腾了一下nouveau驱动,主要是为了体验一下KMS,而且我也没有3D的需求。按照官方wiki的early start模式装好,然后在控制台运行X -configure,会报错,不过不用管,使用新的xorg.conf.new即可。基本应用没什么问题,但是vdpau这个东西不能用了,播放视频的时候CPU占用率会高一些。

  12. plymouth启动画面

    使用aur里面的git版本,很好安装,只是没有好看的theme。参见Plymouth - ArchWiki

暂时想到这么多,有遗漏再补。

thinXer
ifay says:

填上邮箱是不是回复会发到邮箱里呢?
完全看不懂啊

posted on 2010-02-08 14:42:29.204598
thinXer says:

to ifay: 目前不会,但是以后会让评论发到邮箱的...
至于看不懂呢...如果你装archlinux自然就懂了...

posted on 2010-02-09 04:49:48.693368