I post content. You view content. I moderate content. You no like, you no pay

  • 3 Posts
  • 34 Comments
Joined 1 year ago
cake
Cake day: June 6th, 2023

help-circle



  • Red@reddthat.comtoLinux@lemmy.mlKDE often not sleeping when idle
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    3 months ago

    Close, that is because of the wakeup. (I think)

    See all of your devices that make your computer: cat /proc/acpi/wakeup

    Toggle all of them one by one:

    echo GPP0 | sudo tee /proc/acpi/wakeup (where GPP0 is the item in the left hand column)

    Cat again if you want to see if it’s disabled

    Keep going until you find the one that is ‘waking’ your computer back up after a sleep.

    When you find the right one, add it to your crontab so it turns it off on every boot:

    sudo crontab -e
    @reboot echo "GPP0" > /proc/acpi/wakeup
    















  • Those wakelock devices map to specific devices. If you run lsusb you will see the pci:0000:00:1c.4 and others.

    • Find the one that your mouse is.
    • Do the echo command into that device RP05.
    • Confirm it’s disabled.
    • suspend & then try moving the mouse
    • if it works edit the systemd script with the correct echo command
    • make sure you make the service Enabled (otherwise it won’t start on boot)
    • reboot and confirm it’s still disabled.

    That should be what is needed to disable waking up from the mouse.