Port-macppc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Power button on G5 mac
On Tue, Jun 07, 2022 at 12:08:46PM -0400, Michael wrote:
> I would just enable this block, otherwise you'll get a lot of unrelated
> spam:
> if (resp[1] & PMU_INT_ENVIRONMENT) {
> uint8_t diff;
> #ifdef PMU_VERBOSE
> /* deal with environment messages */
> printf("environment:");
> for (i = 2; i < len; i++)
> printf(" %02x", resp[i]);
> printf("\n");
> #endif
>
> the filtering is in the next line:
> diff = (resp[2] ^ sc->sc_env_old ) & sc->sc_env_mask;
I get nothing from pmu0 when pressing the power button (no new output
at all with PMU_DEBUG enabled).
Is the non-configured power-mgt child expected?
[ 1.000000] pmu0 at obio0 offset 0x16000 irq 25: rev. 12
[ 1.000000] pmu0: initializing IIC bus
[ 1.000000] iic2 at pmu0: I2C bus
[ 1.000000] pmu0: initializing RTC
[ 1.000000] pmu0: power-mgt not configured
[ 1.000000] fans at obio0 offset 0x4c not configured
[ 1.000000] model PowerMac7,3
Martin
Home |
Main Index |
Thread Index |
Old Index