LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-11-2019, 09:23 AM   #1
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Rep: Reputation: Disabled
turning on/off usb-device with command (usb-hub)


Hi,

I know this topic has been dealt with before but my "problem" is a bit different.

I want to enable/disable specific usb-ports. The theory is clear as it is well described on https://stackoverflow.com/questions/...b-device-again . Example:
Code:
Turn off device ID 2-1:

echo '2-1' |sudo tee /sys/bus/usb/drivers/usb/unbind
In my case itīs the following I want to do:

disabling the usb-port my wlan-stick is attached to.
Thatīs because I donīt need it when I use my umts-stick for internet-connection.

BUT: The wlan-stick isnīt attached directly to a usb-port on the computer but to a usb-hub which itself is connected to another
usb-hub (hama 78483) with its own power-supply
.

So when using the recommended command, in my case:

Code:
echo '1-1.2.1' |sudo tee /sys/bus/usb/drivers/usb/unbind
whould that have any effect at all? Because the hama hub with its own power-supply delivers power all the time, right?
Is there possibly another way of disabling a certain usb-device that suits my needs?

Many thanks in advance

Greetings
Rosika

P.S.:
My system: Linux/Lubuntu 16.04.5 LTS, 64 bit
 
Old 02-11-2019, 09:44 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
why don't you try it?
From the other hand you need to disable that wlan which is probably easier.
 
Old 02-11-2019, 09:52 AM   #3
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Hi pan64,

tnx for your fast reply.

I was hoping to find out what bind/unbind in this context exactly does. Does it switch on/off power or does it do something else.......?

Quote:
From the other hand you need to disable that wlan which is probably easier.
Iīm not quite sure what you mean by that. How do I go about it?
 
Old 02-11-2019, 10:19 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
here it is described: http://www.upubuntu.com/2012/01/how-...k-adapter.html. But probably I misunderstood something
 
1 members found this post helpful.
Old 02-11-2019, 10:34 AM   #5
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Hello again and thanks a lot,

yes, the link you provided seems to present a solution to my "problem". I think Iīll go for that one.

But out of curiosity:
Iīd still like to know what bind/unbind mean. Iīve been looking all over the web but havenīt been able to find a satisfactory answer to that.
 
Old 02-11-2019, 10:55 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
I can only guess, it will virtually detach that port. That means it will not be available any more, but will not be switched off. Just the kernel will not know about that and will not be able to detect(and use) any device plugged in.
 
1 members found this post helpful.
Old 02-11-2019, 11:07 AM   #7
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
O.K., that makes sense. Thank you for clarifying that.
And tnx for all the effort of yours.

Greetings
Rosika
 
Old 02-12-2019, 02:25 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
glad to help you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
should I get a bigger USB hub or plug a new hub into the first one? newbiesforever General 1 12-26-2015 06:56 PM
help me..lost my wireless cont! on my super hub!..hub ok still no cont! on my laptop titmus Linux - Newbie 1 10-16-2012 06:21 AM
USB HUB: Intel Rate Matching Hub issues nagi Linux - Hardware 0 01-04-2012 06:44 AM
tell me the process router to router, hub to hub and switch to switch communication. yakuza003 Linux - Networking 4 06-21-2008 07:55 AM
fedora core hub / no hub problem plu5even Linux - Networking 3 02-28-2005 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration