Results 1 to 1 of 1

Thread: Syndaemon dies after resume

  1. #1
    Join Date
    Jan 2008
    Beans
    56

    Syndaemon dies after resume

    I have syndaemon -i 1 -d among startup programs to disable touchpad when I type.

    However, after hibernate / resume it is either gone or not doing the job. I have to kill / restart it every time to make it work.

    Any ideas why this happens?

    Edit: I just found a solution.

    Create a file in /etc/pm/sleep.d and make it executable (chmod +x)

    Paste this into it. REPLACE USERNAME WITH YOUR ACTUAL USER NAME.

    Code:
    #!/bin/sh
    resume_syndaemon()
    {
        if [ ! "$( pidof syndaemon )" ]; then
     export DISPLAY=:0.0
     sudo -u USERNAME syndaemon -d -t -i 2
        fi
    }
    
    case "$1" in
     thaw|resume)
      resume_syndaemon
      ;;
     *) exit $NA
      ;;
    esac
    exit 0
    Last edited by frytek; March 10th, 2015 at 03:53 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •