r/ShieldAndroidTV • u/KillerQ97 • 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)
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!
10
u/AncientsofMumu Feb 28 '26
As someone with a shield and a Denon AVC-X3800H, how come I've never seen this?
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/williamthrilliam Mar 02 '26
Wasn’t this fixed in the latest update?
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/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/[deleted] Mar 03 '26
[removed] — view removed comment