All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] mouse doesn't work on guest OS
@ 2011-05-20 13:59 Amirali Shambayati
  2011-05-21  1:14 ` Brad Hards
  0 siblings, 1 reply; 6+ messages in thread
From: Amirali Shambayati @ 2011-05-20 13:59 UTC (permalink / raw)
  To: qemu-devel

Hello all,
I use Qemu to run ubuntu image(for kernel debugging affairs). I use
following command:

sudo qemu -hda ubuntu-qemu-test -append "root=/dev/sda1" -kernel
/mnt/build/linux-2.6/arch/x86/boot/bzImage -boot c -net nic -net user

Mouse doesn't work on guest ubuntu.

I googled my problem, and I found two solutions:
adding "-usb -usbdevice tablet"
entering this command before running qemu: "export SDL_VIDEO_X11_DGAMOUSE=0"

But none of them worked for me. any help is appreciated.

-- 
Amirali Shambayati
Bachelor Student
Computer Engineering Department
Sharif University of Technology
Tehran, Iran

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] mouse doesn't work on guest OS
  2011-05-20 13:59 [Qemu-devel] mouse doesn't work on guest OS Amirali Shambayati
@ 2011-05-21  1:14 ` Brad Hards
  2011-05-21 11:43   ` Amirali Shambayati
  0 siblings, 1 reply; 6+ messages in thread
From: Brad Hards @ 2011-05-21  1:14 UTC (permalink / raw)
  To: qemu-devel; +Cc: Amirali Shambayati

On Friday 20 May 2011 23:59:25 Amirali Shambayati wrote:
> Mouse doesn't work on guest ubuntu.
You need to debug it, as if it was real hardware.

> But none of them worked for me. any help is appreciated.
This isn't a very in-depth problem description. Remember that we can't see 
your screen.

Does qemu not start? Does the kernel not boot? Does it show up in dmesg or 
/proc? Does it work in text mode but not in X (or vice versa)? Does it work if 
you use the -device (qdev) approach instead? Does it work if you use the 
monitor console to "hotplug" the mouse after boot instead of on the command 
line?

Basically, you need to tell us what debugging you've done, and the results of 
each part of that debugging.

It might also help to know which version of qemu you are using.

Brad

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] mouse doesn't work on guest OS
  2011-05-21  1:14 ` Brad Hards
@ 2011-05-21 11:43   ` Amirali Shambayati
  2011-05-21 23:32     ` Brad Hards
  0 siblings, 1 reply; 6+ messages in thread
From: Amirali Shambayati @ 2011-05-21 11:43 UTC (permalink / raw)
  To: Brad Hards; +Cc: qemu-devel

Hi Brad,
Qemu starts, kernel boots and ubuntu's GUI boots. I use "dmesg" in
terminal to see printks which I have put in kernel code. My problem is
that, mouse is hanged in the middle of the screen. I need mouse to
connect to Internet!! if anyway exists to make Internet connection
using terminal, I won't need mouse anymore!

I'm newbie with kernel debugging and using qemu. Your help will be so
valuable for me.

On Sat, May 21, 2011 at 5:44 AM, Brad Hards <bradh@frogmouth.net> wrote:
> On Friday 20 May 2011 23:59:25 Amirali Shambayati wrote:
>> Mouse doesn't work on guest ubuntu.
> You need to debug it, as if it was real hardware.
>
>> But none of them worked for me. any help is appreciated.
> This isn't a very in-depth problem description. Remember that we can't see
> your screen.
>
> Does qemu not start? Does the kernel not boot? Does it show up in dmesg or
> /proc? Does it work in text mode but not in X (or vice versa)? Does it work if
> you use the -device (qdev) approach instead? Does it work if you use the
> monitor console to "hotplug" the mouse after boot instead of on the command
> line?
>
> Basically, you need to tell us what debugging you've done, and the results of
> each part of that debugging.
>
> It might also help to know which version of qemu you are using.
>
> Brad
>



