Comment 3 for bug 84347

Revision history for this message
Herbert V. Riedel (hvr) wrote :

After upgrading to gutsy, and still suffering from this regression I did some debugging, and that's what I found out:

I fetched the latest pbbuttonsd from upstream, pbbuttonsd-0.8.1a, compiled that and it worked

I compared it with the version currently in gutsy, 0.7.9-2ubuntu3, which didn't work

the difference is simply that 0.7.9 tries to access only "/sys/module/usbhid/parameters/pb_fnmode" which doesn't exist on my powerbook, whereas 0.8.1a as fallback tries to access "/sys/module/hid/parameters/pb_fnmode" as well...

it would be rather easy to backport the following snippet from 0.8.1a to 0.7.9 (or maybe even better just upgrade gutsy to the newest pbbuttonsd 0.8.1a):

pbbuttonsd-0.8.1a/src/module_pmac.c:

void
keyboard_set_config (int config)
{
...
        } else {
                if ((fd = open ("/sys/module/usbhid/parameters/pb_fnmode", O_WRONLY)) < 0)
                        fd = open ("/sys/module/hid/parameters/pb_fnmode", O_WRONLY);
...