How to reduce or increase the amount of messages the evdi module logs

By default, logging level for evdi is set to debug, which logs a fair number of events. Logging verbosity is configurable, and it is easy to make the module log less, or more.

Change in runtime

The verbosity of logging for the evdi module can be changed in runtime. To do this, echo the number indicating the desired level to /sys/devices/evdi/loglevel file.

The number should be in range 0-6, where 0 means minimum logs and 6 means verbose. Exact definitions of levels can be found in the source code of the module.

For example, to switch verbose logging on, execute the following as root:
# echo 6 > /sys/devices/evdi/loglevel

Making the change permanent

To set a new logging verbosity default value, you don't need to recompile the module. Instead, create a configuration file that's used while loading the module to pass parameters to it.
For example:
# echo "options evdi initial_loglevel=6" > /etc/modprobe.d/evdi.conf

Changing the logging of DRM subsystem

In certain cases it is also useful to increase the verbosity of logging of DRM subsystem that evdi uses. To do that, echo the desired value to /sys/module/drm/parameters/debug.

Possible masks:
  • 0x1 - DRM_UT_CORE
  • 0x2 - DRM_UT_DRIVER
  • 0x4 - DRM_UT_KMS
  • 0x8 - DRM_UT_PRIME
  • 0xf - everything
To get the most verbose output, use:
# echo 0xf > /sys/module/drm/parameters/debug

Feedback and Knowledge Base