linux-cachyos icon indicating copy to clipboard operation
linux-cachyos copied to clipboard

[Bug] CachyOS stop working when laptop is on battery

Open The10axe opened this issue 1 year ago • 16 comments

Hello hello!

So, basically, I have a Lenovo Legion 5 15ARP8, and whenever I unplug it, or whenever it's on battery, every new app can't start, and every running app starts to hang, and plugging it back won't fix it until the system is forcefully rebooted (as it can't stop).

You will find the following log of journalctl to be a full boot on battery: https://paste.cachyos.org/p/0014c35 You will also find in this log a bugreport that happened on plugged laptop (so running fine): https://paste.cachyos.org/p/47dcb4c.log And here some log of what happened after unplugging the laptop (using a running journalctl -f): https://pastebin.com/DAkh6UH6

Step to reproduce:

  1. Unplug the laptop OR boot the laptop unplugged
  2. Every running app will keep on running until hanging on their own, and new app won't start, or will fail, this also include some commands like : sudo shutdown now

Please note that this error happens also on the Linux 6.12.19-2-cachyos-lts-lto kernel as it's been suggested that I try on the Discord server.

The10axe avatar Mar 29 '25 21:03 The10axe

So adding addition information, I tried running CachyOS Cinnamon, and it works a bit better for some reason, I can run Nemo, but Alacritty won't run, and cachyos-bugreport neither, and an additional app timed out, so maybe that's the origin of the pain: https://pastebin.com/0kF3fwRZ

Also, I tried running Kubuntu to see if the problem came from KDE, and Kubuntu runs fine on battery, so it's probably kernel related, or CachyOS settings related.

I also tried to run Manjaro to see if it's related to Arch, and Manjaro runs well on battery too.

Installing Dolphin on CachyOS Cinnamon, and I can run it from there. So maybe it's related to Wayland?

The10axe avatar Mar 30 '25 20:03 The10axe

So I had the same issue on CachyOS Cosmic, like on KDE, after suggestion from the Discord server, I changed CachyOS kernel to Linux 6.13.8-arch1-1 and it began running flawlessly, so it most likely is an issue from CachyOS kernel

The10axe avatar Mar 30 '25 20:03 The10axe

So I had the same issue on CachyOS Cosmic, like on KDE, after suggestion from the Discord server, I changed CachyOS kernel to Linux 6.13.8-arch1-1 and it began running flawlessly, so it most likely is an issue from CachyOS kernel

That's hardly a comparison. Please try Arch 6.14

sudo pacman -U https://archive.archlinux.org/packages/l/linux/linux-6.14.arch1-1-x86_64.pkg.tar.zst https://archive.archlinux.org/packages/l/linux-headers/linux-headers-6.14.arch1-1-x86_64.pkg.tar.zst

1Naim avatar Mar 31 '25 03:03 1Naim

Runs flawlessly on Arch 6.14, I managed to run cachyos-bugreport after unplugging and on a full boot on battery while on the CachyOS kernel, on battery, the command won't run.

The10axe avatar Mar 31 '25 18:03 The10axe

Thanks. I think this may be related to #428 so stay tuned for 6.14.1

1Naim avatar Apr 01 '25 00:04 1Naim

Okay, so, I figured that on Arch 6.14, nvidia driver wasn't running, because nvidia-smi had an error running, after fixing it, turns out now Arch 6.14 has the same instability as the CachyOS, where apps hang.

The10axe avatar Apr 01 '25 03:04 The10axe

Yeah, reading back you're using a Legion instead of an ASUS laptop. I must have mixed you up with another user.

Are you using open modules or closed?

1Naim avatar Apr 01 '25 03:04 1Naim

I tried using nvidia-open-dkms

The10axe avatar Apr 01 '25 03:04 The10axe

Please try closed with and without GSP, thanks.

1Naim avatar Apr 01 '25 03:04 1Naim

Okay so on closed and without GSP, it just won't go through boot on battery, and will still crash when unplugging the laptop

Pictures of the screen failing to boot. Image

The10axe avatar Apr 01 '25 03:04 The10axe

Wait, for some reason, GSP is still running, I'm trying to properly disable it, I'll keep you up to date

The10axe avatar Apr 01 '25 03:04 The10axe

Nevermind, GSP doesn't change anything, closed source nvidia behave the same with or without.

The10axe avatar Apr 01 '25 03:04 The10axe

As a final attempt at bisecting the issue, please remove cachyos-settings package temporarily and regenerate the initramfs if it didn't do it for you sudo mkinitcpio -P.

If instability still occurs, then suffice to say it's an NVIDIA bug and it should be reported on their side instead.

1Naim avatar Apr 01 '25 18:04 1Naim

Yup, still instable, how can I report it to NVIDIA? I can only find for the open driver, but it needs to be exclusively an open driver bug (aka not happening on closed)

The10axe avatar Apr 01 '25 21:04 The10axe

You can email them or post it in the NVIDIA forums.

1Naim avatar Apr 06 '25 17:04 1Naim

Bug has been fixed! No idea how but I did an update on the os and it worked, so I tried doing a fresh install and it works! I'm very happy!

The10axe avatar Apr 19 '25 14:04 The10axe