Skip to contentSkip to conversation

ACPI_OS_NAME: no battery or no ac_adapter

DISCUSSION Andreas Leppert 2 participants 2 messages Sep 17, 2004 – Sep 21, 2004 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

if i understand you then you have enabled this (Microsoft Windows NT value for the variable ACPI_OS_NAME) in your newest patch. i have installed the patch, ACPI_OS_NAME is now in the include/acpi/acconfig.h.

ok, ac_adapter events are possible, but why on hell is now /proc/acpi/battery/BAT0/state -> present rate always unknown (so acpi -V doesnt give me any battery information!) if i change the ACPI_OS_NAME to "Linux", acpi -V gives me information about the battery... but there aren't any ac_adapter events!

where's the problem with this? it has to do something with the ACPI_OS_NAME ...

perhaps something with my dsdt? really dont know. do you have any answers for this?

thanks again

"Moore, Robert" <[email protected]> wrote on 17.09.04 19:12:05:

Quoted 47 lines

In newer versions of ACPI CA, we have changed ACPI_OS_NAME to "Microsoft Windows NT" for exactly this reason.

Bob

Quoted 30 lines

hi,

i've a strange problem on my fujitsu laptop. If i compile my kernel using acpi, everything works fine, but acpi -V doesn't change the value of ac_adapter info. it's always set to "on-line". it doesnt matter if the ac_adapter is plugged in or not. always "on-line".

then i found this:
http://sourceforge.net/mailarchive/message.php?msg_id=8560832

so i changed the value of ACPI_OS_NAME in my /usr/src/linux/include/acpi/platform/aclinux.h from "Linux" to "Microsoft Windows NT". Now, ac_adapter changes its value from "on-line" to "off- line" if i unplug the ac_adapter.

But now, acpi -V doesnt show me any battery information. the line is just omitted! so what to do?

under http://andileppert.de/dsdtl.dsl you can find my dsdt. you will see that there are a few _OS commands... what can i do? this is a strange thing...

thanks in advance
Andi Leppert
_________________________________________________________
Mit WEB.DE FreePhone® mit höchster Qualität ab 0 Ct./Min. weltweit telefonieren! http://freephone.web.de/?mc=021201

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-devel

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-devel

________________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt neu bei WEB.DE FreeMail: http://freemail.web.de/?mc=021193

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php

#2 lore raw
In reply to a message not in the archive

Hi!

Quoted 5 lines

ok, ac_adapter events are possible, but why on hell is now /proc/acpi/battery/BAT0/state -> present rate always unknown (so acpi -V doesnt give me any battery information!) if i change the ACPI_OS_NAME to "Linux", acpi -V gives me information about the battery... but there aren't any ac_adapter events!

where's the problem with this? it has to do something with the ACPI_OS_NAME ...

Fix DSDT... See archives for tutorials.
Pavel

Signature · 9 lines
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php