SRM
v0.5.6-1
Simple Rendering Manager
|
To learn the basics, refer to the srm-basic example. For creating textures from a single allocation and setting the hardware cursor pixels and position, you can check the srm-all-connectors example.
Additionally, to learn how to enable multi-session functionality and integrate input events with Libinput, please refer to the srm-multi-session example.
Those examples are included when installing SRM. To run them, follow these steps:
CTRL + C
to stop it. It's a simple demonstration of SRM's graphics pipeline.CTRL + C
is pressed.CTRL + ALT + F[1, 2, 3, ... 10]
. It renders solid colors to all available connectors and enables you to move the hardware cursor using any pointing device, such as a touchpad or mouse, until you press ESC
.To run any of these examples, switch to a free TTY by pressing CTRL + ALT + F[1, 2, 3, ... 10]
, fn + CTRL + ALT + F[1, 2, 3, ... 10]
, or using the chvt N
command (replace N
with the desired virtual terminal number). Then, simply execute the desired example's command.
The srm-basic and srm-all-connectors examples may necessitate elevated privileges for execution. Alternatively, you can include your user in the video group.
In contrast, srm-multi-session doesn't demand superuser privileges but relies on your system having a seat service.
Similarly, srm-display-info doesn't mandate superuser privileges, as it solely retrieves information from DRM devices without performing any KMS operations.