Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bsnes-plus randomly turning on airplane mode #303

Closed
hellocatfood opened this issue Sep 19, 2021 · 7 comments · Fixed by #348
Closed

bsnes-plus randomly turning on airplane mode #303

hellocatfood opened this issue Sep 19, 2021 · 7 comments · Fixed by #348

Comments

@hellocatfood
Copy link

I compiled bsnes plus on ubuntu 21.04 and after loading a cartridge bsnes-plus will suddenly turn on aeroplane mode after around 20 seconds. I've tried with multipled cartridges and can't see any error messages in the terminal about it.

@devinacker
Copy link
Owner

That is bizarre. Does this only happen after loading a cartridge? (i.e. not when leaving the emulator idle with nothing loaded)

@hellocatfood
Copy link
Author

Yes, correct. It operates normally otherwise.

I can turn aeroplane mode off but if the game is still running it'll turn it back on again after 20ish seconds.

@devinacker
Copy link
Owner

Does dmesg show anything suspicious around the time when airplane mode gets deactivated?

Sorry for not paying much attention to this issue so far, I don't really have an up-to-date Ubuntu VM handy at the moment.

@hellocatfood
Copy link
Author

The only message from dmesg is

[22638.926440] wlp2s0: deauthenticating from [mac address] by local choice (Reason: 3=DEAUTH_LEAVING)

(I removed my mac address)

@devinacker
Copy link
Owner

devinacker commented Nov 6, 2021

What happens if you comment out the call to supressScreenSaver() here and rebuild? I wonder if the way that's implemented on Linux is just causing something strange to happen with power management.

@hellocatfood
Copy link
Author

It worked! Been playing DK Country for 5 minutes and airplane mode hasn't been switched on. Thanks for addressing it

@TheKodeToad
Copy link
Contributor

TheKodeToad commented Feb 4, 2023

I realise this is old, but this is still an issue.
It seems pressing keycode 255 activates airplane mode. Maybe another key should be used.
Running xdotool keydown 255 also has this behaviour.

I've fixed this in a pr now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants