| Subcribe via RSS

Matt on Acer Aspire One w/ Ubuntu – WiFi Fix after Suspend/Resume

January 10th, 2009 | 1 Comment | Posted in Linux

Acer Aspire One: http://www.acer.com/aspireone/
Intel Atom: http://www.intel.com/technology/atom/index.htm
Ubuntu 8.10: http://www.ubuntu.com/
Performance Improvement for ubuntu on Aspire One: https://help.ubuntu.com/community/AspireOne

Anyway, this combination is awsome! The ease of use of ubuntu for day to day use, combined with the fact it’s still Linux for advanced hacking when needed, all in a tiny laptop package which makes it portable enough to throw in your bag and have it with you anywhere.

The default 802.11a/b/g card is an internal atheros miniPCI card as well, which means using the madwifi drivers the laptop supports wireless packet injection out of the box :)

There is however one issue I have had, and that is that wifi was broken after a suspend/resume (suspend/resume is damn fast). After a little playing around I have managed to fix this, my solution is below:

The solution is to unload the madwifi drivers on suspend, and reload them on resume.
you can do this manually after resuming by running the following commands as root:

/usr/local/bin/madwifi-unload
/sbin/modprobe ath_pci

This unloads all madwifi kernel modules, and then loads them again. The wifi should spring back into life.
However, this is nasty, so the following script will run these commands for you on suspend/resume:

Create a new file in /usr/lib/pm-utils/sleep.d called ‘06acerwifi’.
Chmod this to 755, and place the following into it:


#!/bin/sh
#

. “${PM_FUNCTIONS}”

unload_madwifi()
{
/usr/local/bin/madwifi-unload > /dev/null
}

load_madwifi()
{
/sbin/modprobe ath_pci > /dev/null
}

case “$1″ in
hibernate|suspend)
unload_madwifi
;;
thaw|resume)
load_madwifi
;;
*) exit $NA
;;
esac

Hope this helps someone!
//Matt

Tags: , , ,

Lets Get Started: Para-Virtualization

July 29th, 2008 | 1 Comment | Posted in Microsoft, VMWare, Virtualization

First off, i’d like to just get the site kicked off with a brief +/- i wrote a few weeks ago on Para-virtualization.

http://img440.imageshack.us/img440/8415/800pxviridianarchitecturl4.png

+ Paravirtualization (PV) provides major security benefits, as the host server generally cannot access the virtual machines inside (if compromised) unlike Full Virtualization (FV). Also, virtual machines are totally black-boxed, and cannot see other VM’s on the same server.

+ PV provides an infrastructure with a lot more redundancy, backup and fail-over options than FV; using proprietary technologies such as “VMotion” (VMWare) which allow a virtual machine to be ran across 2 separate physical hosts in 2 separate locations.

- PV is expensive to run; as you will need hardware that is officially supported to run the hardware on (generally), compared to FV, such as VMWare Server, which you can install on any hardware running a supported Operating system such as Ubuntu, Win. XP, etc.

http://blogs.vmware.com/vmtn/images/2007/11/15/multimode.png

- Most common variant of Virtualization used in the Enterprise today.
- Examples include VMWare ESX/Vi3, XenSource aka Citrix.
- Uses a “Hypervisor” or Virtual Machine Monitor, to allow multiple OS to run on a host computer simultaneously. VMWare uses vmkernel as its Hypervisor.

Tomorrow -  Hypervisor types.

Tags: , , , , , , , , , , ,