Sidecar not working despite supported hardware

I have an Intel G4560 and RX 580 on my Hackintosh and Sidecar just refuses to appear on System Preferances. I typed this into the terminal and still gives me the error "You can't open "Sidecar" because it is not available to you at the time."

defaults write com.apple.sidecar.display AllowAllDevices -bool true; defaults write com.apple.sidecar.display hasShownPref - bool true; open /System/Library/PreferencePanes/Sidecar.prefPane 
submitted by /u/squarus
[link] [comments]