Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make it easier to know what version of the dummy driver is installed (and if it has the required patches) #732

Closed
totaam opened this issue Nov 8, 2014 · 9 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Nov 8, 2014

Issue migrated from trac ticket # 732

component: packaging | priority: minor | resolution: wontfix

2014-11-08 07:43:47: totaam created the issue


At the moment, the only way to tell is to check the package database (and assume it is the version in use..) or parse the server output and look for the tell-tale sign:

[245872.234] (II) DUMMY(0): get_constant_dpi_value() found property "dummy-constant-xdpi" with value=96
[245872.234] (II) DUMMY(0): get_constant_dpi_value() found property "dummy-constant-ydpi" with value=96
[245872.234] (II) DUMMY(0): mm(dpi 96x96)=677x423

Things like xvinfo and glxinfo don't help much either.
I don't think we can get that information through the X11 randr protocol either. The only place where the driverName seems to be exported is in ProcDRI2Connect.

We should add a root window property (a bit like what Xvfb does) and stick the version and patch level in there.
Then we can look it up on the server and know what we're dealing with, and emit a warning if it looks outdated.

Code would probably look like this:

	Atom prop = MakeAtom(pProp->name, strlen(pProp->name), TRUE);
	err = dixChangeWindowProperty(serverClient, pWin,
				prop, pProp->type, pProp->format, PropModeReplace,
                                pProp->size, pProp->data, FALSE);
@totaam
Copy link
Collaborator Author

totaam commented Nov 8, 2014

2014-11-08 07:44:27: totaam changed status from new to assigned

@totaam
Copy link
Collaborator Author

totaam commented Nov 8, 2014

2014-11-08 07:44:27: totaam changed owner from antoine to totaam

@totaam
Copy link
Collaborator Author

totaam commented Nov 8, 2014

2014-11-08 07:44:27: totaam edited the issue description

@totaam
Copy link
Collaborator Author

totaam commented Jul 3, 2015

2015-07-03 16:24:16: antoine commented


Improvement in r9770: we warn if the DPI is way off.

@totaam
Copy link
Collaborator Author

totaam commented Jul 12, 2016

2016-07-12 17:51:51: antoine commented


Milestone renamed

@totaam
Copy link
Collaborator Author

totaam commented Aug 21, 2016

2016-08-21 10:55:50: antoine commented


Milestone renamed

@totaam
Copy link
Collaborator Author

totaam commented Feb 15, 2017

2017-02-15 10:01:31: antoine changed status from assigned to closed

@totaam
Copy link
Collaborator Author

totaam commented Feb 15, 2017

2017-02-15 10:01:31: antoine set resolution to wontfix

@totaam
Copy link
Collaborator Author

totaam commented Feb 15, 2017

2017-02-15 10:01:31: antoine commented


Best to work on #56 and get that solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant