An open API service indexing awesome lists of open source software.

https://github.com/equalsraf/on-drm-change

Small utility to forward udev drm events
https://github.com/equalsraf/on-drm-change

Last synced: about 2 months ago
JSON representation

Small utility to forward udev drm events

Awesome Lists containing this project

README

          

Listen to udev events for DRM devices and call a script - this is useful to detect when
you plug/unplug an external monitor, e.g. I use it to adjust xrandr settings.

The only requirement is libudev. I've included an example script for xrandr, just call

on-drm-change "./screen-profile"

This was only tested using an Intel graphics card, no idea if udev relays events for
other cards, a quick way to find out is to execute

udevadm monitor

and try disconnecting your monitor.