Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 17 Nov 2018, 07:04
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to Turn off with the button in fewer seconds?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
zaqsedc

Joined: 01 Oct 2018
Posts: 2
Location: Italy

PostPosted: Fri 05 Oct 2018, 09:19    Post subject:  How to Turn off with the button in fewer seconds?  

Hi guys, when I push the button to turn off the pc It starts to count down 30 second and after that It turns off. How can I reduce this time to few second in order to have a quick turn of of the pc? thank you so much
Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 2677
Location: Cradle of Humankind

PostPosted: Fri 05 Oct 2018, 09:47    Post subject: Re: How to Turn off with the button less seconds?  

zaqsedc wrote:
Hi guys, when I push the button to turn off the pc It starts to count down 30 second and after that It turns off. How can I reduce this time to few second in order to have a quick turn of of the pc? thank you so much


No idea but what happens if you keep the button pushed in?
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13086
Location: Arizona USA

PostPosted: Fri 05 Oct 2018, 10:46    Post subject:  

I'm guessing zacsedc means the power button. If that's the case, holding it in forces a shutdown. It is approximately the equivalent of yanking the power cord. Nothing is saved. Depending on how he's running Puppy (Frugal install with a Save file, full install on hard disk,) this may or may not cause problems. Windows wouldn't like it at all.

I run from multisession DVD. If I force a shutdown or if the power fails, I only lose the changes made since the last boot.
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 2780
Location: 500 seconds from Sol

PostPosted: Fri 05 Oct 2018, 13:06    Post subject:  

Hi zaqsedc,

You didn't tell us which Puppy you are running. Running newer Puppies as a Frugal Install, you can do the following: Open Menu>System>Puppy Event Manager, click the Save Session Tab, then set the Save Interval to Zero(0); optionally put a check mark in the "Ask at Shutdown" button.

With that setting, you can literally "pull the plug" since, with Automatic Save turned off corruptions of your SaveFile/Folder can't take place because no Automatic Save ever is occurring when you shutdown/reboot. So holding the power-button down to force a shutdown won't damage your SaveFile/Folder.

A couple of things though.(1) If you're running from a hard-drive (not a USB-Stick) you'll have to change the boot argument, for example "kernel /slacko7x/vmlinuz pmedia=atahd psubdir=slacko7x pfix=fsck" to "kernel /slacko7x/vmlinuz pmedia=ataflash psubdir=slacko7x pfix=fsck". The bolding is for emphasis/clarity. As actually written, those terms are not bolded. The "ataflash" argument tricks Puppies into treating a hard-drive as if it were a USB-Stick.

(2) If you put a check mark in the "Ask at Shutdown" button, at shutdown a GUI will appear with two buttons, "Save" and "No Save". Save is high-lighted for ease of use. Just press enter or "s"*. But, if you do nothing, in 60 seconds Puppy will shutdown without Saving. You can immediately shutdown without Saving by typing "n"* or tabbing to "No Save" and pressing Enter/Return.

(3) If you're running an older Puppy such as Lucid or earlier, you may have to install shinobar's pupsaveconfig-2.2.5.pet from here: http://www.murga-linux.com/puppy/viewtopic.php?p=457081#457081. The test for whether that's needed is if after changing the Save Session setting (and the boot argument) on shutdown the notice that Saving is taking place still appears, you'll need to install this pet.

For Puppies older than Lucid, more changes are necessary. See this thread: http://murga-linux.com/puppy/viewtopic.php?p=662326#662326.

And if you do turn the Automatic Save off, you should be aware of the "downside" and make such other changes as would be appropriate for your way of running your Puppy. http://murga-linux.com/puppy/viewtopic.php?p=974066#974066

* With BionicPup64 pressing 'n' or 's' doesn't work; only (1) Return while Save is highlighted to Save; Tab to "No Save" + Return to not Save; or do nothing and it will shutdown without Saving in 60 seconds.
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 11267
Location: Charleston S.C. USA

PostPosted: Fri 05 Oct 2018, 14:01    Post subject:  

If you want a single click to turn everything off the correct way.

desktop icon for shutting down the computer.

In Rox file manager.
Go to /usr/bin
Left click and drag file wmpoweroff to the desktop.
Now have power off icon on desktop.

