Yes, this is what I did for my 'draft' patch, thank you :)

2014-11-27 16:25 GMT+01:00 Alexandre Lissy <[email protected]>:
> Le 27/11/2014 16:21, Alexandre Bm a écrit :
>> I asked if there was any standard because I have different names on my
>> laptop, I'm running debian with linux 3.16 and this is what I get :
>> $ ls /sys/class/power_supply/
>> AC0  BAT0
>
> Yes, same here on another version of the kernel. I haven't had a look at
> the drivers themselves, but I suspect it's just that each driver
> registers in sysfs with its name: acpi names are "standard" like AC/BAT,
> and on phone devices, we have more roots name since we don't have ACPI.
>
> So you should probably not rely on the name of the directories, but
> instead on their content: for example, the 'capacity' file seems to
> exist only for battery, not for ac.
>
>>
>> I'll take a look to the doc, thanks.
>>
>> 2014-11-26 11:18 GMT+01:00 Alexandre Lissy <[email protected]>:
>>> Le 26/11/2014 11:15, Alexandre Lissy a écrit :
>>>
>>> [...]
>>>> and I think you may be interested by the SysFS Power supply class
>>>> regarding the bug you are referring to.
>>>
>>> Forgot to add the link:
>>> https://github.com/mozilla-b2g/codeaurora_kernel_msm/blob/t2m-flame-3.4-kk/Documentation/power/power_supply_class.txt
>>>
>>> _______________________________________________
>>> dev-b2g mailing list
>>> [email protected]
>>> https://lists.mozilla.org/listinfo/dev-b2g
>>
>>
>>
>



-- 
Noblesse Oblige !

Alexandre BM
Responsable Technique Mozilla Tunisia.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to