Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old January 28th, 2008   #1
HoMie_G
5 Cups of Ubuntu
 
Join Date: Oct 2007
Location: canada
Beans: 39
Ubuntu 9.10 Karmic Koala
How to UBUNTU on ASUS G1s

Hey,

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.

Thanks,
HoMie_G
Attached Files
File Type: sh install-webcam.sh (862 Bytes, 175 views)

Last edited by HoMie_G; February 6th, 2008 at 11:59 AM.. Reason: created touch pad sction
HoMie_G is offline  
Old January 29th, 2008   #2
Namain
5 Cups of Ubuntu
 
Namain's Avatar
 
Join Date: Sep 2006
Location: Regina, SK, Canada
Beans: 34
Ubuntu Karmic Koala (testing)
Send a message via MSN to Namain
Re: How to UBUNTU on ASUS G1s

I've got an ASUS G1s-B2, and I've found that the Kernel suspend and hibernate both seem to work.

However, after resuming neither of my network cards (ethernet and wireless) seem to be detected by NetworkManager. I've found that uswsusp's s2disk works perfectly, but s2ram freezes my system on resume.

To install the s2disk command:
# sudo apt-get install uswsusp
Namain is offline  
Old January 30th, 2008   #3
adam_r
5 Cups of Ubuntu
 
Join Date: Jul 2007
Location: Israel
Beans: 41
Ubuntu 7.10 Gutsy Gibbon
Re: How to UBUNTU on ASUS G1s

uswusps - for suspend/hibernate
custom DSDTfor the touchpad button (gentoo G1 wiki)

for the leds:
Code:
modprobe asus-laptop
echo 1 > /sys/class/leds/asus\:gaming/brightness
__________________
CPU: Asus G1 Laptop, Nvidia GeForce 7700 512Mb, 2GB RAM, 160GB Sata Disk.
OS: Archlinux (Core Dump), 2.6.27.7, Xorg 1.5.3, AiGLX 180.11 (1680X1050), CF Git & Awn bzr
adam_r is offline  
Old January 31st, 2008   #4
HoMie_G
5 Cups of Ubuntu
 
Join Date: Oct 2007
Location: canada
Beans: 39
Ubuntu 9.10 Karmic Koala
Re: How to UBUNTU on ASUS G1s

Quote:
Originally Posted by Namain View Post
I've got an ASUS G1s-B2, and I've found that the Kernel suspend and hibernate both seem to work.

However, after resuming neither of my network cards (ethernet and wireless) seem to be detected by NetworkManager. I've found that uswsusp's s2disk works perfectly, but s2ram freezes my system on resume.

To install the s2disk command:
# sudo apt-get install uswsusp
I installed it and when i use it, this is what happens:

$ sudo s2disk
s2disk: Could not stat the resume device file. Reason: No such file or directory
HoMie_G is offline  
Old January 31st, 2008   #5
HoMie_G
5 Cups of Ubuntu
 
Join Date: Oct 2007
Location: canada
Beans: 39
Ubuntu 9.10 Karmic Koala
Re: How to UBUNTU on ASUS G1s

Quote:
Originally Posted by adam_r View Post
uswusps - for suspend/hibernate
custom DSDTfor the touchpad button (gentoo G1 wiki)

for the leds:
Code:
modprobe asus-laptop
echo 1 > /sys/class/leds/asus\:gaming/brightness
When i enter the first line, it says:

FATAL: Error inserting asus_laptop (/lib/modules/2.6.22-14-generic/kernel/drivers/misc/asus-laptop.ko): No such device


and about the touchpad, i went on gentoo g1 wiki. It does not say anything about the button to toggle between enabling/disabling the touchpad.
HoMie_G is offline  
Old February 1st, 2008   #6
adam_r
5 Cups of Ubuntu
 
Join Date: Jul 2007
Location: Israel
Beans: 41
Ubuntu 7.10 Gutsy Gibbon
Re: How to UBUNTU on ASUS G1s

Quote:
Originally Posted by HoMie_G View Post
I installed it and when i use it, this is what happens:

$ sudo s2disk
s2disk: Could not stat the resume device file. Reason: No such file or directory
setup your swap correctly:
Code:
dpkg-reconfigure uswsusp
Quote:
When i enter the first line, it says:

FATAL: Error inserting asus_laptop (/lib/modules/2.6.22-14-generic/kernel/drivers/misc/asus-laptop.ko): No such device
first you have to unload asus_acpi:
Code:
sudo modprobe -r asus_acpi
then do the rest

