Ask a Question related to Mac Applications & Software, Design and Development.
-
Sandman #1
Re: How to deep-sleep via command line?
In article <b133d89.0307210900.1bd7cae5@posting.google.com> ,
[email]steven@kan.org[/email] (Steven Kan) wrote:
sudo osascript -e 'tell application \"Finder\" to sleep'> My G4/450DP running 10.2.6 will deep-sleep if I press the power button
> or if I select Sleep from the Apple menu, but if I just let it sit
> there for 30-60 minutes, it only goes into light sleep (e.g. screen
> goes dark and drives spin down, but the fans stay on).
>
> Aside from fixing the specific problem, how do I tell my Mac to deep
> sleep via the command line? (e.g. when SSH'ed in from a remote
> location). Thanks!
Unfortunately, this only works if the Finder is running (i.e. someone is logged
in).
--
Sandman[.net]
Sandman Guest
-
#40715 [NEW]: level too deep - recursive dependency? in Unknown on line 0
From: shoichi at cf7 dot so-net dot ne dot jp Operating system: CentOS4.4 PHP version: 5.2.1 PHP Bug Type: Scripting Engine... -
RUN/execute a Command-Line command from an ASP page
Hi, I need to RUN/execute a Command-Line command from an ASP page. This is the command: sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2... -
RUN/execute a Command-Line command from an ASP page.
Hi, I need to RUN/execute a Command-Line command from an ASP page. This is the command: sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2... -
sleep command in iterators (silly n00b toy question)
So, still busy just getting introduced to this ruby business. For riduculous reasons entirely my own, I decide it would neat-o to have a programm... -
G4 will deep sleep, but not automatically
My G4/450DP running 10.2.6 will deep-sleep if I press the power button or if I select Sleep from the Apple menu, but if I just let it sit there for... -
Steve Lidie #2
Re: How to deep-sleep via command line?
Sandman <mr@sandman.net> wrote:
Typically, sleep kills network connections, so you shall have hung> In article <b133d89.0307210900.1bd7cae5@posting.google.com> ,
> [email]steven@kan.org[/email] (Steven Kan) wrote:
>>> My G4/450DP running 10.2.6 will deep-sleep if I press the power button
>> or if I select Sleep from the Apple menu, but if I just let it sit
>> there for 30-60 minutes, it only goes into light sleep (e.g. screen
>> goes dark and drives spin down, but the fans stay on).
>>
>> Aside from fixing the specific problem, how do I tell my Mac to deep
>> sleep via the command line? (e.g. when SSH'ed in from a remote
>> location). Thanks!
yourself, as it were. Nevertheless:
man -k power
leads to:
man pmset
>
> sudo osascript -e 'tell application \"Finder\" to sleep'
>
> Unfortunately, this only works if the Finder is running (i.e. someone is logged
> in).
>Steve Lidie Guest
-
Tom Stiller #3
Re: How to deep-sleep via command line?
In article <bfhmlm$qho@fidoii.CC.Lehigh.EDU>,
Steve Lidie <lusol@cube0.CC.Lehigh.EDU> wrote:
Which won't do what the OP wants.> Sandman <mr@sandman.net> wrote:>> > In article <b133d89.0307210900.1bd7cae5@posting.google.com> ,
> > [email]steven@kan.org[/email] (Steven Kan) wrote:
> >> >> My G4/450DP running 10.2.6 will deep-sleep if I press the power button
> >> or if I select Sleep from the Apple menu, but if I just let it sit
> >> there for 30-60 minutes, it only goes into light sleep (e.g. screen
> >> goes dark and drives spin down, but the fans stay on).
> >>
> >> Aside from fixing the specific problem, how do I tell my Mac to deep
> >> sleep via the command line? (e.g. when SSH'ed in from a remote
> >> location). Thanks!
> Typically, sleep kills network connections, so you shall have hung
> yourself, as it were. Nevertheless:
>
> man -k power
>
> leads to:
>
> man pmset
-->> >
> > sudo osascript -e 'tell application \"Finder\" to sleep'
> >
> > Unfortunately, this only works if the Finder is running (i.e. someone is
> > logged
> > in).
> >
Tom Stiller
PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3
7BDA 71ED 6496 99C0 C7CF
Tom Stiller Guest
-
Sandman #4
Re: How to deep-sleep via command line?
In article <bfhmlm$qho@fidoii.CC.Lehigh.EDU>,
Steve Lidie <lusol@cube0.CC.Lehigh.EDU> wrote:
Your SSH connection dies, yes, but that's not a problem.> Sandman <mr@sandman.net> wrote:>> > In article <b133d89.0307210900.1bd7cae5@posting.google.com> ,
> > [email]steven@kan.org[/email] (Steven Kan) wrote:
> >> >> My G4/450DP running 10.2.6 will deep-sleep if I press the power button
> >> or if I select Sleep from the Apple menu, but if I just let it sit
> >> there for 30-60 minutes, it only goes into light sleep (e.g. screen
> >> goes dark and drives spin down, but the fans stay on).
> >>
> >> Aside from fixing the specific problem, how do I tell my Mac to deep
> >> sleep via the command line? (e.g. when SSH'ed in from a remote
> >> location). Thanks!
> Typically, sleep kills network connections, so you shall have hung
> yourself, as it were. Nevertheless:
Which is a command line utility for setting power management settings. It's> man -k power
>
> leads to:
>
> man pmset
identical to the energy saver preference pane in functionality. And you can't
use it to tell the machine to sleep.
--
Sandman[.net]
Sandman Guest
-
Steven Kan #5
Re: How to deep-sleep via command line?
[email]steven@kan.org[/email] (Steven Kan) wrote in message news:<b133d89.0307210900.1bd7cae5@posting.google.c om>...
[snip]> My G4/450DP running 10.2.6 will deep-sleep if I press the power button
> or if I select Sleep from the Apple menu, but if I just let it sit
> there for 30-60 minutes, it only goes into light sleep (e.g. screen
> goes dark and drives spin down, but the fans stay on).
>
Also, any tips on how to fix the sleeping problem? The Energy Saver
prefs are set with Separate Sleep for display un-checked and Spin Down
HDs unchecked.
Thanks!
Steven Kan Guest
-
Steven Kan #6
Re: How to deep-sleep via command line?
Sandman <mr@sandman.net> wrote in message news:<mr-32FF50.21241521072003@news.fu-berlin.de>...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^> In article <b133d89.0307210900.1bd7cae5@posting.google.com> ,
> [email]steven@kan.org[/email] (Steven Kan) wrote:
>>> > My G4/450DP running 10.2.6 will deep-sleep if I press the power button
> > or if I select Sleep from the Apple menu, but if I just let it sit
> > there for 30-60 minutes, it only goes into light sleep (e.g. screen
> > goes dark and drives spin down, but the fans stay on).
> >
> > Aside from fixing the specific problem, how do I tell my Mac to deep
> > sleep via the command line? (e.g. when SSH'ed in from a remote
> > location). Thanks!
> sudo osascript -e 'tell application \"Finder\" to sleep'
>
> this only works if the Finder is running (i.e. someone is logged in).
Does this mean logged in graphically, or would my SSH login qualify?
Is there any way I can trigger a graphical login from my SSH session
and _then_ tell it to go to sleep?
Steven Kan Guest
-
Sandman #7
Re: How to deep-sleep via command line?
In article <b133d89.0307221621.3fdc7968@posting.google.com> ,
[email]steven@kan.org[/email] (Steven Kan) wrote:
No, the Finder needs to be running, which it doesn't if no one is logged in> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^> > sudo osascript -e 'tell application \"Finder\" to sleep'
> >
> > this only works if the Finder is running (i.e. someone is logged in).
>
> Does this mean logged in graphically, or would my SSH login qualify?
'grapichally'
I don't think so no.> Is there any way I can trigger a graphical login from my SSH session
> and _then_ tell it to go to sleep?
--
Sandman[.net]
Sandman Guest
-
Frederick Cheung #8
Re: How to deep-sleep via command line?
On Wed, 23 Jul 2003, Sandman wrote:
you can send a sleep appleevent to the loginwindow process but you can't> In article <b133d89.0307221621.3fdc7968@posting.google.com> ,
> [email]steven@kan.org[/email] (Steven Kan) wrote:
>>> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^> > > sudo osascript -e 'tell application \"Finder\" to sleep'
> > >
> > > this only works if the Finder is running (i.e. someone is logged in).
> >
> > Does this mean logged in graphically, or would my SSH login qualify?
> No, the Finder needs to be running, which it doesn't if no one is logged in
> 'grapichally'
>>> > Is there any way I can trigger a graphical login from my SSH session
> > and _then_ tell it to go to sleep?
> I don't think so no.
talk to it via applescript, so writing a small program that does that
might work. However i seem to recall that sending applevents from a
process not run by a graphically logged in user is kinda icky.
Fred
Frederick Cheung Guest



Reply With Quote

