Install RH 9 on ASUS M2N notebook(M2474PDV)

In this short HOWTO, we have few tasks: (In fact, you have to do a lot of things...)
1. Install RH 9 on this elegant notebook.
2. Enabling ACPI for sound card, pc card and power management support.
3. Enable software suspend function on this notebook.

My ASUS M2N SPEC. is:
Centrino 1.4GHz
512MB DDR RAM
14.1 inches LCD
8x DVD drive
56Kbps Modem
Realtek 8139 NIC
XP Home edition(useless???)
Before you start, I guess you need these:
1. RH 9 CD * 3
2. 2.4.22 kernel from www.kernel.org
3. acpi-20031002-2.4.22.diff.bz2 from acpi.sf.net
4. acpid-1.0.2-1.i386.rpm from acpid.sf.net
5. swsusp-2.0-rc2-whole.bz2 and suspend.sh (v0.16) from swsusp.sf.net
6. slmodem-2.9.2.tar.gz from ftp://ftp.smlink.com/linux/

Below are the procedures I have had done:
1. Install RedHat 9, with SWAP partition larger than your physical memory about 30% to 100%. ex. I have 512MB physical memory, so I give a 1GB SWAP on my machine.

2. untar your 2.4.22 kernel into /usr/src/ with command
# tar zxvf 2.4.22.tar.gz -C /usr/src/

3. patch acpi, put acpi patch in /usr/src/2.4.22/, then patch it with command:
# bzcat acpi-20031002-2.4.22.diff.bz2 | patch -p1

(If you have problem patch it, try bzcat acpi-20031002-2.4.22.diff.bz2|patch -p0 or download your kernel source from www.kernel.org again.)

4. patch swsusp, the same, put it in /usr/src/2.4.22/, then patch it with command:
# bzcat swsusp-2.0-rc2-whole.bz2|patch -p1

5. in /usr/src/2.4.22, make menuconfig and enable all acpi part and swsusp part. Here is my .config, you can load it and just save.

6. do these commands:
# make dep
# make bzImage
# make modules
# make modules_install
# cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.22
# cp System.map /boot/System.map-2.4.22
# mkinitrd -f /boot/initrd-2.4.22.img 2.4.22

7. modify your lilo.conf or grub.conf, add your kernel in and remeber give a kernel parameter: resume=/dev/hda6

title Red Hat Linux (2.4.22 acpi swsusp)
root (hd0,4)
kernel /boot/vmlinuz-2.4.22 ro root=/dev/hda5 resume=/dev/hda6
initrd /boot/initrd-2.4.22.img


My SWAP partition is /dev/hda6, replace this value with your setting.

8. reboot your system and check this kernel work properly or not. In my machine, I can't use any HID input devices like joystick or usb mouse. If you know why, please kindly tell me how to solve it.

9. install acpid
# rpm -Uvh acpid-1.0.2-1.i386.rpm
# chkconfig --level 2345 acpid on

10. install suspend.sh
# sh suspend.sh --install

11. install smart link modem drivers:
# tar zxvf slmodem-2.9.2.tar.gz -C /tmp/
# cd /tmp/ ; make ; make install

11a. download my init file and enable it:
# cp slmodemd /etc/init.d/
# chmod 755 /etc/init.d/slmodemd
# chkconfig --add slmodemd
# chkconfig --level 2345 slmodemd on
# service slmodemd start

12. Modify settings:

after reference Mr. Namaru's website, I have modified my config files. You can just download it and put it in proper place.

a. acpid's action scripts, please put in /etc/acpi/actions/ and chmod 755 /etc/acpi/actions/*:
acpi.sh
powerbutton.sh

b. acpid's action scripts, please put in /etc/acpi/events/:
acpi.conf
buttonsuspend
powerbutton.conf