Quote:
and about the touchpad, i went on gentoo g1 wiki. It does not say anything about the button to toggle between enabling/disabling the touchpad
just the part about making a custom DSDT table (ACPI), dont even recompile the kernel, just put the dsdt.aml file in /etc/initramfs-tools/ and type:
Code:
sudo mkinitramfs -o /boot/initrd.img-2.6.22-14-generic
__________________
CPU: Asus G1 Laptop, Nvidia GeForce 7700 512Mb, 2GB RAM, 160GB Sata Disk.
OS: Archlinux (Core Dump), 2.6.27.7, Xorg 1.5.3, AiGLX 180.11 (1680X1050), CF Git & Awn bzr
adam_r is offline  
Old February 3rd, 2008   #7
HoMie_G
5 Cups of Ubuntu
 
Join Date: Oct 2007
Location: canada
Beans: 39
Ubuntu 9.10 Karmic Koala
Re: How to UBUNTU on ASUS G1s

Quote:
Originally Posted by adam_r View Post
setup your swap correctly:
Code:
dpkg-reconfigure uswsusp


first you have to unload asus_acpi:
Code:
sudo modprobe -r asus_acpi
then do the rest



just the part about making a custom DSDT table (ACPI), dont even recompile the kernel, just put the dsdt.aml file in /etc/initramfs-tools/ and type:
Code:
sudo mkinitramfs -o /boot/initrd.img-2.6.22-14-generic
ok i unloaded the asus_acpi i, now i get a permission denied error. I kinda did something stupid so i guess it's my fault. the first time i did it i inserted "sudo" before the second line of code. is that why it isn't working ?

Code:
$ sudo modprobe -r asus_acpi
$ modprobe asus-laptop
$ echo 1 > /sys/class/leds/asus\:gaming/brightness
bash: /sys/class/leds/asus:gaming/brightness: Permission denied

about the touchpad,
I'm sorry but i have no clue what all this stuff is... where is the dsdt.aml file? where do you get it from to edit it? i do not want to play around and end up having to install a fresh copy of ubuntu.


if you could, a step by step method of doing it would be much appreciated
Thank you so much, the hibernating is working now but do i have to unmount my external hard drives before hibernating? every time i wake my computer from hibernating a "safely remove hardware" bubble pops up.

HoMie_G

Last edited by HoMie_G; February 3rd, 2008 at 02:40 PM..
HoMie_G is offline  
Old February 4th, 2008   #8
adam_r
5 Cups of Ubuntu
 
Join Date: Jul 2007
Location: Israel
Beans: 41
Ubuntu 7.10 Gutsy Gibbon
Re: How to UBUNTU on ASUS G1s

ok this is how to do this:

Code:
sudo modprobe -r asus_acpi
sudo modprobe asus-laptop
now for the led, i think you need to be root, so if
Code:
sudo echo 1 > /sys/class/leds/asus\:gaming/brightness
dosent work so try
Code:
su
<enter root password>
echo 1 > /sys/class/leds/asus\:gaming/brightness
for the touchpad, this sums it up:

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


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
and:
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
now Reboot, and you'r done
__________________
CPU: Asus G1 Laptop, Nvidia GeForce 7700 512Mb, 2GB RAM, 160GB Sata Disk.
OS: Archlinux (Core Dump), 2.6.27.7, Xorg 1.5.3, AiGLX 180.11 (1680X1050), CF Git & Awn bzr
adam_r is offline  
Old February 4th, 2008   #9
HoMie_G
5 Cups of Ubuntu
 
Join Date: Oct 2007
Location: canada
Beans: 39
Ubuntu 9.10 Karmic Koala
Re: How to UBUNTU on ASUS G1s

Quote:
Originally Posted by adam_r View Post
ok this is how to do this:

Code:
sudo modprobe -r asus_acpi
sudo modprobe asus-laptop
now for the led, i think you need to be root, so if
Code:
sudo echo 1 > /sys/class/leds/asus\:gaming/brightness
dosent work so try
Code:
su
<enter root password>
echo 1 > /sys/class/leds/asus\:gaming/brightness
for the touchpad, this sums it up:

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


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
and:
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
now Reboot, and you'r done
Thank you so much, i will try it out today. By the way, can i turn the LED on and off?
HoMie_G is offline  
Old February 4th, 2008   #10
adam_r
5 Cups of Ubuntu
 
Join Date: Jul 2007
Location: Israel
Beans: 41
Ubuntu 7.10 Gutsy Gibbon
Re: How to UBUNTU on ASUS G1s

sudo echo 0 > /sys/class/leds/asus\:gaming/brightness
turns it off

go to /sys/class/leds, you have more leds there.
__________________
CPU: Asus G1 Laptop, Nvidia GeForce 7700 512Mb, 2GB RAM, 160GB Sata Disk.
OS: Archlinux (Core Dump), 2.6.27.7, Xorg 1.5.3, AiGLX 180.11 (1680X1050), CF Git & Awn bzr
adam_r is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:21 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry