Asus G1S
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] Little Overview
| Component | Status | Notes |
| ACPI | works | Asus Extras available (see below) |
| Keyboard | works | see below |
| GeForce 8600M GT | works (xorg-x11 & nvidia-drivers) | framebuffer not tested |
| WLAN | works (iwl4965) | since 2.6.24 integrated in the kernel |
| Gigabit Ethernet | works | Realtek 8169 gigabit ethernet support |
| Sound | works | alsasound with hda_intel module |
| Touchpad | works | See below |
| Intel Turbo Memory | not working | no ideas at time how this get to work |
| PCMCIA | not available | |
| ExpressCard | works | |
| IEEE 1394 | not tested but should work | ohci1394 |
| USB Camera | works | @ see below |
| xD Picture CardReader | not tested | |
| MMC/SD Card Reader | works | SDHCI & ricoh_mmc |
| Bluetooth | works | |
| LED's (Gaming & Touchpad & Mail) | works | asus-laptop & lapsus (@see ACPI) |
| Asus OLED device | works | asus_oled-0.0.3 |
| SoftLink 56K Modem | works | see below |
[edit] Output of lspci
arko ~ # lspci 00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 03) 00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 03) 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03) 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03) 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03) 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03) 00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03) 00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03) 00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03) 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03) 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03) 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03) 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3) 00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03) 00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03) 00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03) 01:00.0 VGA compatible controller: nVidia Corporation GeForce 8600M GT (rev a1) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01) 03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61) 06:00.0 Memory controller: Intel Corporation Turbo Memory Controller (rev 01) 07:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02) 08:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05) 08:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22) 08:01.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12) 08:01.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)
[edit] Output of lsusb
arko ~ # lsusb Bus 007 Device 003: ID 0b05:1712 ASUSTek Computer, Inc. BT-183 Bluetooth 2.0+EDR adapter Bus 007 Device 001: ID 0000:0000 Bus 006 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 Bus 005 Device 002: ID 046d:c01e Logitech, Inc. MX518 Optical Mouse Bus 005 Device 001: ID 0000:0000 Bus 001 Device 002: ID 174f:5a35 Syntek <-- 1.3 MegaPixel USB Camera (see Below) Bus 001 Device 003: ID 0b05:1726 ASUSTek Computer, Inc. Laptop OLED Display Bus 001 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000
[edit] ACPI
For the ACPI support we need the follow kernel settings and programs.
| Linux Kernel Configuration: Power managment options |
[*] Power Management support [*] Suspend to RAM and standby [*] Hibernation (aka 'suspend to disk') (/dev/<swap>) Default resume partition [*] CPU idle PM support |
| Linux Kernel Configuration: Power managment options ---> Enhanced Hibernation (TuxOnIce) |
<*> File Allocator <*> Swap Allocator () Default pre-hibernate command () Default post-resume command <*> Compression support <*> Userspace User Interface support (/usr/local/sbin/tuxonice_fbsplash) Default userui program location [*] Allow Keep Image Mode [*] Replace swsusp by default [*] Checksum pageset2 (25) Default waiting time for emergency boot messages < > Test pageflags |
| Linux Kernel Configuration: Power managment options ---> ACPI (Advanced Configuration and Power Interface) Support |
[*] Deprecated /proc/acpi files [*] Deprecated power /proc/acpi directories [*] Future power /sys interface [*] Deprecated /proc/acpi/event support <*> AC Adapter <*> Battery <*> Button <*> Video <*> Fan -*- Dock <*> Processor <*> Thermal Zone < > ASUS/Medion Laptop Extras |
| Linux Kernel Configuration: Power managment options ---> CPU Frequency scaling |
[*] CPU Frequency scaling [*] Enable CPUfreq debugging <*> CPU frequency translation statistics [*] CPU frequency translation statistics details Default CPUFreq governor (conservative) ---> -*- 'performance' governor <*> 'powersave' governor <*> 'userspace' governor for userspace frequency scaling <*> 'ondemand' cpufreq policy governor -*- 'conservative' cpufreq governor *** CPUFreq processor drivers *** <*> ACPI Processor P-States driver ** shared options *** [*] /proc/acpi/processor/../performance interface (deprecated) |
And now we need to activate the asus-laptop module. For that we need to include two other packages, too.
| Linux Kernel Configuration: Device Drivers ---> Graphics support ---> Backlight & LCD device support |
--- Backlight & LCD device support <*> Lowlevel Backlight controls |
| Linux Kernel Configuration: LED devices |
[*] LED Support <*> LED Class Support |
This option here is only avalible by kernels >= 2.6.24
| Linux Kernel Configuration: Device Drivers --> Misc devices |
<M> Asus Laptop Extras (EXPERIMENTAL) |
After you compiled the kernel and restarted you will see that the udev has loaded the asus_laptop module. Now you can go and install the lapsus daemon or use the acpi4asus package out of portage.
[edit] lapsus
1. I have tested it only with the lapsus daemon and kde kicker applet which are shipped with lapsus.
2. To install the lapsus over a portage overlay you have to create one of the ebuild files that are listed here.
http://forums.gentoo.org/viewtopic-t-547055.html
| File: /etc/make.conf |
PORTDIR_OVERLAY="/usr/local/portage/lapsus" |
# mkdir /usr/local/portage/lapsus/app-laptop/lapsus # cp lapsus-9999.ebuild /usr/local/portage/lapsus/app-laptop/lapsus # echo "app-laptop/lapsus * ** ~*" >> /etc/portage/package.keywords # ebuild /usr/local/portage/lapsus/app-laptop/lapsus/lapsus-9999.ebuild digest # emerge -av app-laptop/lapsus # usermod -a -Glapsus <user> ### Start the daemon # start-stop-daemon -S -b -g lapsus -m -p /var/run/lapsusd.pid --exec /usr/sbin/lapsusd -- --no-daemon ### Stop the daemon # start-stop-daemon -K -p /var/run/lapsusd.pid
To sart the daemon automatically you can add this to local start/stop config files
| File: /etc/conf.d/lapsusd |
# /etc/conf.d/lapsusd config file for /etc/init.d/lapsusd # # Lapsusd options # #LAPSUSD_OPTS="" #LAPSUSD_PID_FILE="/var/run/lapsusd.pid" #LAPSUSD_EXEC="/usr/sbin/lapsusd" #LAPSUSD_GROUP="lapsus" |
| File: /etc/init.d/lapsusd |
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /etc/init.d/lapsusd,v 1.00 2008/05/25 01:15:00 j0inty Exp $
LAPSUSD_PID_FILE="${LAPSUSD_PID_FILE:-/var/run/lapsusd.pid}"
LAPSUSD_EXEC="${LAPSUSD_EXEC:-/usr/sbin/lapsusd}"
LAPSUSD_GROUP="${LAPSUSD_GROUP:-lapsus}"
depend() {
need dbus acpid
}
start() {
if [ ! -x ${LAPSUSD_EXEC} ]; then
eerror "Can't find ${LAPSUSD_EXEC} or it is not executable"
return 1
fi
ebegin "Starting ${SVCNAME}"
start-stop-daemon -S -b -g ${LAPSUSD_GROUP} -m -p ${LAPSUSD_PID_FILE} --exec ${LAPSUSD_EXEC} -- --no-daemon ${LAPSUSD_OPTS}
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
if [ -f ${LAPSUSD_PID_FILE} ]; then
start-stop-daemon -K -p ${LAPSUSD_PID_FILE}
else
eerror "Can't find ${LAPSUSD_PID_FILE} trying to stop ${SVCNAME} over his process name."
start-stop-daemon -K -n ${SVCNAME}
fi
eend $?
}
restart() {
svc_stop
svc_start
}
|
Now you can start the lapsus daemon over the start command.
# /etc/init.d/lapsusd start
To start the daemon in the default runlevel do
# rc-update -a lapsusd default
For KDE Users:
Now you can add a kicker applet that called Asus Laptop. Here you have to configure which feature you want and then you can see the tray buttons to control the LED/Displays/Sound/and soon.
[edit] acpi4asus
For the 2.6.24 kernel and the acpi4asus-0.41.ebuild you need a patch which can found here.
http://bugs.gentoo.org/show_bug.cgi?id=195891
[edit] Asus LCM (asus_oled)
The ASUS LCM device works pretty cool. Under the link below you will find a kernel module.
http://lapsus.berlios.de/asus_oled.html
# tar -xvf asus_oled-0.0.3.tar.bz2 # cd asus_oled-0.0.3 # make # su # make install # modprobe asus_oled # cat tux_r2.txt > /sys/class/asus_oled/oled_1/picture
That was it ;). More informations can find in the readme file.
[edit] Keyboard
This configuration example is for german keyboards. If you have another keyboard change the "de" to your code.
| File: /etc/conf.d/keymaps |
KEYMAP="de-latin1" |
| File: /etx/X11/xorg.conf |
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "CoreKeyboard"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
Option "XkbVariant" "nodeadkeys"
Option "XkbOptions" "altwin:super_win"
EndSection
|
[edit] Sound (snd_hda_intel)
The soundcard is easy to install. Simply add the snd_hda_intel support for alsa in your kernel. For more informations about alsa you can read tho howto posted here on gentoo-wiki.
http://gentoo-wiki.com/HOWTO_ALSA
[edit] SoftLink 56K Modem (snd_intel8x0m)
For the Modem you need to follow the ALSA part of the slmodem howto.
http://gentoo-wiki.com/HOWTO_slmodem#Using_ALSA_drivers
arko j0inty # aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Intel [HDA Intel], device 0: ALC861VD Analog [ALC861VD Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: Intel [HDA Intel], device 6: Si3054 Modem [Si3054 Modem] Subdevices: 0/1 Subdevice #0: subdevice #0
| File: /etc/conf.d/slmodem |
DEV=/dev/ttySL0 COUNTRY=GERMANY GROUP=dialout LN_DEV=/dev/modem NICE=-6 MODULE=alsa HW_SLOT=modem:0 |
I use it with KPPP and it works very fine.
[edit] Touchpad
| File: /etc/make.conf |
INPUT_DEVICES="mouse keyboard evdev synaptics" |
| File: /etc/X11/xorg.conf |
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
Option "BlankTime" "5"
Option "StandbyTime" "10"
Option "SuspendTime" "20"
Option "OffTime" "30"
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1" "AlwaysCore"
EndSection
## Synaptics Touchpad
Section "InputDevice"
Identifier "Mouse0"
Driver "synaptics"
Option "Device" "/dev/input/event6"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
Option "SHMConfig" "on"
EndSection
## Logitech Mouse MX518
Section "InputDevice"
Identifier "Mouse1"
Driver "evdev"
Option "Emulate3Buttons" "no"
Option "Buttons" "10"
Option "ZAxisMapping" "4 5"
Option "Dev Name" "Logitech USB-PS/2 Optical Mouse"
Option "evBits" "+1-2"
Option "keyBits" "~272-287"
Option "relBits" "~0-2 ~6 ~8"
Option "Pass" "3"
EndSection
|
[edit] MX518 only
| File: /etc/X11/Xmodmap |
pointer = 1 2 3 4 5 8 9 6 7 10 11 |
[edit] KDE
For KDE you can install ksynaptics which works very well.
emerge -av ksynaptics
[edit] USB Camera
[edit] syntekdriver (not working atm)
For this camera you will find a driver, but this doesn-'t create the /dev/video devices at time. :(
http://syntekdriver.sourceforge.net/
I tested it with the version 1.3.1 from the svn repository but I can't get the camera to work.
stk11xx: Syntek USB2.0 webcam driver startup usbcore: registered new interface driver usb_stk11xx_driver stk11xx: v1.3.1 : Syntek USB Video Camera
This modules are need by the syntekdriver
# modprobe video-dev # modprobe compat_ioctl32
[edit] linux-uvc
With the UVC Linux kernel module the camera is working.
#this installs the linux-uvc driver # svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk linux-uvc # cd linux-uvc # make # su # make install # modprobe -v uvcvideo
[edit] luvcview
This is a Test program where you can also make some settings.
# This part installs luvcview # wget http://mxhaard.free.fr/spca50x/Investigation/uvc/luvcview-20070512.tar.gz # tar -xvf lucview-20070512.tar.gz # cd luvciew # make # luvcview -f yuv -w
I have tested it with skype and some other v4l applications and it works fine.
