last day (15 days later) » 

15:11
0
A: Script not running on resume/wakeup in Ubuntu

EdiDSince systemd the proper location for this is /lib/systemd/system-sleep. Make there a file eg. 999_thaw_flash and paste like this : #!/bin/sh case $1/$2 in post/suspend) your_srcipt_here .... ;; esac

nope, didnot work
Did you set executable bit ?
yes i did, it was done
There is default hdparm file can you cat its structure and make the same with your script. I'm wondering if this will work ?
After suspend you can investigate for errors with journalctl -u systemd-suspend.service it will tell you about executing scripts after waking up
/lib/systemd/system-sleep/file1 failed with error code 1. and it is not able to connect to remote host
15:11
So it's something wrong with your script
ok
what is it
I have checked and hdparm script is working. If you made yours in the same way it must work unless there is a bug in script
#!/bin/sh

case $1 in
post)
/usr/lib/pm-utils/power.d/95hdparm-apm resume
/home/hasan/Desktop/flash/su.sh
/home/hasan/Desktop/flash/hi.sh
;;
esac
this is my hdpram
I meant making another one just like hdparm eg. thaw_flash
not editing hdparm
ok
i have added logs to the question
15:25
As you can see systemd is launching your script but there are many errors. Probably you have to rewrite it. What is it suppose to do ?
download html data and parse it
Maybe wget will do the thing ?
no

last day (15 days later) »