Posts by LE_User_2025

    Okay I finally had some time to try solving this issue again. Here is what ended up working:

    Created the file (using nano):
    /storage/.config/system.d/xhci_disable.service

    Pasted this content:

    Code
    [Unit]
    Description=Disable XHCI Wakeup
    [Service]
    ExecStartPre=/bin/sleep 15
    ExecStart=/bin/bash -c "echo XHCI >> /proc/acpi/wakeup"
    [Install]
    WantedBy=multi-user.target

    Enabled the service with:
    systemctl enable /storage/.config/system.d/xhci_disable.service

    Rebooted and checked status with:
    cat /proc/acpi/wakeup


    Seems to be working correctly now after testing multiple reboots and suspending/waking.

    Anyway hopefully this is helpful to someone in the future and thanks for taking the time to reply and make suggestions.

    In this post the user recommended putting a script in /usr/lib/systemd/system-sleep/ which would check if it's enabled and if so would disable it before suspending.

    However, I was not able to add a file to this directory. Is there another location for this or is it not possible on LE?

    Make changes to `/proc/acpi/wakeup` permanent
    I disabled most of my entries in /proc/acpi/wakeup/ to make sure only the power button and the laptop lid can resume my system, not the mouse or keyboard. The…
    unix.stackexchange.com

    Thank you. Unfortunately that didn't seem to work either. And I'm not sure if this is related or matters but now EHC1 is enabled. As far as I can remember it has been disabled every time I've looked at them. I rebooted a couple of times just to make sure.

    Okay I've created the file and then restarted but XHCI was not disabled.

    Is there anything else I needed to do to enable the new script?

    Sure here you go:

    [Unit]
    Description=no_usb_wakeup

    [Service]
    ExecStart=/bin/bash -c "echo XHCI >> /proc/acpi/wakeup"

    [Install]
    WantedBy=multi-user.target


    Oh and I should mention that I created the file using the SMB share under \\share\Configfiles\system.d\ from my Windows PC.

    Also, the file I created is called xhcidisable.service

    Thank you.

    The first command to enable the service was successful.

    Attempting to start it resulted in this error:

    Failed to start storage-.config-system.d-xhcidisable.service.mount: Unit storage-.config-system.d-xhcidisable.service.mount not found.

    I also tried systemctl enable xhcidisable.service and then systemctl daemon-reload which did not give any errors.

    But after restarting the computer and using cat /proc/acpi/wakeup I can see that XHCI is not disabled.

    XHCI      S3    *enabled   pci:0000:00:14.0


    I used systemctl status xhcidisable.service

    and got:

    ○ xhcidisable.service - no_usb_wakeup
        Loaded: loaded (/storage/.config/system.d/xhcidisable.service; enabled; preset: disabled)
        Active: inactive (dead) since Wed 2025-04-16 08:45:09 CDT; 6min ago
      Duration: 53ms
       Process: 514 ExecStart=/bin/bash -c echo XHCI >> /proc/acpi/wakeup (code=exited, status=0/SUCCESS)
      Main PID: 514 (code=exited, status=0/SUCCESS)
           CPU: 3ms

    Apr 16 08:45:09 LivingRoomKodi systemd[1]: Started xhcidisable.service.
    Apr 16 08:45:09 LivingRoomKodi systemd[1]: xhcidisable.service: Deactivated successfully.

    I tried the command /bin/bash -c "echo XHCI >> /proc/acpi/wakeup" on it's own which does work.

    Could the service be executing in the wrong order with something else?

    I apologize for my ignorance of Linux. I know some things about it but I mostly work with Windows.

    Thanks for the reply.

    These are the commands I used:

    cat /proc/acpi/wakeup Shows the devices enabled/disabled states

    /bin/sh -c '/bin/echo XHCI > /proc/acpi/wakeup' Toggles XHCI wakeup


    Once it is set to disabled my computer will suspend and resume using a remote (which was my goal)


    This post describes setting up the command as a service to load on boot:

    [SOLVED] Suspend_Wakeup /proc/acpi/wakeup file / Kernel & Hardware / Arch Linux Forums

    Here is another that suggests a different method:

    Make changes to `/proc/acpi/wakeup` permanent
    I disabled most of my entries in /proc/acpi/wakeup/ to make sure only the power button and the laptop lid can resume my system, not the mouse or keyboard. The…
    unix.stackexchange.com


    I just do not know how to do these on LibreElec

    Thanks again.

    Hello. Through some troubleshooting I found that disabling the XHCI wakeup allows my laptop to suspend and resume properly.

    The issue is that I cannot figure out how to make this change permanent. I found some suggestions online but they don't seem to apply or correlate with how LE works.

    Any suggestions or links are appreciated.