Add tools/intel_infoframes
PATCH 1/1 Add tools/intel_infoframes
From: Paulo Zanoni <[email protected]>
This is a command-line tool that allows us to display and modify the InfoFrames we send.
---
Hi
Before we add Kernel interfaces to deal with the infoframes, I decided to write this tool. It allows us to quickly test everything without requiring a patched Kernel, so is very convenient for people who want to change their InfoFrames quickly.
The coolest feature behind this tool is the ability to change between overscan and underscan, so now you can connect your computer to your TV and, maybe, be able to see your whole desktop (even the corners!). I tested this with 3 TVs, but only one of them respected the overscan/underscan settings. I still need to investigate more the reasons why the settings were ignored on two TVs (I didn't look at the EDID stuff).
So, to change between overscan and underscan:
$ sudo ./intel_infoframes
You'll see the main menu. Type "1" and then press enter to see what's happening on your machine. You'll see which transcoder is associated to which HDMI port. If any of the transcoders is enabled, you'll also see the InfoFrames they're sending. Note that to really understand each InfoFrame field you'll have to look at the HDMI or CEA-861 specifications.
Then, select option 2 to change an InfoFrame. You'll need to select a
transcoder: scroll up and read the output of the previous command. Then, select the AVI infoframe (option 1). On the next menu, select option 1 again. The option that deals with overscan/uderscan is S. Value "0" is default, value "1" is overscan and value "2" is underscan. Write "S 2" and then press enter. Then, write "done" and press enter. If your TV repects the underscan settings of the AVI infoframes, you'll now have underscan.
Next features:
- Support for Iron Lake (I only tested with Sandy Bridge)
- Other InfoFrames (I only added support for AVI and SPD)
- Code that tries to check which InfoFrames your TV is supposed to respect.
Feedback/testing would be appreciated.
Cheers,
Paulo
man/Makefile.am | 1 + man/intel_infoframes.man | 20 + tools/.gitignore | 1 + tools/Makefile.am | 1 + tools/intel_infoframes.c | 993 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 1016 insertions(+), 0 deletions(-) create mode 100644 man/intel_infoframes.man create mode 100644 tools/intel_infoframes.c
man/Makefile.am +1 -0
@@ -6,6 +6,7 @@ appman_PRE = \ intel_error_decode.man \ intel_gpu_top.man \ intel_gtt.man \ + intel_infoframes.man \ intel_lid.man \ intel_reg_dumper.man \ intel_reg_read.man \
man/intel_infoframes.man new file +20 -0
@@ -0,0 +1,20 @@ +.\" shorthand for double quote that works everywhere. +.ds q \N'34' +.TH intel_infoframes __appmansuffix__ __xorgversion__ +.SH NAME +intel_infoframes \- View and change HDMI InfoFrames +.SH SYNOPSIS +.B intel_infoframes +.SH DESCRIPTION +.B intel_infoframes +is a tool to view and change the HDMI InfoFrames sent by the GPU. Its main +purpose is to be used as a debugging tool. In some cases (e.g., when +changing modes) the Kernel will undo the changes made by this tool. + +Descriptions of the InfoFrame fields can be found on the HDMI and CEA-861 +specifications. +.SH LIMITATIONS +Not all HDMI monitors respect the InfoFrames sent to them. Only Sandy Bridge +or newer hardware is supported yet. +.SH SEE ALSO +HDMI specification, CEA-861 specification.
tools/.gitignore +1 -0
@@ -10,6 +10,7 @@ intel_gpu_dump intel_gpu_time intel_gpu_top intel_gtt +intel_infoframes intel_lid intel_reg_checker intel_reg_dumper
tools/Makefile.am +1 -0
@@ -8,6 +8,7 @@ bin_PROGRAMS = \ intel_gpu_top \ intel_gpu_time \ intel_gtt \ + intel_infoframes \ intel_stepping \ intel_reg_checker \ intel_reg_dumper \
tools/intel_infoframes.c new file +993 -0
993 lines not on this page · raw message
Signature · 6 lines
1.7.7.3 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 7 lines · On Mon, Jan 9, 2012 at 12:03, <[email protected]> wrote:
From: Paulo Zanoni <[email protected]>
This is a command-line tool that allows us to display and modify the InfoFrames we send.
Signed-off-by Paulo Zanoni <[email protected]>
Very interesting!
I think that it would be more interesting to use command line options instead of interactive input - something like:
-d, --dump
-c, --change [parameters]
-dd, --dip-disable
-de, --dip-enable [parameters]
-hd, --hdmi-disable
-he, --hdmi-enable [parameters]
So this could be scripted and used non-interactively. This would also simplify your change_avi_infoframe and parse_infoframe_option_s - you could just pass all the values as parameters instead.
Other than that,
Signature · 2 lines
Eugeni Dodonov <http://eugeni.dodonov.net/>
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 21 lines · Eugeni Dodonov
Quoted 7 lines · On Mon, Jan 9, 2012 at 12:03, <[email protected]> wrote:
From: Paulo Zanoni <[email protected]>
This is a command-line tool that allows us to display and modify the InfoFrames we send.
Signed-off-by Paulo Zanoni <[email protected]>Very interesting!
I think that it would be more interesting to use command line options instead of interactive input - something like:
(quoted diff) +0
-6-d, --dump -c, --change [parameters] -dd, --dip-disable -de, --dip-enable [parameters] -hd, --hdmi-disable -he, --hdmi-enable [parameters]
Quoted 3 lines
So this could be scripted and used non-interactively. This would also simplify your
change_avi_infoframeandparse_infoframe_option_s- you could just pass all the values as parameters instead.
I like Eugeni's suggestion - all our other dump/decode/fiddle with the hw tools are non-interactive (safe only for intel_gpu_top iirc). Can I bother you to do this?
Yours, Daniel
Signature · 3 lines
Daniel Vetter Mail: [email protected] Mobile: +41 (0)79 365 57 48