Search:  
Gentoo Wiki

Asus_L5800C

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

Contents

General

Image:Asus l5800.jpg

This guide is about how to install Linux on the Asus L5800C laptop. There are a number of L5 editions that will have comparable configurations as well so this guide might be helpfull for them too. Asus does not seem to be actively supporting Linux on their laptops so be carefull!

For decent hardware support on this laptop using a 2.6.xx kernel is recommended. Using a 2.4.xx kernel requires a lot of patches and will even then limit the support. Even the earliest 2.6 kernels do not support all the hardware correctly.

Hardware overview

CPUIntel Pentium4 2.4-2.8 Ghz
MotherboardSiS 648 + 962
Floppy disk
Hard diskIDE UDMA-100 40-80 Gb.
Cd-romIDE, DVD 8x of DVD 8x & CD-RW 24/10/24 combo or DVD-RW 1/16/10/8/24
VideoATI Mobility Radeon 9000 with TV-out and external monitor port
Display15" TFT SXGA with default 1400 x 1050 px resolution, supports up to 1600 x 1200 px.
PC Card2x Type II or 1x Type III
CardreaderENE Technology Inc CB710 Memory Card Reader Controller
(supports: Secure Digital, Multi-Media Card, Memory Stick, Memory Stick Select, Memory Stick Duo)
LAN3Com Corporation 3c940 10/100/1000Base-T
WIFIBroadcom Corporation BCM4303 802.11b Wireless LAN Controller
ModemSiS AC'97 Modem
USB5 ports, USB 1.1 and 2.0
FireWire1 port
Infrared1 port, IrDA v1.1
Parallel1 port, EPP/ECP
Serial (COM)1 port
Audio1 Line In, 1 Line Out, 1 Microphone, 1 Optical out, AC'97
Hotkeys4 programmable buttons, FN-keys

BIOS

You may reach the Award-BIOS with F2. When hitting ESC you can choose between HD, DVD-ROM, and a floppy to boot.

Video

Relevant hardware:

Console

The framebuffer support for radeonfb does not work for kernels from 2.4.22 on, the display switches to blank and never comes back, earlier kernels did not even react to any settings that were tried. This seems to be more of a problem with the display which you can read more about in the section Xorg. Luckily, vesafb works with 1400x1050 (vga=834)

In newer 2.6.x kernels, the new radeonfb driver does work (tested with a 2.6.9-gentoo kernel).

For instructions on installing FrameBuffer and BootSplash read: Fbsplash

Xorg

There appears to be a bug in the BIOS versions previous to 207. This bug will switch the X server to the external display when using the official ATI drivers for linux. A BIOS upgrade from the Asus download section will fix this.

An other option is using Xorg's internal radeon driver or even the vesa driver for general video card support. In the newest XFree86 and Xorg versions the radeon driver works without patching because of the bug noted above. If you have to use an older (4.3.0) version, you are going to have to use the vesa driver. Disadvantage of the radeon and vesa driver is that it does not have 3D support. The AGP support and such is also not as good as the official ati-drivers.

Bescides that, Xorg works fine. Some xorg.conf settings:

File: xorg.conf :: Tochpad
# Touchpad - Synaptics driver
Section "InputDevice"
    Driver      "synaptics"
    Identifier  "Touchpad"
    Option      "Device"       "/dev/input/event1"
    Option      "Protocol"     "event"
    Option      "LeftEdge"     "1900"
    Option      "RightEdge"    "5400"
    Option      "BottomEdge"   "1800"
    Option      "TopEdge"      "3900"
    Option      "FingerLow"    "25"
    Option      "FingerHigh"   "30"
    Option      "MaxTapTime"   "180"
    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
File: xorg.conf :: LCD
Section "Monitor"
    Identifier  "LCD"
    HorizSync   31.5 - 91.1
    VertRefresh 50 - 100
    Option "DPMS"
EndSection
File: xorg.conf :: Video card

This section uses the official ati-drivers.

