Hi, my battery module in waybar is not showing the percentage properly at all.
It only display the battery at zero and it clearly isn’t at zero.
When I run acpi -bi
it also display zero.
This is the ouput for journalctl -b
Sep 27 21:19:40 Tuxedo kernel: Linux version 6.11.0 (nixbld@localhost) (gcc (GCC) 13.3.0, GNU ld (GNU Binutils) 2.42) #1-NixOS SMP PREEMPT_DYNAMIC Sun Sep 15 14:57:56 UTC 2024
Sep 27 21:19:40 Tuxedo kernel: Command line: BOOT_IMAGE=(hd1,gpt1)//kernels/5267jii93yk473zyzysrd95wqyvswidj-linux-6.11-bzImage init=/nix/store/n00d6gh6ar9fsc5k1hmsqvgc1xhdgqic->
Sep 27 21:19:40 Tuxedo kernel: BIOS-provided physical RAM map:
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x00000000000a0000-0x00000000000fffff] reserved
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x0000000000100000-0x0000000009a7efff] usable
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x0000000009a7f000-0x0000000009ffffff] reserved
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x000000000a000000-0x000000000a1fffff] usable
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x000000000a200000-0x000000000a23bfff] ACPI NVS
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x000000000a23c000-0x00000000d5008fff] usable
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x00000000d5009000-0x00000000d7a17fff] reserved
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x00000000d7a18000-0x00000000d7a82fff] ACPI data
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x00000000d7a83000-0x00000000d827afff] ACPI NVS
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x00000000d827b000-0x00000000dadfefff] reserved
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x00000000dadff000-0x00000000dbffafff] usable
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x00000000dbffb000-0x00000000dbffdfff] reserved
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x00000000dbffe000-0x00000000dbffffff] usable
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x00000000dc000000-0x00000000dcffffff] reserved
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x00000000dd790000-0x00000000dd7effff] reserved
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x00000000dd7f5000-0x00000000efffffff] reserved
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x00000000fd000000-0x00000000ffffffff] reserved
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x0000000100000000-0x000000069e2fffff] usable
Sep 27 21:19:40 Tuxedo kernel: BIOS-e820: [mem 0x000000069f340000-0x00000008401fffff] reserved
Sep 27 21:19:40 Tuxedo kernel: NX (Execute Disable) protection: active
Sep 27 21:19:40 Tuxedo kernel: APIC: Static calls initialized
Sep 27 21:19:40 Tuxedo kernel: e820: update [mem 0xcaf40018-0xcaf44257] usable ==> usable
Sep 27 21:19:40 Tuxedo kernel: extended physical RAM map:
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x0000000000000000-0x000000000009ffff] usable
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x00000000000a0000-0x00000000000fffff] reserved
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x0000000000100000-0x0000000009a7efff] usable
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x0000000009a7f000-0x0000000009ffffff] reserved
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x000000000a000000-0x000000000a1fffff] usable
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x000000000a200000-0x000000000a23bfff] ACPI NVS
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x000000000a23c000-0x00000000caf40017] usable
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x00000000caf40018-0x00000000caf44257] usable
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x00000000caf44258-0x00000000d5008fff] usable
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x00000000d5009000-0x00000000d7a17fff] reserved
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x00000000d7a18000-0x00000000d7a82fff] ACPI data
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x00000000d7a83000-0x00000000d827afff] ACPI NVS
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x00000000d827b000-0x00000000dadfefff] reserved
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x00000000dadff000-0x00000000dbffafff] usable
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x00000000dbffb000-0x00000000dbffdfff] reserved
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x00000000dbffe000-0x00000000dbffffff] usable
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x00000000dc000000-0x00000000dcffffff] reserved
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x00000000dd790000-0x00000000dd7effff] reserved
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x00000000dd7f5000-0x00000000efffffff] reserved
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x00000000fd000000-0x00000000ffffffff] reserved
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x0000000100000000-0x000000069e2fffff] usable
Sep 27 21:19:40 Tuxedo kernel: reserve setup_data: [mem 0x000000069f340000-0x00000008401fffff] reserved
Sep 27 21:19:40 Tuxedo kernel: efi: EFI v2.8 by American Megatrends
Sep 27 21:19:40 Tuxedo kernel: efi: ACPI=0xd8261000 ACPI 2.0=0xd8261014 TPMFinalLog=0xd8230000 SMBIOS=0xdab74000 SMBIOS 3.0=0xdab73000 ESRT=0xd0d6bf18 INITRD=0xcf861098 RNG=0xd7>
Sep 27 21:19:40 Tuxedo kernel: random: crng init done
Sep 27 21:19:40 Tuxedo kernel: efi: Remove mem56: MMIO range=[0xe0000000-0xefffffff] (256MB) from e820 map
Sep 27 21:19:40 Tuxedo kernel: e820: remove [mem 0xe0000000-0xefffffff] reserved
Sep 27 21:19:40 Tuxedo kernel: efi: Remove mem57: MMIO range=[0xfd000000-0xfedfffff] (30MB) from e820 map
Sep 27 21:19:40 Tuxedo kernel: e820: remove [mem 0xfd000000-0xfedfffff] reserved
...skipping...
Sep 27 21:20:09 Tuxedo kernel: upower[3497]: segfault at 8 ip 0000000000401650 sp 00007ffeff706c80 error 4 in upower[1650,401000+1000] likely on CPU 3 (core 3, socket 0)
Sep 27 21:20:09 Tuxedo kernel: Code: 4c 89 ef e8 12 fb ff ff 45 31 c9 45 31 c0 31 c9 48 8d 15 13 05 00 00 4c 89 e6 4c 89 ef e8 f8 fa ff ff 4c 89 ef e8 e0 fa ff ff <83> 78 08 00 >
Sep 27 21:20:09 Tuxedo systemd-coredump[3501]: Process 3497 (upower) of user 1001 terminated abnormally with signal 11/SEGV, processing...
Sep 27 21:20:09 Tuxedo systemd[1]: Created slice Slice /system/systemd-coredump.
Sep 27 21:20:09 Tuxedo systemd[1]: Started Process Core Dump (PID 3501/UID 0).
Sep 27 21:20:09 Tuxedo systemd-timesyncd[1418]: Network configuration changed, trying to establish connection.
Sep 27 21:20:09 Tuxedo systemd-timesyncd[1418]: Network configuration changed, trying to establish connection.
Sep 27 21:20:09 Tuxedo systemd-timesyncd[1418]: Network configuration changed, trying to establish connection.
Sep 27 21:20:09 Tuxedo systemd-timesyncd[1418]: Contacted time server 89.234.64.77:123 (0.nixos.pool.ntp.org).
Sep 27 21:20:09 Tuxedo systemd-journald[598]: Time jumped backwards, rotating.
Sep 27 21:20:09 Tuxedo systemd-timesyncd[1418]: Initial clock synchronization to Fri 2024-09-27 21:20:09.505707 IST.
Sep 27 21:20:09 Tuxedo systemd-coredump[3502]: [🡕] Process 3497 (upower) of user 1001 dumped core.
Module libselinux.so.1 without build-id.
Module libz.so.1 without build-id.
Module libpcre2-8.so.0 without build-id.
Module libffi.so.8 without build-id.
Module libupower-glib.so.3 without build-id.
Module upower without build-id.
Stack trace of thread 3497:
Sep 27 21:20:00 Tuxedo (sd-pam)[1864]: pam_unix(systemd-user:session): session closed for user sddm
Sep 27 21:20:00 Tuxedo systemd[1]: user@175.service: Deactivated successfully.
Sep 27 21:20:00 Tuxedo systemd[1]: Stopped User Manager for UID 175.
Sep 27 21:20:00 Tuxedo systemd[1]: Stopping User Runtime Directory /run/user/175...
Sep 27 21:20:00 Tuxedo systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Sep 27 21:20:00 Tuxedo systemd[1]: run-user-175.mount: Deactivated successfully.
Sep 27 21:20:00 Tuxedo systemd[1]: user-runtime-dir@175.service: Deactivated successfully.
Sep 27 21:20:00 Tuxedo systemd[1]: Stopped User Runtime Directory /run/user/175.
Sep 27 21:20:00 Tuxedo systemd-logind[1508]: Removed session 1.
Sep 27 21:20:00 Tuxedo systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Sep 27 21:20:00 Tuxedo systemd[1]: run-user-175.mount: Deactivated successfully.
Sep 27 21:20:00 Tuxedo systemd[1]: user-runtime-dir@175.service: Deactivated successfully.
Sep 27 21:20:00 Tuxedo systemd[1]: Stopped User Runtime Directory /run/user/175.
Sep 27 21:20:00 Tuxedo systemd[1]: user-runtime-dir@175.service: Deactivated successfully.
Sep 27 21:20:00 Tuxedo systemd[1]: Stopped User Runtime Directory /run/user/175.
Sep 27 21:20:00 Tuxedo systemd-logind[1508]: Removed session 1.
Sep 27 21:20:09 Tuxedo kernel: upower[3497]: segfault at 8 ip 0000000000401650 sp 00007ffeff706c80 error 4 in upower[1650,401000+1000] likely on CPU 3 (core 3, socket 0)
Sep 27 21:20:09 Tuxedo kernel: Code: 4c 89 ef e8 12 fb ff ff 45 31 c9 45 31 c0 31 c9 48 8d 15 13 05 00 00 4c 89 e6 4c 89 ef e8 f8 fa ff ff 4c 89 ef e8 e0 fa ff ff <83> 78 08 00 >
Sep 27 21:20:09 Tuxedo systemd-coredump[3501]: Process 3497 (upower) of user 1001 terminated abnormally with signal 11/SEGV, processing...
Sep 27 21:20:09 Tuxedo systemd[1]: Created slice Slice /system/systemd-coredump.
Sep 27 21:20:09 Tuxedo systemd[1]: Started Process Core Dump (PID 3501/UID 0).
Sep 27 21:20:09 Tuxedo systemd-timesyncd[1418]: Network configuration changed, trying to establish connection.
Sep 27 21:20:09 Tuxedo systemd-timesyncd[1418]: Network configuration changed, trying to establish connection.
Sep 27 21:20:09 Tuxedo systemd-timesyncd[1418]: Network configuration changed, trying to establish connection.
Sep 27 21:20:09 Tuxedo systemd-timesyncd[1418]: Contacted time server 89.234.64.77:123 (0.nixos.pool.ntp.org).
Sep 27 21:20:09 Tuxedo systemd-journald[598]: Time jumped backwards, rotating.
Sep 27 21:20:09 Tuxedo systemd-timesyncd[1418]: Initial clock synchronization to Fri 2024-09-27 21:20:09.505707 IST.
Sep 27 21:20:09 Tuxedo systemd-coredump[3502]: [🡕] Process 3497 (upower) of user 1001 dumped core.
Module libselinux.so.1 without build-id.
Module libz.so.1 without build-id.
Module libpcre2-8.so.0 without build-id.
Module libffi.so.8 without build-id.
Module libupower-glib.so.3 without build-id.
Module upower without build-id.
Stack trace of thread 3497:
#0 0x0000000000401650 main (upower + 0x1650)
#1 0x00007f0bcfe0714e __libc_start_call_main (libc.so.6 + 0x2a14e)
#2 0x00007f0bcfe07209 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2a209)
#3 0x0000000000401825 _start (upower + 0x1825)
Stack trace of thread 3500:
#0 0x00007f0bcfeded1f __poll (libc.so.6 + 0x101d1f)
#1 0x00007f0bd003521f g_main_context_iterate_unlocked.isra.0 (libglib-2.0.so.0 + 0x6121f)
#2 0x00007f0bd0035bcf g_main_loop_run (libglib-2.0.so.0 + 0x61bcf)
#3 0x00007f0bcfd128e6 gdbus_shared_thread_func (libgio-2.0.so.0 + 0x1328e6)
#4 0x00007f0bd00640ad g_thread_proxy (libglib-2.0.so.0 + 0x900ad)
#5 0x00007f0bcfe6da42 start_thread (libc.so.6 + 0x90a42)
#6 0x00007f0bcfeed05c __clone3 (libc.so.6 + 0x11005c)
Stack trace of thread 3498:
#0 0x00007f0bcfeeaded syscall (libc.so.6 + 0x10dded)
#1 0x00007f0bd0093450 g_cond_wait (libglib-2.0.so.0 + 0xbf450)
#2 0x00007f0bcfffc65b g_async_queue_pop_intern_unlocked (libglib-2.0.so.0 + 0x2865b)
#3 0x00007f0bd00648a2 g_thread_pool_spawn_thread (libglib-2.0.so.0 + 0x908a2)
#4 0x00007f0bd00640ad g_thread_proxy (libglib-2.0.so.0 + 0x900ad)
#5 0x00007f0bcfe6da42 start_thread (libc.so.6 + 0x90a42)
#6 0x00007f0bcfeed05c __clone3 (libc.so.6 + 0x11005c)
Stack trace of thread 3499:
#0 0x00007f0bcfeded1f __poll (libc.so.6 + 0x101d1f)
#1 0x00007f0bd003521f g_main_context_iterate_unlocked.isra.0 (libglib-2.0.so.0 + 0x6121f)
#2 0x00007f0bd00358ec g_main_context_iteration (libglib-2.0.so.0 + 0x618ec)
#3 0x00007f0bd0035941 glib_worker_main (libglib-2.0.so.0 + 0x61941)
#4 0x00007f0bd00640ad g_thread_proxy (libglib-2.0.so.0 + 0x900ad)
#5 0x00007f0bcfe6da42 start_thread (libc.so.6 + 0x90a42)
#6 0x00007f0bcfeed05c __clone3 (libc.so.6 + 0x11005c)
ELF object binary architecture: AMD x86-64
Sep 27 21:20:09 Tuxedo systemd[1]: systemd-coredump@0-3501-0.service: Deactivated successfully.
Sep 27 21:20:12 Tuxedo systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Sep 27 21:20:14 Tuxedo cupsd[1828]: Saving subscriptions.conf...
I installed upower and run upower -m
and it gives this error
Monitoring activity from the power daemon. Press Ctrl+C to cancel.
(upower:4009): libupower-glib-WARNING **: 21:28:28.141: up_client_get_devices failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[1] 4009 segmentation fault (core dumped) upower -m
I tried to update the kernel to the latest (6.11) but it didn’t work either.
Any idea what is wrong.