Archive for the Uncategorized Category

Asus N10Jc : Mendeteksi dual GPU secara otomatis pada Ubuntu 8.10

Posted in Uncategorized on December 28, 2008 by rvshiro

Sebagaimana diketahui, Asus N10Jc memiliki 2 graphics processor units, Intel GMA dan Nvidia 9300.

Nah untuk mendeteksi kedua GPU tadi secara otomatis pada saat kita mengaktifkan Ubuntu, dpt dilakukan melalui script dibawah ini :

$ gedit /etc/init.d/n10jcvideo

isikan dgn script ini  (Copy paste saja, jangan diketik sendiri) :

#!/bin/bash
VIDEO=`/usr/bin/lspci |grep -c nVidia`
if [ “$VIDEO” = 1 ]; then
echo “[Nvidia Switch enabled, using Nvidia xconfig]”
cp -f /etc/X11/xorgNVtest.conf /etc/X11/xorg.conf
else
echo “[Nvidia Switch disabled, using intel xconfig]”
cp -f /etc/X11/xorgIntel.conf /etc/X11/xorg.conf
fi

Setelah itu, ketik perintah berikut :

$ chmod +x /etc/init.d/n10jcvideo

$ ln -s /etc/init.d/n10jcvideo /etc/rc2.d/S12n10jcvideo

Sampai sini, anda membutuhkan 2 xconfigs : 1 untuk Intel dan 1 untuk NVidia.

Untuk Intel, buat file menggunakan nama xorgintel.conf

$ sudo gedit /etc/X11/xorgIntel.conf

Masukkan script dibawah ini (Copy paste saja, jangan diketik sendiri) :

# xorg.conf.failsafe (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type “man xorg.conf” at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section “Module”
Load “i2c”
Load “bitmap”
Load “ddc”
Load “dri”
Load “extmod”
Load “freetype”
Load “glx”
Load “int10”
Load “vbe”
EndSection

Section “Device”
Identifier “Configured Video Device”
Driver “intel”
Option “MonitorLayout” “LVDS,VGA”
Option “DRI” “true”
Option “Clone” “true”
Option “AccelMethod” “EXA”
Option “MigrationHeuristic” “greedy”
VideoRam 229376
Option “CacheLines” “1980”

EndSection

Section “Monitor”
Identifier “Configured Monitor”
EndSection

Section “Screen”
Identifier “Default Screen”
Monitor “Configured Monitor”
Device “Configured Video Device”
EndSection

Kemudian save.
Sedangkan untuk  NVidia, buat file dengan perintah :

$ sudo gedit /etc/X11/xorgNVtest.conf

Isikan dgn script ini (Copy paste saja, jangan diketik sendiri) :

# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type “man xorg.conf” at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section “Files”
EndSection

Section “InputDevice”
Identifier      “Generic Keyboard”
Driver          “kbd”
Option          “CoreKeyboard”
Option          “XkbRules”      “xorg”
Option          “XkbModel”      “pc105”
Option          “XkbLayout”     “us”
EndSection

Section “InputDevice”
Identifier      “Configured Mouse”
Driver          “mouse”
Option          “CorePointer”
Option          “Device”        “/dev/input/mice”
Option          “Protocol”      “ImPS/2”
Option          “ZAxisMapping”  “4 5”
Option          “Emulate3Buttons”       “true”
EndSection

Section “InputDevice”
Identifier      “Synaptics Touchpad”
Driver          “synaptics”
Option          “SendCoreEvents”        “true”
Option          “Device”        “/dev/psaux”
Option          “Protocol”      “auto-dev”
Option          “HorizEdgeScroll”       “0”
Option        “MaxTapTime”    “0”
EndSection

Section “Device”
Identifier      “nVidia Corporation GeForce 9300M GS”

# Enabling the nvidia drivers means that all acceleration processing is done internally
# NVidia provide’s its own GLX module
# NVidia does not use the X server’s DRI stack.
#       Instead, it uses a proprietary method to route call directly to the hardware and provide drect rendering
# Though the only possible driver is nvidia, it is also possible to override NVidia’s methods:
#       by force-enabling AIGLX in “ServerLayout”, loading dri, and enabling DRI in “Device”
#       by enabling XGL (which is a bad idea anyway)
Driver          “nvidia”
# lspci | grep -i nv            <- To find device
Busid           “PCI:3:0:0”

# Adds support for 32-bit rendering on ARGB colorspace windows and pixmaps
# ARGB = alpha, red, green, blue
# AKA you should enable this on the new NVidia driver
Option          “AddARGBVisuals”        “True”
Option          “AddARGBGLXVisuals”     “True”
Option          “NoLogo”                “True”

