problem with usb mouse

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Jef
Member
Member
Posts: 112
Joined: Tue Jan 08, 2008 7:25 am
Location: Greece
Contact:

problem with usb mouse

Post by Jef »

Hi there,
I have a problem in my OS with the mouse.
The mouse is microsoft USB (on USB port) and i have put at bios "mouse usb support = enabled".
When i am running my OS in VMWare, it runs OK.
When i run in the real pc, the mouse works but goes whenever it wants :)
Goes to different directions with a lot of speed.
The same problem exists if i put the mouse to a PS2USB adapter.

Any idea?
Keep coding...
...the sky is the limit

AsteriOS project: http://www.mindfields.gr/main/index.php ... &Itemid=27
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

Post by Craze Frog »

I tested your OS in vmware, and it's actually the same problem as you describe on a real computer. The mouse goes in every direction at once.
User avatar
Jef
Member
Member
Posts: 112
Joined: Tue Jan 08, 2008 7:25 am
Location: Greece
Contact:

Post by Jef »

Craze Frog wrote:I tested your OS in vmware, and it's actually the same problem as you describe on a real computer. The mouse goes in every direction at once.
in VMWare v.6.0 works ok. In older versions (like 5.5.1 i have tested) works like real pc.
Keep coding...
...the sky is the limit

AsteriOS project: http://www.mindfields.gr/main/index.php ... &Itemid=27
User avatar
crazygray1
Member
Member
Posts: 168
Joined: Thu Nov 22, 2007 7:18 pm
Location: USA,Hawaii,Honolulu(Seriously)

Post by crazygray1 »

This is all I got when I tested it in qemu. It doesn't go past this.
Attachments
Asterios.png
Asterios.png (36.18 KiB) Viewed 1649 times
User avatar
Jef
Member
Member
Posts: 112
Joined: Tue Jan 08, 2008 7:25 am
Location: Greece
Contact:

Post by Jef »

crazygray1 wrote:This is all I got when I tested it in qemu. It doesn't go past this.
This happens when you press a key before keyboard driver inits. (it's a known bug).
Except if you don't press any key while loading OS.
I don't have qemu to test it.

EDIT: But this is not a reason to stop booting.
Just reports the irq (to remind me to fix some things :) )
Keep coding...
...the sky is the limit

AsteriOS project: http://www.mindfields.gr/main/index.php ... &Itemid=27
User avatar
Jef
Member
Member
Posts: 112
Joined: Tue Jan 08, 2008 7:25 am
Location: Greece
Contact:

Post by Jef »

I put at my website the debug version.
If you want, download it and run it to see where is crash.

Thanx
Keep coding...
...the sky is the limit

AsteriOS project: http://www.mindfields.gr/main/index.php ... &Itemid=27
User avatar
crazygray1
Member
Member
Posts: 168
Joined: Thu Nov 22, 2007 7:18 pm
Location: USA,Hawaii,Honolulu(Seriously)

Post by crazygray1 »

No matter how long I wait it doesn't go any further even when I don't press a key, it just stops.
User avatar
bluecode
Member
Member
Posts: 202
Joined: Wed Nov 17, 2004 12:00 am
Location: Germany
Contact:

Post by bluecode »

qemu is often so fast that the interrupt on key release occurs while the OS is already running. That has happened to me many times with my OS before...
User avatar
Jef
Member
Member
Posts: 112
Joined: Tue Jan 08, 2008 7:25 am
Location: Greece
Contact:

Post by Jef »

crazygray1 wrote:No matter how long I wait it doesn't go any further even when I don't press a key, it just stops.
did you run the debug version that i told you?
just to know what happens

if you don't want, forget it

thanx for the info anyway
Keep coding...
...the sky is the limit

AsteriOS project: http://www.mindfields.gr/main/index.php ... &Itemid=27
User avatar
crazygray1
Member
Member
Posts: 168
Joined: Thu Nov 22, 2007 7:18 pm
Location: USA,Hawaii,Honolulu(Seriously)

Post by crazygray1 »

the debug v starts up, writes a bunch more info to the screen, then stops :?
User avatar
Jef
Member
Member
Posts: 112
Joined: Tue Jan 08, 2008 7:25 am
Location: Greece
Contact:

Post by Jef »

crazygray1 wrote:the debug v starts up, writes a bunch more info to the screen, then stops :?
of course.
can i have a screenshot to understand here the system hangs ?
Keep coding...
...the sky is the limit

AsteriOS project: http://www.mindfields.gr/main/index.php ... &Itemid=27
User avatar
crazygray1
Member
Member
Posts: 168
Joined: Thu Nov 22, 2007 7:18 pm
Location: USA,Hawaii,Honolulu(Seriously)

Post by crazygray1 »

Here
Attachments
Asterios.png
Asterios.png (117.13 KiB) Viewed 1562 times
Codname: Cipher
Working On: Design Doc(CFFS file system)
User avatar
Jef
Member
Member
Posts: 112
Joined: Tue Jan 08, 2008 7:25 am
Location: Greece
Contact:

Post by Jef »

crazygray1 wrote:Here
thanks

well,...
I repeat the problem in bochs.
The problem is that the interrupt flow for the FDC does not continue after seeking to next sector.
Strange because in normal pc works fine.
Keep coding...
...the sky is the limit

AsteriOS project: http://www.mindfields.gr/main/index.php ... &Itemid=27
Post Reply