Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solv'ed] too much sleep: pbbuttonsd w/ vanilla-2.6.15-rc5
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
Jimmers
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 145

PostPosted: Wed Dec 14, 2005 2:43 am    Post subject: [solv'ed] too much sleep: pbbuttonsd w/ vanilla-2.6.15-rc5 Reply with quote

I just upgraded to the vanilla 2.6.15-rc5 kernel for the native AE driver (thanks again guys :)). The problem is, I use pbbuttons to use the volume/dim/eject/sleep/power keys on my 12" iBook G4 1 GHz. Pbbuttons seems to always think that the computer is idle, and dims after my specified dim time and sleep after my specified sleep time, regardless of whether or not I'm typing.

I can wake it up after it's gone to sleep by hitting any key. here's my pbbuttonsd.conf and here's my kernel .config.

EDIT: updated links.


Last edited by Jimmers on Fri Feb 03, 2006 6:27 pm; edited 4 times in total
Back to top
View user's profile Send private message
Jimmers
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 145

PostPosted: Wed Dec 14, 2005 4:41 am    Post subject: Reply with quote

I was digging through some documentation for pbbuttons, and found that it polls /dev/input/event% to determine idle state. Problem with the 2.6.15 kernel is that only /dev/input/event5 is present (as opposed to event0 - event5 in gentoo-sources). cat /dev/input/event5 yeilded no output, while (on a 2.6.12 kernel), /dev/input/event1 corresponds to the keyboard events and /dev/input/event5 corresponds to the mouse events. So I'm thinking that no output from /dev/input/event* is leading pbbuttonsd to think that the computer is idle.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Dec 14, 2005 12:39 pm    Post subject: Reply with quote

Sounds like a udev problem. Can you try with different versions of udev?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Jimmers
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 145

PostPosted: Thu Dec 15, 2005 4:13 am    Post subject: Reply with quote

I upgraded udev to 0.7 (I think). Still no event devices. Recompiled ppbuttonsd too, no effect. When I init pbbuttonsd, I get this in kernel messages:

Code:
[pbbuttonsd] No event devices: Check configuration_
Back to top
View user's profile Send private message
Jimmers
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 145

PostPosted: Fri Dec 16, 2005 2:03 am    Post subject: Reply with quote

Did some googling, and found the answer:

Code:
cd /dev
MAKEDEV input


All the event devices [0-7] are present after that, and pbbuttons is normal.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Dec 16, 2005 1:29 pm    Post subject: Reply with quote

Yeah, that's definitely a udev issue then, perhaps it's worth taking the issue upstream?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Jimmers
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 145

PostPosted: Fri Dec 16, 2005 4:18 pm    Post subject: Reply with quote

JoseJX wrote:
Yeah, that's definitely a udev issue then, perhaps it's worth taking the issue upstream?


Like Bugzilla?
Back to top
View user's profile Send private message
knirscher
n00b
n00b


Joined: 25 Aug 2005
Posts: 16
Location: Darmstadt, Germany

PostPosted: Thu Jan 05, 2006 4:13 pm    Post subject: Reply with quote

I experienced the same problem after upgrading to kernel 2.6.15-rc6 and udev-079.

I did a MAKEDEV input and of course pbbuttonsd worked. But I am running a udev only system, so all nodes should disappear if I reboot my system.

I downgraded to udev-068, rebooted, but pbbuttonsd did not work. So figured it might be a kernel issue after all and I might as well stick with udev-079.

Having upgraded to udev-079 again, I expected pbbuttonsd _not_ to work without me having done a MAKEDEV. Astonishingly pbbuttonsd _does_ work. I am using exactly the same kernel and udev as in line 1, but now the device node gets obviously created.

Now am I getting something totally wrong or is it dark voodoo?
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