Re: /proc/acpi/battery gone again, breaks wmpower

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 18, 2022 at 12:17 AM Carl Edquist <edquist@xxxxxxxxxxx> wrote:
>
> Hello there Rafael,
>
> (I found your contact in the MAINTAINERS file for the ACPI section.
> Hopefully you are the right person to ask this question, but let me know
> if there's a better place to ask!)
>
> Slackware 15 was released this month, and after upgrading (to linux
> 5.15.19, according to uname -r), I noticed my wmpower dockapp for the
> WindowMaker window manager stopped working.  Apparently it relies on
> /proc/acpi/battery, and does not know about the /sys alternatives.  Maybe
> it was written before this acpi interface was deprecated.
>
> Since wmpower has "just worked" for so long, it appears the only
> maintenance it's received in a long time has been by the Slackware
> packagers (slackbuilds.org) to fix compiler issues with more recent
> versions of gcc.  But people like me definitely still use it! :)
>
>
> I tried searching a bit to see what's going on, and I found an earlier
> discussion where /proc/acpi/battery had previously been removed, circa
> linux 3.14, and then re-added, after it was brought up that (possibly
> among other things) a number of WindowManager dock apps still relied on
> /proc/acpi/battery:
>
>         https://lkml.org/lkml/2014/3/17/393
>
>
> I didn't find a more recent discussion about it getting removed again, but
> some git-log searching brought me to this commit:
>
>
> commit 8830280a69ddfdbba7fb24d79dce309817783c6a
> Author: Thomas Renninger <trenn@xxxxxxx>
> Date:   Wed May 27 17:33:03 2020 +0200
>
>      ACPI: procfs: Remove last dirs after being marked deprecated for a decade
>
>      This code is outdated and has been deprecated for a long time, so user
>      space is not expected to rely on it any more on any systems that are
>      up to date by any reasonable measure.  Remove it.
>
>      Signed-off-by: Thomas Renninger <trenn@xxxxxxx>
>      [ rjw: Subject / changelog ]
>      Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
>
>
> Out of curiousity, I tried reverting this commit against the latest
> master.  It does not revert cleanly, though it doesn't look like a lot to
> clean up (conflicts in drivers/acpi/ac.c & battery.c).  Would reverting
> this commit (assuming conflicts can be fixed) be enough for me to restore
> the old /proc/acpi/battery interface?

It should be sufficient.

> Or are there likely to be any gotchas there?
>
>
> And, I'm afraid to ask, but is it out of the question to wonder if this,
> now twice removed, acpi interface may ever see its way back into mainline?

Because we promise that user space won't be broken by kernel changes,
it needs to be restored to make wmpower work again.

I'd rather not restore all of it, though, just the part relied on by wmpower.



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux