Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iBook, 2.6.11, pbbuttonsd & USB
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
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Tue Mar 15, 2005 6:57 pm    Post subject: iBook, 2.6.11, pbbuttonsd & USB Reply with quote

I have a G4 iBook with gentoo-dev-sources-2.6.11-r3 and the newest pbbuttonsd. When I close the lid, or after a certain amount of time, the iBook goes to sleep. It just looks like under MacOSX. When I open the lid/press a key the iBook wakes up EXCEPT for USB which only works sometimes. If I have an optical mouse attached, I see it's red light flashing for a second, but then its off again and the mouse is not working. When the iBook wakes up I see a few messages on the console, just as if it would boot, and I see that USB gets restarted and it also finds the mouse, but it seems to be immediately turned off again, although dmesg doesn't show that.

Another question regards pbbutoonsd: It works, the only thing thats REALLY annoying is that it only reacts on the mouse, not on the keyboard. That is, if I'm typing something for a longer time, the display gets dimmed, which is not what I want. I want it to only dim the display when mouse AND keyboard are idle. Also, the sleep button and volume/brightness buttons don't work. Ironically, they do work if pbbuttonsd is not running. I'm not sure if the keycodes in pbbuttonsd.conf are correct, how can I find out if they are?

Tom
Back to top
View user's profile Send private message
Eldomir
n00b
n00b


Joined: 09 Nov 2003
Posts: 63
Location: Madrid/Spain/EU

PostPosted: Tue Mar 15, 2005 8:15 pm    Post subject: Reply with quote

I still haven't tried 2.6.11 on my ibook, so I can't help with some of the things you ask. However, a very easy way to check if the keys in the .conf file are correct is go to the (real) console and run "showkey": press the keys you want to use, and compare those values with the ones in pbbuttonsd.conf, to see if they match.

Maybe you can find more info on the USB/sleep issue here: http://www.aronchi.org/LinuxOnIBookG4. That's a very neat page for gentoo/ibook users, or at least it's been very helpful to me.
_________________
"Give a man a fire and he will be warm for a day. Set a man on fire and he will be warm for the rest of his life"
-- Terry Pratchett
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Wed Mar 16, 2005 1:24 am    Post subject: Reply with quote

Hi,
thats the strange thing - the keycodes are correct! When I press F12/Eject I get 88 and when I press Fn+F12/Eject I get 161, or vice versa, I don't remember. I tried both in the pbbuttonsd.conf but both didn't work. So am I messing any kernel modules perhaps? Thanks for the link though, I'll have a look at it!

Tom
Back to top
View user's profile Send private message
Fugee47
Apprentice
Apprentice


Joined: 25 Nov 2004
Posts: 196
Location: Germany

PostPosted: Fri Mar 25, 2005 1:31 pm    Post subject: Reply with quote

hello,

my usb-mouse is behaving strange on my new ibook G4. When i get my ibook to sleep and wake it up, the usb-mouse doesn`t work. When i immediately get it to sleep again and wake it up, the mouse is working. Its reproducable !!
The usb-mouse only works on every second wake up.
i have kernel 2.6.11-r4 and all other things, speedfreq ... are working fine without any problems.

Maybe someone has a solution for this problem ??
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Fri Mar 25, 2005 2:34 pm    Post subject: Reply with quote

Hi, I have the EXACT same behaviour, but I'm using 2.6.11-r3. No solution yet, sorry :-(

Tom
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Tue Mar 29, 2005 1:07 am    Post subject: Reply with quote

elektrohirn, check if you have CONFIG_INPUT_EVDEV enabled on your kernel. I banged my head on a wall for a month before I found out this was my problem. The option can be found in: Device Drivers -> Input device support -> Event interface

Regarding the USB/sleep issue, it is a known bug.
Back to top
View user's profile Send private message
Fugee47
Apprentice
Apprentice


Joined: 25 Nov 2004
Posts: 196
Location: Germany

PostPosted: Tue Mar 29, 2005 11:31 am    Post subject: jippiii Reply with quote

thank u Sodki !!!

that solution worked for me !!!
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Tue Mar 29, 2005 10:31 pm    Post subject: Reply with quote

You're welcome. Now don't forget to emerge gtkpbbuttons for some sweet eye-candy action. :D
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Fri Apr 01, 2005 11:06 pm    Post subject: Reply with quote

@Sodki
I'll try your solution when I have time again, thanks so far!

Tom
Back to top
View user's profile Send private message
DrZoidberg
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2003
Posts: 119
Location: New Port Richey, Florida

PostPosted: Sun May 15, 2005 11:47 pm    Post subject: Reply with quote

I have found a possible workaround for the USB mouse/sleep problem. On my ibook G4 12" 1.2Ghz 768MB kernel 2.6.11 system, I have ohci_hcd build into the kernel and ehci_hcd as a module. After wakeup, my USB mouse is dead. Sleep again, and it starts working again when my iBook wakes up.

Thing is, I don't have to sleep again to get the mouse working. Just rmmod ehcd_hcd and the mouse starts working again. In fact, if I modprobe ehci_hcd, the mouse continues to work. I tried it with a USB keyboard and got the same result. I tried connecting both USB keyboard and mouse and got the same result.

This is strange because I already have a script (/etc/power/event.d/modules)
which unloads all modules on sleep and reloads them on wakeup. My system is pretty much set up along the lines of Aronchi's (see http://www.aronchi.org/LinuxOnIBookG4).
Back to top
View user's profile Send private message
colinleroy
n00b
n00b


Joined: 24 Nov 2003
Posts: 50

PostPosted: Mon May 16, 2005 6:55 am    Post subject: fix in 2.6.12-rc4 Reply with quote

Hi,

the USB problems after sleep are fixed in 2.6.12-rc4. If you only want the necessary patches, these are:
http://ftp.kernel.org/pub/linux/kernel/people/colin/patches/2.6.12-rc3/%5bpatch_2.6.12-rc2%5d_ehci_misc_updates,_notably_port_power_switching.patch
(this is the only one needed if you have 2.6.12-rc3)

http://ftp.kernel.org/pub/linux/kernel/people/colin/patches/2.6.12-rc2/%5bpatch_2.6.12-rc2%5d_usb_hcd_pci_suspend_resume_fixes.patch
http://ftp.kernel.org/pub/linux/kernel/people/colin/patches/2.6.12-rc2/%5bpatch_2.6.12-rc2%5d_usb_interface_suspend_signatures_fixes.patch
http://ftp.kernel.org/pub/linux/kernel/people/colin/patches/2.6.12-rc2/%5bpatch_2.6.12-rc2%5d_usb_suspend_device()_signature_change,_fixes.patch
(needed if you have 2.6.12-rc2 or before).
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Mon May 16, 2005 7:26 am    Post subject: Reply with quote

Quote:
the USB problems after sleep are fixed in 2.6.12-rc4


not here, still have to rmmod/modprobe usb modules to get my mouse back in -rc4 and i believe i saw Benjamin telling this issue is not completly fixed.
Mine is an alubook, not an ibook though.

cheers
_________________
Error: Failing not supported by current locale
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