LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 15624|回复: 19

在IBM X31笔记本上安装Debian(支持ACPI及SpeedStep)

[复制链接]
发表于 2004-8-10 19:46:36 | 显示全部楼层 |阅读模式
近来在本本上装Debian的兄弟不少,也有不少问题,这里简单谈一下我在IBM X31上的安装经验,以供参考
1》机器配置
处理器:Pentium M 1.6G
内存:512M DDR 333
硬盘:40G
显卡:ATI Radeon M6(16M显存)
显示器:12.1 1024x768 LCD
网卡:intel 1000M and atheros 802.11a/b/g 无线网卡(内置)
光驱:外置阿帕奇USB-DVD
其它:内置蓝牙 USB2.0X2
2》所需软件
Debian sarge net install disc(beta3),
由于X31没有内置光驱,因此必须使用较新的linux安装光盘,否则将不支持USB-CDROM启动安装,
会很麻烦,目前的sarge net install disc可以很好的支持USB光驱。

安装基系统:
1》启动进入BIOS,去除IBM对隐藏系统恢复区的保护,释放宝贵的3G隐藏空间(警告,如果你希望
保留你的IBM一键恢复winxp功能,请跳过这一步)
2》用sarge net install光盘启动,按常规方法安装Debian linux(没啥很特别要注意的)


3》安装完毕,重启系统,apt-get update;apt-get dist-upgrade

