Jump to content


Photo

A Script To Shutdown After Charging


  • Please log in to reply
17 replies to this topic

#1 chris_c

chris_c

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male

Posted 24 February 2011 - 01:15 PM

http://chrisc.bedroo...ers.co.uk/?p=77

*please* read what is there before asking questions ....

#2 sebt3

sebt3

    homebrew player (P. & C.)

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1897 posts
  • Gender:Male
  • Location:QC

Posted 24 February 2011 - 01:34 PM

be sure to create a bug/feature request on bugs.o.o about that pointing here ;)

#3 chris_c

chris_c

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male

Posted 24 February 2011 - 03:57 PM

eh?

#4 sebt3

sebt3

    homebrew player (P. & C.)

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1897 posts
  • Gender:Male
  • Location:QC

Posted 24 February 2011 - 07:29 PM

I requested you to : http://bugs.openpandora.org/index.php?do=details&task_id=209

well I did it myself then...

#5 chris_c

chris_c

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male

Posted 24 February 2011 - 07:31 PM

no it should be user initiated - no automatic

#6 sebt3

sebt3

    homebrew player (P. & C.)

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1897 posts
  • Gender:Male
  • Location:QC

Posted 24 February 2011 - 07:43 PM

no it should be user initiated - no automatic

That's why I said "That still need to be configurable" in the feature request.
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 chris_c

chris_c

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male

Posted 24 February 2011 - 07:46 PM

edit to reflect sebts edit ;) :P

Edited by chris_c, 24 February 2011 - 08:05 PM.


#8 Kur53

Kur53

    Member

  • Members
  • PipPip
  • 12 posts

Posted 08 April 2011 - 04:33 AM

Hey, sorry to open up a dead forum, but i have a ?.
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 chris_c

chris_c

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male

Posted 08 April 2011 - 04:36 AM

If after reading the article, you're still not sure then its probably not for you...

#10 Kur53

Kur53

    Member

  • Members
  • PipPip
  • 12 posts

Posted 08 April 2011 - 05:10 AM

If after reading the article, you're still not sure then its probably not for you...

I read the article, but i just want to check to see if i have an understanding of it.
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 chris_c

chris_c

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male

Posted 08 April 2011 - 05:18 AM

just execute each one it turn

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 -l
will show you file permission

chmod +x offwhencharged.sh
will make it executable

Edited by chris_c, 08 April 2011 - 05:19 AM.


#12 Kur53

Kur53

    Member

  • Members
  • PipPip
  • 12 posts

Posted 08 April 2011 - 05:21 AM

Alright, i think i get it now.
Thank you!

#13 Kur53

Kur53

    Member

  • Members
  • PipPip
  • 12 posts

Posted 08 April 2011 - 05:50 AM

oh, one last thing, i hate to be a bother but just want to be sure.
on your article you said that it was important not to run this script in isolation, what does that mean?
Thanks.

#14 chris_c

chris_c

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male

Posted 08 April 2011 - 06:09 AM

that you should set up twlTransistion to be run on reboot,

#15 Kur53

Kur53

    Member

  • Members
  • PipPip
  • 12 posts

Posted 08 April 2011 - 07:31 AM

that you should set up twlTransistion to be run on reboot,

and thats just by making it excuteble and placing it in the /etc/init.d/ folder right?