Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] PowerBook G4 keyboard not working since 2.6.38
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
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1759
Location: PB, Germany

PostPosted: Sun Aug 14, 2011 11:20 am    Post subject: [SOLVED] PowerBook G4 keyboard not working since 2.6.38 Reply with quote

Hello,

since upgrading to 2.6.38 kernel and migrating config by make oldconfig as usual, the keyboard is not working anymore:
Code:
doralin ~ # uname -a
Linux doralin 2.6.38-gentoo-r6 #5 PREEMPT Sat Aug 13 10:18:04 CEST 2011 ppc 7447A, altivec supported PowerBook5,8 GNU/Linux

doralin ~ # zgrep ADB /proc/config.gz
CONFIG_ADB=y
# CONFIG_ADB_CUDA is not set
CONFIG_ADB_PMU=y
CONFIG_ADB_PMU_LED=y
CONFIG_ADB_PMU_LED_IDE=y
# CONFIG_ADB_MACIO is not set
CONFIG_INPUT_ADBHID=y

I'm not sure anymore about the ADB stuff. I tried with and without.

Regards,
Massimo
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770


Last edited by Massimo B. on Sat Aug 27, 2011 9:30 am; edited 1 time in total
Back to top
View user's profile Send private message
dobbs
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2005
Posts: 105
Location: Wenatchee, WA

PostPosted: Tue Aug 16, 2011 7:25 am    Post subject: Reply with quote

This is from my running 2.6.38 config:
Code:
dobbs@vertigo ~ $ zgrep ADB /proc/config.gz
# CONFIG_ADB is not set
# CONFIG_ADB_CUDA is not set
CONFIG_ADB_PMU=y
CONFIG_ADB_PMU_LED=y
# CONFIG_ADB_PMU_LED_IDE is not set

CONFIG_ADB is not needed. Our laptops need ADB for the Power Management Unit, but not the keyboard. The keyboard and trackpad are on the USB bus. Try enabling USB HID support.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1759
Location: PB, Germany

PostPosted: Tue Aug 16, 2011 8:08 am    Post subject: Reply with quote

dobbs wrote:
CONFIG_ADB is not needed. Our laptops need ADB for the Power Management Unit, but not the keyboard. The keyboard and trackpad are on the USB bus. Try enabling USB HID support.

USB HID is activated since I currently write on the usb keyboard.
ADB for Power Management Unit? So why do you have it disabled?
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
dobbs
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2005
Posts: 105
Location: Wenatchee, WA

PostPosted: Tue Aug 16, 2011 8:32 am    Post subject: Reply with quote

From the menuconfig help:
Code:
  │ CONFIG_ADB_PMU:                                                         │ 
  │                                                                         │ 
  │ On PowerBooks, iBooks, and recent iMacs and Power Macintoshes, the      │ 
  │ PMU is an embedded microprocessor whose primary function is to          │ 
  │ control system power, and battery charging on the portable models.      │ 
  │ The PMU also controls the ADB (Apple Desktop Bus) which connects to     │ 
  │ the keyboard and mouse on some machines, as well as the non-volatile    │ 
  │ RAM and the RTC (real time clock) chip.  Say Y to enable support for    │ 
  │ this device; you should do so if your machine is one of those           │ 
  │ mentioned above.                                                        │ 


Code:
  │ CONFIG_ADB:                                                             │ 
  │                                                                         │ 
  │ Apple Desktop Bus (ADB) support is for support of devices which         │ 
  │ are connected to an ADB port.  ADB devices tend to have 4 pins.         │ 
  │ If you have an Apple Macintosh prior to the iMac, an iBook or           │ 
  │ PowerBook, or a "Blue and White G3", you probably want to say Y         │ 
  │ here.  Otherwise say N.                                                 │ 


Re-reading this yet again, it looks like I do want CONFIG_ADB. It appears I had the relationship between the PMU and ADB reversed -- the PMU doesn't need ADB, but provides it, and CONFIG_ADB is the actual driver to use ADB. If the hwclock is on the ADB bus, that might explain why I can't set the hardware clock in linux... Sorry for the confusion.

Still, the keyboard and trackpad are definitely USB. Did you say you got them to work?
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1759
Location: PB, Germany

PostPosted: Wed Aug 17, 2011 7:16 pm    Post subject: Reply with quote

With this config keyboard still does not work:
Code:
# zgrep ADB /proc/config.gz
CONFIG_ADB=y
CONFIG_ADB_CUDA=y
CONFIG_ADB_PMU=y
CONFIG_ADB_PMU_LED=y
CONFIG_ADB_PMU_LED_IDE=y
# CONFIG_ADB_MACIO is not set
# CONFIG_INPUT_ADBHID is not set

_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
dobbs
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2005
Posts: 105
Location: Wenatchee, WA

PostPosted: Wed Aug 17, 2011 8:41 pm    Post subject: Reply with quote

dobbs wrote:
The keyboard and trackpad are on the USB bus.


You want:
Code:
dobbs@vertigo ~ $ zgrep APPLE /proc/config.gz | grep -v ^#
CONFIG_MOUSE_APPLETOUCH=y
CONFIG_HID_APPLE=y


CONFIG_HID_APPLE is automatically selected on my system. What does zgrep EXPERT /proc/config.gz say for you? It is not set in my config.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1759
Location: PB, Germany

PostPosted: Sat Aug 20, 2011 5:44 pm    Post subject: Reply with quote

Code:
# zgrep EXPERT /proc/config.gz
CONFIG_EXPERT=y

# zgrep APPLE /proc/config.gz | grep -v ^#
CONFIG_MOUSE_APPLETOUCH=y

Keyboard not working.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
dobbs
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2005
Posts: 105
Location: Wenatchee, WA

PostPosted: Sat Aug 20, 2011 11:50 pm    Post subject: Reply with quote

I get the same result when I set CONFIG_EXPERT, which is why I have CONFIG_EXPERT=n. Do you have a specific reason for enabling it?
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1759
Location: PB, Germany

PostPosted: Sat Aug 27, 2011 8:51 am    Post subject: Reply with quote

Sorry you we're right, HID_APPLE was missing:
Code:
# zgrep HID /proc/config.gz | grep -v ^#
CONFIG_BT_HIDP=m
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
CONFIG_USB_HID=y
CONFIG_HID_APPLE=y

Working now.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
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