ACPI S3 and VIA (C3) CPU

View: New views
6 Messages — Rating Filter:   Alert me  

ACPI S3 and VIA (C3) CPU

by jcarnat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I tried zzz(8) on my VIA machine (VIA Nehemiah) but got the error:
acpi0: entering state 3
acpi0: ACPI S3 not available on this platform
Using "sudo apm -S" just froze the machine.

It's running a GENERIC 4.99.72 kernel on top of a 4.99.63 userland.
I'm checking if it's worth upgrading the whole system (userland + pkgsrc)
to 4.99.72.

According to sysctl there is a suspend option:
# sysctl machdep
machdep.biosbasemem = 639
machdep.biosextmem = 457664
machdep.booted_kernel = netbsd
machdep.diskinfo: 80:156301488(1024/240/63),2  wd0:80
machdep.fpu_present = 1
machdep.osfxsr = 1
machdep.sse = 1
machdep.sse2 = 0
machdep.idle-mechanism = halt
machdep.acpi_vbios_reset = 1
machdep.acpi_beep_on_reset = 0
machdep.cpu_brand = VIA Nehemiah
machdep.sparse_dump = 1
machdep.tsc_freq = 1002365930
machdep.sleep_state = 0
machdep.acpiapm.standby = 1
machdep.acpiapm.suspend = 3

Is it possible to put this machine in sleep mode ?
Do I need a driver not enabled in GENERIC ?

TIA,
    Jo



Re: ACPI S3 and VIA (C3) CPU

by Nicolas Joly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Aug 31, 2008 at 10:44:29PM +0200, Joel CARNAT wrote:

> Hello,
>
> I tried zzz(8) on my VIA machine (VIA Nehemiah) but got the error:
> acpi0: entering state 3
> acpi0: ACPI S3 not available on this platform
> Using "sudo apm -S" just froze the machine.
>
> It's running a GENERIC 4.99.72 kernel on top of a 4.99.63 userland.
> I'm checking if it's worth upgrading the whole system (userland + pkgsrc)
> to 4.99.72.
>
> According to sysctl there is a suspend option:
> machdep.acpiapm.standby = 1
> machdep.acpiapm.suspend = 3

Just to be sure, check with `hw.acpi.supported_states' node :

njoly@petaure [~]> sysctl hw.acpi.supported_states
hw.acpi.supported_states = S0 S1 S3 S4 S5

--
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.

Re: ACPI S3 and VIA (C3) CPU

by jcarnat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le Dim 31 août 2008 22:52, Nicolas Joly a écrit :

> On Sun, Aug 31, 2008 at 10:44:29PM +0200, Joel CARNAT wrote:
>> Hello,
>>
>> I tried zzz(8) on my VIA machine (VIA Nehemiah) but got the error:
>> acpi0: entering state 3
>> acpi0: ACPI S3 not available on this platform
>> Using "sudo apm -S" just froze the machine.
>>
>> It's running a GENERIC 4.99.72 kernel on top of a 4.99.63 userland.
>> I'm checking if it's worth upgrading the whole system (userland +
>> pkgsrc)
>> to 4.99.72.
>>
>> According to sysctl there is a suspend option:
>> machdep.acpiapm.standby = 1
>> machdep.acpiapm.suspend = 3
>
> Just to be sure, check with `hw.acpi.supported_states' node :
>
> njoly@petaure [~]> sysctl hw.acpi.supported_states
> hw.acpi.supported_states = S0 S1 S3 S4 S5
>

# sysctl hw.acpi
hw.acpi.root = 1010208
hw.acpi.supported_states = S0 S1 S4 S5

Is there some hidden option to enable in the kernel ?

TIA,
   Jo




Re: ACPI S3 and VIA (C3) CPU

by Nicolas Joly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Aug 31, 2008 at 11:05:42PM +0200, Joel CARNAT wrote:
> Le Dim 31 août 2008 22:52, Nicolas Joly a écrit :
> > On Sun, Aug 31, 2008 at 10:44:29PM +0200, Joel CARNAT wrote:
> >> Hello,
> >>
> >> I tried zzz(8) on my VIA machine (VIA Nehemiah) but got the error:
> >> acpi0: entering state 3
> >> acpi0: ACPI S3 not available on this platform
> >> Using "sudo apm -S" just froze the machine.
[...]
> # sysctl hw.acpi
> hw.acpi.root = 1010208
> hw.acpi.supported_states = S0 S1 S4 S5
>
> Is there some hidden option to enable in the kernel ?

No. AFAIK, it won't work without a BIOS supporting it.

--
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.

Re: ACPI S3 and VIA (C3) CPU

by jcarnat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le Dim 31 août 2008 23:27, Nicolas Joly a écrit :

> On Sun, Aug 31, 2008 at 11:05:42PM +0200, Joel CARNAT wrote:
>> Le Dim 31 août 2008 22:52, Nicolas Joly a écrit :
>> > On Sun, Aug 31, 2008 at 10:44:29PM +0200, Joel CARNAT wrote:
>> >> Hello,
>> >>
>> >> I tried zzz(8) on my VIA machine (VIA Nehemiah) but got the error:
>> >> acpi0: entering state 3
>> >> acpi0: ACPI S3 not available on this platform
>> >> Using "sudo apm -S" just froze the machine.
> [...]
>> # sysctl hw.acpi
>> hw.acpi.root = 1010208
>> hw.acpi.supported_states = S0 S1 S4 S5
>>
>> Is there some hidden option to enable in the kernel ?
>
> No. AFAIK, it won't work without a BIOS supporting it.
>

For what it's worth knowing this, I just booted an OpenBSD 4.4 release
from USB. I can't find the ACPI supported states information, but when I
ran "zzz", my SSH session froze and the TV-out went black. Nothing changed
when I hit the USB keyboard. Only when I used the on/off button, the
screen output came back. So did my SSH session.

I also see that OpenBSD reports temperature correctly (about 45°C) when
NetBSD give dumm value (something like -350°C).

OpenBSD says my CPU is:
hw.model=VIA Nehemiah ("CentaurHauls" 686-class)
hw.product=CLE266-8235

Should I boot a live-Linux to check if this machine supports suspend (with
a special device) ?

Regards,
    Jo



Re: ACPI S3 and VIA (C3) CPU

by jcarnat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Le Dim 31 août 2008 23:27, Nicolas Joly a écrit :

> On Sun, Aug 31, 2008 at 11:05:42PM +0200, Joel CARNAT wrote:
>> Le Dim 31 août 2008 22:52, Nicolas Joly a écrit :
>> > On Sun, Aug 31, 2008 at 10:44:29PM +0200, Joel CARNAT wrote:
>> >> Hello,
>> >>
>> >> I tried zzz(8) on my VIA machine (VIA Nehemiah) but got the error:
>> >> acpi0: entering state 3
>> >> acpi0: ACPI S3 not available on this platform
>> >> Using "sudo apm -S" just froze the machine.
> [...]
>> # sysctl hw.acpi
>> hw.acpi.root = 1010208
>> hw.acpi.supported_states = S0 S1 S4 S5
>>

Linux 2.6.24.5 (also) says:
ACPI: (supports S0 S1 S4 S5)

(Don't know why I keep thinking Linux might work better/different...)

>> Is there some hidden option to enable in the kernel ?
>
> No. AFAIK, it won't work without a BIOS supporting it.
>

Would this only be a BIOS issue ?
I mean, if I can find a BIOS upgrade, it may help ?

Regards,
  Jo


LightInTheBox - Buy quality products at wholesale price!