Project

General

Profile

Actions

Emulator Issues #2211

closed

Many disconnects of wiimote after game start

Added by Karsten.Schilder about 14 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What steps will reproduce the problem?

1.) Start dolphin
2.) Connect real Wiimote (Original Nintendo)
3.) start the game (in my case MKWii PAL) and and try to get into a race.

What is the expected output? What do you see instead?

A better handling of the Wiimote that this message only appear when there
is really a disconnect.

What version of the product are you using? On what operating system?

I download everyday the most actual x64 SVN build compiled by mamario.

OS: Windows 7 x64

Please provide any additional information below.

When I want to play MKwii (I do have only this Wii game)with real Wiimote,
I notice many, many disconnects with the Wiimote, neary everytime I start
it. I tried many things. Changing batteries, changing position of BT dongle
and so on.

But something made me thinking over to post some word here: After I got
into the race, the disconnects immedately drops down to zero. Also after
the race, when I get back to menu. No more disconnects.

Another thing:

Only dolphin seems to think its disconnected. Windows still show the state
as connected. The Wiimote itself shows the state as connected. The light
for Wiimote number one is still on. I know disconnetcs with real Wii and I
went with my Wiimote out or range of my BT dongle to see what happens, when
it gets disconnected. When I get a real disconnect, the light turns off.

In my eyes, these "disconnects" seems to be a software issue in dolphin,
maybe a timing problem during the JIT(IL) compilation phase. This would
explain, why I don't get this issue when I've played a race and get back
into menu.

Actions #1

Updated by atrauzzi about 14 years ago

Sounds like yet another wiimote disconnect issue. Just putting my voice in here to say
I'm experiencing the same thing in just about everything I try to play.

Actions #2

Updated by benclau about 14 years ago

This is a not a game specific issue. This happens to all games i have played (NSMB,
Sports resort, mario SS, TigerWoods 2010, M Kart, etc.. Wiimote gets disconnected
after 5-10 minutes. I have tried it on Windows 7 x86 and x64 with same results.

Actions #3

Updated by atrauzzi about 14 years ago

I was just about to say...

http://code.google.com/p/dolphin-emu/issues/detail?id=2207

Same issue I reported earlier, amongst countless others. These are most definitely
not game issues given how easily reproduced and how often this bug comes up.

Actions #4

Updated by Karsten.Schilder about 14 years ago

@benc...@videotron.ca: Did you wrote in forum "i'm using an emulated wiimote with a
360 pad so not sure why this is popping up"?

Then you describe a different problem to mine. I am using a real Wiimote.

@atrauzzi: This you described in the issue I do not mean. My problem is, that nearly
directly after the game start (at game title screen, some times earlier) for the
first minute or so, the Wiimote get for some reason disconnected, mostly 3-6 times,
and i have to confirm that reconnect dialog to get through.

When I played a race and get back to menu, the problem appears not again.

Actions #5

Updated by reppend711 about 14 years ago

Same exact issues here. Unable to use dolphin with the Wiimote at all. Was having
fairly good success with the Wiimote in New Mario Bro's. Now, after experiencing the
issue in other games, the Wiimote is not being detected at all in Mario. Refreshing
in Wiimote settings in Dolphin indicate no probs.

Actions #6

Updated by kevinx0404 about 14 years ago

I play for hours and never get disconnects.

Actions #7

Updated by atrauzzi about 14 years ago

That doesn't mean it isn't happening. I never get disconnects in SSBB. But it
happens in just about every other game I have.

Actions #8

Updated by benclau about 14 years ago

My issue sounds exactly like atrauzzi. Everthing works fine for 5-10 minutes and
after that all freezes and a window comes up saying wiimote just disconnected do you
want to reconnect blablabla.

Actions #9

Updated by MatejDro about 14 years ago

Same here:

-wiimote disconnects
-ligth is normal (ligth 1 is glowing)
-message appears very long after disconnect.

Actions #10

Updated by Karsten.Schilder about 14 years ago

As I had the feeling, that this issue is caused by a timing problem, I've modified the
code with the Wiimote patch of psyjoe:

wiiuse_set_timeout(g_WiiMotesFromWiiUse, g_NumberOfWiiMotes, 220, 220);

As I can see for now, it fixes this issue.

Actions #11

Updated by MatejDro about 14 years ago

THANK YOU SOOO MUCH!!!

Its working perfectly, no disconnects!

Actions #12

Updated by atrauzzi about 14 years ago

Tried using 5110. Still getting intermittent wiimote disconnects.

Actions #14

Updated by atrauzzi about 14 years ago

Also tried 5115, no luck there either. Still getting intermittent disconnects.

Actions #15

Updated by Karsten.Schilder about 14 years ago

@atrauzzi: As I already wrote. The issue I described here is different to yours. From
reading your description I think your issue has something to do with the energy saver
function of the wii, that turns off wiimotes after a period of idle time.

Actions #16

Updated by MatejDro about 14 years ago

Any news on that one? Ptch didnt solve problem, i was probably just lucky.

Actions #17

Updated by mjuzio almost 14 years ago

Problem still exists... Now I'm on r5442 and real wiimotes get disconnected. Funny
thing is that it happens randomly not after some specific time. It takes dolphin too
long to reconnect them back. In fact wiimotes stop working before the game shows any
messages (talkin about PunchOut here)

Actions #18

Updated by Karsten.Schilder almost 14 years ago

The code for timeout is still outcommented in regular relase. You have to remove the
comment mark and compile it yourself. Working still fine for me here. But only by using
this line of code. I've tested serval times without and the difference is big.

Actions #19

Updated by mjuzio almost 14 years ago

Well... I found
case WIIUSE_UNEXPECTED_DISCONNECT: in RealWiimote.cpp
and removed uncommented next line but in effect I got only errors on build.
Is this the line you`re talking about or did I just make a fool out of myself?

Sorry for such stupid question but my programming skills are as you see quite low :(

Actions #20

Updated by Karsten.Schilder almost 14 years ago

No. I am talking about this line:

wiiuse_set_timeout(g_WiiMotesFromWiiUse, g_NumberOfWiiMotes, 220, 220);

Actions #21

Updated by snzgoo almost 14 years ago

  • Status changed from New to Work started

I ll add a function that allows you to change the timeout within dolphin.

Actions #22

Updated by Karsten.Schilder almost 14 years ago

Nice. Thanks.

Actions #23

Updated by snzgoo almost 14 years ago

  • Status changed from Work started to Fixed

ur welcome.

Actions #24

Updated by mjuzio almost 14 years ago

Great job!
Still gettin disconected but not as often as before. I guess it's a matter of finding
the right timeout value.

Actions

Also available in: Atom PDF