Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Various devices report acpi battery info through /sys/class/power_supply and through /proc/acpi.
One of my devices *doesn't* report acpi battery info through the /proc fs. Is there a quirk I should be using that will allow the reporting through /proc? There are some acpi properties reported through /proc but not all. Battery and AC are not reported.
I understand /proc is deprecated in Linux but I want to preserve compatibility with BSD as far as possible using the /proc fs.
One must keep in mind that any hardware monitoring must be #1 supported by the hardware, and #2 supported to the same standard in the kernel.
If either one of those is missing, then monitoring will not present. (Or, not in any particularly useful way.)
You could try with a different kernel, or research your hardware to see if the provision is even present.
Since it appears you have some reporting under /sys, it is likely that the capability to monitor under /proc is simply not present in that kernel.
We're looking at some the latest Linux kernels. The reporting under /proc is present but it's hardware dependent, ie. some hardware is reporting info under both /proc and of-course /sys. Then again some hardware flouts acpi specs. But seeing I am able to get some info under /sys is there a way to manually get it under /proc too?
BSD supports /proc, but support for /proc was dropped in OpenBSD version 5.7.
Which BSD are you running? What version? Why do you care where detail is reported when you can always use the ACPI tools for parsing the tables, logs, and result data?
I've been working on a system reporting tool and I'm always hesitant to couple the tool with any particular system. I prefer to keep things as generic as possible.
In response to my original question the Linux kernel needs to be built with CONFIG_ACPI_PROCFS_POWER. This is enabled by default in Slackware but not in Void Linux. It's no biggie but it was knot I had to untie. This answers my original question.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.