Site News
Spammer domain block list updated [more]
OSX Killer apps collections updated [more]
 Automatic web page date stamping project [more]
 Basic Perl DBI tutorial [more]

Other Stuff
Farscape returns in 4 hour mini series [more]
Want to take back the internet, [Get Firefox!]
July 05, 2008


DISCLAIMER: All the information contained in this page, or any linked from it, is provided as is, having no warranty or support of any kind, and is used entirely at your own risk.

 

Sonypi Driver


This page shows you HOWTO use the sonypi driver, which is now part of the 2.4.7 or later Kernels. This driver for the "Sony Programmable IO controller" chip which controls all sorts of useful things, such as the Motion Eye Camera, the function keys. As you used my supplied optimized 2.4.17 Kernel (you did right??), then you already have the needed modules, XF86Config changes, devices etc, so you can just skip this page, and go right to the camera and jogdial pages. For the rest of the Picturebook world, and those interested, I have added the following information to help you.

Sonypi driver

As I said, this driver is now part of the Kernel, so as I usually do I first tried this driver in the Kernel, which while it sounds good, was not a good move, the system came up, but ignored the configuration settings from the lilo.conf file. In the end I never made it work this way, it would not let me enable the camera without the driver being in verbose (read not pretty) mode. So after declaring defeat, I went onto use the driver as a module, which is how its treated in the Slackware 8 OS installation page, and also all I cover here.

Kernel Configuration

Unlike the other pages, I have included the settings for the video4Linux stuff that you need for the camera, so "please no more emails!", its all in one place.

Character Devices
Sony Vaio Programmable I/O Control Device Support M
Multimedia Devices
Video For Linux Yes
Multimedia Devices/Video For Linux
V4L information in proc filesystem Yes
Sony Vaio Picturebook Motion Eye Video For Linux M

Thats it, all there is for the Kernel configuration settings.

modules.conf changes

To actually use this module you need to add the following lines to your /etc/modules.conf

alias char-major-10-250 sonypi
options sonypi minor=250 camera=1 fnkeyinit=1

These lines will setup the driver to enable the motion eye camera and also the function keys, and set the minor device to 250. For more information see the Documentation/sonypi.txt file thats part of the Kernel source tree.

Creating the device

Now you have added the above to your modules.conf, you need to create the /dev/sonypi device, which is done with the following commands.

mknod /dev/sonypi c 10 250
chmod 666 /dev/sonypi

XF86Config changes

In order to use the Jogdial as a mouse wheel you need to edit your /etc/X11/XF86Config file to use a 5 button mouse. Which is done by adding editing your "InputDevice" "Mouse1" section to include the following line.

Option "Buttons" "5"

To make things clearer, here is the section from my XF86Config

Section "InputDevice"
         Identifier    "Mouse1"
         Driver        "mouse"
         Option        "Protocol" "auto"
         Option        "Device" "/dev/sysmouse"
         Option        "Buttons" "5"
EndSection

Links and Related Pages

 
Updated: June 19, 2004 Top