Ticket #2355 (closed enhancement: invalid)

Opened 5 years ago

Last modified 5 years ago

Adding PowerBook G4 support

Reported by: ticket Owned by: somebody
Priority: major Milestone:
Component: sensors Version:
Keywords: powerbook, support, kernel module Cc: jjdanimoth@…

Description

Hello to all, I've an Apple Powerbook G4, and ( for now ) lm_sensors can't recognize anything. But I've found a possible solution.

Let me go inorder. I installed lm_sensors and try sensor-detect. The script runs fine, and tell me that it has found 3 modules:

Driver `smartbatt' (should be inserted):             
  Detects correctly:                                 
  * Bus `radeonfb monid'                             
    Busdriver `UNKNOWN', I2C address 0x0b            
    Chip `Smart Battery' (confidence: 5)             

Driver `max6650' (should be inserted):
  Detects correctly:                  
  * Bus `radeonfb monid'              
    Busdriver `UNKNOWN', I2C address 0x1b
    Chip `Maxim MAX6650/MAX6651' (confidence: 3)
  * Bus `radeonfb monid'                        
    Busdriver `UNKNOWN', I2C address 0x1f       
    Chip `Maxim MAX6650/MAX6651' (confidence: 3)
  * Bus `radeonfb monid'                        
    Busdriver `UNKNOWN', I2C address 0x48       
    Chip `Maxim MAX6650/MAX6651' (confidence: 3)
  * Bus `radeonfb monid'                        
    Busdriver `UNKNOWN', I2C address 0x4b       
    Chip `Maxim MAX6650/MAX6651' (confidence: 3)

Driver `lm75' (should be inserted):
  Detects correctly:
  * Bus `uni-n 1'
    Busdriver `UNKNOWN', I2C address 0x49
    Chip `Dallas Semiconductor DS75' (confidence: 6)

I load these three modules... ...but, when I try to load sensors ( with the config that sensors-detect has created...)

$ sudo sensors -s
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.

No good !

So I tried another program ( computertemp, a gnome applet ) and.. surprise ! It works fine! I have investigated how it works. It load the same module that use computertemp ( therm_adt746x ) and this is the dmesg:

adt746x: version 1 (supported)
adt746x: Thermostat bus: 1, address: 0x2e, limit_adjust: 0, fan_speed: -1
sensor 0: CPU/INTREPID BOTTOMSIDE
sensor 1: CPU BOTTOMSIDE
sensor 2: PWR SUPPLY BOTTOMSIDE
adt746x: ADT7467 initializing

Sounds good.. I've checked under /sys/devices/temperatures, and I've found all the temperatures and fan speed. One example:

$cat /sys/devices/temperatures/sensor1_location
CPU BOTTOMSIDE
$ cat /sys/devices/temperatures/sensor1_temperature
47

This is good ! So I've restarted sensors, sure that now it can recognize all things, but... same No Sensors found! error...

We have the right module in the kernel, but lm_sensors doesn't recognize it.

There is a possibility that the Powerbook Aluminium G4 support is added? If you need more tests, controls or other let me know.

Many Thanks !

Change History

Changed 5 years ago by khali

  • status changed from new to closed
  • resolution set to invalid

The macintosh thermal drivers do not follow the standard sysfs interface libsensors relies on. That's a "bug" in these drivers, not lm-sensors, so there's nothing we can do. If you think that these drivers should be updated to implement the standard interface, please report to the maintainer(s) of these drivers.

FWIW, the "Smart Battery" and "Maxim MAX6650/MAX6651" detections reported by sensors-detect are most certainly mis-detections (as can be told from the low confidence values.)

Note: See TracTickets for help on using tickets.