-- 
Amirali Shambayati
Bachelor Student
Computer Engineering Department
Sharif University of Technology
Tehran, Iran

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] mouse doesn't work on guest OS
  2011-05-21 11:43   ` Amirali Shambayati
@ 2011-05-21 23:32     ` Brad Hards
  2011-05-22  5:53       ` Natalia Portillo
  2011-05-22  8:03       ` John Haxby
  0 siblings, 2 replies; 6+ messages in thread
From: Brad Hards @ 2011-05-21 23:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: Amirali Shambayati

On Sat, 21 May 2011 09:43:57 pm Amirali Shambayati wrote:
> Hi Brad,
Hi.
Please don't "top post" (google for this if you don't understand it).

> Qemu starts, kernel boots and ubuntu's GUI boots. I use "dmesg" in
> terminal to see printks which I have put in kernel code. 
When I wrote "Does it show up in dmesg or /proc?", I meant "Does the mouse 
connection show up in dmesg output" and "Do you see the mouse in 
/proc/bus/input/devices?"

> My problem is
> that, mouse is hanged in the middle of the screen.
I still don't understand the problem. I'm guessing you see the cursor in the 
guest, but the host mouse isn't having any effect on that guest cursor.

> I need mouse to
> connect to Internet!! if anyway exists to make Internet connection
> using terminal, I won't need mouse anymore!
I don't understand what you are doing with the mouse, but there are various 
command line tools (dhclient, ifconfig, etc) that you may be able to use in the 
client. These are nothing to do with qemu though.

> I'm newbie with kernel debugging and using qemu. Your help will be so
> valuable for me.
A clear, explicit problem description will make this a lot easier. 

