bsnes-plus icon indicating copy to clipboard operation
bsnes-plus copied to clipboard

bsnes-plus randomly turning on airplane mode

Open hellocatfood opened this issue 2 years ago • 6 comments

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.

hellocatfood avatar Sep 19 '21 21:09 hellocatfood

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

devinacker avatar Sep 19 '21 21:09 devinacker

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.

hellocatfood avatar Sep 19 '21 21:09 hellocatfood

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.

devinacker avatar Nov 03 '21 03:11 devinacker

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)

hellocatfood avatar Nov 06 '21 15:11 hellocatfood

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.

devinacker avatar Nov 06 '21 15:11 devinacker

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

hellocatfood avatar Nov 06 '21 16:11 hellocatfood

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.

TheKodeToad avatar Feb 04 '23 10:02 TheKodeToad