How to rename devices for graphical output such as VGA0Where is udev getting the ID for iSCSI devices?How do...

Should students have access to past exams or an exam bank?

Prepare a user to perform an action before proceeding to the next step

Does Ubuntu reduce battery life?

Why are prop blades not shaped like household fan blades?

How do discovery writers hibernate?

How does the barbarian bonus damage interact with two weapon fighting?

Applications of pure mathematics in operations research

Help me, I hate squares!

How can you tell the version of Ubuntu on a system in a .sh (bash) script?

What clothes would flying-people wear?

Why was the Lobbying Transparency and Accountability Act of 2006 deemed too weak?

How can flights operated by the same company have such different prices when marketed by another?

Why don't short runways use ramps for takeoff?

No Shirt, No Shoes, Service

Adding a (stair/baby) gate without facing walls

Move arrows along a contour

Why would an invisible personal shield be necessary?

How to remove rebar passing through an inaccessible pipe

Word for soundtrack music which is part of the action of the movie

Why does macOS create file mounts for each app?

Would people understand me speaking German all over Europe?

Numerically Stable IIR filter

UX writing: When to use "we"?

My employer is refusing to give me the pay that was advertised after an internal job move



How to rename devices for graphical output such as VGA0


Where is udev getting the ID for iSCSI devices?How do I resolve “xrandr: cannot find crtc for output”?How to disable USB devices based on their vendor ID on GNU/Linux?How do I recreate /dev/ttyUSB## devices that I deleted?How can I rename the device files for my multi-memory card reader?udev rules for video devicesHow to change default permission for usb devices filesystempersistent device naming for NVMe storage devicesUdev rules for seemingly indistinguishable devicesFirewall-like software for udev usb devices?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







7















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?










share|improve this question















bumped to the homepage by Community 25 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















  • Wouldn't be easier to use xrandr in the first place? I mean parse it's output to get the names you need rather than hard coding them into your scripts. This sounds like an XY problem. What do your scripts do?

    – terdon
    Oct 5 '13 at 23:26













  • Maybe I should have elaborated some more (or less). The outputs are not actually specified inside a script but in a config file for my window manager (i3). There might be some other way, I'm actually pretty sure there is. But I still want to know if the outputs can be renamed or not.

    – ifschleife
    Oct 6 '13 at 17:04











  • Have you found a clean way to solve this yet?

    – Marcin Kaminski
    Mar 15 '16 at 23:36


















7















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?










share|improve this question















bumped to the homepage by Community 25 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















  • Wouldn't be easier to use xrandr in the first place? I mean parse it's output to get the names you need rather than hard coding them into your scripts. This sounds like an XY problem. What do your scripts do?

    – terdon
    Oct 5 '13 at 23:26













  • Maybe I should have elaborated some more (or less). The outputs are not actually specified inside a script but in a config file for my window manager (i3). There might be some other way, I'm actually pretty sure there is. But I still want to know if the outputs can be renamed or not.

    – ifschleife
    Oct 6 '13 at 17:04











  • Have you found a clean way to solve this yet?

    – Marcin Kaminski
    Mar 15 '16 at 23:36














7












7








7


1






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?










share|improve this question














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?







devices udev xrandr






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 5 '13 at 12:43









ifschleifeifschleife

1731 gold badge1 silver badge4 bronze badges




1731 gold badge1 silver badge4 bronze badges






bumped to the homepage by Community 25 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.









bumped to the homepage by Community 25 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 25 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Wouldn't be easier to use xrandr in the first place? I mean parse it's output to get the names you need rather than hard coding them into your scripts. This sounds like an XY problem. What do your scripts do?

    – terdon
    Oct 5 '13 at 23:26













  • Maybe I should have elaborated some more (or less). The outputs are not actually specified inside a script but in a config file for my window manager (i3). There might be some other way, I'm actually pretty sure there is. But I still want to know if the outputs can be renamed or not.

    – ifschleife
    Oct 6 '13 at 17:04











  • Have you found a clean way to solve this yet?

    – Marcin Kaminski
    Mar 15 '16 at 23:36



















  • Wouldn't be easier to use xrandr in the first place? I mean parse it's output to get the names you need rather than hard coding them into your scripts. This sounds like an XY problem. What do your scripts do?

    – terdon
    Oct 5 '13 at 23:26













  • Maybe I should have elaborated some more (or less). The outputs are not actually specified inside a script but in a config file for my window manager (i3). There might be some other way, I'm actually pretty sure there is. But I still want to know if the outputs can be renamed or not.

    – ifschleife
    Oct 6 '13 at 17:04











  • Have you found a clean way to solve this yet?

    – Marcin Kaminski
    Mar 15 '16 at 23:36

















Wouldn't be easier to use xrandr in the first place? I mean parse it's output to get the names you need rather than hard coding them into your scripts. This sounds like an XY problem. What do your scripts do?

– terdon
Oct 5 '13 at 23:26







Wouldn't be easier to use xrandr in the first place? I mean parse it's output to get the names you need rather than hard coding them into your scripts. This sounds like an XY problem. What do your scripts do?

– terdon
Oct 5 '13 at 23:26















Maybe I should have elaborated some more (or less). The outputs are not actually specified inside a script but in a config file for my window manager (i3). There might be some other way, I'm actually pretty sure there is. But I still want to know if the outputs can be renamed or not.

– ifschleife
Oct 6 '13 at 17:04





Maybe I should have elaborated some more (or less). The outputs are not actually specified inside a script but in a config file for my window manager (i3). There might be some other way, I'm actually pretty sure there is. But I still want to know if the outputs can be renamed or not.

– ifschleife
Oct 6 '13 at 17:04













Have you found a clean way to solve this yet?

– Marcin Kaminski
Mar 15 '16 at 23:36





Have you found a clean way to solve this yet?

– Marcin Kaminski
Mar 15 '16 at 23:36










1 Answer
1






active

oldest

votes


















0














The name of the output is set by the graphics card driver. This is then passed through X to xrandr. I believe they base it on the kernel device name but there is no standard scheme that is used.



thinkwiki documents some of the variations.






share|improve this answer




























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f93685%2fhow-to-rename-devices-for-graphical-output-such-as-vga0%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The name of the output is set by the graphics card driver. This is then passed through X to xrandr. I believe they base it on the kernel device name but there is no standard scheme that is used.



    thinkwiki documents some of the variations.






    share|improve this answer






























      0














      The name of the output is set by the graphics card driver. This is then passed through X to xrandr. I believe they base it on the kernel device name but there is no standard scheme that is used.



      thinkwiki documents some of the variations.






      share|improve this answer




























        0












        0








        0







        The name of the output is set by the graphics card driver. This is then passed through X to xrandr. I believe they base it on the kernel device name but there is no standard scheme that is used.



        thinkwiki documents some of the variations.






        share|improve this answer













        The name of the output is set by the graphics card driver. This is then passed through X to xrandr. I believe they base it on the kernel device name but there is no standard scheme that is used.



        thinkwiki documents some of the variations.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 29 '17 at 12:27









        lodlod

        101




        101

































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f93685%2fhow-to-rename-devices-for-graphical-output-such-as-vga0%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

            Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

            Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...