Package Details: applesmc-next-dkms 0.1.6-1

Git Clone URL: https://aur.archlinux.org/applesmc-next-dkms.git (read-only, click to copy)
Package Base: applesmc-next-dkms
Description: Updated applesmc driver with charge threshold
Upstream URL: https://gurumeditation.org/1256/applesmc-next-battery-charge-thresholds-for-linux-on-apple-hardware/
Keywords: apple battery charge
Licenses: GPL2
Provides: APPLESMC-MODULE, SBS-MODULE
Submitter: ozz
Maintainer: ozz
Last Packager: ozz
Votes: 3
Popularity: 0.009078
First Submitted: 2022-09-14 22:56 (UTC)
Last Updated: 2025-07-31 11:20 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

z3rostr1fe commented on 2025-07-31 07:27 (UTC) (edited on 2025-07-31 07:35 (UTC) by z3rostr1fe)

An update in applesmc-next's main branch was pushed 2 weeks ago to fix the Linux 6.15 build issue. However, it does not have a tagged version to base the build. PKGBUILD may need an update so that it pulls from the main branch.

Ref: https://github.com/c---/applesmc-next/commit/c125e50911053a0595fe56f48da3874587c59d46

thatsthat commented on 2025-06-13 12:30 (UTC)

@rahulmb What I did was 'sudo cp /usr/src/applesmc-next-0.1.5/sbs/acpi/sbs.h /usr/lib/modules/6.15.2-arch1-1/build/include/acpi/' and then reinstalling kernel and headers. That seems to do the trick.

rahulmb commented on 2025-06-03 22:37 (UTC) (edited on 2025-06-03 22:38 (UTC) by rahulmb)

In case this helps, this is the output of /var/lib/dkms/applesmc-next/0.1.5/build/make.log


DKMS (dkms-3.2.1) make.log for applesmc-next/0.1.5 for kernel 6.15.0-2-cachyos (x86_64)
Tue Jun  3 05:26:35 PM CDT 2025

Building module(s)
# command: make -j8 KERNELRELEASE=6.15.0-2-cachyos KVER=6.15.0-2-cachyos LLVM=1
make -C /lib/modules/6.15.0-2-cachyos/build M=`pwd`
make[1]: Entering directory '/usr/lib/modules/6.15.0-2-cachyos/build'
make[2]: Entering directory '/var/lib/dkms/applesmc-next/0.1.5/build'
  CC [M]  applesmc/applesmc.o
  CC [M]  sbs/sbs.o
applesmc/applesmc.c:43:10: fatal error: 'acpi/sbs.h' file not found
   43 | #include <acpi/sbs.h>
      |          ^~~~~~~~~~~~
1 error generated.
make[5]: *** [/usr/lib/modules/6.15.0-2-cachyos/build/scripts/Makefile.build:208: applesmc/applesmc.o] Error 1
make[4]: *** [/usr/lib/modules/6.15.0-2-cachyos/build/scripts/Makefile.build:502: applesmc] Error 2
make[4]: *** Waiting for unfinished jobs....
sbs/sbs.c:522:6: warning: no previous prototype for function 'sbs_hook_unregister' [-Wmissing-prototypes]
  522 | void sbs_hook_unregister(struct acpi_battery_hook *hook)
      |      ^
sbs/sbs.c:522:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
  522 | void sbs_hook_unregister(struct acpi_battery_hook *hook)
      | ^
      | static
sbs/sbs.c:529:6: warning: no previous prototype for function 'sbs_hook_register' [-Wmissing-prototypes]
  529 | void sbs_hook_register(struct acpi_battery_hook *hook)
      |      ^
sbs/sbs.c:529:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
  529 | void sbs_hook_register(struct acpi_battery_hook *hook)
      | ^
      | static
2 warnings generated.
make[3]: *** [/usr/lib/modules/6.15.0-2-cachyos/build/Makefile:2039: .] Error 2
make[2]: *** [/usr/lib/modules/6.15.0-2-cachyos/build/Makefile:248: __sub-make] Error 2
make[2]: Leaving directory '/var/lib/dkms/applesmc-next/0.1.5/build'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.15.0-2-cachyos/build'
make: *** [Makefile:9: all] Error 2

# exit code: 2
# elapsed time: 00:00:02
----------------------------------------------------------------

rahulmb commented on 2025-06-02 03:05 (UTC) (edited on 2025-06-02 03:06 (UTC) by rahulmb)

Thank you! It's been working really well. The kernel's applesmc module hasn't seemed to work for me, but your's has been working without any issues until this build issue

ozz commented on 2025-05-31 11:57 (UTC)

@rahulmb The acpi/sbs.h file is included as part of the package. Maybe something changed in the kernel build system. I have not been able to keep this package up to date because I don't have access to a Mac any more. I should be able to test this problem though. I'll see if I can figure out why it won't compile.

rahulmb commented on 2025-05-31 04:36 (UTC) (edited on 2025-05-31 04:50 (UTC) by rahulmb)

I just updated to kernel 6.15.0

Running into this issue:

applesmc/applesmc.c:43:10: fatal error: 'acpi/sbs.h' file not found

ozz commented on 2023-01-24 07:22 (UTC)

@Szadek Thanks for reporting back. I was having a hard time generating the original error again so I wasn't sure if it was fixed or not.

Szadek commented on 2023-01-23 18:12 (UTC)

@ozz hi , the commit 3f500c4 fixed the issue for me.

Thank you, best regards

ozz commented on 2023-01-23 14:20 (UTC) (edited on 2023-01-23 15:31 (UTC) by ozz)

@Szadek It's safe to force it. I'll try to figure out what is going on and fix it.