Using QEMU on Troubleshooting: Difference between revisions

From OLPC
Jump to navigation Jump to search
(→‎Enabling the Network Alternative #1: Ctrl Alt 1, not Ctrl Alt 7)
m (Reverted edits by 211.39.150.104 (Talk) to last version by Walter)
 
(19 intermediate revisions by 9 users not shown)
Line 1: Line 1:
#REDIRECT [[Emulating the XO/Help and tips]]
More often than not, technology manages to get us 95% of the way... being the last 5% a mix of magical incantations, rituals and other esoteric activities only clear to the initiated. This page tries to take some of the magic away from the ''sufficiently advanced science''... You should also check '''[[OS images for emulation#Image Configuration|configuration issues]]''' of the latest images.

== Sound ==

Latest images add support of sound. Emulation does not work properly with Tam-Tam, yet, even with kqemu at 2 GHz Pentium4 (performance or insufficient emulation issue?)

== Keyboard and Mouse ==

A typical case is that their keyboard and mouse don't work. A solution to the problem is:
#Make sure the the window has the focus (label should say <tt>QEMU - Press Ctrl-Alt to exit grab</tt>).
#Press <tt>Alt + Ctrl + 3</tt> (or <tt>Alt + Ctrl + 3</tt>) to enter the terminal mode of the OLPC. Notice that QEMu seems to respond better to by pushing first down Ctrl, after Alt and finally the number.
#Make sure that you're logged in.
#*If not, just hit <tt>enter</tt> and it'll ask you to.
#*Login as <tt>root</tt> (no password is required)
#Type <tt>modprobe i8042</tt> (oddly, you may need to try this multiple times before it works, so ''keep trying!'')
#Press <tt>Alt + Ctrl + 7</tt> to return to the graphical mode of the OLPC.
#Your keyboard and mouse should be working fine.
#*Usually the result is a continuous series of 1's will flow (as if the key is stuck)
#*Just hit any key (to stop it) and delete the offending 1's

== Network ==

Chances are that the network will not be enabled. Following are two possible ways to enable it.

=== Enabling the Network Alternative #1 ===

#Make sure the the window has the focus (label should say <tt>QEMU - Press Ctrl-Alt to exit grab</tt>).
#Press <tt>Alt + Ctrl + 3</tt> to enter the terminal mode of the OLPC.
#Make sure that you're logged in.
#*If not, just hit <tt>enter</tt> and it'll ask you to.
#*Login as <tt>root</tt> (no password is required)
#Type <tt>dhclient</tt>
#Press <tt>Alt + Ctrl + 1</tt> to return to the graphical mode of the OLPC.
#Your browser / network connection should be working fine.

=== Enabling the Network Alternative #2 ===

The steps below work on QEmu regardless of which operating system you are running.

'''If you are having trouble getting an internet connection inside QEmu:'''

Get the image running in QEmu so that you can see the normal view with the XO icon in the middle.
[[Image:Empty_no_apps_no_frame.png|300px]]

Make sure your mouse is active in QEmu, then press ctrl+alt+2 together.

This will bring up a screen like a command line, called the QEmu monitor.

Type the following:

sendkey ctrl-alt-f1

And press return.

Then with the keyboard hold down the following keys: '''ctrl+alt+7'''

Another text based screen will appear, asking you to log-in. Sometimes there can be an extra "1" after the word "Login:", just delete it. Type '''root''' and press return

Then type:

dhclient

You should see the screen fill with text.
[[Image:QEmu_running_dhclent.png|400px]]

Some of the numbers have been removed from the screenshot above - they're not important.

Then hold down the following keys on the keyboard: '''ctrl+alt+2'''

and type the following:

sendkey ctrl-alt-f7

Then using the keyboard, hold down the following keys: '''ctrl+alt+1'''

Now open the browser and you should have internet access.

[[Image:Sugar_browser_with_frame_google_home_page.png|300px]]
[[Image:OLPC_20070104.png|300px]]

[[Category:Emulation]]
[[Category:Feedback]]
[[Category:OS]]
[[Category:Developers]]

Latest revision as of 06:12, 17 December 2008