Tuesday, January 22, 2008
Let HAL work with thinkpad_acpi
As simple as it is, I spent quite some time digging it up from the source code. Then when I posted it to the HAL mailing list, Ben Liblit kindly pointed me to this bug entry, where he provided a nice patch for HAL. Trust me, I searched around it really hard before getting into the source code, and Google failed to get me this link. Shame for Google. ;)
So if your HAL is 0.5.10, just apply the patch. Make sure your linux/input.h is new enough to contain SW_RADIO. With earlier versions, try searching for every appearance of SW_HEADPHONE_INSERT and make modifications accordingly.
With HAL 0.5.10, you can get quirks from this page to get correct keymaps (and other stuff) for your model. With older versions, like me, you can use my little program to map your keys your way.
thinkpad-acpi-keys.tar.gz
Compile setevkeycodes.c and put it in /usr/local/sbin. Install thinkpad-acpi as a service and copy thinkpad-acpi-keymap to /etc/default. If you prefer to use different paths, modify thinkpad-acpi script accordingly. FYI, the keymaps in thinkpad-acpi-keymap are my current settings, on a T60.
Tuesday, January 15, 2008
A subtle change in event interfaces with the new kernel
Tuesday, January 8, 2008
deb packages of clewn 1.13
Quote the descriptions from their website:
I made the deb packages on an Ubuntu Feisty, i386. Not tested on other distros but should work as long as dependencies are satisfied.Clewn implements full gdb support in the vim editor: breakpoints, watch variables, gdb command completion, assembly windows, etc.
This may be done in two different ways, using clewn or vimGdb. Clewn is a program controlling vim through the netBeans socket interface, it runs concurrently with vim and talks to vim. Clewn can only be used with gvim, the graphical implementation of vim, as vim on a terminal does not support netBeans. VimGdb is a vim patch implemented as a vim optional feature.
Both alternatives use the same base source code to interface with gdb. Clewn, as a standalone process, needs its own terminal. This is not the case with vimGdb, but a drawback is that a different patch must be applied to each new Vim version.
They both share the same features set, except clewn supports some features that vimGdb does not have:
- display of gdb expression values in a balloon
- gdb `run' commands do input and output on the clewn terminal, while vimgdb users must use the gdb 'tty' or 'attach' commands to control the debuged program input/output
clewn_1.13-1~jason1_i386.deb
clewn-vim_1.13-1~jason1_i386.deb
Grab & install them, then vim, :h clewn, and there you go!
UPDATE: April 3, 2008
Repackaged in accordance with the Debian Packaging Policy for Vim.
clewn_1.13-1~jason2_i386.deb
vim-clewn_1.13-1~jason2_all.deb