HARDWARE Asus A3H 5015

From Gentoo Linux Wiki

Jump to: navigation, search
This article is part of the Hardware series.
Laptops TV Tuner Cards Wireless Servers Storage Other Hardware Motherboards Related

Contents

[edit] Introduction

got my laptop without OS and without thinking burned Gentoo 2005.1-r1 live CD
then downloaded 2.6.14.4 kernel from www.kernel.org
and fun could start :)

[edit] Hardware

ProcessorCeleron 1.6GHz-M380, CACHE MEMORY: 1MB
RAM512MB DDR2 533
Hard Drive60GB, 4200 rpm
Display15" XGA Colour Shine
Multi-media DriveDVD-RW 8x double layer
Ports4xUSB2.0, 1x PCMCIA, RJ11, RJ45, VGA+TV, Audio, Mic, 1xIEEE, IrDA, Card Reader
Network10/100 Mbps
Wireless Connectivity802.11b/g WLAN

Code: lspci
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 04)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04)
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 04)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
01:01.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b3)
01:01.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 08)
01:01.2 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 17)
01:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 08)
01:03.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)

[edit] ACPI

see gentoo-wiki ACPI manual. works good :)

[edit] Hotkeys

this notebook has some hotkeys, which you have to define
i have read a lot of documentation, but nothing worked fine, so i started fixing the bugs...
first you have to modify the kernel

Linux Kernel Configuration: Enable ALSA support
-> Power management options (ACPI, APM)
  -> ACPI (Advanced Configuration and Power Interface) Support
    [*] ACPI Support
      <M>   ASUS/Medion Laptop Extras

after compiling do

modprobe asus_acpi

WARNING !!! : asus_acpi module works not good with kde3.5, i don't know where the problem is, but if you load the module before starting kde, causes some problems (dmesg says something about LCD). because of this, i recommend to run it manually after kde starts, or put it into some script of kde.

and emerge acpi for asus

emerge acpi4asus

add it to the default run-level and run

rc-update add acpid default
/etc/init.d/acpid start

some tutorials said, that you have to edit /etc/acpi/events/default, but it didn't work, so you have to edit /etc/acpi/default.sh
my configuration looks like this

Code: /etc/acpi/default.sh
#!/bin/sh
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-1.0.4-default.sh,v 1.1 2005/03/15 19:15:53 ciaranm Exp $

# Default acpi script that takes an entry for all actions

#logger "parameters: $1 $2 $3 $4"

#set $*

group=${1/\/*/}
action=${1/*\//}
hotkeys=$3

#logger "button-group: $group"
#logger "button-action: $action"

case "$group" in
        button)
                case "$action" in
                        power)  /sbin/init 0
                                ;;
                        *)      logger "ACPI action $action is not defined"
                                ;;
                esac
                ;;

        hotkey)
                case "$hotkeys" in
                        00000032)       #mute Front
                                amixer sset Front,0 toggle
                                ;;
                        00000031)       #volume down
                                amixer sset Front,0 5%-,5%- unmute
                                ;;
                        00000030)       #volume up
                                amixer sset Front,0 5%+,5%+ unmute
                                ;;
                        00000051)       #run firefox
                                DISPLAY=":0" XAUTHORITY="/home/honza801/.Xauthority" su honza801 -c firefox
                                ;;
                        00000050)       #run thunderbird
                                DISPLAY=":0" XAUTHORITY="/home/honza801/.Xauthority" su honza801 -c thunderbird
                                ;;
                        *)      logger "ACPI hotkey $hotkeys action is not defined"
                                ;;
                esac
                ;;

        *)
                logger "ACPI group $group / action $action is not defined"
                ;;
esac

this script is called by the daemon, but not saved in the memory, so the main advantage of editing just this script is, that you don't have to restart the daemon again and again after changing some parameters

[edit] Sound

after few tests i have found, that headphones output doesn't work, it is probably problem of the alsa-drivers. if anybody knows how to fix it, please add it here or mail me
i use alsa-utils

emerge alsa-utils

[edit] kernel builtin support

It's necessary to enable the ALSA support and select the correct device driver:

Linux Kernel Configuration: Enable ALSA support
<*> Advanced Linux Sound Architecture
    PCI devices  --->
    <*> Intel HD Audio

now make the kernel, reboot
after your Gentoo starts

alsalisp (as root)
alsamixer (to unmute channels)

[edit] Network

lspci says, that there is Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
so I tried kernel module 8139cp

<> RealTek RTL-8139 C+ PCI Fast Ethernet Adapter support

but did't work, problem solved using older driver

Linux Kernel Configuration: Setting Network driver
-> Device Drivers
  -> Network device support
    -> Ethernet (10 or 100Mbit)
      <*> RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter support

[edit] Wireless

it seems that there is no support for this BCM4318 chip in the kernel, so download the SP30676.exe, windows 32-bit driver from the intenet, i found one here
use cabextract to unpack the driver

emerge cabextract
cabextract SP30676.exe

i also selected this in the kernel

Linux Kernel Configuration: Wireless network
-> Device Drivers 
  -> Network device support
    -> Wireless LAN (non-hamradio)
      [*] Wireless LAN drivers (non-hamradio) & Wireless Extensions

-> Networking
  <*>   Generic IEEE 802.11 Networking Stack

then install ndiswrapper (if you are using other than distro-kernel, you have to download the source from sourceforge.net)

emerge ndiswrapper
cd <where have you unpacked driver>
ndiswrapper -i bcmwl5.inf
modprobe ndiswrapper
echo ndiswrapper >> /etc/modules.autoload.d/kernel-2.6

i have used wireless-tools to configure the driver

emerge wireless-tools

and linked the init.d script

ln -s /etc/init.d/net.lo /etc/init.d/net.wlan0

heureka, you got it

[edit] Video

Linux Kernel Configuration: Character devices
-> Device Drivers
  -> Character devices
    <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
      <*>   Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver)
        (X) i915 driver

kernel has frame-buffer support

Linux Kernel Configuration: Frame buffer
-> Device Drivers
  -> Graphics support
    <*> Support for frame buffer devices
    [*]   VESA VGA graphics support 
    < >   Intel 830M/845G/852GM/855GM/865G support

None of the intel's drivers doesn't work, i think, so i use just vesa drivers

if you're using lilo, uncomment this line

Code: /etc/lilo.conf
vga=791
[edit] X.Org configuration

this is my /etc/X11/xorg.conf graphic device section example, works fine, intel driver doesn't work

Code: /etc/X11/xorg.conf
Section "Device"
   Identifier   "Card0"
#   Driver      "i810" # if it doesn't work, fall back to "vesa"
   Driver       "vesa"
   BusID        "PCI:0:2:0"
   # increase the RAM, available for the controller
   VideoRam     128
EndSection
Personal tools