Skip to contentSkip to conversation

Front LED on Mac mini G4

DISCUSSION Florian Fainelli 3 participants 5 messages Feb 20, 2007

lore
Share & tools
lore
#0 lore raw

Hi all,

I would like to know whether it is possible or not to modify the via-pmu-led driver to make it work with the Mac mini G4 front LED, is there anything particular with this model ?

By the way, why is this driver only available as in-kernel and not module ?

Thanks in advance for your answer.

Signature · 1 line
Regards, Florian
#1 lore raw
Quoted 3 lines · Florian Fainelli

I would like to know whether it is possible or not to modify the via-pmu-led driver to make it work with the Mac mini G4 front LED, is there anything particular with this model ?

Not sure. If it's a PowerMac10,1 I think it should work.

Quoted 1 line

By the way, why is this driver only available as in-kernel and not module ?

Because it's just an option of the via-pmu driver.

johannes

#2 lore raw

Hi Johannes,

Le mardi 20 février 2007, Johannes Berg a écrit :

Quoted 6 lines · Florian Fainelli
Quoted 3 lines

I would like to know whether it is possible or not to modify the via-pmu-led driver to make it work with the Mac mini G4 front LED, is there anything particular with this model ?

Not sure. If it's a PowerMac10,1 I think it should work.

It is a PowerMac10,1. After bypassing some device checks in via_pmu_led_init, I tried : echo 0 > /sys/class/leds/pmu-front-led/brightness

which resulted in : PMU: bad reply len 85 and the brightness not changed of course.

the check is in via-pmu.c line 1500

Do you know what could cause this reply ?

Quoted 7 lines
Quoted 3 lines

By the way, why is this driver only available as in-kernel and not module ?

Because it's just an option of the via-pmu driver.

johannes

Signature · 15 lines
Cordialement, Florian Fainelli
---------------------------------------------
5, rue Charles Fourier
Chambre 1202
91011 Evry
http://www.alphacore.net
(+33) 01 60 76 64 21
(+33) 06 09 02 64 95
---------------------------------------------
Association MiNET
http://www.minet.net
---------------------------------------------
Institut National des Télécommunication
http://www.int-evry.fr/telecomint
---------------------------------------------
#3 lore raw
Quoted 5 lines · Florian Fainelli

It is a PowerMac10,1. After bypassing some device checks in via_pmu_led_init, I tried : echo 0 > /sys/class/leds/pmu-front-led/brightness

which resulted in : PMU: bad reply len 85 and the brightness not changed of course.

Hm, ok.

Quoted 3 lines

the check is in via-pmu.c line 1500

Do you know what could cause this reply ?

No, I don't really know the PMU that well.

johannes

#4 lore raw
In reply to Florian Fainelli
Quoted 5 lines · Florian Fainelli

Hi all,

I would like to know whether it is possible or not to modify the via-pmu-led driver to make it work with the Mac mini G4 front LED, is there anything particular with this model ?

Last I tried, the usual LED control PMU command didn't work on the Mac Mini. I don't know if there's an alternative.

Quoted 1 line

By the way, why is this driver only available as in-kernel and not module ?

Ben.