Search:  
Gentoo Wiki

Asus_A3H-5015

This article is part of the Hardware series.
Laptops TV Tuner Cards Wireless Servers Storage Other Hardware Motherboards Related

Contents

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 :)

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)

ACPI

see gentoo-wiki ACPI manual. works good :)

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

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

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)

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

Wireless

See the Broadcom 43xx article.

Graphic Card

See this HowTo.

Retrieved from "http://www.gentoo-wiki.info/Asus_A3H-5015"

Last modified: Wed, 16 Jul 2008 09:30:00 +0000 Hits: 13,198