Reply To: Suspension of the system and blocking of peripherals.

Forum › Forums › New users › New Users and General Questions › Suspension of the system and blocking of peripherals. › Reply To: Suspension of the system and blocking of peripherals.

#38414
Xecure
Member

    Unfortunately, it seems the logs are only for this session, and not for the one where you close the lid.

    The ideal thing would be to make the “close lid behavior” work exactly the same as suspend/wake.

    I won’t have much time to look into this this weak, so I will give you all my suggestions.

    Add hook to suspend/resume
    If you are going to use (Suspend) and then close the lid, you can always (with root privileges) create a file in /usr/lib/pm-utils/sleep.d/ with a name like 0000trackpad
    and add this code:

    #!/bin/sh
    case "$1" in
    	suspend|hibernate)
    		modprobe -r psmouse
    		;;
    	resume|thaw)
    		modprobe psmouse
    		;;
    esac

    then make it executable
    sudo chmod +x /usr/lib/pm-utils/sleep.d/0000trackpad

    Updating the kernel
    About updating the kernel, it can be done on a live system. I would first back up the entire system though.
    The steps are the ones I follow whenever I update the kernel on my live-USB (there is a shorter way, but this is the one that always works for me.:
    1. download and install the latest 4.19 kernel using antiX package installer, synaptic or cli-aptiX
    2. Save persistent changes (I always like to do this) and reboot
    3. Remaster your antiX live system. Reboot
    4. Use the Live-USB Kernel Updater (can be found from the menu or from the control centre > Live).
    4.1 Select the kernel you want to update (4.19). Follow the steps. The reboot.
    5. If all goes well, your system will now boot with the new kernel. If it breaks, you can recover your system by accessing your live/boot-dev/antiX/ folder (from a different system I think) and renaming rootfs to rootfs.bac, rename linuxfs to linuxfs.bac, then restoring your linuxfs.old to linuxfs and rootfs.old to rootfs.
    It may sound a bit complicated, but it is not that bad. Anyway, if it seems too complicated and you don’t want to risk your live system then ignore this and try it out some other time in the future.

    Checking acpi-support
    About suspending by closing the lid, you need to check the file /etc/default/acpi-support. There is a line there that should be uncommented. It needs to look like this:
    LID_SLEEP=true
    I would comment out the hibernate option just in case that is the problem when closing the lid. It should look like:
    #ACPI_HYBERNATE=true

    If you find you need help, I am sure someone else can comment here while I am away. You could also wait or test things out to see how everything works (make sure to backup before experiments).

    Good luck!

    • This reply was modified 6 years, 2 months ago by Xecure. Reason: correction
    • This reply was modified 6 years, 2 months ago by Xecure. Reason: error in code

    antiX Live system enthusiast.
    General Live Boot Parameters for antiX.