Sample Header Ad - 728x90

How to rename devices for graphical output such as VGA0

8 votes
1 answer
2404 views
On my Laptop the names of my graphical outputs change depending on what chip is activated in the BIOS. This leads to problems in some scripts where outputs such as VGA-0 or LVDS-0 are specified. So I want to rename the graphical outputs, similar to how you can specify persistent names for network devices with udev. But I can't find anything that would explain how or if this is even possible at all. In /sys I could find kernel names such as as: /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-DVI-D-1 /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-VGA-1 while xrandr reports the names as DVI1 and VGA1. So they have to be renamed somewhere(?) When I call udevadm info on one of those devices I get a lot of information but not the names used by xrandr and other X tools. So is it possible to create a udev rule to rename the outputs and if so how? Are the names even set by udev?
Asked by ifschleife (273 rep)
Oct 5, 2013, 12:43 PM
Last activity: May 19, 2025, 07:08 PM