Help - Search - Members - Calendar
Full Version: Restarting After A "shutdown -h 1"
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
guscpu
Have done a shutdown after exiting the GUI as follows

shutdown -h 1

Z shuts down but when i press the power button to reboot nothing happens. The only way it seems to restart is to pull the battery, why does this happen.

If i want to shutdown the Z to conserve power what should i be doing so i can reboot it without having to pull the power each time?

Cheers
Gus
Capn_Fish
Have you tried

CODE
shutdown -h now


? That's how I normally shut down from the CLI.
kkazakov13
Why anyone needs shutdown at all ?

I do suspend always - never ever had any problems.
guscpu
QUOTE(Capn_Fish @ Mar 18 2008, 08:39 PM) *
Have you tried

CODE
shutdown -h now


? That's how I normally shut down from the CLI.


same problem, I'm afraid.
Stubear
I remember from way back in the days the C7xx came out that there was a number of threads on this topic. I can't seem to find them now, but it had something to do with the way the power button is wired. The Z is not designed to be shutdown, but suspended.

The power button doesn't actually power on the device, and when shutdown the unit can't receive the signal from the button. Removing the battery puts the unit back in a state where it can receive the power button signal.

The take home message that I got from the discussion was - don't use shutdown unless you are willing to pull the battery to restart.

Cheers

Stu
guscpu
QUOTE(Stubear @ Mar 18 2008, 10:46 PM) *
I remember from way back in the days the C7xx came out that there was a number of threads on this topic. I can't seem to find them now, but it had something to do with the way the power button is wired. The Z is not designed to be shutdown, but suspended.

The power button doesn't actually power on the device, and when shutdown the unit can't receive the signal from the button. Removing the battery puts the unit back in a state where it can receive the power button signal.

The take home message that I got from the discussion was - don't use shutdown unless you are willing to pull the battery to restart.

Cheers

Stu


Thanks Stu that seems to bear out from what I've seen smile.gif

Gus
guscpu
QUOTE(Stubear @ Mar 18 2008, 10:46 PM) *
I remember from way back in the days the C7xx came out that there was a number of threads on this topic. I can't seem to find them now, but it had something to do with the way the power button is wired. The Z is not designed to be shutdown, but suspended.

The power button doesn't actually power on the device, and when shutdown the unit can't receive the signal from the button. Removing the battery puts the unit back in a state where it can receive the power button signal.

The take home message that I got from the discussion was - don't use shutdown unless you are willing to pull the battery to restart.

Cheers

Stu


In that case is there any way of putting the Z into suspend mode from the Command Line Interface?
kkazakov13
QUOTE(guscpu @ Mar 19 2008, 03:55 PM) *
QUOTE(Stubear @ Mar 18 2008, 10:46 PM) *
I remember from way back in the days the C7xx came out that there was a number of threads on this topic. I can't seem to find them now, but it had something to do with the way the power button is wired. The Z is not designed to be shutdown, but suspended.

The power button doesn't actually power on the device, and when shutdown the unit can't receive the signal from the button. Removing the battery puts the unit back in a state where it can receive the power button signal.

The take home message that I got from the discussion was - don't use shutdown unless you are willing to pull the battery to restart.

Cheers

Stu


In that case is there any way of putting the Z into suspend mode from the Command Line Interface?



apm --suspend
guscpu
QUOTE(kkazakov13 @ Mar 19 2008, 03:23 PM) *
QUOTE(guscpu @ Mar 19 2008, 03:55 PM) *
QUOTE(Stubear @ Mar 18 2008, 10:46 PM) *
I remember from way back in the days the C7xx came out that there was a number of threads on this topic. I can't seem to find them now, but it had something to do with the way the power button is wired. The Z is not designed to be shutdown, but suspended.

The power button doesn't actually power on the device, and when shutdown the unit can't receive the signal from the button. Removing the battery puts the unit back in a state where it can receive the power button signal.

The take home message that I got from the discussion was - don't use shutdown unless you are willing to pull the battery to restart.

Cheers

Stu


In that case is there any way of putting the Z into suspend mode from the Command Line Interface?



apm --suspend



tried suspend already....

bash: suspend: cannot suspend a login shell
Jon_J
I see by your signature, you are running pdaxii13.
Have you tried "Suspend" on the menu?
My C3200 suspends immediately after clicking it.
guscpu
QUOTE(Jon_J @ Mar 20 2008, 12:41 AM) *
I see by your signature, you are running pdaxii13.
Have you tried "Suspend" on the menu?
My C3200 suspends immediately after clicking it.


From the GUI suspend works, but am wondering is there an equivalent for the CLI.

Thanks
Jon_J
I was looking for something else, and found the script that is tied to the "Suspend" icon on the start menu.
It's located here
/usr/apps/suspend
In Rox filer, you need to navagate to /usr/apps/ then right-click on Suspend and select "Look inside"
This will open the "Suspend" folder (is it actually a folder? Rox makes it appear to be).
Inside this folder is the script called "AppRun". This is what actually "suspends" your Zaurus.
I opened it in a text editor, and below is the script.
I just pasted the second line into a terminal, hit enter, and my Zaurus suspended immediately.
CODE
#!/bin/sh
exec xset dpms force off "$@"
guscpu
QUOTE(Jon_J @ Mar 20 2008, 09:53 PM) *
I was looking for something else, and found the script that is tied to the "Suspend" icon on the start menu.
It's located here
/usr/apps/suspend
In Rox filer, you need to navagate to /usr/apps/ then right-click on Suspend and select "Look inside"
This will open the "Suspend" folder (is it actually a folder? Rox makes it appear to be).
Inside this folder is the script called "AppRun". This is what actually "suspends" your Zaurus.
I opened it in a text editor, and below is the script.
I just pasted the second line into a terminal, hit enter, and my Zaurus suspended immediately.
CODE
#!/bin/sh
exec xset dpms force off "$@"



Wow will give that a try, nice work I think smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.