Home Section Blog Ubuntu How to UBUNTU on ASUS G1s
01 | 08 | 2010
How to UBUNTU on ASUS G1s PDF Print
Taken from the Ubuntu Forum:



This is a "how to" to get UBUNTU running on the ASUS G1s. All of the information here is compiled mostly from the UBUNTU forums.

(From ClockworkAvian with a little add ons )
Working out of the box:

* bluetooth
* wifi
* multimedia keys on the bottom
* nv driver at proper resolution (using restricted drivers).
* SD Card reader
* Wired ethernet
*CD/DVD Burning/Reading
* Mic and speakers/sound

Not tested by me:

* CF/XD/MMS readers
* any video out
* lightscribe burning (reading works great)
* ESATA port

Not working:
*wireless LAN LED
*Mouse LED (the green one in the asus g1 icon near near the touch pad)
*Toggling between laptop LCD and External screen (this probably works i just do not know how to do it yet, i do not know how to do it through any video out put, please help :S)

Working with a little tweaking:
1.Web cam (not at max quality)
2.OLED screen
3.Blue email led (using thunderled plugin for thunderbird)
4.Hibernating/suspending
5. Mx518 mouse buttons
6.Flashy green LED lights on the side of the screen
7.touch pad button to toggle between using the touch pad or not



1. Webcam:

You might not need to install the first 2 lines, it won't hurt if you do:

Code:
sudo apt-get install libsdl1.2-dev

sudo apt-get install subversion

sudo chmod +x install-webcam.sh

sudo ./install-webcam.sh

(Make sure the downloaded script is on the desktop and that you are running the code when you are on your desktop)

Note: If the camera does not load after double clicking on the camera icon that appeared on the desktop, you might have to change ownership of a group called "video" .


2. For the OLED:

http://howto.landure.fr/gnu-linux/ub...0-gutsy-gibbon

Just follow the "Fast and obfuscated" it will work in no time. (this is to install the time and date on the OLED).

Also:

http://lapsus.berlios.de/asus_oled.html

this is to put images on the OLED screen. It also has the option of turning off the OLED completely. (have not tried it).

3.To use the email LED (the blue one next to the media buttons) use thunderbird email client with thunderled plugin. (have not tired it)

4A. Hibernating/suspending

for uswsusp to work, you have to configure a swap partition. My swap partition is 400MB, i sometimes have problems waking up from suspending but i do not know if it is because i have a 400MB swap partition. If anyone can elaborate on hibernating/suspending using this method (uswsusp) please do. I always have to unmount my external hard drives or else they give me "unsafe removal" bubble when i wake up from hibernating/suspending.

to check your swap partition go to the console and type:

Code:
$ free -m


to install hibernating/suspending:

Code:
sudo apt-get install uswsusp

To reconfigure:

Code:
dpkg-reconfigure uswsusp

to use hibernate/suspending:

Code:
sudo s2disk

or

Code:
sudo s2both

4B. To make this way the default way of hibernating/suspending, just follow the instructions on the link below. Make sure to test it out a couple of times first before editing the script. (this method is working somewhat perfectly on my system. sometimes when i wake up from hibernating, only a white screen with a mouse pointer pops up, i typed in my user name and password, and it worked. So the menu is there, you just cant see it.

http://blog.paulbetts.org/index.php/...isty-and-edgy/

5. Visit the following link to configure most logitech mice including the Mx518

http://ubuntuforums.org/showthread.php?t=219894

6. Thanks to adam_r:
To make the green LED lights work (they will just be a solid light they do not flash which, in my opinion, is not annoying)

Code:
sudo modprobe -r asus_acpi
sudo modprobe asus-laptop

to switch them on:

Code:
sudo echo 1 > /sys/class/leds/asus\:gaming/brightness

to switch them off:

Code:
sudo echo 0 > /sys/class/leds/asus\:gaming/brightness

if switching on and off gives you a permission denied error then use:

to switch them on:

Code:
su
<enter root password>
echo 1 > /sys/class/leds/asus\:gaming/brightness

to switch them off:

Code:
su
<enter root password>
echo 0 > /sys/class/leds/asus\:gaming/brightness

7.for the touchpad, this sums it up: (thanks to adam_r)

Code:
sudo apt-get install iasl
cat /proc/acpi/dsdt > dsdt
iasl -d dsdt

NOTE: I DID NOT EDIT MY DSDT FILE BECAUSE I DID NOT FINE WHAT IT WAS ASKING FOR. THANKS TO NAMAIN WHO TRIED IT OUT. I JUST SKIPPED THE EDITING STEP AND IT WORKED!!

Edit dsdt.dsl file, and:
* change all _T_0 to T0 and all _T_1 to T1
* if you don't like warnings change all Acquire (MUTE, 0xSOMETHING) to Acquire (MUTE, 0xFFFF)
* change the line 4456 from 'If (LAnd (^^^P0P2.VGA.DOSF, 0x04)) {}' to 'If (LEqual (^^^P0P2.VGA.DOSF, 0x04)) {}'

then:

Code:
iasl -tc dsdt.dsl

now you'll get 2 files, dsdt.hex and dsdt.aml, the hex file is if you want to recompile the kernel with a custom dsdt, you dont need that.
the dsdt.aml cp to /etc/initramfs-tools:

Code:
sudo cp dsdt.aml /etc/initramfs-tools/DSDT.aml
sudo mkinitramfs -o /boot/initrd.img-<uname -r>
{type uname -r in console to check you'r version)

of course you have to:

Code:
sudo apt-get install gsynaptics

Back up your xorg just incase you mess up something.

Code:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak

then:

Code:
sudo gedit /etc/X11/xorg.conf

find the part about the toucpad and insert the line: Option "SHMConfig" "on"
it probebly should look like this:

Code:
Section "InputDevice"

    Identifier     "Synaptics Touchpad"
    Driver         "synaptics"
    Option         "Device" "/dev/psaux"
    Option         "Protocol" "auto-dev"
    Option         "HorizScrollDelta" "0"
    Option         "SHMConfig" "on"
    Option         "CorePointer" "true"

EndSection

Don't restart yet! Just before we do I have to warn you if you made a mistake in the xorg file X will not start. But don't worry that's why we backed up the previous file. If X fails to start then you will end up in a text console. Log in and type the following to rename the current xorg.conf and restore the previous file:

Code:
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf-logi
sudo mv /etc/X11/xorg.conf.bak /etc/X11/xorg.conf

now Reboot, and hopefully it will load with no errors, if something goes wrong, restore it from the back up you made.

Feel free to add your own. I hope in the end this how to is completed so that all the features of the G1S are used. Please correct me if i have any mistakes i'm still new to Ubuntu.