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;
}
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
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.
add a comment |
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
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 usexrandr
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
add a comment |
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
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
devices udev xrandr
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 usexrandr
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
add a comment |
Wouldn't be easier to usexrandr
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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Jul 29 '17 at 12:27
lodlod
101
101
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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