HARDWARE Asus W5F
From Gentoo Linux Wiki
Please format this article according to the guidelines and Wikification suggestions, then remove this notice {{Wikify}} from the article
| Laptops • TV Tuner Cards • Wireless • Servers • Storage • Other Hardware • Motherboards • Related |
Contents |
[edit] Gentoo on an Asus W5F NoteBook
This is a short article providing some bits of information helpful for installing Gentoo on the Asus W5F laptop.
[edit] lspci
| Code: output of lspci |
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03) 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02) 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02) 05:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02) 06:03.0 FireWire (IEEE 1394): Ricoh Co Ltd Unknown device 0832 06:03.1 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19) 06:03.2 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 01) 06:03.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a) 06:03.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05) 06:04.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) |
[edit] Sound issue
It looks like W5Fs Intel 82801G (ICH7 Family) Audio controller does not contain a hardware volume control. In order to create such control, do:
1. configure your kernel, removing alsa support:
[edit] Sound
First disable it in the kernel:
| Linux Kernel Configuration: Sound |
Linux Kernel Configuration --->
Device Drivers --->
Sound --->
<*> Sound card support
Advanced Linux Sound Architecture --->
< > Advanced Linux Sound Architecture
|
Run make && make modules_install
Copy your kernel image to the boot directory and reboot
The second step is to emerge and configure alsa
Run emerge alsa-drivers, and edit its configuration file
| Code: nano /etc/modules.d/alsa |
# Alsa kernel modules' configuration file. # ALSA portion alias char-major-116 snd # OSS/Free portion alias char-major-14 soundcore ## ## IMPORTANT: ## You need to customise this section for your specific sound card(s) ## and then run `update-modules' command. ## Read alsa-driver's INSTALL file in /usr/share/doc for more info. ## ## ALSA portion ## alias snd-card-0 snd-interwave ## alias snd-card-1 snd-ens1371 alias snd-card-0 snd-hda-intel alias sound-slot-0 snd-card-0 ## OSS/Free portion ## alias sound-slot-0 snd-card-0 ## alias sound-slot-1 snd-card-1 ## # OSS/Free portion - card #1 alias sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias sound-service-0-12 snd-pcm-oss ## OSS/Free portion - card #2 ## alias sound-service-1-0 snd-mixer-oss ## alias sound-service-1-3 snd-pcm-oss ## alias sound-service-1-12 snd-pcm-oss alias /dev/mixer snd-mixer-oss alias /dev/dsp snd-pcm-oss alias /dev/midi snd-seq-oss # Set this to the correct number of cards. options snd cards_limit=1 |
Reboot again. Now it is time to test your device:
Run "alsamixer", which will not display a volume control, Run "speaker-test -twav", which plays a sound, so alsa is running properly.
Now use "nano ~/.asounrc" in order to create a software volume control
| Code: nano ~/.asoundrc |
pcm.softvolume {
type softvol
slave {
pcm "hw:0,0"
}
control {
name "Master"
card 0
}
}
|
Reboot. Alsamixer should display the software volume control, and speaker-test is now affected by such control.
Configure it so every application uses this software volume control:
| Code: nano ~/.asoundrc |
pcm.softvolume {
type softvol
slave {
pcm "hw:0,0"
}
control {
name "Master"
card 0
}
}
pcm.!default {
type plug
slave.pcm softvolume
}
|
h) emerge gst-plugins-alsa gst-plugins-oss gst-plugins-good
i) reboot
[edit] Intel PRO/Wireless 3945ABG WLAN
The ipw3945 driver seems to work fine. You can follow one of the following topics:
[edit] Configuring X
The following xorg.conf file will set up your video card, mouse and keyboard. Before doing so you need to emerge synaptics:
| Code: touchpad configuration |
|
emerge synaptics |
| Code: nano /etc/X11/xorg.conf |
Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "type1"
Load "speedo"
Load "freetype"
# Load "xtt"
Load "glx"
Load "dri"
EndSection
Section "Files"
Fontpath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/local/"
EndSection
Section "InputDevice"
Identifier "Keyboard"
Driver "kbd"
Option "AutoRepeat" "500 30"
# change here to your keyboard model
Option "XkbModel" "abnt2"
# change here to your keyboard layout
Option "XkbLayout" "br"
Option "XkbVariant" "nodeadkeys"
EndSection
Section "InputDevice"
Identifier "Touchpad"
Driver "synaptics"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "MinSpeed" "0.06"
Option "MaxSpeed" "0.12"
Option "AccelFactor" "0.0010"
Option "SHMConfig" "on"
# Option "Repeater" "/dev/ps2mouse"
EndSection
Section "InputDevice"
Identifier "Mouse"
Driver "mouse"
Option "Protocol" "ImPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons"
EndSection
Section "Monitor"
Identifier "Asus W5F LCD"
HorizSync 31.5 - 82.0
VertRefresh 60
ModeLine "1280x768" 80.14 1280 1344 1480 1680 768 769 772 795 -HSync +Vsync
Option "dpms"
EndSection
Section "Device"
Identifier "Intel 945GM"
Driver "i810"
VideoRam 238848
BusID "PCI:00:02:0"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Intel 945GM"
Monitor "Asus W5F LCD"
DefaultDepth 24 # could also be set to 16, losing image quality but improving performance
Subsection "Display"
Depth 16
Modes "1280x768" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1280x768" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen "Default Screen"
InputDevice "Touchpad" "AlwaysCore"
InputDevice "Mouse" "CorePointer"
InputDevice "Keyboard" "CoreKeyboard"
EndSection
Section "DRI"
Mode 0666
EndSection
|
This config file was based on "http://netster.de/asus_w5f/index.html".
[edit] Software suspend (Hibernate)
Download the patch at www.suspend2.net and apply it against your current kernel (try it even if the patch if for a slightly different kernel release). If the patch is applied without any problems, recompile the kernel with suspend2 and hibernate support:
| Code: kernel options to turn on |
|
{{{2}}}
|
