Changelog
- update help msg
- support "--drm_info, --drm-info" options
- update dependencies
GUI
- Fix sort by media in GUI on VCN4 by @Randomblock1
- add small toggle-button for light and dark mode
- add Connector Info (like drm_info)
JSON
- fix JsonDeviceInfo::json for no_pc
- add stat (VRAM, Sensors, gpu_metrics, gpu_activity) to dump_json
- add docs/dump.json
- update docs/sample.json
- fix example of using json mode
- support drm_info
amdgpu_top --drm_info
Node: "/dev/dri/card0"
├───Connector 103 (DisplayPort-1), disconnected
├───────"EDID", id = 1, value: 0, blob
├───────"DPMS", id = 2, value: 3, enums: ["On"=0, "Standby"=1, "Suspend"=2, "Off"=3]
├───────"link-status", id = 5, value: 0, enums: ["Good"=0, "Bad"=1]
├───────"non-desktop", id = 6, value: 0, values: [0, 1]
├───────"TILE", id = 4, value: 0, blob
├───────"scaling mode", id = 33, value: 0, enums: ["None"=0, "Full"=1, "Center"=2, "Full aspect"=3]
├───────"underscan", id = 34, value: 0, enums: ["off"=0, "on"=1, "auto"=2]
├───────"underscan hborder", id = 35, value: 0, values: [0, 128]
├───────"underscan vborder", id = 36, value: 0, values: [0, 128]
├───────"max bpc", id = 104, value: 16, values: [8, 16]
├───────"Colorspace", id = 105, value: 0, enums: ["Default"=0, "BT709_YCC"=2, "opRGB"=7, "BT2020_RGB"=9, "BT2020_YCC"=10]
├───────"HDR_OUTPUT_METADATA", id = 7, value: 0, blob
├───────"vrr_capable", id = 106, value: 0, values: [0, 1]
├───────"Content Protection", id = 107, value: 0, enums: ["Undesired"=0, "Desired"=1, "Enabled"=2]
├───────"HDCP Content Type", id = 108, value: 0, enums: ["HDCP Type0"=0, "HDCP Type1"=1]
├───────"subconnector", id = 109, value: 0, enums: ["Unknown"=0, "VGA"=1, "DVI-D"=3, "HDMI"=11, "DP"=10, "Wireless"=18, "Native"=15]
├───Connector 111 (DisplayPort-2), disconnected
├───────"EDID", id = 1, value: 0, blob
├───────"DPMS", id = 2, value: 3, enums: ["On"=0, "Standby"=1, "Suspend"=2, "Off"=3]
├───────"link-status", id = 5, value: 0, enums: ["Good"=0, "Bad"=1]
├───────"non-desktop", id = 6, value: 0, values: [0, 1]
├───────"TILE", id = 4, value: 0, blob
├───────"scaling mode", id = 33, value: 0, enums: ["None"=0, "Full"=1, "Center"=2, "Full aspect"=3]
├───────"underscan", id = 34, value: 0, enums: ["off"=0, "on"=1, "auto"=2]
├───────"underscan hborder", id = 35, value: 0, values: [0, 128]
├───────"underscan vborder", id = 36, value: 0, values: [0, 128]
├───────"max bpc", id = 112, value: 16, values: [8, 16]
├───────"Colorspace", id = 113, value: 0, enums: ["Default"=0, "BT709_YCC"=2, "opRGB"=7, "BT2020_RGB"=9, "BT2020_YCC"=10]
├───────"HDR_OUTPUT_METADATA", id = 7, value: 0, blob
├───────"vrr_capable", id = 114, value: 0, values: [0, 1]
├───────"Content Protection", id = 107, value: 0, enums: ["Undesired"=0, "Desired"=1, "Enabled"=2]
├───────"HDCP Content Type", id = 108, value: 0, enums: ["HDCP Type0"=0, "HDCP Type1"=1]
├───────"subconnector", id = 109, value: 0, enums: ["Unknown"=0, "VGA"=1, "DVI-D"=3, "HDMI"=11, "DP"=10, "Wireless"=18, "Native"=15]
├───Connector 116 (DisplayPort-3), connected
├───────"EDID", id = 1, value: 121, blob
├───────"DPMS", id = 2, value: 0, enums: ["On"=0, "Standby"=1, "Suspend"=2, "Off"=3]
├───────"link-status", id = 5, value: 0, enums: ["Good"=0, "Bad"=1]
├───────"non-desktop", id = 6, value: 0, values: [0, 1]
├───────"TILE", id = 4, value: 0, blob
├───────"scaling mode", id = 33, value: 0, enums: ["None"=0, "Full"=1, "Center"=2, "Full aspect"=3]
├───────"underscan", id = 34, value: 0, enums: ["off"=0, "on"=1, "auto"=2]
├───────"underscan hborder", id = 35, value: 0, values: [0, 128]
├───────"underscan vborder", id = 36, value: 0, values: [0, 128]
├───────"max bpc", id = 117, value: 16, values: [8, 16]
├───────"Colorspace", id = 118, value: 0, enums: ["Default"=0, "BT709_YCC"=2, "opRGB"=7, "BT2020_RGB"=9, "BT2020_YCC"=10]
├───────"HDR_OUTPUT_METADATA", id = 7, value: 0, blob
├───────"vrr_capable", id = 119, value: 1, values: [0, 1]
├───────"Content Protection", id = 107, value: 0, enums: ["Undesired"=0, "Desired"=1, "Enabled"=2]
├───────"HDCP Content Type", id = 108, value: 0, enums: ["HDCP Type0"=0, "HDCP Type1"=1]
├───────"subconnector", id = 109, value: 15, enums: ["Unknown"=0, "VGA"=1, "DVI-D"=3, "HDMI"=11, "DP"=10, "Wireless"=18, "Native"=15]
├───Connector 122 (HDMI-A-1), connected
├───────"EDID", id = 1, value: 136, blob
├───────"DPMS", id = 2, value: 0, enums: ["On"=0, "Standby"=1, "Suspend"=2, "Off"=3]
├───────"link-status", id = 5, value: 0, enums: ["Good"=0, "Bad"=1]
├───────"non-desktop", id = 6, value: 0, values: [0, 1]
├───────"TILE", id = 4, value: 0, blob
├───────"scaling mode", id = 33, value: 0, enums: ["None"=0, "Full"=1, "Center"=2, "Full aspect"=3]
├───────"underscan", id = 34, value: 0, enums: ["off"=0, "on"=1, "auto"=2]
├───────"underscan hborder", id = 35, value: 0, values: [0, 128]
├───────"underscan vborder", id = 36, value: 0, values: [0, 128]
├───────"max bpc", id = 123, value: 16, values: [8, 16]
├───────"content type", id = 124, value: 0, enums: ["No Data"=0, "Graphics"=1, "Photo"=2, "Cinema"=3, "Game"=4]
├───────"Colorspace", id = 125, value: 0, enums: ["Default"=0, "BT709_YCC"=2, "opRGB"=7, "BT2020_RGB"=9, "BT2020_YCC"=10]
├───────"HDR_OUTPUT_METADATA", id = 7, value: 0, blob
├───────"vrr_capable", id = 126, value: 0, values: [0, 1]
├───────"Content Protection", id = 107, value: 0, enums: ["Undesired"=0, "Desired"=1, "Enabled"=2]
├───────"HDCP Content Type", id = 108, value: 0, enums: ["HDCP Type0"=0, "HDCP Type1"=1]
Node: "/dev/dri/card1"
├───Connector 87 (HDMI-A-2), disconnected
├───────"EDID", id = 1, value: 0, blob
├───────"DPMS", id = 2, value: 3, enums: ["On"=0, "Standby"=1, "Suspend"=2, "Off"=3]
├───────"link-status", id = 5, value: 0, enums: ["Good"=0, "Bad"=1]
├───────"non-desktop", id = 6, value: 0, values: [0, 1]
├───────"TILE", id = 4, value: 0, blob
├───────"scaling mode", id = 33, value: 0, enums: ["None"=0, "Full"=1, "Center"=2, "Full aspect"=3]
├───────"underscan", id = 34, value: 0, enums: ["off"=0, "on"=1, "auto"=2]
├───────"underscan hborder", id = 35, value: 0, values: [0, 128]
├───────"underscan vborder", id = 36, value: 0, values: [0, 128]
├───────"max bpc", id = 88, value: 16, values: [8, 16]
├───────"content type", id = 89, value: 0, enums: ["No Data"=0, "Graphics"=1, "Photo"=2, "Cinema"=3, "Game"=4]
├───────"Colorspace", id = 90, value: 0, enums: ["Default"=0, "BT709_YCC"=2, "opRGB"=7, "BT2020_RGB"=9, "BT2020_YCC"=10]
├───────"HDR_OUTPUT_METADATA", id = 7, value: 0, blob
├───────"vrr_capable", id = 91, value: 0, values: [0, 1]
├───────"Content Protection", id = 92, value: 0, enums: ["Undesired"=0, "Desired"=1, "Enabled"=2]
├───────"HDCP Content Type", id = 93, value: 0, enums: ["HDCP Type0"=0, "HDCP Type1"=1]
├───Connector 95 (HDMI-A-3), disconnected
├───────"EDID", id = 1, value: 0, blob
├───────"DPMS", id = 2, value: 3, enums: ["On"=0, "Standby"=1, "Suspend"=2, "Off"=3]
├───────"link-status", id = 5, value: 0, enums: ["Good"=0, "Bad"=1]
├───────"non-desktop", id = 6, value: 0, values: [0, 1]
├───────"TILE", id = 4, value: 0, blob
├───────"scaling mode", id = 33, value: 0, enums: ["None"=0, "Full"=1, "Center"=2, "Full aspect"=3]
├───────"underscan", id = 34, value: 0, enums: ["off"=0, "on"=1, "auto"=2]
├───────"underscan hborder", id = 35, value: 0, values: [0, 128]
├───────"underscan vborder", id = 36, value: 0, values: [0, 128]
├───────"max bpc", id = 96, value: 16, values: [8, 16]
├───────"content type", id = 89, value: 0, enums: ["No Data"=0, "Graphics"=1, "Photo"=2, "Cinema"=3, "Game"=4]
├───────"Colorspace", id = 97, value: 0, enums: ["Default"=0, "BT709_YCC"=2, "opRGB"=7, "BT2020_RGB"=9, "BT2020_YCC"=10]
├───────"HDR_OUTPUT_METADATA", id = 7, value: 0, blob
├───────"vrr_capable", id = 98, value: 0, values: [0, 1]
├───────"Content Protection", id = 92, value: 0, enums: ["Undesired"=0, "Desired"=1, "Enabled"=2]
├───────"HDCP Content Type", id = 93, value: 0, enums: ["HDCP Type0"=0, "HDCP Type1"=1]
├───Connector 100 (DisplayPort-4), disconnected
├───────"EDID", id = 1, value: 0, blob
├───────"DPMS", id = 2, value: 3, enums: ["On"=0, "Standby"=1, "Suspend"=2, "Off"=3]
├───────"link-status", id = 5, value: 0, enums: ["Good"=0, "Bad"=1]
├───────"non-desktop", id = 6, value: 0, values: [0, 1]
├───────"TILE", id = 4, value: 0, blob
├───────"scaling mode", id = 33, value: 0, enums: ["None"=0, "Full"=1, "Center"=2, "Full aspect"=3]
├───────"underscan", id = 34, value: 0, enums: ["off"=0, "on"=1, "auto"=2]
├───────"underscan hborder", id = 35, value: 0, values: [0, 128]
├───────"underscan vborder", id = 36, value: 0, values: [0, 128]
├───────"max bpc", id = 101, value: 16, values: [8, 16]
├───────"Colorspace", id = 102, value: 0, enums: ["Default"=0, "BT709_YCC"=2, "opRGB"=7, "BT2020_RGB"=9, "BT2020_YCC"=10]
├───────"HDR_OUTPUT_METADATA", id = 7, value: 0, blob
├───────"vrr_capable", id = 103, value: 0, values: [0, 1]
├───────"Content Protection", id = 92, value: 0, enums: ["Undesired"=0, "Desired"=1, "Enabled"=2]
├───────"HDCP Content Type", id = 93, value: 0, enums: ["HDCP Type0"=0, "HDCP Type1"=1]
├───────"subconnector", id = 104, value: 0, enums: ["Unknown"=0, "VGA"=1, "DVI-D"=3, "HDMI"=11, "DP"=10, "Wireless"=18, "Native"=15]