This project is read-only.

Cosmos Mouse Problems!

Oct 8, 2010 at 9:48 PM

I tried the Cosmos Mouse and it worked fine on Vmware and Qemu But when i test it on real hardware it does work at all. What could be the problem?

Oct 8, 2010 at 10:59 PM

not sure, can u give details?

Oct 8, 2010 at 11:23 PM
Edited Oct 8, 2010 at 11:23 PM

When I booted my os with vmware or qemu the  Cosmos Mouse moves and works fine but when I turn off my pc and Boot My OS on it the mouse doesn't move at all.

N.B: I  made a loop for mouse already and Have a pointer that works.

 

Oct 9, 2010 at 12:48 AM
On 10/8/2010 4:48 PM, forest201 wrote:
> I tried the Cosmos Mouse and it worked fine on Vmware and Qemu But when
> i test it on real hardware it does work at all. What could be the problem?

Are you using a USB mouse?
Oct 9, 2010 at 1:31 AM

Yes I am.

Oct 9, 2010 at 1:38 AM
On 10/8/2010 8:31 PM, forest201 wrote:
> Yes I am.

Cosmos doesn't have USB support yet. It works in VMWare because it
emulates a PS2 mouse, even if its a USB on the host.
Oct 9, 2010 at 2:07 AM

 Could you use the Kernel's CPU commands to implement it? like Write and Read?

 

Oct 9, 2010 at 1:49 PM
On 10/8/2010 9:07 PM, forest201 wrote:
> Could you use the Kernel's CPU commands to implement it? like Write and
> Read?

Of course, but you can write a GUI in asm too. That doesn't mean its
trivial to do. USB support is quite some work.
Oct 9, 2010 at 9:06 PM
Edited Oct 9, 2010 at 9:20 PM

Is it possible on Cosmos to Check Whether a PS2 Mouse is connected or Not?

Can you get IRQs Generated from USb bus in Cosmos?

Oct 9, 2010 at 9:45 PM
On 10/9/2010 4:06 PM, forest201 wrote:
> Is it possible on Cosmos to Check Whether a PS2 Mouse is connected or Not?

I'm not sure if it supports that or not. You need to look at the mouse code.
Oct 10, 2010 at 4:05 AM

I have strange question. If you said that Cosmos doesn't have USB Support then why is my USB keyboard working with it on real hardware?I have no PS/2 devices connected.

Oct 10, 2010 at 4:31 AM

wait does that mean i can use asm in cosmos if i work it through the kernals cpu commands??

Oct 10, 2010 at 11:32 AM

Check your BIOS. Real hardware usually can do PS/2 emulation (so the USB mouse looks like a PS/2 Mouse).

Oct 10, 2010 at 12:40 PM
On 10/9/2010 11:05 PM, forest201 wrote:
> I have strange question. If you said that Cosmos doesn't have USB
> Support then why is my USB keyboard working with it on real hardware?I
> have no PS/2 devices connected.

Some hardware fake a PS2 keyboard when it sees a USB one for older boot
processes etc.