# Experimental : enable hardware acceleration of the X render extension
# Enabled by default in newer drivers however
Option          “RenderAccel”           “True”

# Enable RGB overlay. (Not available with X composite)
# Also slow with virtual desktops larger than 2046×2047
# Requires depth of 24 or higher
# Requires an NVidia quadro
Option          “Overlay”               “True”

# Improves performance by using OS to notify X to update direct-rendered visuals instead of running through the hardware.
# Enabled by default in newer drivers
Option          “DamageEvents”          “True”

# Disable clipping OpenGL rendering to the root window
Option          “DisableGLXRootClipping”        “True”

# An X server option to disable accel. writes into offscreen video memory
# Might be needed if using AIGLX instead of proprietary NVidia interface
# Probably ignored if using the NVidia method
#Option         “XaaNoOffscreenPixmaps”

# Might cause crashes in older NVidia drivers.
# Forces the driver to allow GLX when composite on the X server is enabled.
# Not necessary on modern X servers; might decrease stability
#Option         “AllowGLXWithComposite”         “True”

# An X server option to allow occluded window pixel data to be remembered
# Caution in enabling. It might be faster to redraw the information than to fetch it
# BackingStore is implemented in a very hackish but memory-efficient way. Therefore, it tends to be slow
Option          “BackingStore”                  “True”

# Use below in conjuction with v-sync (see nvidia-settings)
# v-sync will however cap framerate to a max of 60 fps on most monitors

# Only use with plenty of vram
# Allows the X server to render into the third buffer without waiting for the other two buffers to be cleared
# (buffer swapping happens every fps, for example every 60 times per second)
# This can possibly avoid screen tearing and sudden low fps
# Touchy on 256-MB vram (if you play games with 4x AA), probably ok on 512
Option          “TripleBuffer”                  “True”

Option        “UseDisplayDevice”        “DFP-0”
EndSection

Section “Monitor”
Identifier      “Generic Monitor”
# Power saving mode
Option          “DPMS”
# at start X will automatically probe EDID information of the monitor.
# This can be overridden, but not recommended.
Horizsync       28-96
Vertrefresh     43-60
EndSection

Section “Screen”
Identifier      “Default Screen”
Device          “nVidia Corporation GeForce 9300M GS”
Monitor         “Generic Monitor”
Defaultdepth    24
SubSection “Display”
Modes           “1024×600”
EndSubSection
EndSection

Section “ServerLayout”
Identifier      “Default Layout”
screen          “Default Screen”
Inputdevice     “Generic Keyboard”
Inputdevice     “Configured Mouse”
Inputdevice    “Synaptics Touchpad”

EndSection

Section “Module”
# To understand these comments, understand that there are three methods of running acceleration:
#       XGL, AIGLX, NVidia

# The GLX module provides the hardware OpenGL extensions to the X server
# Through AIGLX, this loads the open source GLX
# Through NVidia, this loads NVidia’s GLX modules (closed source)
Load            “glx”
Load            “dbe”
Load            “extmod”
# The freetype module completely replaces the “type1” module
Load            “freetype”
Load            “i2c”
Load            “bitmap”
Load            “ddc”
Load            “int10”
Load            “vbe”
# DRI = Direct Rendering Infrastructure
# DRI is an X server extensions that allows “3d” acceleration calls to bypass the X server.
#       This leads the term “Direct Rendering” as the calls are routed directly to the hardware
#       This also leads to dramatic speed improvements/increases
# DRI is AIGLX’s response to XGL. However, DRI provides the benefit that the entire screen is compositing as well.
# Loading this module is harmless unless it is enabled in the “Device” section.
# NVidia will not use this module as it’s direct rendering calls are processed internally
Load            “dri”
# Load the mesa software acceleration libraries
#Load           “GLcore”

EndSection

# Specific only to the DRI module.
Section “DRI”
# Allows all users to access DRI
Mode 0666
EndSection

# Transparency = compositing
# Fancy Effects = GLX
# Using compositing with NVidia or AIGLX should incur no performance penalties
# Therefore:
# Disabling composite will disallow compiz, transparency, etc…

Kemudian “save”

Cara berpindah dari 1 GPU ke GPU lain, sebaiknya stlh system shutdown (dimatikan) terlebih dahulu. Pada saat off, ubah/ pilih GPU yg diinginkan. Kemudian aktifkan komputer anda, maka sekarang Ubuntu dalam N10Jc akan otomatis mendeteksi GPU yg digunakan dan akan menggunakan driver yg tepat untuk monitor anda.

