* how to cleanly exit a QEMU session?
@ 2011-11-29 23:00 Robert P. J. Day
2011-11-29 23:04 ` Martin Jansa
2011-11-30 11:02 ` Paul Eggleton
0 siblings, 2 replies; 9+ messages in thread
From: Robert P. J. Day @ 2011-11-29 23:00 UTC (permalink / raw)
To: Yocto discussion list
i'm sure it's in one of the docs i missed, but how does one cleanly
shut down a QEMU session and get back to the original terminal
session? i've tried shutdown and poweroff but neither of those gives
me my shell prompt back.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: how to cleanly exit a QEMU session?
2011-11-29 23:00 how to cleanly exit a QEMU session? Robert P. J. Day
@ 2011-11-29 23:04 ` Martin Jansa
2011-11-30 11:02 ` Paul Eggleton
1 sibling, 0 replies; 9+ messages in thread
From: Martin Jansa @ 2011-11-29 23:04 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 476 bytes --]
On Tue, Nov 29, 2011 at 06:00:31PM -0500, Robert P. J. Day wrote:
>
> i'm sure it's in one of the docs i missed, but how does one cleanly
> shut down a QEMU session and get back to the original terminal
> session? i've tried shutdown and poweroff but neither of those gives
> me my shell prompt back.
Ctrl+Alt+2 to open QEMU monitor and 'quit'
or Ctrl+A+C when you're using -nographics
Cheers,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: how to cleanly exit a QEMU session?
2011-11-29 23:00 how to cleanly exit a QEMU session? Robert P. J. Day
2011-11-29 23:04 ` Martin Jansa
@ 2011-11-30 11:02 ` Paul Eggleton
2011-11-30 11:46 ` Robert P. J. Day
1 sibling, 1 reply; 9+ messages in thread
From: Paul Eggleton @ 2011-11-30 11:02 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: yocto
On Tuesday 29 November 2011 18:00:31 Robert P. J. Day wrote:
> i'm sure it's in one of the docs i missed, but how does one cleanly
> shut down a QEMU session and get back to the original terminal
> session? i've tried shutdown and poweroff but neither of those gives
> me my shell prompt back.
Which machine are you running within the emulator? I know some emulated
machines don't seem to support actually powering off - does reboot work?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: how to cleanly exit a QEMU session?
2011-11-30 11:02 ` Paul Eggleton
@ 2011-11-30 11:46 ` Robert P. J. Day
2011-11-30 22:31 ` Joshua Lock
0 siblings, 1 reply; 9+ messages in thread
From: Robert P. J. Day @ 2011-11-30 11:46 UTC (permalink / raw)
To: Paul Eggleton; +Cc: yocto
On Wed, 30 Nov 2011, Paul Eggleton wrote:
> On Tuesday 29 November 2011 18:00:31 Robert P. J. Day wrote:
> > i'm sure it's in one of the docs i missed, but how does one cleanly
> > shut down a QEMU session and get back to the original terminal
> > session? i've tried shutdown and poweroff but neither of those gives
> > me my shell prompt back.
>
> Which machine are you running within the emulator? I know some emulated
> machines don't seem to support actually powering off - does reboot work?
qemuppc, core-image-minimal. interestingly, "poweroff" doesn't
completely close the QEMU session, but "reboot" does. it might be
worth adding that to the quick start guide.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: how to cleanly exit a QEMU session?
2011-11-30 11:46 ` Robert P. J. Day
@ 2011-11-30 22:31 ` Joshua Lock
2011-11-30 22:42 ` Bruce Ashfield
2011-11-30 22:47 ` Wolfgang Denk
0 siblings, 2 replies; 9+ messages in thread
From: Joshua Lock @ 2011-11-30 22:31 UTC (permalink / raw)
To: yocto
On 30/11/11 03:46, Robert P. J. Day wrote:
> On Wed, 30 Nov 2011, Paul Eggleton wrote:
>
>> On Tuesday 29 November 2011 18:00:31 Robert P. J. Day wrote:
>>> i'm sure it's in one of the docs i missed, but how does one cleanly
>>> shut down a QEMU session and get back to the original terminal
>>> session? i've tried shutdown and poweroff but neither of those gives
>>> me my shell prompt back.
>>
>> Which machine are you running within the emulator? I know some emulated
>> machines don't seem to support actually powering off - does reboot work?
>
> qemuppc, core-image-minimal. interestingly, "poweroff" doesn't
> completely close the QEMU session, but "reboot" does. it might be
> worth adding that to the quick start guide.
The same is also true for qemuarm, we work around it in sato by munging
the shutdown.desktop file to all restart and having the qemu scripts
start qemu with -norestart.
Clearly we should also do the shutdown.desktop munging for qemuppc
What do people think to the idea of putting something into the image for
those two specific machines which aliases poweroff to reboot?
Joshua
--
Joshua Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: how to cleanly exit a QEMU session?
2011-11-30 22:31 ` Joshua Lock
@ 2011-11-30 22:42 ` Bruce Ashfield
2011-11-30 22:47 ` Wolfgang Denk
1 sibling, 0 replies; 9+ messages in thread
From: Bruce Ashfield @ 2011-11-30 22:42 UTC (permalink / raw)
To: Joshua Lock; +Cc: yocto
On 11-11-30 05:31 PM, Joshua Lock wrote:
> On 30/11/11 03:46, Robert P. J. Day wrote:
>> On Wed, 30 Nov 2011, Paul Eggleton wrote:
>>
>>> On Tuesday 29 November 2011 18:00:31 Robert P. J. Day wrote:
>>>> i'm sure it's in one of the docs i missed, but how does one cleanly
>>>> shut down a QEMU session and get back to the original terminal
>>>> session? i've tried shutdown and poweroff but neither of those gives
>>>> me my shell prompt back.
>>>
>>> Which machine are you running within the emulator? I know some emulated
>>> machines don't seem to support actually powering off - does reboot work?
>>
>> qemuppc, core-image-minimal. interestingly, "poweroff" doesn't
>> completely close the QEMU session, but "reboot" does. it might be
>> worth adding that to the quick start guide.
>
> The same is also true for qemuarm, we work around it in sato by munging
> the shutdown.desktop file to all restart and having the qemu scripts
> start qemu with -norestart.
>
> Clearly we should also do the shutdown.desktop munging for qemuppc
>
> What do people think to the idea of putting something into the image for
> those two specific machines which aliases poweroff to reboot?
I'd be fine with such a change, I pushed for the ARM mapping to
reboot originally, so doing the same here and an alias would make
the command line consistent with the GUI.
Bruce
>
> Joshua
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: how to cleanly exit a QEMU session?
2011-11-30 22:31 ` Joshua Lock
2011-11-30 22:42 ` Bruce Ashfield
@ 2011-11-30 22:47 ` Wolfgang Denk
2011-11-30 23:18 ` Bruce Ashfield
2011-12-01 2:16 ` Joshua Lock
1 sibling, 2 replies; 9+ messages in thread
From: Wolfgang Denk @ 2011-11-30 22:47 UTC (permalink / raw)
To: Joshua Lock; +Cc: yocto
Dear Joshua Lock,
In message <4ED6AED5.8070308@linux.intel.com> you wrote:
>
> What do people think to the idea of putting something into the image for
> those two specific machines which aliases poweroff to reboot?
I consider it a really bad idea, as "poweroff" is actually a very
different action than "reboot" - the former should shut down and halt
the system, while the latter should actually restart it.
It appears both operations are not properly working and need to be
fixed.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
"If the code and the comments disagree, then both are probably
wrong." - Norm Schryer
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: how to cleanly exit a QEMU session?
2011-11-30 22:47 ` Wolfgang Denk
@ 2011-11-30 23:18 ` Bruce Ashfield
2011-12-01 2:16 ` Joshua Lock
1 sibling, 0 replies; 9+ messages in thread
From: Bruce Ashfield @ 2011-11-30 23:18 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: yocto
On 11-11-30 05:47 PM, Wolfgang Denk wrote:
> Dear Joshua Lock,
>
> In message<4ED6AED5.8070308@linux.intel.com> you wrote:
>>
>> What do people think to the idea of putting something into the image for
>> those two specific machines which aliases poweroff to reboot?
>
> I consider it a really bad idea, as "poweroff" is actually a very
> different action than "reboot" - the former should shut down and halt
> the system, while the latter should actually restart it.
>
> It appears both operations are not properly working and need to be
The hardware that qemu 'models' in both cases doesn't perform
this function either, so the behaviour is consistent. We looked
into fix it, and quite frankly, there was very little value in
fixing it, so simply using reboot was good enough given the scope
of the problem.
Cheers,
Bruce
> fixed.
>
> Best regards,
>
> Wolfgang Denk
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: how to cleanly exit a QEMU session?
2011-11-30 22:47 ` Wolfgang Denk
2011-11-30 23:18 ` Bruce Ashfield
@ 2011-12-01 2:16 ` Joshua Lock
1 sibling, 0 replies; 9+ messages in thread
From: Joshua Lock @ 2011-12-01 2:16 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: yocto
On 30/11/11 14:47, Wolfgang Denk wrote:
> Dear Joshua Lock,
>
> In message <4ED6AED5.8070308@linux.intel.com> you wrote:
>>
>> What do people think to the idea of putting something into the image for
>> those two specific machines which aliases poweroff to reboot?
>
> I consider it a really bad idea, as "poweroff" is actually a very
> different action than "reboot" - the former should shut down and halt
> the system, while the latter should actually restart it.
I understand the difference and I'm not proposing we set that for all
machines, however we already explicitly prevent all qemu machines booted
via our scripts from restarting - so I think in this case the alias
makes sense.
Having said that it was just a suggestion, I'll not lose sleep if folks
don't like the idea.
Joshua
--
Joshua Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-12-01 2:16 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-29 23:00 how to cleanly exit a QEMU session? Robert P. J. Day
2011-11-29 23:04 ` Martin Jansa
2011-11-30 11:02 ` Paul Eggleton
2011-11-30 11:46 ` Robert P. J. Day
2011-11-30 22:31 ` Joshua Lock
2011-11-30 22:42 ` Bruce Ashfield
2011-11-30 22:47 ` Wolfgang Denk
2011-11-30 23:18 ` Bruce Ashfield
2011-12-01 2:16 ` Joshua Lock
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.