
New related post Ubuntu 12.04 on Lenovo Q150 with OCZ SSD and 4Gb of Memory.
I decided to install the 32 bit version of Ubuntu since flash more stable under 32 bit linux. I also installed:
- ubuntu tweak
- xbmc
- miro
- minitube (youtube player, faster than flash)
- huludesktop
- boxee
- skype
- cooliris
- chromium
- shotwell
The latest version of Ubuntu contains updates to the kernel, alsa and nouveau nvidia drivers. The new opensource drivers seems as fast as the proprietary drivers when playing video and this is great. It also detects the nvidia HDMI sound card out of the box.
So the biggest difference compared to 10.04 is that using the opensource drivers you can play video at 1080p full-screen without problems and HDMI sound card works.
- Basic installation from a USB key works fine.
- HDMI/VGA and sound out, little USB keyboard/mouse works fine.
- Dual boot with Windows 7 works fine.
- Detects the nvidia HDMI sound card.
- The open source nvidia ubuntu drivers, NVidia proprietary drivers, and the new drivers from nvidia web site work fine.
- Video acceleration at 1080p works great for Miro, mplayer, minitube, vlc, xbmc with the opensource drivers. You don't need to install nvidia proprietary drivers, unless you want 3D and HDMI sound. Flash is as fast with opensource drivers as the nvidia proprietary drivers.
- Video acceleration at 1080p works great for Miro, mplayer, minitube, vlc, xbmc with the opensource drivers. You don't need to install nvidia proprietary drivers, unless you want 3D and HDMI sound. Flash is as fast with opensource drivers as the nvidia proprietary drivers.

- Hulu desktop plays fullscreen in high quality, with the opensource drivers and the proprietary drivers but you need to right click and select quality low on the context menu of hulu desktop. I thinks this use a decompress routine that is less CPU intensive (see the picture).
- When playing hulu, boxee, cooliris, youtube in full-screen it uses 100% of all CPUs. You can play youtube videos up to 720p without full screen with a good frame rate, but youtube 1080p is slow even in a small window.
- Wireless card works, but requires compiling some code for now.
- Flash video acceleration does not work as fast as in windows, it uses more CPU, I think this is because flash on linuc does not have gfx acceleration.
- Flash video acceleration does not work as fast as in windows, it uses more CPU, I think this is because flash on linuc does not have gfx acceleration.
- HDMI sound card requires nvidia video drivers and some tweaking see below.
XBMC install:
Add key on command line:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0x6d975c4791e7ee5e
Adding the XBMC Repo
- Adding the XBMC Repo tells your system where to look for xbmc for installation and future updates
- From the Desktop, click System -> Administration -> Software Sources.
- Click the "Third Party Sofware" tab.
- Click "Add" for each of the following. For the Apt line type the following:
deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu lucid maindeb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu lucid main
Reference:
HDMI sound instructions
sudo apt-get install alsa-utils
on alsamixer press F6 to select the nvidia card enable all s/PDIF devices
# list the devicesaplay -l# my sound gets enabled when I play on device speaker-test -D plughw:1,9 -r 44100, after that the sounds starts to work. It's important to use the -r 44100 since the drivers are not setting up the correct frequency.speaker-test -D plughw:1,3 -r 44100speaker-test -D plughw:1,7 -r 44100speaker-test -D plughw:1,8 -r 44100speaker-test -D plughw:1,9 -r 44100

In case you want to make a permanent change for the hdmi sound as the deafult card you can update /usr/share/alsa/alsa.conf and change these lines:
There are 2 drivers for the wireless card, instructions described below:
defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 0
to this:
defaults.ctl.card NVidia
defaults.pcm.card Nvidia
defaults.pcm.device 9
Wireless driver
Q150 uses a Realtek USB RTL8191SU 802.11n USB 2.0 wireless card.
Q150 uses a Realtek USB RTL8191SU 802.11n USB 2.0 wireless card.
Download the RTL8191SU driver from Realtek:http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=falseThe one I got was dated 2010/6/30. Unzip the file.Go into the "driver" sub directory:cd rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625/driverExtract the driver:tar -zxf rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20100625.tar.gzAdd this line:{USB_DEVICE(0x13D3, 0x3323)},to rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625/os_intf/linux/usb_intf.c at line 96 or so.This adds the vendor / product ID for the adapter the Q150 uses. I found out the correct numbers by doing a sudo lsusb -v and looking for the network device.# download compiler and kernel sourcesudo apt-get install build-essential linux-source linux-headers-genericcd /usr/srcsudo tar -xvjf linux-source-2.6.35.tar.bz2sudo ln -s /usr/src/linux-source-2.6.35 /usr/src/linux# get a root shellsudo bash./cleanmakemake installmodprobe 8712u/etc/init.d/NetworkManager restartexit
Note: these instructions where provided by Doug S.
Another driver you can use is r8192s_usb non stable driver, instructions below:
# get the realtek firmwaresudo apt-get install linux-firmwarewget http://svn.debian.org/wsvn/kernel/dists/trunk/firmware-nonfree/realtek/RTL8192SU/rtl8192sfw.binsudo mkdir /lib/firmware/RTL8192SUsudo cp rtl8192sfw.bin /lib/firmware/RTL8192SU# load the driversudo modprobe -v r8192s_usb# the device should show up on network applet# you can run dmesg|less and look for r8192s_usb to see if the driver loaded correctly.
Some other references for the wireless card:
You need to enabled USB wake up, in /proc/acpi/wakeup
# cat /proc/acpi/wakeupsudo -secho USB0 > /proc/acpi/wakeupecho USB1 > /proc/acpi/wakeupecho USB2 > /proc/acpi/wakeupecho USB3 > /proc/acpi/wakeupecho EUSB > /proc/acpi/wakeup
This will allow you to suspend the machine use the wireless usb keyboard to wake up.
Wake up from at certain time
# Check alarm is not stepcat /proc/driver/rtc# clear alarm, is need before settingsudo sh -c "echo 0 > /sys/class/rtc/rtc0/wakealarm"# Set alarmsudo sh -c "echo `date -u --date "Aug 9, 2010 00:05:00" +%s` > /sys/class/rtc/rtc0/wakealarm"# Check alarm timecat /sys/class/rtc/rtc0/wakealarmcat /proc/driver/rtc
Reference for timed wake: