[mythtv] Detecting video driver/chipset at runtime

Oliver Maunder olly at roomaroo.co.uk
Sat Feb 2 17:20:58 UTC 2008


On Jan 31, 2008 11:26 PM, Daniel Kristjansson <danielk at cuymedia.net> wrote:
> I've considered doing something like lspci does to get the actual
> video hardware info. This won't tell you which video hardware
> is being used for the particular display you are targeting, but
> I don't know how one might get that from the X11 server. (i.e.
> there may be two or more video adapters, say the built in one
> and the one + the AGP one you are really using + the PCI one you
> stuck in for a debug console; only one of them is for the current
> display.)

I briefly thought about scanning the Xorg.0.log - the VIA driver
helpfully logs which chipset it's found. But that's way too ugly to be
a good solution.

How about testing for an environment variable at runtime - e.g.
MYTHTV_CX700_WORKAROUNDS, and using the workarounds if it's found? It
won't be totally transparent for the end user, but it would be easier
for them than patching and rebuilding the software. And it would be
trivial to add to the code.

Olly


More information about the mythtv-dev mailing list