#  ATI device section
Section "Device"
    Identifier                          "ATI Graphics Adapter"
    Driver                              "fglrx"
#  generic DRI settings
#  disable PnP Monitor
    #Option                              "NoDDC"
#  disable/enable XAA/DRI
    Option "no_accel"                   "no"
    Option "no_dri"                     "no"
#  misc DRI settings
    Option "mtrr"                       "off" # disable DRI mtrr mapper, driver has its own code for mtrr
#  FireGL DDX driver module specific settings
#  Screen Management
    Option "DesktopSetup"               "0x00000100"
    Option "MonitorLayout"              "LVDS, AUTO"
    #Option "MonitorLayout"              "LVDS, STV"
    Option "IgnoreEDID"                 "off"
    Option "HSync2"                     "31.5"
    Option "VRefresh2"                  "50 - 70"
    #Option "HSync2"                     "unspecified"
    #Option "VRefresh2"                  "unspecified"
    Option "ScreenOverlap"              "0"
#  TV-out Management
    Option "NoTV"                       "no"
    Option "TVStandard"                 "PAL-B"
    Option "TVHSizeAdj"                 "0"
    Option "TVVSizeAdj"                 "0"
    Option "TVHPosAdj"                  "0"
    Option "TVVPosAdj"                  "0"
    Option "TVHStartAdj"                "0"
    Option "TVColorAdj"                 "0"
    Option "GammaCorrectionI"           "0x00000000"
    Option "GammaCorrectionII"          "0x00000000"
#  OpenGL specific profiles/settings
    Option "Capabilities"               "0x00000000"
#  Video Overlay for the Xv extension
    Option "VideoOverlay"               "on"
#  OpenGL Overlay
# Note: When OpenGL Overlay is enabled, Video Overlay
#       will be disabled automatically
    Option "OpenGLOverlay"              "off"
#  Center Mode (Laptops only)
    Option "CenterMode"                 "off"
#  Pseudo Color Visuals (8-bit visuals)
    Option "PseudoColorVisuals"         "off"
#  QBS Management
    Option "Stereo"                     "off"
    Option "StereoSyncEnable"           "1"
#  FSAA Management
    Option "FSAAEnable"                 "no"
    Option "FSAAScale"                  "1"
    Option "FSAADisableGamma"           "no"
    Option "FSAACustomizeMSPos"         "no"
    Option "FSAAMSPosX0"                "0.000000"
    Option "FSAAMSPosY0"                "0.000000"
    Option "FSAAMSPosX1"                "0.000000"
    Option "FSAAMSPosY1"                "0.000000"
    Option "FSAAMSPosX2"                "0.000000"
    Option "FSAAMSPosY2"                "0.000000"
    Option "FSAAMSPosX3"                "0.000000"
    Option "FSAAMSPosY3"                "0.000000"
    Option "FSAAMSPosX4"                "0.000000"
    Option "FSAAMSPosY4"                "0.000000"
    Option "FSAAMSPosX5"                "0.000000"
    Option "FSAAMSPosY5"                "0.000000"
#  Misc Options
    Option "UseFastTLS"                 "2"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "yes"
    Option "ForceGenericCPU"            "no"
    BusID "PCI:1:0:0"
    Screen 0
EndSection
File: xorg.conf :: Screen
Section "Screen"
    Identifier  "Screen0"
    Device      "ATI Graphics Adapter"
    Monitor     "LCD"
    DefaultDepth 24

    Subsection "Display"
        Depth       24
        Modes       "1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480" "1600x1200"
        ViewPort    0 0  # initial origin if mode is smaller than desktop
#        Virtual     1400 1050
    EndSubsection
EndSection
File: xorg.conf :: ServerLayout

This section will make the toucpad the CorePointer. Xorg will use the touchpad and external mouse when present. The X server will however also start when there is no mouse present and only use the touchpad.

