Home > Interests > GNU | Linux
español
Contents (hide)
http://www.geekculture.com/joyoftech
The Intel® PRO/Wireless 2200BG integrated wireless card worked out of the box.
Audio worked right out of the box.
In order to get hardware acceleration working you can install the package xorg-driver-fglrx using the Synaptic package manager.
DVD playback works well right out of the box. DMA (necessary for good performance) seems to be already enabled.
The lid switch makes the laptop’s screen turn off when the lid is closed and turns it back on when the lid opens. This already worked well in Ubuntu but I needed to tweak the behavior a bit. Sometimes I use a projector as the main display and turn off the laptop’s screen to save some battery, however, Ubuntu turns off ALL displays (including the analog output) when the panel lid is closed, which then leaves me with no screen at all!
You can determine the state of the lid switch by doing:
$ cat /proc/acpi/button/lid/LID/state
In order to turn on/off the backlight of the LCD panel, you can use radeontool. This tool is part of the Ubuntu distribution so you can install it with Synaptic (if it is not already installed). After installing both, the laptop-mode-tools (also part of Ubuntu) and radeontool packages, I created the following script:
#!/bin/bash
LIGHT=$(radeontool light | grep "looks on")
if [ "$LIGHT" = "" ]; then
radeontool light on
else
radeontool light off
fi
This script toggles on/off the backlight of the LCD panel. You can then use xbindkeys to assign a keyboard shortcut and control the LCD backlight at will.
In order to set and maintain the state of the backlight when the lid is closed, you can create a daemon and call it with laptop-mode-tools. This is specially handy if some of your applications (usually games) like to turn the panel backlight back on when resetting the video resolution or when going into full screen.
Comment everything on /etc/acpi/lid.sh and add the following at the end of the script:
LID_CLOSED=$(cat /proc/acpi/button/lid/LID/state | grep open) if [ "$LID_CLOSED" = "" ]; then /usr/sbin/blightoffd & else /usr/sbin/radeontool light on fi
Save the following script as /usr/sbin/blightoffd
#!/bin/bash
#
# Keeps panel backlight off when computer lid is closed.
#
LID_CLOSED=$(cat /proc/acpi/button/lid/LID/state | grep open)
while [ "$LID_CLOSED" = "" ]; do
LIGHT_ON=$(/usr/sbin/radeontool light | grep "looks off")
if [ "$LIGHT_ON" = "" ]; then
/usr/sbin/radeontool light off
fi
sleep 1
LID_CLOSED=$(cat /proc/acpi/button/lid/LID/state | grep open)
done
Disable or uninstall both kpowersave and klaptop.
powersaveI installed powersaved which is great tool for enabling dynamic control of the CPU speed and save additional power. However, that bugger messed up the scripts controlling the lid switch events. Here is how to fix the problem:
Find the following line in /etc/powersave/events:
EVENT_BUTTON_LID_CLOSED="xxxxxxx"
and make sure it says:
EVENT_BUTTON_LID_CLOSED="ignore"
This will make powersave ignore lid switch events
Download and install the Ubuntu 8.04 (“Hardy Heron”) i386 package from the VirtualBox Linux download page
These days, game support is about the only reason why I sometimes still regress to Windows, but that is rapidly changing. Cedega is a neat piece of software that you can use to install and run Windows games under Linux. You can download it from their site after paying a US$15 registration fee which includes a 3 month period of technical support. They have a fairly large library of games supported and they tend to focus on the hottest titles. Here is what I have managed to install (that I actually like):
| Application | Installation | Status | Issues | Screenshot |
| Unreal Tournament (v4.36 Patch) |
| Running smoothly | None | |
| VisualBoy Advance (v1.7.2) |
| Running smoothly | None |
Does your brand new Windows system refuses to install that awesome application you loved in Windows 98? Well, I bet you can run it with Wine! Wine is an Open Source implementation of the Windows API on top of X and Linux. This means that Wine allows you to run Windows applications on Linux!
Install the wine package with Synaptic and rejoice!
$ diff -Naur olddir newdir > new-patch
or
$ diff -Naur oldfile newfile > new-patch
There are a lot of constantly updated video and audio codecs available in Linux. Unfortunately, the choice in Windows is way more limited. Because of this, it is common that videos compressed with the best and latests codecs in Linux cannot be read by common Windows applications. You can encode windows-compatible videos in Linux with mencoder by typing the following command:
$ mencoder -oac mp3lame -ovc lavc -lavcopts vcodec=msmpeg4v2:vhq:vbitrate=1600 -o videoout.avi videoin.xxx
*.ttf file to $HOME/.fonts folder.
$ cd $HOME/.fonts $ fc-cache ./
´ 3. Restart the X display manager.
kfmclient newTab <URL> "text/html"
$ arecord -f cd -t wav test.wav
´ 4. Press Ctrl+C when finished
´ 5. You can edit the resulting file with audacity
TeX4ht. Click Next button, then Finish button.
mzlatex
'%source' 'xhtml,mathml-' (with all quotes intact and there is a space between the quoted options)