reset USB port, how to obtain same effect of physical disconnection or poweroff
I have an headless system running Ubuntu 14, with a xtion pro live camera connected to do some live video elaboration.
Sometimes on boot (every morning is power on, but this is happening ramdomly) the camera is not recognized and dmesg shows:
usb 1-2: device descriptor read/8, error -110
usb usb1-port2: unable to enumerate USB device
The camera is not even listed in lsusb.
What I tried without any success is:
- Computer reboot
https://davidjb.com/blog/2012/06/restartreset-usb-in-ubuntu-12-04-without-rebooting/ (usb device it's not listed in lsusb)- https://askubuntu.com/a/661/373541
- on BIOS fast boot is disabled
- can't rmmod/modprobe xhci_hcd as it's builtin
- https://github.com/mvp/uhubctl
The only working solution is to poweroff/poweron the computer (not feasible as is an headless system, it poweroff every night, and poweron every morning but I'd avoid waiting next day when the problem occurs).
Is there any solution to simulate the physical disconnection of the device (I not even sure if this would work) or the poweroff for what USB concerns?
Any ideas will be appreciated, thank you.
ubuntu usb
|
show 2 more comments
I have an headless system running Ubuntu 14, with a xtion pro live camera connected to do some live video elaboration.
Sometimes on boot (every morning is power on, but this is happening ramdomly) the camera is not recognized and dmesg shows:
usb 1-2: device descriptor read/8, error -110
usb usb1-port2: unable to enumerate USB device
The camera is not even listed in lsusb.
What I tried without any success is:
- Computer reboot
https://davidjb.com/blog/2012/06/restartreset-usb-in-ubuntu-12-04-without-rebooting/ (usb device it's not listed in lsusb)- https://askubuntu.com/a/661/373541
- on BIOS fast boot is disabled
- can't rmmod/modprobe xhci_hcd as it's builtin
- https://github.com/mvp/uhubctl
The only working solution is to poweroff/poweron the computer (not feasible as is an headless system, it poweroff every night, and poweron every morning but I'd avoid waiting next day when the problem occurs).
Is there any solution to simulate the physical disconnection of the device (I not even sure if this would work) or the poweroff for what USB concerns?
Any ideas will be appreciated, thank you.
ubuntu usb
Here you might find your solution: stackoverflow.com/questions/4702216/…
– Petr
Jan 4 '18 at 10:58
it doens't work
– rok
Jan 4 '18 at 11:31
Tryuhubctl -R -a cycle. But it will work only if your hub supports per port power switching (to be recognized by uhubctl).
– mvp
Jan 21 '18 at 7:45
it's already in the attempts list without any success..
– rok
Jan 24 '18 at 14:02
@rok: did you try with-R? Adding-Rwill try to use appropriate USB reset mechanism supported by your OS (Linux in this case).
– mvp
Feb 2 '18 at 0:28
|
show 2 more comments
I have an headless system running Ubuntu 14, with a xtion pro live camera connected to do some live video elaboration.
Sometimes on boot (every morning is power on, but this is happening ramdomly) the camera is not recognized and dmesg shows:
usb 1-2: device descriptor read/8, error -110
usb usb1-port2: unable to enumerate USB device
The camera is not even listed in lsusb.
What I tried without any success is:
- Computer reboot
https://davidjb.com/blog/2012/06/restartreset-usb-in-ubuntu-12-04-without-rebooting/ (usb device it's not listed in lsusb)- https://askubuntu.com/a/661/373541
- on BIOS fast boot is disabled
- can't rmmod/modprobe xhci_hcd as it's builtin
- https://github.com/mvp/uhubctl
The only working solution is to poweroff/poweron the computer (not feasible as is an headless system, it poweroff every night, and poweron every morning but I'd avoid waiting next day when the problem occurs).
Is there any solution to simulate the physical disconnection of the device (I not even sure if this would work) or the poweroff for what USB concerns?
Any ideas will be appreciated, thank you.
ubuntu usb
I have an headless system running Ubuntu 14, with a xtion pro live camera connected to do some live video elaboration.
Sometimes on boot (every morning is power on, but this is happening ramdomly) the camera is not recognized and dmesg shows:
usb 1-2: device descriptor read/8, error -110
usb usb1-port2: unable to enumerate USB device
The camera is not even listed in lsusb.
What I tried without any success is:
- Computer reboot
https://davidjb.com/blog/2012/06/restartreset-usb-in-ubuntu-12-04-without-rebooting/ (usb device it's not listed in lsusb)- https://askubuntu.com/a/661/373541
- on BIOS fast boot is disabled
- can't rmmod/modprobe xhci_hcd as it's builtin
- https://github.com/mvp/uhubctl
The only working solution is to poweroff/poweron the computer (not feasible as is an headless system, it poweroff every night, and poweron every morning but I'd avoid waiting next day when the problem occurs).
Is there any solution to simulate the physical disconnection of the device (I not even sure if this would work) or the poweroff for what USB concerns?
Any ideas will be appreciated, thank you.
ubuntu usb
ubuntu usb
edited Jan 4 '18 at 11:33
rok
asked Jan 4 '18 at 10:49
rokrok
9318
9318
Here you might find your solution: stackoverflow.com/questions/4702216/…
– Petr
Jan 4 '18 at 10:58
it doens't work
– rok
Jan 4 '18 at 11:31
Tryuhubctl -R -a cycle. But it will work only if your hub supports per port power switching (to be recognized by uhubctl).
– mvp
Jan 21 '18 at 7:45
it's already in the attempts list without any success..
– rok
Jan 24 '18 at 14:02
@rok: did you try with-R? Adding-Rwill try to use appropriate USB reset mechanism supported by your OS (Linux in this case).
– mvp
Feb 2 '18 at 0:28
|
show 2 more comments
Here you might find your solution: stackoverflow.com/questions/4702216/…
– Petr
Jan 4 '18 at 10:58
it doens't work
– rok
Jan 4 '18 at 11:31
Tryuhubctl -R -a cycle. But it will work only if your hub supports per port power switching (to be recognized by uhubctl).
– mvp
Jan 21 '18 at 7:45
it's already in the attempts list without any success..
– rok
Jan 24 '18 at 14:02
@rok: did you try with-R? Adding-Rwill try to use appropriate USB reset mechanism supported by your OS (Linux in this case).
– mvp
Feb 2 '18 at 0:28
Here you might find your solution: stackoverflow.com/questions/4702216/…
– Petr
Jan 4 '18 at 10:58
Here you might find your solution: stackoverflow.com/questions/4702216/…
– Petr
Jan 4 '18 at 10:58
it doens't work
– rok
Jan 4 '18 at 11:31
it doens't work
– rok
Jan 4 '18 at 11:31
Try
uhubctl -R -a cycle. But it will work only if your hub supports per port power switching (to be recognized by uhubctl).– mvp
Jan 21 '18 at 7:45
Try
uhubctl -R -a cycle. But it will work only if your hub supports per port power switching (to be recognized by uhubctl).– mvp
Jan 21 '18 at 7:45
it's already in the attempts list without any success..
– rok
Jan 24 '18 at 14:02
it's already in the attempts list without any success..
– rok
Jan 24 '18 at 14:02
@rok: did you try with
-R? Adding -R will try to use appropriate USB reset mechanism supported by your OS (Linux in this case).– mvp
Feb 2 '18 at 0:28
@rok: did you try with
-R? Adding -R will try to use appropriate USB reset mechanism supported by your OS (Linux in this case).– mvp
Feb 2 '18 at 0:28
|
show 2 more comments
0
active
oldest
votes
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%2f414746%2freset-usb-port-how-to-obtain-same-effect-of-physical-disconnection-or-poweroff%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f414746%2freset-usb-port-how-to-obtain-same-effect-of-physical-disconnection-or-poweroff%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
Here you might find your solution: stackoverflow.com/questions/4702216/…
– Petr
Jan 4 '18 at 10:58
it doens't work
– rok
Jan 4 '18 at 11:31
Try
uhubctl -R -a cycle. But it will work only if your hub supports per port power switching (to be recognized by uhubctl).– mvp
Jan 21 '18 at 7:45
it's already in the attempts list without any success..
– rok
Jan 24 '18 at 14:02
@rok: did you try with
-R? Adding-Rwill try to use appropriate USB reset mechanism supported by your OS (Linux in this case).– mvp
Feb 2 '18 at 0:28