Skip to content

Service not Restarting after Hibernation Resume #271

@abhijeet-singh800

Description

@abhijeet-singh800

Is this an issue or a reproduction result? ✔️

Please fill in the template

Feature Value
Model Acer Predator PH315-55
Number of CPU Fans 1
Number of GPU Fans 1
Number of RGB Zones 4
RGB keyboard works? Yes
Turbo button turns on fans? Yes
Turbo button turn on LED? No
Turbo button activates overclock? ??
Distribution Specific Information No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 13 (trixie) Release: 13 Codename: trixie
Kernel Version Linux debian 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux

The Problem

This kernel modules stops working after Resume from hibernation

Things that help

If you restart the service using the systemctl restart turbo-fan it starts working again.

Things I did to fix it

I dont know about other distros but Debian 13 has a way to store scripts that are executed before and after hibernation. I created the following script that restarts the service and that fixes this.

Location : /usr/lib/systemd/system-sleep/keyboard-rgb-fix.sh

#!/bin/sh


case $1 in
    post)
        # This runs *after* resuming
        /usr/bin/systemctl restart turbo-fan
        ;;
esac
sudo chmod +x /usr/lib/systemd/system-sleep/keyboard-rgb-fix.sh

As a result it start working as expected. I dont know if this fix is distro agnostic but its seems to work fine in my system ( age old statement 🥲 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions