How to Turn off with the button in fewer seconds?

Booting, installing, newbie
Post Reply
Message
Author
zaqsedc
Posts: 2
Joined: Mon 01 Oct 2018, 08:23
Location: Italy

How to Turn off with the button in fewer seconds?

#1 Post by zaqsedc »

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

User avatar
nic007
Posts: 3408
Joined: Sun 13 Nov 2011, 12:31
Location: Cradle of Humankind

Re: How to Turn off with the button less seconds?

#2 Post by nic007 »

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?

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#3 Post by Flash »

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.

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

#4 Post by mikeslr »

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/viewto ... 081#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. ... 326#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. ... 066#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.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#5 Post by bigpup »

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: Select all

#!/bin/bash
# This powers off Linux Puppy !
#
wmpoweroff
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 :shock:
YaPI(any iso installer)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#6 Post by musher0 »

Hi gang.

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

FWIW: Two ugly solutions I have used when cornered:

1) Type in console

Code: Select all

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
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

zaqsedc
Posts: 2
Joined: Mon 01 Oct 2018, 08:23
Location: Italy

#7 Post by zaqsedc »

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

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#8 Post by Puppyt »

musher0 wrote:1) Type in console

Code: Select all

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 :)
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#9 Post by bigpup »

musher0 wrote:Hi gang.

1) Type in console

Code: Select all

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. :shock: :!: :!: :!: :!: :!: :!:
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 :shock:
YaPI(any iso installer)

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#10 Post by Puppyt »

Good call, bigpup - I was skimming threads and missed your essential post - which makes my previous comment absolutely redundant (and hazardous). Cheers :)
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

Re: How to Turn off with the button in fewer seconds?

#11 Post by Sylvander »

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 .
Each of the 3 of them are quick [a couple of seconds].

Post Reply