c. edit /etc/rc.local and add these lines:
# add asus acpi drivers
modprobe asus_acpi thermal
if [ -f /proc/acpi/ac_adapter/*/status ] ; then
ADAPTERFILE="/proc/acpi/ac_adapter/*/status"
else
ADAPTERFILE="/proc/acpi/ac_adapter/*/state"
fi
cat $ADAPTERFILE | grep on-line > /dev/null
if [ "$?" = "0" ] ; then
hdparm -S 120 /dev/hda > /dev/null
echo 15 > /proc/acpi/asus/brn
else
hdparm -S 12 /dev/hda > /dev/null
echo 5 > /proc/acpi/asus/brn
fi

# install Smart Link modem drivers
modprobe slamr slusb

d. replace /etc/suspend.conf with my one

e. Add acpi support on boot, download my file and put it in /usr/local/bin/:
# cp acpi.restart /usr/local/bin/
# chmod 755 /usr/local/bin/acpi.restart

f. Try suspend:
# /usr/local/sbin/hibernate

If suceed(I have suceed...), reboot your laptop again.

It quite cool to do hibernate, you can just press Fn+F1 to suspend(hibernate) and press power button to shutdown.

But note, after recovery from suspend. Don't insert any usb devices!!! It will crash immediately. I try to edit /etc/suspend.sh but useless. It will just crash...

# This is additional part I just found!!! Your synaptic touchpad can do scroll!
13. Download synaptic driver from http://tuxmobil.org/touchpad_driver.html
# tar zxvf synaptics-0.11.3.tar.gz -C /tmp/
# cp /tmp/synaptics/synaptics_drv.o /usr/X11R6/lib/modules/input/

Edit your /etc/X11/XF86Config and do these things:
a. add following line into your Section "Module"
Load "synaptics"

b. add following parts into your Section "InputDevice"
Section "InputDevice"
Driver "synaptics"
Identifier "Mouse[1]"
Option "Device" "/dev/psaux"
Option "Edges" "1900 5400 1800 3900"
Option "Finger" "25 30"
Option "MaxTapTime" "20"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "MinSpeed" "0.02"
Option "MaxSpeed" "0.18"
Option "AccelFactor" "0.0010"
# Option "Repeater" "/dev/ps2mouse"
# Option "SHMConfig" "on"
EndSection

c. In Section "ServerLayout" replace the CorePointer with following line:
InputDevice "Mouse[1]" "CorePointer"

d. restart your X, open an browser and drag your finger with right edge. You could "scroll" your browser. Cool!

# Thanks to HOM

I updated my .config and remake kernel. It works great now!!!

留言

  1. 下午根據的提供的步驟來安裝,還是掛點^^..., grub 改完,reboot完就game over了.
    我的機型(ASUS Z2B):P31.06,384MB SDRAM,40GHD,14.1 inches LCD,8x DVD drive,56Kbps Modem,Realtek 8139 NIC,晚上再來奮鬥一次

    回覆刪除
  2. 哎呀... 聽起來好苦唷... 加油吧. 看樣子我快要有免費的咖啡可以喝了. :D

    (是不是有點兔死狗烹的味道??)

    回覆刪除
  3. 真的很佩服你,可以哪麼快就把這篇文章post出來,今天早上重新安裝看看,如果還是不行的話,哪真的要請你喝咖啡了^^.....

    回覆刪除
  4. 你裝了synaptic的驅動沒有? 只要在最右邊的邊緣拉來拉去就有滑鼠滾輪的功能. 目前我沒有必要使用羅技鼠了. :D

    正在嚐試2.6.0 test9... 不知道會不會好一點.

    回覆刪除
  5. 說實在的,我還真用不慣touchpad,沒有滑鼠可以用,實在不習慣,還有我家的BUFFALO 無線網卡還是不能用,今天再去找看看有無驅動可用~~....

    回覆刪除
  6. 滑鼠終於可以用了,果然是跟kernel有關,把CONFIG_USB_UHCI_ALT,CONFIG_USB_OHCI 這兩個拿掉就ok了!!

    回覆刪除
  7. 經過晚上的苦戰,修改完GRUB重新開機,太感動了,終於新的kernel可以用了,桌面上綠色的電池終於又出現了,不過問題跟你一樣,羅技USB的滾輪滑鼠,不能用,只有TouchPad有反應~~....

    回覆刪除
  8. 搞了幾天,發現我的pcmcia根本沒起來,快瘋了,哈哈!!

    回覆刪除

張貼留言

這個網誌中的熱門文章

大車人生: Yamaha FZ6N更換TPS、火星塞以及引擎調校

[鳳梨外貿社] 1988 Austin Mini Automatic 奧斯丁 迷你上架銷售

PSA Citroen C5 Stereo Upgrade - from RD3 to RD45 (applied to Peugeot 307SW, Citroen XSara / C5 / C8, Berlingo)