Right click on desktop icon for file.
To change name -> edit item
To change icon -> set icon
( normal icon set is located at /usr/local/lib/X11/pixmaps )

Can also do this:

Make script file and place on desktop.

Code:
#!/bin/bash
# This powers off Linux Puppy !
#
wmpoweroff

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 12975
Location: Gatineau (Qc), Canada

PostPosted: Fri 05 Oct 2018, 14:52    Post subject:  

Hi gang.

It's a bit off-thread, I know...

FWIW: Two ugly solutions I have used when cornered:

1) Type in console
Code:
busybox poweroff
This bypasses the nice save sequence in Puppy's shutdown script.

2) Pull the electrical cord!

Both shut the computer down immediately, and you lose all your
work in all apps and settings.
I repeat: you lose all your work in all apps and settings if you use one of
the above.

If you must, you must, of course, but please try to avoid these situations.

Taking a couple of deep breaths to calm yourself down and pulling out the
Internet cable instead of the electrical cord is usaually a good alternative
to # 2.

BFN

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
zaqsedc

Joined: 01 Oct 2018
Posts: 2
Location: Italy

PostPosted: Sat 13 Oct 2018, 08:11    Post subject:  

thank you to all and yes I meant that I like to turn off with switch the entire sistem. Sorry I have a puppy linux distribution and I tried to do as you said but nothing. Overall the pc is very slow with Arcade game so I like to try Lakka.
Thanks for the help guys
Back to top
View user's profile Send private message 
Puppyt

Joined: 09 May 2008
Posts: 841
Location: Gatton, Queensland

PostPosted: Sun 14 Oct 2018, 23:54    Post subject:  

musher0 wrote:
1) Type in console
Code:
busybox poweroff
This bypasses the nice save sequence in Puppy's shutdown script.

Oooooooh - methinks a "chickenswitch" desktop shutdown icon+script is on the horizon. Thanks musher0 Smile

_________________
Search engines for Puppy
http://puppylinux.us/psearch.html; Google Custom Search; others TBA...
Back to top
View user's profile Send private message Visit poster's website 
bigpup


Joined: 11 Oct 2009
Posts: 11267
Location: Charleston S.C. USA

PostPosted: Mon 15 Oct 2018, 02:23    Post subject:  

musher0 wrote:
Hi gang.

1) Type in console
Code:
busybox poweroff
This bypasses the nice save sequence in Puppy's shutdown script.

shut the computer down immediately, and you lose all your work in all apps and settings.
I repeat: you lose all your work in all apps and settings


This will also do a unclean shutdown.

The way I posted on how to do a console command and make a desktop icon to run it, is the safe way to do it.
One click normal shutdown, power off.
Processes are performed, as part of a normal shutdown, for very good reasons. Shocked Exclamation Exclamation Exclamation Exclamation Exclamation Exclamation

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
Puppyt

Joined: 09 May 2008
Posts: 841
Location: Gatton, Queensland

PostPosted: Mon 15 Oct 2018, 17:44    Post subject:  

Good call, bigpup - I was skimming threads and missed your essential post - which makes my previous comment absolutely redundant (and hazardous). Cheers Smile
_________________
Search engines for Puppy
http://puppylinux.us/psearch.html; Google Custom Search; others TBA...
Back to top
View user's profile Send private message Visit poster's website 
Sylvander

Joined: 15 Dec 2008
Posts: 4399
Location: West Lothian, Scotland, UK

PostPosted: Tue 16 Oct 2018, 04:38    Post subject: Re: How to Turn off with the button in fewer seconds?  

zaqsedc wrote:
...when I push the button to turn off the pc It starts to count down 30 second and after that It turns off. How can I reduce this time to few second in order to have a quick turn of of the pc?

The Banksy 3 I'm using can do this.
i.e. I can improper-poweroff with no ill effects.
That's because:
a. This Puppy has been remastered [to include my personalizations], and is totally held on and booted from an optical disk [no pupsave file or folder].
b. It loads totally [and only] into RAM.
c. Loads an unchanging/incorruptible OS at each boot.

Although it isn't necessary to do this, because there are 3 varied quick shutdown buttons on the desktop [I forget their names].
Each of the 3 of them are quick [a couple of seconds].
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0644s ][ Queries: 12 (0.0137s) ][ GZIP on ]