Author Topic: Restarting After A "shutdown -h 1"  (Read 7493 times)

guscpu

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Restarting After A "shutdown -h 1"
« on: March 18, 2008, 04:03:38 pm »
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
Newcomer to Linux!
SL-C1000, Cacko 1.23

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Restarting After A "shutdown -h 1"
« Reply #1 on: March 18, 2008, 04:39:35 pm »
Have you tried

Code: [Select]
shutdown -h now
? That's how I normally shut down from the CLI.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

kkazakov13

  • Sr. Member
  • ****
  • Posts: 408
    • View Profile
Restarting After A "shutdown -h 1"
« Reply #2 on: March 18, 2008, 05:31:11 pm »
Why anyone needs shutdown at all ?

I do suspend always - never ever had any problems.
SL-C3200 ** FOR SALE :( **
https://www.oesf.org/forum/index.php?showtopic=25969

Canon K30225 CF wireless card
Taxan iTax-LAN10 wired card
My packages for customized pdaXrom beta 3

guscpu

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Restarting After A "shutdown -h 1"
« Reply #3 on: March 18, 2008, 05:45:23 pm »
Quote from: Capn_Fish
Have you tried

Code: [Select]
shutdown -h now
? That's how I normally shut down from the CLI.

same problem, I'm afraid.
Newcomer to Linux!
SL-C1000, Cacko 1.23

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Restarting After A "shutdown -h 1"
« Reply #4 on: March 18, 2008, 06:46:50 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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

guscpu

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Restarting After A "shutdown -h 1"
« Reply #5 on: March 18, 2008, 06:56:39 pm »
Quote from: 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

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

Gus
Newcomer to Linux!
SL-C1000, Cacko 1.23

guscpu

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Restarting After A "shutdown -h 1"
« Reply #6 on: March 19, 2008, 09:55:16 am »
Quote from: 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

In that case is there any way of putting the Z into suspend mode from the Command Line Interface?
Newcomer to Linux!
SL-C1000, Cacko 1.23

kkazakov13

  • Sr. Member
  • ****
  • Posts: 408
    • View Profile
Restarting After A "shutdown -h 1"
« Reply #7 on: March 19, 2008, 11:23:08 am »
Quote from: guscpu
Quote from: 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

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


apm --suspend
SL-C3200 ** FOR SALE :( **
https://www.oesf.org/forum/index.php?showtopic=25969

Canon K30225 CF wireless card
Taxan iTax-LAN10 wired card
My packages for customized pdaXrom beta 3

guscpu

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Restarting After A "shutdown -h 1"
« Reply #8 on: March 19, 2008, 06:47:23 pm »
Quote from: kkazakov13
Quote from: guscpu
Quote from: 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

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
Newcomer to Linux!
SL-C1000, Cacko 1.23

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Restarting After A "shutdown -h 1"
« Reply #9 on: March 19, 2008, 08:41:55 pm »
I see by your signature, you are running pdaxii13.
Have you tried "Suspend" on the menu?
My C3200 suspends immediately after clicking it.
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

guscpu

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Restarting After A "shutdown -h 1"
« Reply #10 on: March 20, 2008, 03:33:30 pm »
Quote from: 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.

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

Thanks
Newcomer to Linux!
SL-C1000, Cacko 1.23

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Restarting After A "shutdown -h 1"
« Reply #11 on: March 20, 2008, 05:53:07 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: [Select]
#!/bin/sh
exec xset dpms force off "$@"
« Last Edit: March 20, 2008, 05:55:22 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

guscpu

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Restarting After A "shutdown -h 1"
« Reply #12 on: March 20, 2008, 06:08:40 pm »
Quote from: 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: [Select]
#!/bin/sh
exec xset dpms force off "$@"


Wow will give that a try, nice work I think
Newcomer to Linux!
SL-C1000, Cacko 1.23