unfoldedcircle / feature-and-bug-tracker

Feature and bug tracker repository for Unfolded Circle products
25 stars 0 forks source link

[bug] Remote randomly wakes up and show screen if media player is in the activity screen #409

Open Tobbes1990 opened 2 weeks ago

Tobbes1990 commented 2 weeks ago

Is there an existing issue for this?

Description

When i set up the media player on the active activity screen (where you can see the picture of the current playing Movie and the remaining time) in the Apple TV or kodi Integration the remote randomly wakes up and screen goes on.

How to Reproduce

Start an activity with media player widget on screen Lay down the remote while playing Remotes wakes up randomly

Expected behavior

Screen should turned off unless you press a button or take it in hands

System version

2.0

What part of the system affected by the problem?

UI

Additional context

No response

kennymc-c commented 2 weeks ago

Have you checked if there is any device in the same network as the remote that sends wake on lan magic packets to the remote? If the display activates by itself the remote was usually woken up by WOL.

Tobbes1990 commented 2 weeks ago

I dont think so. It only happens when i play a movie (on Apple TV or kodi, it doesn’t matter). I have homeassistant with the unfolded circle integration, is it possible that this integration sends the magic packet?

kennymc-c commented 2 weeks ago

At least the latest pre-Release version supports WoL. But the author said that it should only wake up the remote if the user performs an action within HA and it can also be deactivated.

Tobbes1990 commented 1 week ago

I deactivated the integration in HA and the problem is still there. I have no other device in my network that sends wake on lan packets. Any other idea?

kennymc-c commented 1 week ago

You could try to put the remote into a separate network without any other devices and wait if the display still activates by itself. Can you see core log entries that mention something like wake on lan when this happens? Have you tried to deactivate Wake on lan on the remote?

RC-Thoughts commented 1 week ago

I am investigating the same issue with 2.0.0. I can confirm there are no WoL-packets going around in network. I have traced the biggest suspect ie. HA straight from source and also network, no WoL packets floating around or being broadcasted. I have equipment for wireless trace on packet level so I may need to take that too to try to see if there is any correlation in wifi-packets to screen turning on.

The difference to OP in my case is that this happens in all activities regardless if they have a media player on screen or not. Screen lights up ~every two minutes, sometimes it can be up to 6 minutes.

Tobbes1990 commented 1 week ago

How do I deactivate WOL on the remote? I can't find it in settings on the web configurator

Tobbes1990 commented 1 week ago

I am investigating the same issue with 2.0.0. I can confirm there are no WoL-packets going around in network. I have traced the biggest suspect ie. HA straight from source and also network, no WoL packets floating around or being broadcasted. I have equipment for wireless trace on packet level so I may need to take that too to try to see if there is any correlation in wifi-packets to screen turning on.

The difference to OP in my case is that this happens in all activities regardless if they have a media player on screen or not. Screen lights up ~every two minutes, sometimes it can be up to 6 minutes.

You're right. It happens in all activities.

kennymc-c commented 1 week ago

How do I deactivate WOL on the remote? I can't find it in settings on the web configurator

You need to do it on the remote itself

Tobbes1990 commented 1 week ago

Am I dumb? I can't find this option... Or do you mean the new option to always stay connected to the wifi (since version 2.0.0)? If so, this option is a dealbreaker for me and my use case.

kennymc-c commented 1 week ago

It's the option you mentioned. Just test it without it enabled and if the display still activates you can rule out WoL as a reason for this issue

RC-Thoughts commented 1 week ago

I have confirmed the waking up is done by R2, not by anything in network. I took a wifi-capture of all packets in connected SSID and I can clearly see that when R2 is sleeping it does the usual PS-Poll and ACK etc, no issues.

At the same time R2 wakes up on it's own first R2 sends a NULL data to Access point (AP), after that is ACKed R2 sends a Ready to send (RTS) packet. This basically tells AP that R2 want's to send something.

I will take a longer capture and try to identify any pattern. There's also other findings in there but that's for another topic.

RC-Thoughts commented 1 week ago

Can also confirm that disabling new reconnection logic also stops this "waking up"-behavior.

WillTriumph1 commented 1 week ago

So logically we would want the remote “awake” to rapidly connect. So is possible to wake up/stay awake w/o the screen coming on unless triggered as usual (removal from dock, movement sensitive, etc.)

Tobbes1990 commented 1 week ago

So logically we would want the remote “awake” to rapidly connect. So is possible to wake up/stay awake w/o the screen coming on unless triggered as usual (removal from dock, movement sensitive, etc.)

That's the behaviour it should be. I also had disabled the new logic. The problems were gone. I think we have to wait for a fix from the developers.

RC-Thoughts commented 1 week ago

As information, R2 logs and WLAN-traces delivered to Unfolded, let's see what they come up with.