2003-09-15 06:44:53

by Geert Uytterhoeven

[permalink] [raw]
Subject: Vaio doesn't poweroff with 2.4.22

Hi,

With 2.4.22, my Sony Vaio PCG-Z600TEK (s/600/505/ in US/JP) shows a regression
w.r.t. power management:
- It doesn't poweroff anymore (screen contents are still there after the
powering down message)
- It doesn't reboot anymore (screen goes black, though)
- It accidentally suspended to RAM once while I was actively working on it (I
never managed to get suspend working, except for this `accident'). I didn't
see any messages about this in the kernel log.

Relevant config options for 2.4.22:
| tux$ grep acpi .config
| # ACPI Support
| CONFIG_ACPI=y
| # CONFIG_ACPI_HT_ONLY is not set
| CONFIG_ACPI_BOOT=y
| CONFIG_ACPI_BUS=y
| CONFIG_ACPI_INTERPRETER=y
| CONFIG_ACPI_EC=y
| CONFIG_ACPI_POWER=y
| CONFIG_ACPI_PCI=y
| CONFIG_ACPI_SLEEP=y
| CONFIG_ACPI_SYSTEM=y
| CONFIG_ACPI_AC=y
| CONFIG_ACPI_BATTERY=y
| CONFIG_ACPI_BUTTON=y
| CONFIG_ACPI_FAN=y
| CONFIG_ACPI_PROCESSOR=y
| CONFIG_ACPI_THERMAL=y
| # CONFIG_ACPI_ASUS is not set
| # CONFIG_ACPI_TOSHIBA is not set
| CONFIG_ACPI_DEBUG=y
| # CONFIG_ACPI_RELAXED_AML is not set
| tux$

Relevant config options for 2.4.21, which does poweroff/reboot without
problems:
| tux$ grep acpi .config
| # CONFIG_HOTPLUG_PCI_ACPI is not set
| CONFIG_ACPI=y
| CONFIG_ACPI_DEBUG=y
| CONFIG_ACPI_BUSMGR=y
| CONFIG_ACPI_SYS=y
| CONFIG_ACPI_CPU=y
| CONFIG_ACPI_BUTTON=y
| CONFIG_ACPI_AC=y
| CONFIG_ACPI_EC=y
| CONFIG_ACPI_CMBATT=y
| CONFIG_ACPI_THERMAL=y
| tux$

If you need more information or want me to ttry something, please ask!

Thanks!

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds


2003-09-15 07:04:37

by Gerardo Exequiel Pozzi

[permalink] [raw]
Subject: Re: Vaio doesn't poweroff with 2.4.22

On Mon, 15 Sep 2003 08:43:56 +0200 (MEST), Geert Uytterhoeven wrote:
> Hi,
>
>With 2.4.22, my Sony Vaio PCG-Z600TEK (s/600/505/ in US/JP) shows a regression
>w.r.t. power management:
> - It doesn't poweroff anymore (screen contents are still there after the
> powering down message)
> - It doesn't reboot anymore (screen goes black, though)
> - It accidentally suspended to RAM once while I was actively working on it (I
> never managed to get suspend working, except for this `accident'). I didn't
> see any messages about this in the kernel log.
>
>Relevant config options for 2.4.22:
>| tux$ grep acpi .config
>| # ACPI Support
>| CONFIG_ACPI=y
>| # CONFIG_ACPI_HT_ONLY is not set
>| CONFIG_ACPI_BOOT=y
>| CONFIG_ACPI_BUS=y
>| CONFIG_ACPI_INTERPRETER=y
>| CONFIG_ACPI_EC=y
>| CONFIG_ACPI_POWER=y
>| CONFIG_ACPI_PCI=y
>| CONFIG_ACPI_SLEEP=y
>| CONFIG_ACPI_SYSTEM=y
>| CONFIG_ACPI_AC=y
>| CONFIG_ACPI_BATTERY=y
>| CONFIG_ACPI_BUTTON=y
>| CONFIG_ACPI_FAN=y
>| CONFIG_ACPI_PROCESSOR=y
>| CONFIG_ACPI_THERMAL=y
>| # CONFIG_ACPI_ASUS is not set
>| # CONFIG_ACPI_TOSHIBA is not set
>| CONFIG_ACPI_DEBUG=y
>| # CONFIG_ACPI_RELAXED_AML is not set
>| tux$
>
>If you need more information or want me to ttry something, please ask!

Hi,

you have activate this opcion?
CONFIG_PM=y

without this my machine don't poweroff after halt.

chau,
djgera


--
Gerardo Exequiel Pozzi ( djgera )
http://www.vmlinuz.com.ar http://www.djgera.com.ar
KeyID: 0x1B8C330D
Key fingerprint = 0CAA D5D4 CD85 4434 A219 76ED 39AB 221B 1B8C 330D

2003-09-15 07:09:10

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: Vaio doesn't poweroff with 2.4.22

On Mon, 15 Sep 2003, Gerardo Exequiel Pozzi wrote:
> On Mon, 15 Sep 2003 08:43:56 +0200 (MEST), Geert Uytterhoeven wrote:
> >With 2.4.22, my Sony Vaio PCG-Z600TEK (s/600/505/ in US/JP) shows a regression
> >w.r.t. power management:
> > - It doesn't poweroff anymore (screen contents are still there after the
> > powering down message)
> > - It doesn't reboot anymore (screen goes black, though)
> > - It accidentally suspended to RAM once while I was actively working on it (I
> > never managed to get suspend working, except for this `accident'). I didn't
> > see any messages about this in the kernel log.
> >
> >Relevant config options for 2.4.22:
> >| tux$ grep acpi .config
> >| # ACPI Support
> >| CONFIG_ACPI=y
> >| # CONFIG_ACPI_HT_ONLY is not set
> >| CONFIG_ACPI_BOOT=y
> >| CONFIG_ACPI_BUS=y
> >| CONFIG_ACPI_INTERPRETER=y
> >| CONFIG_ACPI_EC=y
> >| CONFIG_ACPI_POWER=y
> >| CONFIG_ACPI_PCI=y
> >| CONFIG_ACPI_SLEEP=y
> >| CONFIG_ACPI_SYSTEM=y
> >| CONFIG_ACPI_AC=y
> >| CONFIG_ACPI_BATTERY=y
> >| CONFIG_ACPI_BUTTON=y
> >| CONFIG_ACPI_FAN=y
> >| CONFIG_ACPI_PROCESSOR=y
> >| CONFIG_ACPI_THERMAL=y
> >| # CONFIG_ACPI_ASUS is not set
> >| # CONFIG_ACPI_TOSHIBA is not set
> >| CONFIG_ACPI_DEBUG=y
> >| # CONFIG_ACPI_RELAXED_AML is not set
> >| tux$
> >
> >If you need more information or want me to ttry something, please ask!
>
> you have activate this opcion?
> CONFIG_PM=y
>
> without this my machine don't poweroff after halt.

Yes I have.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

2003-09-15 13:53:21

by Bruno Ducrot

[permalink] [raw]
Subject: Re: [ACPI] Vaio doesn't poweroff with 2.4.22

On Mon, Sep 15, 2003 at 08:43:56AM +0200, Geert Uytterhoeven wrote:
> Hi,
>
> With 2.4.22, my Sony Vaio PCG-Z600TEK (s/600/505/ in US/JP) shows a regression
> w.r.t. power management:
> - It doesn't poweroff anymore (screen contents are still there after the
> powering down message)
> - It doesn't reboot anymore (screen goes black, though)
> - It accidentally suspended to RAM once while I was actively working on it (I
> never managed to get suspend working, except for this `accident'). I didn't
> see any messages about this in the kernel log.
>


Are you able to reboot without acpi?

--
Ducrot Bruno

-- Which is worse: ignorance or apathy?
-- Don't know. Don't care.

2003-09-16 20:07:05

by Pavel Machek

[permalink] [raw]
Subject: Re: Vaio doesn't poweroff with 2.4.22

Hi!

> With 2.4.22, my Sony Vaio PCG-Z600TEK (s/600/505/ in US/JP) shows a regression
> w.r.t. power management:
> - It doesn't poweroff anymore (screen contents are still there after the
> powering down message)
> - It doesn't reboot anymore (screen goes black, though)
> - It accidentally suspended to RAM once while I was actively working on it (I
> never managed to get suspend working, except for this `accident'). I didn't
> see any messages about this in the kernel log.

It suspended to RAM... Did it also *resume* correctly?
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

2003-09-17 09:22:30

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: Vaio doesn't poweroff with 2.4.22

On Tue, 16 Sep 2003, Pavel Machek wrote:
> > With 2.4.22, my Sony Vaio PCG-Z600TEK (s/600/505/ in US/JP) shows a regression
> > w.r.t. power management:
> > - It doesn't poweroff anymore (screen contents are still there after the
> > powering down message)
> > - It doesn't reboot anymore (screen goes black, though)
> > - It accidentally suspended to RAM once while I was actively working on it (I
> > never managed to get suspend working, except for this `accident'). I didn't
> > see any messages about this in the kernel log.
>
> It suspended to RAM... Did it also *resume* correctly?

Yes, since I could continue working without problems (except for lost Ethernet,
solved by ifdown -a/ifup -a).

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

2003-09-17 10:32:56

by Pavel Machek

[permalink] [raw]
Subject: Re: Vaio doesn't poweroff with 2.4.22

Hi!

> > > With 2.4.22, my Sony Vaio PCG-Z600TEK (s/600/505/ in US/JP) shows a regression
> > > w.r.t. power management:
> > > - It doesn't poweroff anymore (screen contents are still there after the
> > > powering down message)
> > > - It doesn't reboot anymore (screen goes black, though)
> > > - It accidentally suspended to RAM once while I was actively working on it (I
> > > never managed to get suspend working, except for this `accident'). I didn't
> > > see any messages about this in the kernel log.
> >
> > It suspended to RAM... Did it also *resume* correctly?
>
> Yes, since I could continue working without problems (except for lost Ethernet,
> solved by ifdown -a/ifup -a).

And was that acpi or apm? If it was acpi you saw a little miracle.

Pavel

--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

2003-09-17 12:46:36

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: Vaio doesn't poweroff with 2.4.22

On Wed, 17 Sep 2003, Pavel Machek wrote:
> > > > With 2.4.22, my Sony Vaio PCG-Z600TEK (s/600/505/ in US/JP) shows a regression
> > > > w.r.t. power management:
> > > > - It doesn't poweroff anymore (screen contents are still there after the
> > > > powering down message)
> > > > - It doesn't reboot anymore (screen goes black, though)
> > > > - It accidentally suspended to RAM once while I was actively working on it (I
> > > > never managed to get suspend working, except for this `accident'). I didn't
> > > > see any messages about this in the kernel log.
> > >
> > > It suspended to RAM... Did it also *resume* correctly?
> >
> > Yes, since I could continue working without problems (except for lost Ethernet,
> > solved by ifdown -a/ifup -a).
>
> And was that acpi or apm? If it was acpi you saw a little miracle.

ACPI.

BTW, I just started to see other weird things that may be related to ACPI, but
aren't related to Linux (machine powers down 1 second after power up, etc.),
but now it's fine again (running 2.4.21).

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

2003-09-18 11:35:20

by Pavel Machek

[permalink] [raw]
Subject: Re: [ACPI] Re: Vaio doesn't poweroff with 2.4.22

Hi!

> > And was that acpi or apm? If it was acpi you saw a little miracle.
>
> ACPI.
>
> BTW, I just started to see other weird things that may be related to ACPI, but
> aren't related to Linux (machine powers down 1 second after power up, etc.),
> but now it's fine again (running 2.4.21).

I have seen similar crazy stuff (like hard crash with power LED going
both green *and* red on OS boot (any OS, even w98) after poweron.
Only cure was to unplug it and remove battery. Seeing crash
where 4-sec-power no longer worked was pretty common...

ACPI tends to provoke rather weird hw problems.
--
Pavel
Written on sharp zaurus, because my Velo1 broke. If you have Velo you don't need...

2003-09-20 13:18:04

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: Vaio doesn't poweroff with 2.4.22

On Tue, 16 Sep 2003, Roger Luethi wrote:
> On Mon, 15 Sep 2003 08:43:56 +0200, Geert Uytterhoeven wrote:
> > With 2.4.22, my Sony Vaio PCG-Z600TEK (s/600/505/ in US/JP) shows a regression
> > w.r.t. power management:
> > - It doesn't poweroff anymore (screen contents are still there after the
> > powering down message)
> > - It doesn't reboot anymore (screen goes black, though)
> > - It accidentally suspended to RAM once while I was actively working on it (I
> > never managed to get suspend working, except for this `accident'). I didn't
> > see any messages about this in the kernel log.
>
> On some machines APIC (sic) support can cause this. Try turning off UP APIC
> if you have it turned on.

If I turn off CONFIG_X86_UP_APIC I get:

| ACPI disabled because your bios is from 00 and too old
| You can enable it with acpi=force
| Sony Vaio laptop detected.

and ACPI is disabled. Halt doesn't work.

If I then pass `acpi=force' to explicitly enable ACPI, `halt' works again and
powers off the machine, but `reboot' causes a black screen with IDE disk spun
down, but no restart.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

2003-09-20 13:58:55

by Willy Tarreau

[permalink] [raw]
Subject: Re: Vaio doesn't poweroff with 2.4.22

On Sat, Sep 20, 2003 at 03:17:37PM +0200, Geert Uytterhoeven wrote:

> If I turn off CONFIG_X86_UP_APIC I get:
>
> | ACPI disabled because your bios is from 00 and too old
> | You can enable it with acpi=force
> | Sony Vaio laptop detected.
>
> and ACPI is disabled. Halt doesn't work.
>
> If I then pass `acpi=force' to explicitly enable ACPI, `halt' works again and
> powers off the machine, but `reboot' causes a black screen with IDE disk spun
> down, but no restart.

Strangely, the problem you describe here what I got with local APIC enabled,
on a Vaio PCG-FX705 (athlon 1.3G). I think I will retry with a recent kernel
to be sure these problems vanished.

Regards,
Willy

2003-09-21 14:50:26

by Jos Hulzink

[permalink] [raw]
Subject: Re: Vaio doesn't poweroff with 2.4.22

On Saturday 20 Sep 2003 15:17, Geert Uytterhoeven wrote:
> If I turn off CONFIG_X86_UP_APIC I get:
> | ACPI disabled because your bios is from 00 and too old
> | You can enable it with acpi=force
> | Sony Vaio laptop detected.
>
> and ACPI is disabled. Halt doesn't work.
>
> If I then pass `acpi=force' to explicitly enable ACPI, `halt' works again
> and powers off the machine, but `reboot' causes a black screen with IDE
> disk spun down, but no restart.
>
> Gr{oetje,eeting}s,

My PIII 650 with 2000 BIOS boots linux with acpi disabled for the same reason,
unless force ACPI support. It reboots fine with ACPI forced. The ACPI support
of this Intel BX mobo is good, so this is a false negative IMHO. (I wonder if
the check is correct, shouldn't it say 2000 instead of 00 ?)

Jos

2003-09-22 06:45:24

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: Vaio doesn't poweroff with 2.4.22

On Sun, 21 Sep 2003, Jos Hulzink wrote:
> On Saturday 20 Sep 2003 15:17, Geert Uytterhoeven wrote:
> > If I turn off CONFIG_X86_UP_APIC I get:
> > | ACPI disabled because your bios is from 00 and too old
> > | You can enable it with acpi=force
> > | Sony Vaio laptop detected.
> >
> > and ACPI is disabled. Halt doesn't work.
> >
> > If I then pass `acpi=force' to explicitly enable ACPI, `halt' works again
> > and powers off the machine, but `reboot' causes a black screen with IDE
> > disk spun down, but no restart.
> >
> > Gr{oetje,eeting}s,
>
> My PIII 650 with 2000 BIOS boots linux with acpi disabled for the same reason,
> unless force ACPI support. It reboots fine with ACPI forced. The ACPI support
> of this Intel BX mobo is good, so this is a false negative IMHO. (I wonder if
> the check is correct, shouldn't it say 2000 instead of 00 ?)

If year < 90 it adds 2000 so that's OK. But the code needs ACPI from 2001 or
more recent, so my BIOS from 2000 fails...

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

2003-09-25 07:20:03

by Pavel Machek

[permalink] [raw]
Subject: Re: Vaio doesn't poweroff with 2.4.22

Hi!

> > On some machines APIC (sic) support can cause this. Try turning off UP APIC
> > if you have it turned on.
>
> If I turn off CONFIG_X86_UP_APIC I get:
>
> | ACPI disabled because your bios is from 00 and too old
> | You can enable it with acpi=force
> | Sony Vaio laptop detected.
>
> and ACPI is disabled. Halt doesn't work.
>
> If I then pass _acpi=force' to explicitly enable ACPI, _halt' works again and
> powers off the machine, but _reboot' causes a black screen with IDE disk spun
> down, but no restart.

If acpi is actually usefull there, we might want to whitelist it.
Try other reboot methods...
--
Pavel
Written on sharp zaurus, because my Velo1 broke. If you have Velo you don't need...