A Script To Shutdown After Charging
#1
Posted 24 February 2011 - 01:15 PM
#2
Posted 24 February 2011 - 01:34 PM
#3
Posted 24 February 2011 - 03:57 PM
#4
Posted 24 February 2011 - 07:29 PM
well I did it myself then...
#5
Posted 24 February 2011 - 07:31 PM
#6
Posted 24 February 2011 - 07:43 PM
That's why I said "That still need to be configurable" in the feature request.no it should be user initiated - no automatic
But I can easily see a script that :
- is launched through a launcher in the system category
- do what your current script does
- display a windows saying something like "waiting to have reached full battery to shutdown"
- cancel that setup if the windows is closed
Edited by sebt3, 24 February 2011 - 07:44 PM.
#7
Posted 24 February 2011 - 07:46 PM
Edited by chris_c, 24 February 2011 - 08:05 PM.
#8
Posted 08 April 2011 - 04:33 AM
im a little bit confused on what i need to run in the terminal (linux noob here)
Could you clarify a bit for me please?
Thanks!
#9
Posted 08 April 2011 - 04:36 AM
#10
Posted 08 April 2011 - 05:10 AM
I read the article, but i just want to check to see if i have an understanding of it.If after reading the article, you're still not sure then its probably not for you...
1, download said files from the bottom of the article
2,place twlTransistion into /etc/init.d/ and then use chmod + x
3, cp pokeVtrans to /usr/bin
I dont really understand the 5 ls sudo lines.
Please, i know im really nooby at linux, but help a brother out!
#11
Posted 08 April 2011 - 05:18 AM
its ln not ls - think of this as windows short cuts but a sight more powerful...
on a Linux desktop machine type
man ln
assuming you have made a directory in your home directory called bin for the ./offwhencharged.sh script
you will need to
cd bin
once you have started a terminal - or
sudo bin/offwhencharged.sh
you will need to verify that the script is executable
ls -lwill show you file permission
chmod +x offwhencharged.shwill make it executable
Edited by chris_c, 08 April 2011 - 05:19 AM.
#12
Posted 08 April 2011 - 05:21 AM
Thank you!
#13
Posted 08 April 2011 - 05:50 AM
on your article you said that it was important not to run this script in isolation, what does that mean?
Thanks.
#14
Posted 08 April 2011 - 06:09 AM
#15
Posted 08 April 2011 - 07:31 AM
and thats just by making it excuteble and placing it in the /etc/init.d/ folder right?that you should set up twlTransistion to be run on reboot,