Section "ServerLayout"
    Identifier  "Server Layout"
    Screen "Screen0"
    InputDevice "Mouse1" "SendCoreEvents"
    InputDevice "Touchpad" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Audio

Relevant hardware:

The built-in sound card is an AC'97 card. This is supported by the Intel i8x0 driver.

Linux Kernel Configuration: Audio
Device Drivers  --->
   Sound  --->
      <*> Sound card support
          Advanced Linux Sound Architecture  --->
             <*> Advanced Linux Sound Architecture
                 PCI devices  --->
                    <*> Intel i8x0

NOTE: the card support using the Microphone jack as additional output, you need to toggle the appropriate control off in order to use the Mic (Mic As Center/LFE)

QUESTION: did anyone handle to make the rear speakers (the one on the bottom/center/rear of the laptop) work ?

Network controller

See this guide.

WiFi

Relevant hardware:

See the Broadcom 43xx article.

Hard disk and DVD

Relevant hardware:

IDE Controller

The IDE controller is a SiS 5513 chipset.

Linux Kernel Configuration: IDE Controller
Device Drivers  --->
   ATA/ATAPI/MFM/RLL support  --->
      <*> ATA/ATAPI/MFM/RLL support
      <*>   Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
      <*>     Include IDE/ATA-2 DISK support
      [*]       Use multi-mode by default
      <*>     Include IDE/ATAPI CDROM support
      <*>     generic/default IDE chipset support
      [*]     PNP EIDE support
      [*]     PCI IDE chipset support
      [*]       Sharing PCI IDE interrupts support
      [*]       Generic PCI bus-master DMA support
      [*]         Use PCI DMA by default when available
      <*>         SiS5513 chipset support

