Re: /proc/acpi/battery

"Kimbrell, Roy" <[email protected]> Mon, 25 Aug 2003 17:58:53 -0500
Newsgroups gmane.linux.hardware.sony
Message-ID <[email protected]>
Yes, I have other /proc/acpi directories:

embedded_controller
power_resource

There's nothing under power_resource

Under embedded_controller is

ECO

under this is a file

info


Also in /proc/acpi are these files:

alarm
dsdt
event
fadt
info
sleep

I'm pretty sure acpi is running.  I went through that when I was 
building kernels.  I found out that if apm was configured, acpi wouldn't 
run.  I get acpi messages in /var/log/messages that indicate that acpi 
is mapping the interrupts and so on.


John S. Andersen wrote:
> Well do you have any /proc/acpi directories?
> These get created when acpi starts up, and if they are
> ALL missing it would imply acpi is not running.
> 
> However, not having battery just means it could
> not sense your battery for some reason.
> 
> You should review your /var/log/boot.log to see
> if acpi was started or if apm was started instead.
> 
> 
> On 25 Aug 2003 at 16:51, Kimbrell, Roy wrote:
> 
> 
>>Never mind.  I didn't have acpid on my machine.  I've got it now,
>>installed it, and started it up.  It looks to be a useful program, but
>>still, shouldn't there be a /proc/acpi/battery directory?
>>
>>Kimbrell, Roy wrote:
>>
>>>Interesting.  I did a pa -Al and do not see acpid.  Must have 
> 
> died. 
> 
>>>Can it be restarted?
>>>
>>>
>>>John S. Andersen wrote:
>>>
>>>
>>>>And acpid is running???  It didn't die did it?
>>>>
>>>>
>>>>On 25 Aug 2003 at 15:29, Kimbrell, Roy wrote:
>>>>
>>>>
>>>>
>>>>>I get "No such device."  No messages in dmesg or
>>>>>/var/log/messages. More specifically, I get
>>>>>
>>>>>/lib/modules/2.4.21/kernel/drivers/acpi/battery.o: init_module: 
> 
> No
> 
>>>>>such device
>>>>>
>>>>>Then theres the "Hint" about how insmod errors can be caused 
> 
> and
> 
>>>>>so on.
>>>>>
>>>>>looking at battery.c, I can see where it makes a
>>>>>/proc/acpi/battery directory and then removes it if it can't 
> 
> find
> 
>>>>>the device (I think that's what's going on)..  I've only 
> 
> glanced
> 
>>>>>at the code, but I'm guessing that ACPI hasn't detected the
>>>>>battery.
>>>>>
>>>>>Roy
>>>>>
>>>>>
>>>>>Nick Golder wrote:
>>>>>
>>>>>
>>>>>>On 03-08-25 11:57 -0500, Kimbrell, Roy wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>If this question has already been answered, my apologies.
>>>>>>>
>>>>>>>I've built a 2.4.21 kernel with the latest acpi patch.  
> 
> However,
> 
>>>>>>>/proc/acpi/battery isn't there in /proc/acpi.  battery.o 
> 
> appears
> 
>>>>
>>>>in
>>>>
>>>>
>>>>>>>/lib/modules/2.4.21, but modprobe battery results in "No such
>>>>>>>device."
>>>>>>>
>>>>>>>Any clues?
>>>>>>>
>>>>>>>Thanks
>>>>>>>Roy
>>>>>>
>>>>>>
>>>>>>
>>>>>>What happens when you 'insmod battery' as root?
>>>>>>
>>>>>
>>>>>_______________________________________________
>>>>>Linux-sony mailing list: [email protected]
>>>>>Subscribe/Unsubscribe:
>>>>>http://insue.com/mailman/listinfo/linux-sony Linux-Sony
>>>>>Documentation: http://returntonature.com/linux/phpwiki 
>>>>
>>>>
>>>>IRC:
>>>>
>>>>
>>>>>freenode.net, #linux-sony
>>>>>
>>>>
>>>>
>>>>
>>>_______________________________________________
>>>Linux-sony mailing list: [email protected]
>>>Subscribe/Unsubscribe: http://insue.com/mailman/listinfo/linux-
> 
> sony
> 
>>>Linux-Sony Documentation: http://returntonature.com/linux/phpwiki
>>>IRC: freenode.net, #linux-sony
>>>
>>
>>_______________________________________________
>>Linux-sony mailing list: [email protected]
>>Subscribe/Unsubscribe: http://insue.com/mailman/listinfo/linux-sony
>>Linux-Sony Documentation: http://returntonature.com/linux/phpwiki 
> 
> IRC:
> 
>>freenode.net, #linux-sony
>>
> 
> 
>