Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/proc/device-tree/pci/{video-card}/EDID
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Mon Aug 25, 2008 12:01 am    Post subject: /proc/device-tree/pci/{video-card}/EDID Reply with quote

Hello... I'm completely unfamiliar with linux on the ppc... however, I seem to have gotten maintainership of read-edid (containing both get-edid and parse-edid, or which parse-edid will currently work on ppc according to portage).

However, according to rumors on the old guy's website, you can get the EDID directly from /proc/device-tree/pci/{video-card}/EDID.... First of all, what goes where {video-card} is?

Is this true? Is this *always* true for ppc (as in, is that proc interface always there)?

I'm planning on implementing a quick if powerpc, just cat directly from that.

Thanks for your help!
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Mon Aug 25, 2008 6:59 pm    Post subject: Reply with quote

Quote:
First of all, what goes where {video-card} is?


i have no idea, mine is /proc/device-tree/pci@f0000000/ATY,JasperParent@10/ATY,Jasper_A@0/EDID in case that helps you.
I have another ATY\,Jasper_B@1/ directory where no EDID entry is available, because theres no other monitor connected right now i guess.

let me know if you need sth more.

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Aug 25, 2008 8:32 pm    Post subject: Reply with quote

here's a snippet of code from /usr/lib/xac/arch.py, part of the xac package:
Code:
### PowerPC Specific functions
class Arch_ppc(Arch):
        def __init__(self):
                Arch.__init__(self)
                self.arch_name = "ppc"

        ### Get edid monitor capabilities via OF
        def get_edids(self):
                found_edid_path = []
                e = []
                e = []

                ### Find the EDID nodes
                for root, dirs, files in os.walk("/proc/device-tree"):
                        for f in files:
                                ### Put the primary display EDID first in the list
                                if f == "EDID" and files.count("linux,boot-display"):
                                        found_edid_path = [root + "/" + f] + found_edid_path
                                elif f == "EDID":
                                        found_edid_path = found_edid_path + [root + "/" + f]
                                       
                ### For each node, create an edid ref and read it in
                for node in found_edid_path:
                        try:
                                edid_file = open(node, mode="rb")
                                ### EDID is 128 bytes
                                e = e + [edid_file.read(128)]
                                edid_file.close()
                        except:
                                print "### Unable to read from edid: " + node
                return e

_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum