Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] pbbuttons stopped working when running 2.6.15
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sat Dec 31, 2005 12:36 pm    Post subject: [SOLVED] pbbuttons stopped working when running 2.6.15 Reply with quote

Hi,

I've updated to kernel 2.6.15-rc7 to be able to use airport extreme from my 12" powerbook. (airport extreme works great BTW)

The problem is that pbbuttons stopped working: When I press the buttons nothing happens. pbbuttons starts and runs (according to pstree) correctly.

I'm using exactly the same config as with 2.6.14.x. Anybody has seen same issues, or is it my config?

Regards,

Markus


Last edited by corsair on Thu Jan 05, 2006 2:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
fr3sh
n00b
n00b


Joined: 25 Jul 2005
Posts: 55

PostPosted: Sun Jan 01, 2006 6:01 pm    Post subject: Reply with quote

I have the same problem since 2.6.15-rc5

have you solved your problem already?



fr3sh
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sun Jan 01, 2006 7:03 pm    Post subject: Reply with quote

no, I haven't. I also tried pbbuttonsd-0.7.3 (not yet in portage), but this doesn't solve the problem.
Back to top
View user's profile Send private message
fr3sh
n00b
n00b


Joined: 25 Jul 2005
Posts: 55

PostPosted: Mon Jan 02, 2006 11:16 am    Post subject: Reply with quote

At the Debian List there are serveral People talking about this Problem.

They found a fix for the 2.6.14 Kernel, but this doesn't work for the 2.6.15 Version.

seems like the problem is the uinput.c...

the following diff - output shows the lines to edit... but this doesn't work for 2.6.15


From the debian mailinglist:
Code:

diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c
index 948c1cc..c696ae3 100644
--- a/drivers/input/misc/uinput.c
+++ b/drivers/input/misc/uinput.c
@@ -199,10 +199,9 @@ static int uinput_open(struct inode *ino
    spin_lock_init(&newdev->requests_lock);
    init_waitqueue_head(&newdev->requests_waitq);

-   newinput = kmalloc(sizeof(struct input_dev), GFP_KERNEL);
+   newinput = input_allocate_device();
    if (!newinput)
       goto cleanup;
-   memset(newinput, 0, sizeof(struct input_dev));

    newdev->dev = newinput;

@@ -373,7 +372,6 @@ static int uinput_burn_device(struct uin

    kfree(udev->dev->name);
    kfree(udev->dev->phys);
-   kfree(udev->dev);
    kfree(udev);

    return 0;



maybe this could be helpful to solve the present problem
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Thu Jan 05, 2006 8:08 am    Post subject: Reply with quote

I have opened a bug report: Bug #117847
Back to top
View user's profile Send private message
fr3sh
n00b
n00b


Joined: 25 Jul 2005
Posts: 55

PostPosted: Thu Jan 05, 2006 12:33 pm    Post subject: Reply with quote

in the bugreport there is a comment, to update udev...

after a world update, i try to use the version 79 of udev and report it to you!


cya fr3sh
Back to top
View user's profile Send private message
fr3sh
n00b
n00b


Joined: 25 Jul 2005
Posts: 55

PostPosted: Thu Jan 05, 2006 1:45 pm    Post subject: Reply with quote

Problem is solved for me!

I simply used the latest (unstable) version of udev. This was for me 079

Now all pbbutton-commands work without problems!


thanks to the guys from the bugreport!



fr3sh
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Thu Jan 05, 2006 2:08 pm    Post subject: Reply with quote

yea, works again. :D
Back to top
View user's profile Send private message
milothurston
Apprentice
Apprentice


Joined: 01 May 2002
Posts: 231
Location: Oxford, England.

PostPosted: Wed Feb 22, 2006 10:48 pm    Post subject: Reply with quote

Unfortunately, it doesn't work for me with udev 0.79-r1 on a G3 Wallstreet. Pbbuttonsd has been set up with the codes for the volume and brightness keys (determined with xev), but they have no effect.

Below is my .config's Mac driver section.

Code:

#
# Macintosh device drivers
#
CONFIG_ADB=y
CONFIG_ADB_CUDA=y
CONFIG_ADB_PMU=y
CONFIG_PMAC_APM_EMU=y
CONFIG_PMAC_MEDIABAY=y
CONFIG_PMAC_BACKLIGHT=y
CONFIG_ADB_MACIO=y
CONFIG_INPUT_ADBHID=y
CONFIG_MAC_EMUMOUSEBTN=y
# CONFIG_THERM_WINDTUNNEL is not set
# CONFIG_THERM_ADT746X is not set
# CONFIG_WINDFARM is not set
# CONFIG_ANSLCD is not set


Is this sufficient, or have I missed something out?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Feb 22, 2006 11:02 pm    Post subject: Reply with quote

Make sure you have the Event Input Device subsystem in your kernel as well as SYSV IPC.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
milothurston
Apprentice
Apprentice


Joined: 01 May 2002
Posts: 231
Location: Oxford, England.

PostPosted: Thu Feb 23, 2006 2:23 pm    Post subject: Reply with quote

JoseJX wrote:
Make sure you have the Event Input Device subsystem in your kernel as well as SYSV IPC.


I have:

Code:

CONFIG_INPUT_EVDEV=m
CONFIG_SYSV_IPC=y


In the relevant parts of .config, and /dev/event0-5 are present. The evdev module is loaded.

The button info. xev gives me is:

+ brightness: 212
- brightness: 101
+ volume: 176
- volume: 174
Back to top
View user's profile Send private message
milothurston
Apprentice
Apprentice


Joined: 01 May 2002
Posts: 231
Location: Oxford, England.

PostPosted: Mon Mar 20, 2006 9:02 pm    Post subject: Reply with quote

Further to this, I can set volume, mute, LCD brightness &c. with pbbcmd, so these functions are actually usable. Gtkpbbuttons also works when the commands are given with pbbcmd. However, whatever I do, the actual buttons on the machine have no effect on pbbuttonsd although they produce values for xev. Can anyone suggest what might fix this?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum