From: Nicolas Boichat <nicolas@boichat.ch>
To: linux-fbdev-devel@lists.sourceforge.net
Cc: Vishal Soni <vishal.linux@gmail.com>
Subject: Re: Howto do i2c communication of videocard and monitor ??
Date: Sun, 29 Jan 2006 21:33:51 +0100 [thread overview]
Message-ID: <1138566831.25782.12.camel@localhost> (raw)
In-Reply-To: <e3e24c6a0601291149y59f17082ja8b0dbdcdaf7e004@mail.gmail.com>
Hi Vishal,
On Mon, 2006-01-30 at 01:19 +0530, Vishal Soni wrote:
> Hi,
>
> I am trying to communicate to the monitor eeprom to get the
> monitor capabilities and for that i need to have SDA/SCL bit positions
> in the control word register of the video card (to read and wrtie data
> using i2c protocol).
You would perhaps be interested in ddccontrol
(http://ddccontrol.sourceforge.net): it controls monitor parameters
(brightness, contrast, etc.) using DDC/CI protocol on the I2C busses of
the graphics card. Maybe you could use this code as a basis.
> Different video card vendors have different offsets for the control
> word register and different bit positions for SDA/SCL.
>
> I tried to use linux exported Symbol "get_EDID_from_firmware" and then
> using kgdb to debug the kernel module (that i wrote) to get the same
> but failed to find the way to get the above.
I don't think this kind of application should be in the kernel,
ddccontrol works in user-space, either by using /dev/i2c-* devices
provided by most kernel framebuffer drivers, or by writing directly to
PCI memory, when there is no support in the kernel, or when the
framebuffer driver conflicts with proprietary 3D-accelerated drivers
(ATI, nVidia).
I hope this helps.
Best regards,
Nicolas
> I do have the offset of the control word register and Masking Value of
> Intel and Matrox card but i would like NOT to hardcode the masking
> value and the offset in my code. This will lead me to modify my code
> for the different cards.
>
> Is there any way to get the control word register's address (and then
> SDA/SCL bit position) on the linux operating system ?
>
> FYI : Masking Value that i am referring to is the value that has to be
> ANDed to the DATA(bit - 0/1) before writing it to Control word
> register so that the right bit can be written on to the SDA/SCL lines.
>
> or to sum up ::
> How to get SDA/SCL bit position in the control word register of the video card?
>
> Any pointers to this or your guidance would be highly appreciated.
>
> Thank you for your time.
> regards,
> Vishal.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
prev parent reply other threads:[~2006-01-29 20:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-29 19:49 Howto do i2c communication of videocard and monitor ?? Vishal Soni
2006-01-29 20:33 ` Nicolas Boichat [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1138566831.25782.12.camel@localhost \
--to=nicolas@boichat.ch \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=vishal.linux@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).