More information can be found at http://www.linux.it/~malattia/wiki/index.php/Sony_drivers.
The rest of this page is kept as is for reference only and may be outdated.
A local copy of this file can be read here for the 2.6 kernels and here for the 2.4 kernels
rpmbuild -tb spicctrl-X.Y.tar.bz2
You can use a user space utility (like the downloadable below sonypid) which polls the sonypi driver for events and configure it to do the desired actions. There are several such daemons available, one of them is even integrated in KDE 3.
The second solution is to set the sonypi driver to use the Linux input subsystem (through the 'useinput' sonypi module parameter). This will create two input devices, one translating the jogdial events into mouse events, and another one giving key events for the special keys.
The first device can be simple used by the X server by configuring it to use a mouse connected on /dev/input/mice (like any USB mouse for example).
Unfortunately the second device is unusable without a special patched X server, which implements a Linux input based keyboard driver. The patch was written by the Gentoo people originally,, but I had to modify it to let the sonypi events be propagated to the user. You can get the modified patch here. Apply this patch, rebuild your X server, then configure it like this.
I've also written another Sony driver, based on ACPI facilities, which may work for you. This driver is currently limited to getting/setting the screen brightness.
You can get a patch here. The patch also contains some documentation, read it.
If you don't want to patch your kernel, a standalone version is available
here. Just extract the tarball and type
make to build the module.
|Last modified: Thu Mar 29 23:10:45 CEST 2007