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
- Host: GitHub
- URL: https://github.com/equalsraf/on-drm-change
- Owner: equalsraf
- Created: 2015-12-02T13:53:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-02T13:53:37.000Z (over 10 years ago)
- Last Synced: 2025-03-06T12:30:51.817Z (over 1 year ago)
- Language: C
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.