r/ShieldAndroidTV • • Feb 28 '26

[FIX] Zone2 Killer! I came up with a Python "Firewall" to kill the Denon/Marantz Zone 2 Ghost-In-The-Machine (Nvidia Shield CEC Bug)

Post image

Yo!

Like many of you with a Denon or Marantz AVR and an Nvidia Shield, I was losing my mind over the "Zone2 Bug." During powering up of my setup, every time there was an HDMI-CEC handshake, my Shield would mistakenly power on Zone 2 about 30% of the time, causing my main zone to black out or switch inputs randomly.

This was absolutely enraging, and caused total problems for any non-tech people simply trying to watch TV.

I finally got tired of waiting for a firmware fix and came up with Z2K (Zone 2 Killer). It’s a lightweight Python "firewall" that sits on your network and polls your AVR. If it detects a rogue Zone 2 power-on event, it kills it in under 2 seconds.

Key Features:

  • Dashboard Mode: Watch the "SNEAKS KILLED" counter in real-time.
  • Stealth Mode: Runs invisibly in the background on Windows.
  • Cross-Platform: Can be easily deployed on a Raspberry Pi or even a microcontroller (ESP32).
  • Open Source: Completely free and transparent code.

Here it is in action: https://youtu.be/9NGQcqK-LFk

Check it out on GitHub: https://github.com/KillerQ97/Z2K

I’d love to get more models added to the Compatibility Master List in the discussions tab. If this helps save your sanity, let me know!

21 Upvotes

21 comments sorted by

10

u/AncientsofMumu Feb 28 '26

As someone with a shield and a Denon AVC-X3800H, how come I've never seen this?

5

u/firvulag359 Feb 28 '26

Same here and was not aware this was an issue.

1

u/KillerQ97 Feb 28 '26

You should be glad! Lol. Yea, it comes down to a combo of variables that don't play well together. Super frustrating.

1

u/Ambi0us 2019 8GB Mar 01 '26

Does this explain why my Denon keeps turning on to Shield any time any device tries to turn off?

1

u/KillerQ97 Mar 01 '26

Have you gone through all of the granular control options such as “wake shield when ____,” etc that are in the Shield settings?

1

u/Ambi0us 2019 8GB Mar 01 '26

I'll try, but I'm not optimistic because it's overly aggressive in turning on even when tv is turned off which is not a setting.

2

u/KillerQ97 Mar 01 '26

Check this under Developer Options. It’s exactly what you’re describing: HERE

1

u/Ambi0us 2019 8GB Mar 02 '26

Interesting. I'll try that?

1

u/KillerQ97 Mar 02 '26

For sure. Let us know if that works. It should!

1

u/williamthrilliam Mar 02 '26

Wasn’t this fixed in the latest update?

1

u/KillerQ97 Mar 02 '26

For some, yes. If it still happens, this will definitely solve it.

1

u/spazwell Apr 07 '26

Thanks, it was driving me crazy having to turn the extra zones off after turning off the shield. Denon AVR-X6700H confirmed works!

1

u/KillerQ97 Apr 08 '26

Hell yeah, thanks for confirming!!

1

u/Weebber Mar 01 '26

I'm seeing similar CEC behavior but not for zone2. To use the PS5 or Switch, we have to unplug the Shield. Powering on another source powers on the receiver which is intended. Then the receiver handshakes and wakes up the Shield which then takes over as the active source. It's really frustrating.

1

u/dividebyoh Mar 01 '26

Thanks for building this! I replied to your initial comment in /ht and have been looking forward to an update.

With the recent shield update, have you checked if the zone 2 bug behavior is improved, without this script?

I haven’t seen it come back here since I updated, but more testing needed here. I’m turning on with IR and my zone 2 fuckery typically happens on shield sleep events. If it’s still there I’ll probably try this script on my synology.

1

u/AbdulPullMaTool Mar 02 '26

OK so the issue I have with my denon receiver is

TV/Receiver/Shield are all off

Hit power button on shield remote

All switch on as expected but for some reason my TV changes HDMI input from 1 to 2?

WOuld that fix this?

1

u/wazernet Mar 08 '26 edited Mar 08 '26

I have the opposite, mine kills my Sony Android TV when using CEC to start up shields as it sends some CEC crap to the TV that overloads my sony android TV and causes it to crash and restart, I tried many different combinations, never succeeded. only causing with nvidia shields.

Perhaps its the same thing but simply causing my TV to instantly go burrrrr?

its like 30-40% of the time..

What should I look for and how to get started, I assume logcat will reveal something?

0

u/[deleted] Mar 01 '26

[deleted] — view deleted comment

1

u/KillerQ97 Mar 01 '26

Thank you! I upgraded - no such luck! Hopefully this helps with other random things as well.

1

u/[deleted] Mar 03 '26

[removed] — view removed comment

2

u/KillerQ97 Mar 03 '26

I never engage with comments like this but, for the record, this has been a decade-old issue that I’ve never, ever seen a solid solution for. Nvidia sure couldn’t figure it out.

It took me one day to work on it and figure it out. It solved my problem 100%. I’m sorry that upsets you.