Power & Source of Big Ideas

Enable HDCP on HDMI output from command line

Moderators: chensy, FATechsupport

Hi,

I'm trying to enable HDCP for the HDMI output of the NanoPI M4 from the command line but can't figure out how.
I am running the FreindlyDesktop Bionic build (image file rk3399-sd-friendlydesktop-bionic-4.4-arm64-20190926.img).

I believe it should be supported as it's listed in the hardware specs and dmesg shows the driver supports it to some extent:

Code: Select all

pi@NanoPi-M4:~$ dmesg | grep -i hdcp
[    1.984592] dwhdmi-rockchip ff940000.hdmi: Detected HDMI TX controller v2.11a with HDCP (DWC HDMI 2.0 TX PHY)


sysfs has a content_protection node for the HDMI output but it reads empty and return Invalid Argument when writing what i think are sensible values to it:

Code: Select all

root@NanoPi-M4:/sys/devices/platform/display-subsystem/drm/card0/card0-HDMI-A-1# cat content_protection
root@NanoPi-M4:/sys/devices/platform/display-subsystem/drm/card0/card0-HDMI-A-1# echo -n "Desired" > content_protection
bash: echo: write error: Invalid argument


doing xrandr --prop doesn't list any content_protection property for th DMI interface (it does for the DP-1 interface though!)

Code: Select all

pi@NanoPi-M4:/sys/class/drm/card0-HDMI-A-1$ xrandr --prop
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 disconnected primary (normal left inverted right x axis y axis)
        hue: 50
                range: (0, 100)
        saturation: 50
                range: (0, 100)
        contrast: 50
                range: (0, 100)
        brightness: 50
                range: (0, 100)
HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 1152mm x 648mm
        EDID:
                00ffffffffffff0010e3140211000082
                ff1c010380331d7806e295a2554f9f26
                115054ffff80d1c0b300950f950081c0
                81408180714f4dd000a0f0703e803020
                350080884200001e000000fd0a01ff01
                ff3c0000000000000000000000fc0044
                47433231340a20202020202000000010
                000000000000000000000000000001c1
                02033571230f1707836900004561605f
                5e5dee0f0000000000000000000000f0
                0168030c00ffff1078016ad85dc40178
                80010000004dd000a0f0703e80302035
                0080884200001eb46600a0f0701f8030
                20350080884200001e293680a070381f
                403020350040442100001eb71a80a070
                1c10203020350040442100009e0000ff
        hue: 50
                range: (0, 100)
        saturation: 50
                range: (0, 100)
        contrast: 50
                range: (0, 100)
        brightness: 50
                range: (0, 100)
        hdmi_quant_range: default
                supported: default, limit, full
        hdmi_output_mode_capacity: 7
                range: (0, 15)
        hdmi_color_depth_capacity: 19
                range: (0, 255)
        hdmi_output_colorimetry: None
                supported: None, ITU_2020
        hdmi_output_format: output_rgb
                supported: output_rgb, output_ycbcr444, output_ycbcr422, output_ycbcr420, output_ycbcr_high_subsampling, output_ycbcr_low_subsampling, invalid_output
        hdmi_output_depth: 24bit
                supported: Automatic, 24bit, 30bit
   1920x1080     60.00*
   1920x1080i    59.08
   1680x1050     59.88
   1280x1024     75.02    60.02
   1440x900      74.98    59.90
   1280x960      60.00
   1152x864      75.00
   1280x720      60.00    59.94
   1024x768      75.03    70.07    60.00
   1024x768i     86.96
   832x624       74.55
   800x600       72.19    75.00    60.32    56.25
   640x480       75.00    72.81    66.67    60.00    59.94
   720x400       87.85    70.08
DP-1 disconnected (normal left inverted right x axis y axis)
        hue: 50
                range: (0, 100)
        saturation: 50
                range: (0, 100)
        contrast: 50
                range: (0, 100)
        brightness: 50
                range: (0, 100)
        Content Protection: Undesired
                supported: Undesired, Desired, Enabled


I'm at a loss as for what to try next.
Is HDCP supported in this manner? How can I go about enabling it?

Thanks,
Phil
I would take the C-B apart and drill holes in the cover if not for the warning about voiding the “waranty”. Once that time period has expired, I will be sure to modify the case and innards.
Kodi Lucky Patcher nox

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 2 guests