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

[feature request] disable informative messages #21

Closed
effemmeffe opened this issue Feb 3, 2017 · 6 comments · Fixed by #22
Closed

[feature request] disable informative messages #21

effemmeffe opened this issue Feb 3, 2017 · 6 comments · Fixed by #22
Assignees

Comments

@effemmeffe
Copy link

In my .xsession-errors I found this messages:

libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0

I'd like to have the ability to disable those messages.
This will avoid to make the file grow in machines that runs kodi and are not rebooted often.

@seanvk seanvk self-assigned this Feb 4, 2017
xhaihao pushed a commit that referenced this issue Feb 6, 2017
on by default, but allows optional disabling.

fixes #21

Signed-off-by: Sean V Kelley <seanvk@posteo.de>
@seanvk seanvk removed the in progress label Feb 6, 2017
@effemmeffe
Copy link
Author

I'm pretty newbie, how do I upgrade my vesion on ubuntu? And how do I disable this?

@xhaihao
Copy link
Contributor

xhaihao commented Feb 7, 2017

First you should clone or download the source code from https://github.com/01org/libva, otherwise you have to wait for the new version of libva in Ubuntu.

Then please follow the steps below to build and install the new libva:
1.
$> ./autogen.sh --enable-va-messaging=no ...
... is other options, e.g. --prefix to change the install path prefix. If configure has been updated, you can run configure directly:
$> ./configure --enable-va-messaging=no ...
2.
$> make
3.
$> sudo make install

@effemmeffe
Copy link
Author

Thank you.
How do I follow the path for a new version in ubuntu?
Right now ubuntu 16.04 provides libva package 1.7.0-1, how do I check that this change is included in the ubuntu package?

@xhaihao
Copy link
Contributor

xhaihao commented Feb 8, 2017

I don't know when Ubuntu will integrate the latest libva. For us, we usually build an official release per quarter.

@uartie
Copy link
Contributor

uartie commented Feb 13, 2017

The proposed patch (#22) only allows "messaging" to be disabled at compile time. And it is enabled by default. If distros don't explicitly disable it during compilation, then users are back at square one. On the flip-side, if distros do disable it then there is no way to turn it back on when users have issues to report/debug. Wouldn't it be better to add a runtime check, at initialization stage or something, so users can disable/enable it per application run/init (perhaps by setting an environment variable)?

@uartie uartie reopened this Feb 13, 2017
@seanvk
Copy link
Contributor

seanvk commented Feb 13, 2017

Patch is already merged. I'd prefer to keep it the default as our distributions, Google Chrome and others rely upon that for testing. It's trivial to disable with a local build and we've never had a request top change it.

@seanvk seanvk closed this as completed Feb 13, 2017
ss22ongithub pushed a commit to ss22ongithub/libva that referenced this issue Jun 9, 2021
Integrate changes for VPU tests and binaries

BUG=CHRMOS-11377

Signed-off-by: Ritul Jasuja <ritul.jasuja@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants