[regression] pbbuttonsd KBDMode=fkeysfirst doesn't work anymore

Bug #84347 reported by Herbert V. Riedel
12
Affects Status Importance Assigned to Milestone
pbbuttonsd (Ubuntu)
Confirmed
Undecided
Unassigned
Declined for Feisty by Henrik Nilsen Omma
Declined for Gutsy by Henrik Nilsen Omma
Nominated for Hardy by Herbert V. Riedel

Bug Description

Binary package hint: pbbuttonsd

After upgrading to feisty, the function keys on my 2005 15" powerbook aren't accessible anymore without having to press the 'fn' together. They now behave as brightness/volume keys (which they previously did when pressed together with the 'fn' key)

Tags: backport
Revision history for this message
vjrj (vjrj) wrote :

I confirm this bug in my PG G4 15".

Revision history for this message
macluvjay (jay-thigpen-deactivatedaccount) wrote :

I can also confirm this bug on my PowerBook G4 15" (Feb 2005)

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);
...

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

still an issue with hardy... so I'm trying desperately to get some attention for this rather trivial (but annoying) bug :-/

Revision history for this message
rdaneel (mpeddie) wrote :

confirmed in Gutsy and seconded . . . seems like perhaps it's too late to be fixed in time for hardy now

Revision history for this message
Andreas Moog (ampelbein) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? Thanks in advance.

Changed in pbbuttonsd:
assignee: nobody → andreas-moog
status: New → Incomplete
Revision history for this message
Herbert V. Riedel (hvr) wrote :

Since Intrepid has the very same pbbuttonsd version, it's still an issue...

Andreas Moog (ampelbein)
Changed in pbbuttonsd:
assignee: andreas-moog → nobody
status: Incomplete → Confirmed
Revision history for this message
Andreas Moog (ampelbein) wrote :

Could you try the following patch?

1. Create empty directory in your home-folder and cd to it:

mkdir pbbuttonsd
cd pbbuttonsd

2. Get the source of pbbuttonsd

apt-get source pbbuttonsd

3. Download these files:

wget http://www.warperbbs.de/pbbuttonsd/pbbuttonsd_0.7.9-2ubuntu4.diff.gz
wget http://www.warperbbs.de/pbbuttonsd/pbbuttonsd_0.7.9-2ubuntu4.dsc

4. Apply the patch:

dpkg-source -x pbbuttonsd_0.7.9-2ubuntu4.dsc

5. Download pbuilder and create build environment:

sudo apt-get install pbuilder debootstrap devscripts
sudo pbuilder create

6. Create the package:

sudo pbuilder -build pbbuttonsd_0.7.9-2ubuntu4.dsc

7. Install the created package:

sudo dpkg -i /var/cache/pbuilder/result/pbbuttonsd_0.7.9-2ubuntu4.deb

Does it work now for you? Or are you encountering any issues?

Revision history for this message
Marten Veldthuis (marten-veldthuis) wrote :

Andreas:

This fails for me at the pbuilder create step:

 % sudo pbuilder create
W: /home/marten/.pbuilderrc does not exist
Distribution is hardy.
Building the build environment
 -> running debootstrap
/usr/sbin/debootstrap
I: Retrieving Release
I: Retrieving Packages
I: Retrieving Packages
I: Retrieving Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
W: Failure trying to run: chroot /var/cache/pbuilder/build/24627/. mount -t proc proc /proc
pbuilder: debootstrap failed
 -> Aborting with an error
 -> cleaning the build env
    -> removing directory /var/cache/pbuilder/build//24627 and its subdirectories

Revision history for this message
Marten Veldthuis (marten-veldthuis) wrote :

Trying to build it manually with

sudo apt-get build-dep pbbuttonsd
dpkg-buildpackage -us -uc -rfakeroot

fails with a compilation error:

module_pmac.c: In function ‘keyboard_set_config’:
module_pmac.c:1736: error: expected declaration or statement at end of input

Not sure if that's the effect of your patch, though...

- Marten

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.