You still haven't answered all of my questions, and you still haven't 
described what you've done to try to debug this problem.

 
> On Sat, May 21, 2011 at 5:44 AM, Brad Hards <bradh@frogmouth.net> wrote:
> > On Friday 20 May 2011 23:59:25 Amirali Shambayati wrote:
> >> Mouse doesn't work on guest ubuntu.
> > 
> > You need to debug it, as if it was real hardware.
> > 
> >> But none of them worked for me. any help is appreciated.
> > 
> > This isn't a very in-depth problem description. Remember that we can't
> > see your screen.
> > 
> > Does qemu not start? Does the kernel not boot? Does it show up in dmesg
> > or /proc? Does it work in text mode but not in X (or vice versa)? Does
> > it work if you use the -device (qdev) approach instead? Does it work if
> > you use the monitor console to "hotplug" the mouse after boot instead of
> > on the command line?
> > 
> > Basically, you need to tell us what debugging you've done, and the
> > results of each part of that debugging.
> > 
> > It might also help to know which version of qemu you are using.
> > 
> > Brad

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] mouse doesn't work on guest OS
  2011-05-21 23:32     ` Brad Hards
@ 2011-05-22  5:53       ` Natalia Portillo
  2011-05-22  8:03       ` John Haxby
  1 sibling, 0 replies; 6+ messages in thread
From: Natalia Portillo @ 2011-05-22  5:53 UTC (permalink / raw)
  To: Brad Hards; +Cc: qemu-devel, Amirali Shambayati

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Update to lastest Xorg and/or change mouse protocol in Xorg configuration.

The default protocol is not emulated (at all, or well enough) by QEMU and while it detects a mouse it does not work, lastest Ubuntu version does not show this problem

man xorg.conf or google it

No information on how to configure a PS/2 mouse protocol in X11 is inside the scope of this mailing list.

Regards,
Natalia Portillo

El 22/05/2011, a las 00:32, Brad Hards escribió:

> On Sat, 21 May 2011 09:43:57 pm Amirali Shambayati wrote:
>> Hi Brad,
> Hi.
> Please don't "top post" (google for this if you don't understand it).
> 
>> Qemu starts, kernel boots and ubuntu's GUI boots. I use "dmesg" in
>> terminal to see printks which I have put in kernel code. 
> When I wrote "Does it show up in dmesg or /proc?", I meant "Does the mouse 
> connection show up in dmesg output" and "Do you see the mouse in 
> /proc/bus/input/devices?"
> 
>> My problem is
>> that, mouse is hanged in the middle of the screen.
> I still don't understand the problem. I'm guessing you see the cursor in the 
> guest, but the host mouse isn't having any effect on that guest cursor.
> 
>> I need mouse to
>> connect to Internet!! if anyway exists to make Internet connection
>> using terminal, I won't need mouse anymore!
> I don't understand what you are doing with the mouse, but there are various 
> command line tools (dhclient, ifconfig, etc) that you may be able to use in the 
> client. These are nothing to do with qemu though.
> 
>> I'm newbie with kernel debugging and using qemu. Your help will be so
>> valuable for me.
> A clear, explicit problem description will make this a lot easier. 
> 
> You still haven't answered all of my questions, and you still haven't 
> described what you've done to try to debug this problem.
> 
> 
>> On Sat, May 21, 2011 at 5:44 AM, Brad Hards <bradh@frogmouth.net> wrote:
>>> On Friday 20 May 2011 23:59:25 Amirali Shambayati wrote:
>>>> Mouse doesn't work on guest ubuntu.
>>> 
>>> You need to debug it, as if it was real hardware.
>>> 
>>>> But none of them worked for me. any help is appreciated.
>>> 
>>> This isn't a very in-depth problem description. Remember that we can't
>>> see your screen.
>>> 
>>> Does qemu not start? Does the kernel not boot? Does it show up in dmesg
>>> or /proc? Does it work in text mode but not in X (or vice versa)? Does
>>> it work if you use the -device (qdev) approach instead? Does it work if
>>> you use the monitor console to "hotplug" the mouse after boot instead of
>>> on the command line?
>>> 
>>> Basically, you need to tell us what debugging you've done, and the
>>> results of each part of that debugging.
>>> 
>>> It might also help to know which version of qemu you are using.
>>> 
>>> Brad
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org

iF4EAREIAAYFAk3YpMcACgkQv/wfOsykIRTAVAD/XalIs5B9hNbCXiT6mBX3CU1a
D5nzg1XgRSOAIAMZ5+sA/2WNgkCG1WZCwwIKN4i5g4rwknlKiFixEvWH8yGaMd1p
=ttaL
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] mouse doesn't work on guest OS
  2011-05-21 23:32     ` Brad Hards
  2011-05-22  5:53       ` Natalia Portillo
@ 2011-05-22  8:03       ` John Haxby
  1 sibling, 0 replies; 6+ messages in thread
From: John Haxby @ 2011-05-22  8:03 UTC (permalink / raw)
  To: Brad Hards; +Cc: qemu-devel, Amirali Shambayati

[-- Attachment #1: Type: text/plain, Size: 801 bytes --]


On 22 May 2011, at 00:32, Brad Hards wrote:

>> 
>> My problem is
>> that, mouse is hanged in the middle of the screen.
> I still don't understand the problem. I'm guessing you see the cursor in the 
> guest, but the host mouse isn't having any effect on that guest cursor.

I do :-)

I'm pretty sure that this is a problem whereby the mouse is advertising both absolute and relative positioning to Xorg, but is actually only sending absolute events -- which Xorg is ignoring.

Check /var/log/Xorg.0.log (or whatever Xorg is logging to) and look for "mouse" or "evdev" or "ignor".   If I'm right then you need to amend the config of the X server.   I don't have the details to hand, but it's in the Xorg man page.  Or just google for the relevant message you find in the log file.

jch

[-- Attachment #2: Type: text/html, Size: 1858 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-22  8:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-20 13:59 [Qemu-devel] mouse doesn't work on guest OS Amirali Shambayati
2011-05-21  1:14 ` Brad Hards
2011-05-21 11:43   ` Amirali Shambayati
2011-05-21 23:32     ` Brad Hards
2011-05-22  5:53       ` Natalia Portillo
2011-05-22  8:03       ` John Haxby

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.