* Front LED on Mac mini G4
@ 2007-02-20 13:33 Florian Fainelli
2007-02-20 15:57 ` Johannes Berg
2007-02-20 19:40 ` Benjamin Herrenschmidt
0 siblings, 2 replies; 5+ messages in thread
From: Florian Fainelli @ 2007-02-20 13:33 UTC (permalink / raw)
To: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 335 bytes --]
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.
--
Regards, Florian
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Front LED on Mac mini G4
2007-02-20 13:33 Front LED on Mac mini G4 Florian Fainelli
@ 2007-02-20 15:57 ` Johannes Berg
2007-02-20 17:35 ` Florian Fainelli
2007-02-20 19:40 ` Benjamin Herrenschmidt
1 sibling, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2007-02-20 15:57 UTC (permalink / raw)
To: Florian Fainelli; +Cc: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 459 bytes --]
On Tue, 2007-02-20 at 14:33 +0100, Florian Fainelli wrote:
> 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.
> 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
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Front LED on Mac mini G4
2007-02-20 15:57 ` Johannes Berg
@ 2007-02-20 17:35 ` Florian Fainelli
2007-02-20 17:41 ` Johannes Berg
0 siblings, 1 reply; 5+ messages in thread
From: Florian Fainelli @ 2007-02-20 17:35 UTC (permalink / raw)
To: Johannes Berg; +Cc: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]
Hi Johannes,
Le mardi 20 février 2007, Johannes Berg a écrit :
> On Tue, 2007-02-20 at 14:33 +0100, Florian Fainelli wrote:
> > 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 ?
>
> > 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
--
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
---------------------------------------------
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Front LED on Mac mini G4
2007-02-20 17:35 ` Florian Fainelli
@ 2007-02-20 17:41 ` Johannes Berg
0 siblings, 0 replies; 5+ messages in thread
From: Johannes Berg @ 2007-02-20 17:41 UTC (permalink / raw)
To: Florian Fainelli; +Cc: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 461 bytes --]
On Tue, 2007-02-20 at 18:35 +0100, Florian Fainelli wrote:
> 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.
> 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
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Front LED on Mac mini G4
2007-02-20 13:33 Front LED on Mac mini G4 Florian Fainelli
2007-02-20 15:57 ` Johannes Berg
@ 2007-02-20 19:40 ` Benjamin Herrenschmidt
1 sibling, 0 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2007-02-20 19:40 UTC (permalink / raw)
To: Florian Fainelli; +Cc: linuxppc-dev
On Tue, 2007-02-20 at 14:33 +0100, Florian Fainelli wrote:
> 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.
> By the way, why is this driver only available as in-kernel and not module ?
Ben.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-02-20 19:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-20 13:33 Front LED on Mac mini G4 Florian Fainelli
2007-02-20 15:57 ` Johannes Berg
2007-02-20 17:35 ` Florian Fainelli
2007-02-20 17:41 ` Johannes Berg
2007-02-20 19:40 ` Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).