There seems to be something strange going on with the support of the IDE controller which creates unexplainable I/O errors. This results in a beep and a halt and restart of the hard disk or DVD. This does not appear to do any damage but is quite annoying. Because it happens in irregular intervals (sometimes a couple of times an hour, sometimes it doesn't happen for days) and cannot be linked to a specific application, use or load not much can be done about it, I guess.

Devices

For some strange reason Asus connects the DVD player the the primary IDE controller and the hard disk to the secondary. This means the DVD player will show up as /dev/hda and the hard disk is /dev/hdc.

The optimal hdparm settings to improve data transfer speeds are:

disc0_args="-c1 -d1 -u1 -m16"
cdrom0_args="-c1 -d1 -u1"

Device Drivers --->

  ATA/ATAPI/MFM/RLL support  --->
     <*> ATA/ATAPI/MFM/RLL support
     <*>   Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
     <*>     Include IDE/ATA-2 DISK support
     [*]       Use multi-mode by default
     <*>     Include IDE/ATAPI CDROM support
     <*>     generic/default IDE chipset support
     [*]     PNP EIDE support
     [*]     PCI IDE chipset support
     [*]       Sharing PCI IDE interrupts support
     [*]       Generic PCI bus-master DMA support
     [*]         Use PCI DMA by default when available
     <*>         SiS5513 chipset support

USB

Relevant hardware:

The five USB ports on the side and back of the laptop support USB 1.0 and 2.0.

Linux Kernel Configuration: USB
Device Drivers  --->
   USB support  --->
      <*> Support for Host-side USB
      <*>   EHCI HCD (USB 2.0) support
      <*>   OHCI HCD support

FireWire

Relevant hardware:

Linux Kernel Configuration: FireWire
Device Drivers  --->
   IEEE 1394 (FireWire) support  --->
       <*> IEEE 1394 (FireWire) support
       <*>   OHCI-1394 support

Infrared

Supposedly works. More information needed.

Modem

Relevant hardware:

The modem seems to work with the driver for the Smart Link modem (slmodem). The slmodem driver also depends on working soudcard support through ALSA. See the Audio section for more information on configuring it.

To install this driver in Gentoo, use the following command:

emerge net-dialup/slmodem


dmesg output:

slamr: SmartLink AMRMO modem.
slamr: probe 1039:7013 SiS630 card...
slamr: mc97 codec is SIL27
slamr: slamr0 is SiS630 card.
devfs_mk_dev: could not append to parent for slamr0

PC Card

See this guide. The Silicon Integrated Systems [SiS] SiS961/2 SMBus Controller is yenta-compatable.

Touchpad

Itsdfd is a Synaptics touchpad and the scroll buttons work.

For Xorg the synaptics drivers need to be installed.

In gentoo this can be done with the following command:

emerge x11-misc/synaptics

Memory Card Reader

Relevant hardware:

In the newer kernels this device by Ene Technology Inc seems to be supported. If your lspci sais "unknown device" then you should upgrade your kernel. The above output is made with a 2.6.9 gentoo kernel.

I have not tested it yet though...

Linux Kernel Configuration: Memory Card Reader
Device Drivers  --->
   SCSI device support  --->
      <*>   SCSI generic support
      [*]   Probe all LUNs on each SCSI device

ACPI

The Asus L5800C does not use any APM stuff. It only uses ACPI.

Linux Kernel Configuration: ACPI
Power management options (ACPI, APM)  --->
   [*] Power Management support
       ACPI (Advanced Configuration and Power Interface) Support  --->
          [*] ACPI Support
          <*>   AC Adapter
          <*>   Battery
          <*>   Button
          <*>   Fan
          <*>   Processor
          <*>     Thermal Zone
          <*>   ASUS/Medion Laptop Extras
       CPU Frequency scaling  --->
          [*] CPU Frequency scaling
          <*> Intel Pentium 4 clock modulation

CPU Frequency scaling

After activating the CPU Frequency scaling features in the kernel the speedfreq program can be used to set the CPU speed.

To install this program in gentoo:

emerge sys-apps/speedfreq

Stand-by / Software Suspend / Suspend to disk

Official Asus documents say the laptop supports Stand-by, Suspend to Disk and Suspend to RAM.

Software Suspend 2 works. It however does not work with FBsplash (patches are available for this) and the official ATI drivers yet. Use the internal ati drivers for Xorg or shutdown & restart the X server when Software Suspending.

For setting up Software Suspend, read the following:

Battery

The following setting will give you about 5% more battery time:

echo "1" > /proc/sys/vm/laptop_mode

Use only when running on the battery because this will reduce performance.

LED's and buttons

Use these items for the events of acpid:

AC adapterac_adapter.*
IRdA buttonhotkey HOTK 0000004c.*
Hotkey: Personhotkey HOTK 0000005c.*
Hotkey: Emailhotkey HOTK 00000050.*
Hotkey: Internethotkey HOTK 00000051.*
Hotkey: Powerhotkey HOTK 00000052.*
Power buttonbutton/power.*
Sleep button (Fn + F1)button/sleep.*
LCD Backlight up button (Fn + F5)DO NOT USE (1)
LCD Backlight down button (Fn + F6)DO NOT USE (1)
LCD Backlight on/off button (Fn + F7)DO NOT USE (1)
LCD / External display / TV-out switch button (Fn + F8)hotkey HOTK 00000061.*hotkey HOTK 00000064.*hotkey HOTK 00000065.*
Sound on/off button (Fn + F10)hotkey HOTK 00000032.*
Sound volume down button (Fn + F11)hotkey HOTK 00000031.*
Sound volume up button (Fn + F12)hotkey HOTK 00000030.*
Cd-rom previous buttonNOT SUPPORTED
Cd-rom next buttonNOT SUPPORTED
Cd-rom stop buttonNOT SUPPORTED
Cd-rom play/pauze buttonNOT SUPPORTED

(1) = These functions are supported directly by the kernel when ASUS/Medion Laptop Extras is enabled. No need to configure them manually

Other powermanagement

Check out these documents:

Appendix A: lspci

Appendix B: kernel configuration

Appendix C: links

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

Last modified: Sat, 20 Sep 2008 23:42:00 +0000 Hits: 2,036