Perlu diingat, pada saat anda menggunakan GPU Intel GMA, compizfusion tidak akan befungsi, tetapi batere anda akan lbh hemat 1-2 jam tergantung setting kecerahan (brightness) monitor dan hardware apa yg aktif.

Selamat mencoba

Advertisements

Menyediakan tempat untuk Linux pada Asus N10Jc

Posted in Uncategorized on December 28, 2008 by rvshiro

Asus N10Jc ada notebook keluaran Asus yang berada di kategori antara Netbook dan Notebook. Hal ini disebabkan spek yang dimiliki sebagian besar seperti netbook pada umumnya, tetapi memiliki kualitas yang jauh diatas rata2 netbook yang sudah beredar saat ini. Diantaranya adalah, pemakaian 2 GPU yaitu Intel GMA dan NVidia 9300M GS, 256 MB. Selain itu juga casing yang lebih berkualitas dan Wireless network yg sudah cukup high-end (kelas N, Atheros 9280).

Asus N10Jc, sudah dilengkapi dgn bundled OS yaitu Windows XP yang sudah terinstalasi dalam harddisk (160GB) dengan struktur (foto diambil menggunakan GNU/Linux Gparted dari sourceforge.net):

partisi-n10jc

Partisi 1 (/dev/sda1), Recovery, berisi sistem backup Windows XP.

Partisi 2 (/dev/sda2), berisi OS Windows XP

Partisi 3 (/dev/sda5), berisi data

Keseluruhan harddisk, secara default dari paket, sdh habis terinstall untuk Windows XP.

Untuk menginstal Ubuntu 8.10 dibutuhkan partisi kosong beberapa GB. Karena saya lebih banyak menggunakan Ubuntu dari pada Windows, maka saya berencana me-resize HD yang telah terpakai menjadi 40-an GB untuk XP dan sisanya 100-an GB untuk Ubuntu, tanpa memformat data / system yang ada. Karena apabila diformat, maka ExpressGate yang ada, akan ikut terhapus. Untuk merecovery ExpressGate, harus dilaukan melalui Restore Disc yg disertakan dalam paket N10Jc ini. Restore Disc tersebut bekerja seperti shadow image dan akan mengembalikan stuktur partisi HD seperti semula. ExpressGate ini masih tetap saya butuhkan mengingat akses boot yang cukup cepat dan pemakaian resource yang kecil sehingga sangat membantu apabila kita perlu terkoneksi ke internet dengan segera (booting XP cukup lama)

Untuk keperluan ini, saya membutuhkan software pengubah partisi yang bersifat opensource (seharusnya nggak perlu opensource, yg penting buat saya adalah software legal bukan bajakan), yaitu Gparted yg didapat dari :
http://gparted.sourceforge.net/. Yang dipilih adalah yg LiveCD. Kemudian saya burn. Lalu dimulailah langkah2 untuk  mengubah ukuran XP.

Gparted sangat mudah digunakan. Tinggal pilih booting menggunakan CDROM pada BIOS, masukkan CD gparted, reboot dan gparted akan masuk ke menu. Ikuti pilihan yang ada sesuai dgn hardware kita hingga muncul screen partisi HD seperti gambar diatas. System file yang digunakan XP adalah fat32, bukan NTFS.

Langkah 1, Pilih Delete dari partisi 3 diatas. Pilih “Yes’ atau ‘OK’ setelah itu partisi akan dihapus. Jangan lupa jg untukmen-delete /dev/sda3 -> extended partisi. Sehingga bagian itu skrg berstatus “Unallocated”

sda3-removed

Langkah 2, mer-resize ukuran XP (/dev/sda2). Pilih resize dari partisi 2 diatas, kemudian masukan angka 25000 pada bagian “New Size (MiB) :”, lalu tekan tombol “Resize/Remove”

Langkah 3, buat extended file dari bagian “Unallocated” tadi, lalu buat juga partisi fat23 (XP), sebesar 20000.
Sehingga didapat lah struktur akhir seperti gbr dibawah ini :

after-partition

Terdiri dari :

1. Partisi 1, 3.91GB
2. Partisi 2, Windows XP OS, 24.41GB
3. Partisi 3, Data, 19.53 GB
4. Unallocated 101.19 GB -> ini akan digunakan untuk instalasi Ubuntu.

Setelah ini selesai, barulah bisa dimulai instalasi Ubuntu.

Hello world!

Posted in Uncategorized on November 1, 2008 by rvshiro

Welcome to my blog page. All information you see here is based on my experience, please use it as necessary. I don’t have any liabilities for any damaged caused by the information you have from this site. Do it at your own risk.