Thread: X11 head to i2c bus

  1. #1

    X11 head to i2c bus

    Hello guys, it's been a while since I've last been here but I have a question for you.

    Let's say I have a multihead setup (3 displays for example)
    My function receives a head number an I have to communicate with it over i2c.
    How can I map the head number (0,1,2) to the i2c device filename?

    in my /dev/ directory I have the following device files:
    i2c-0
    i2c-1
    i2c-2
    ...

    How do I know which screen/head corresponds to which device file?
    And no the 'x' in i2c-x is not the head number

    Thanks

    Oh yeah gcc on red hat
    Last edited by maes; 07-25-2007 at 06:42 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. xor linked list
    By adramalech in forum C Programming
    Replies: 23
    Last Post: 10-14-2008, 10:13 AM
  2. Looking for a way to store listbox data
    By Welder in forum C Programming
    Replies: 20
    Last Post: 11-01-2007, 11:48 PM
  3. question about a working linked list
    By cold_dog in forum C++ Programming
    Replies: 23
    Last Post: 09-13-2006, 01:00 AM
  4. Can't figure out problem with code
    By Beast() in forum C Programming
    Replies: 4
    Last Post: 04-16-2005, 05:27 PM
  5. Linked List Help
    By Perverse in forum C++ Programming
    Replies: 3
    Last Post: 02-22-2005, 08:33 AM