电源管理,设备驱动等相关软件安装
1》为支持PM CPU、855主板等新硬件和ACPI电源管理,安装官方2.6.7内核。(偶现在使用2.6.8-rc3自行编译内核)
2》安装bluez-utils支持蓝牙(配置根据应用不同而不同,不再详述)
3》安装acpid支持ACPI电源管理,安装powernowd支持speedstep。(如果使用gnome桌面还可安装cpufreqd显示CPU频率)
4》为方便支持即插即用硬件,建议安装hotplug
5》安装tpb可以在X下支持thinkpad专用键的操作显示
以上软件均Debian系统均有提供
5》下载并编译安装madwifi源码支持集成无线网卡(http://www.mattfoster.clara.co.uk/madwifi-faq.htm)
6》为休眠时能关闭LCD背光下载安装radeontool(http://fdd.com/software/radeon/)
ACPI及speedstep设置
为支持speedstep修改/etc/modules添加如下模块
speedstep_centrino
cpufreq_powersave
cpufreq_userspace
为支持ACPI休眠到内存
添加如下文件
/etc/acpi/event/sleepbtn,内容如下
event=button[ /]sleep
action=/etc/acpi/sleepbtn.sh

创建/etc/acpi/sleepbtn.sh内容如下:
ORIGVT=`fgconsole`
chvt 1
rmmod ehci-hcd
/usr/sbin/radeontool light off
hwclock --systohc
echo -n mem > /sys/power/state
hwclock --hctosys
/etc/init.d/powernowd restart
/usr/sbin/radeontool light on
modprobe ehci-hcd
chvt $ORIGVT

现在,系统已经支持acpi电源管理和speedstep了。注意对X31而言Fn+F4是休眠到内存,而唤醒则是power键(需要按几秒钟),其它笔记本请参考修改sleepbtn.sh文件。
存在的问题及解决办法:
1.可能出现休眠唤醒后屏幕花屏,请重编译内核选择使用radeon FrameBuffer作console,能改善这个现象。
2.休眠到硬盘可能仍然不可用(网上成功和失败的案例都很多)
3.Fn+F5只能开启或关闭蓝牙,对无线网卡无效,只能用手动运行modprobe -r ath-pci卸载无线网卡驱动的办法关闭无线网卡。

另据测试knoppix 3.4可以很好的用USB光驱启动X31,甚至mad-wifi无线网卡也可工作。
发表于 2004-8-10 21:49:18 | 显示全部楼层
this is a good article for me. But could you tell people how you configurate your trackpoint and mouse in Debian?

My box was installed by a German classmate, he don't know how to install the package for Chinese. So now I have no way to input the chinese characters.

My laptop is x20, my problem now is that if i boot my laptop without external usb mouse, the box can not enter the Xwindow automatically. If plugged with a usb mouse, it is able to do so.


thanks for help
发表于 2004-8-10 23:28:07 | 显示全部楼层

IBM 的机器都来讨论讨论吧

6》为休眠时能关闭LCD背光下载安装radeontool(http://fdd.com/software/radeon/)
ACPI及speedstep设置
为支持speedstep修改/etc/modules添加如下模块
speedstep_centrino
cpufreq_powersave
cpufreq_userspace
为支持ACPI休眠到内存
添加如下文件
/etc/acpi/event/sleepbtn,内容如下
event=button[ /]sleep
action=/etc/acpi/sleepbtn.sh

我用t30, ACPI待机以后显示器是亮的,这个问题上一次你跟我说了,我没有搞定,觉得添加文件有点麻烦,我重新编译内核,用apm作电源管理了,现在还有一个问题就是鼠标,和楼上的弟兄一样,楼主鼠标怎么设置的阿,我接USB鼠标的时候,Touchpad,和Trace Point,就不能用了,不过启动机器以后再插入USB鼠标都可以用了

谢谢楼主的好贴!!!!!!!!
发表于 2004-8-10 23:33:20 | 显示全部楼层
好象就选一般的PS/2鼠标就行了啊。安装4.3以上版本的XFree86
 楼主| 发表于 2004-8-11 07:43:56 | 显示全部楼层
首先要保证/etc/modules里包含如下内容(否则可能导致小红点不正常工作)
psmouse
然后这是我的XF86Config-4。
不过在2.4.x内核下工作的不正常,2.6内核下工作的很好
Section "Files"
#        FontPath        "unix/:7100"                        # local font server
        # if the local font server has problems, we can fall back on these
        FontPath        "/var/lib/TrueType"
        FontPath        "/usr/lib/X11/fonts/misc"
        FontPath        "/usr/lib/X11/fonts/cyrillic"
        FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
        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"
        Load        "bitmap"
        Load        "dbe"
        Load        "ddc"
        Load        "dri"
        Load        "extmod"
        Load        "xtt"
#        Load        "freetype"
        Load        "glx"
        Load        "int10"
        Load        "record"
        Load        "speedo"
        Load        "type1"
        Load        "vbe"
EndSection

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

Section "InputDevice"
        Identifier        "Configured Mouse"
        Driver                "mouse"
        Option                "CorePointer"
        Option                "Device"                "/dev/psaux"
#        Option                "rotocol"                "ThinkingMousePS/2"
        Option                "rotocol"                "ImPS/2"
        Option                "Buttons"        "3"
        Option                "DragLockButtons"        "4"
#        Option                "Emulate3Buttons"        "true"
#        Option                "ZAxisMapping"                "4 5"
EndSection
Section "InputDevice"
        Identifier        "Generic Mouse"
        Driver                "mouse"
        Option                "SendCoreEvents"        "true"
        Option                "Device"                "/dev/input/mice"
        Option                "rotocol"                "ImPS/2"
#        Option                "Emulate3Buttons"        "true"
        Option                "ZAxisMapping"                "4 5"
EndSection

Section "Device"
        Identifier        "ATI Technologies Inc Radeon Mobility M6 [LY]"
        Driver                "radeon"
        Option                 "AGPMode" "4"
        Option                 "EnableDepthMoves" "on"
        Option                "AGPFastWrite" "on"

        Option                 "MonitorLayout" "LVDS"
#        Option                 "MonitorLayout" "CRT, LVDS"
#        Option                "CloneMode"        "1024x768"
#        Option                "CloneMode"        "1280x1024"
#        Option                "CloneVRefresh" "60.0-70.0"
#        Option                 "EnablePageFlip" "on"
#        Option                "UseFBDev"                "false"
EndSection

Section "Monitor"
        Identifier        "Generic Monitor"
        HorizSync        28-70
        VertRefresh        60-70
        Option                "DPMS"
EndSection

Section "Screen"
        Identifier        "Default Screen"
        Device                "ATI Technologies Inc Radeon Mobility M6 [LY]"
        Monitor                "Generic Monitor"
        DefaultDepth        16
        SubSection "Display"
                Depth                16
                Modes                "1024x768" "1280x1024" "800x600"
        EndSubSection
        SubSection "Display"
                Depth                24
                Modes                "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier        "Default Layout"
        Screen                "Default Screen"
        InputDevice        "Generic Keyboard"
        InputDevice        "Configured Mouse"
        InputDevice        "Generic Mouse"
EndSection

Section "DRI"
        Mode        0666
EndSection
发表于 2004-8-12 01:58:32 | 显示全部楼层
装一下xfree86-driver-synaptics,我刚弄好。不错。
发表于 2004-8-12 02:00:26 | 显示全部楼层
ORIGVT=`fgconsole`
chvt 1
rmmod ehci-hcd
/usr/sbin/radeontool light off
hwclock --systohc
echo -n mem > /sys/power/state
hwclock --hctosys
/etc/init.d/powernowd restart
/usr/sbin/radeontool light on
modprobe ehci-hcd
chvt $ORIGVT

请问这段的出处是哪里?
发表于 2004-8-12 05:05:40 | 显示全部楼层
首先要保证/etc/modules里包含如下内容(否则可能导致小红点不正常工作)
psmouse      
我的机器接USB的时候触摸板能用了,小红帽还是不能用,不过已经够用了,要那么多鼠标干什么阿,呵呵,谢谢
 楼主| 发表于 2004-8-12 12:23:30 | 显示全部楼层
最初由 fredricktoy 发表
ORIGVT=`fgconsole`
chvt 1
rmmod ehci-hcd
/usr/sbin/radeontool light off
hwclock --systohc
echo -n mem > /sys/power/state
hwclock --hctosys
/etc/init.d/powernowd restart
/usr/sbin/radeontool light on
modprobe ehci-hcd
chvt $ORIGVT

请问这段的出处是哪里?


这个来源于linux-x31邮件列表,并根据实际情况作了修改,基本上在我的机器上,
在X-windows里如果直接进入休眠状态,必须先切换出X,否则导致背光无法正常关闭,同时,不卸载usb-ehci也会导致无法休眠,而休眠恢复后speedstep管理服务owernowd会工作不正常,同时时钟也需要与bios同步,因此有了上边的东东,如果你的机器有其它要求或异常,请参考修改。
发表于 2004-8-12 23:01:51 | 显示全部楼层
请问一下楼主,不知你的显卡驱动是否是 用系统本身自带的。。。

多谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表