6

Resume (sleep.d) script not fully working

view full story
linux-howto

http://forums.opensuse.org – Hi, To workaround a problem with nvidia graphics and fancontrol on both native and asus_atk0110 drivers, I have written a small easy script that runs at resume mode when resuming from suspending to RAM. The script is called Code: 81fancontrol_cd and is located Code: /usr/lib/pm-utils/sleep.d created as ROOT and EXECUTABLE. The script does kill 2 processes, but does not restart them. I do not know where the error log file is located, so I can't troubleshoot. Anyone would know where the log files are or anyone would know why my script does not start the 2 processes? Code: #!/bin/bash case $1 in     hibernate|suspend)         #sudo pkill cairo-dock & fancontrol         ;;     thaw|resume)         sudo pkill cairo-dock         sudo pkill fancontrol         #nohup sudo fancontrol > /dev/null 2>&1 &         sudo fancontrol         #nohup cairo-dock -o > /dev/null 2>&1 &         cairo-dock -o         ;;         *)         ;; esac exit $? Everything works up to line Code: sudo pkill fancontrol included. But fancontrol and cairo-dock don't start. I don't know if the "#" comment is causing a problem, or if it's something else. Line Code: #sudo pkill cairo-dock & fancontrol is bad I think, but it's commented, I don't use it. tnx (Distributions)