Disabling wireless power management in Ubuntu

I recently installed 10.10 on my MacBook Pro and noticed that whenever I went into battery mode, my wireless connectivity was severely crippled. A look at iwconfig confirmed that the wifi power management was being enabled every time I yanked the plug. I scoured /etc and couldn’t find any acpi or pm event that would trigger this.
Continue reading “Disabling wireless power management in Ubuntu”

Disabling wireless power management in Ubuntu

Quick Vim tip: Change the way ‘change’ works

By default in Vim, when you begin to :change a word or a line, the old string which you were changing is immediately cleared from the buffer. This behaviour is different from classic vi, where you can still view the old string while you overwrite it. I prefer the old vi behaviour, and this can be set in Vim using the following command:

:set cpoptions=$

This stupid setting took me forever to find in the docs, as I wasn’t sure quite how to search for it. A diamond-plated internet goes to the first person that can form a generic Google search that will pull this info up.

Quick Vim tip: Change the way ‘change’ works

The Magic SysRq Key

The Linux kernel has support to perform some special actions at the press of a key combination. This is known as the “Magic SysRq Key”, and you use it by typing Alt-SysRq, combined with a letter which designates what action you want the kernel to perform. What is so special about using the sysrq key is that the kernel will execute the requested action regardless of what other processes may be running. This is immensely handy if you run into a system which is under heavy load and not responding.
Continue reading “The Magic SysRq Key”

The Magic SysRq Key