modeprint command not found

In this troubleshooting guide we learn how to fix modeprint command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

modeprint: command not found

or when using sudo you get the following error message

sudo: modeprint: command not found

Solutions to modeprint: command not found

How To Fix modeprint: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu modeprint is provided by libdrm-tests package.

libdrm-tests is:

This library implements the userspace interface to the kernel DRM services. DRM stands for “Direct Rendering Manager”, which is the kernelspace portion of the “Direct Rendering Infrastructure” (DRI). The DRI is currently used on Linux to provide hardware-accelerated OpenGL drivers.

This package contains a variety of tools for testing from the libdrm project.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libdrm-tests

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libdrm-tests.

sudo apt -y install libdrm-tests

Or if you have aptitude installed you can use the following command.

sudo aptitude install libdrm-tests

Summary

In this tutorial we learn how to fix modeprint command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.