LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-27-2006, 03:44 PM   #1
cvweiss
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
Disabling specific USB port


Using Debian with:
Linux mainLaptop 2.6.16-1-686 #1 Wed Mar 22 15:36:02 UTC 2006 i686 GNU/Linux

My laptop has 3 USB ports, 1 of which is attached to a cooler similar to what you might find here (url filtered cuz I'm a noob here). My particular fan isn't shown there, but that gives you the general idea.

lsusb:

... other stuff connected to the hub
Bus 001 Device 003: ID 046d:c506 Logitech, Inc. MX-700 Cordless Mouse Receiver
Bus 001 Device 002: ID 0451:2046 Texas Instruments, Inc. TUSB2046 Hub
Bus 001 Device 001: ID 0000:0000


The cooler is plugged into Bus 1 Dev 1. The cooler does nothing but draw power through the USB port to spin the fans. Now my question:

Is there any way to specifically shut off power to that particular USB port? Why: I'd like to run a script that polls the temperature of the

CPU and will only enable power for that port at or above a certain temperature. Since I'm not always physically present at this computer (it has become a desktop/server due to an old battery), just unplugging the cooler is not an option.


Can this be done programmaticly?
 
Old 03-27-2006, 04:32 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Doubt if that can be done unless hardware capiable. Best way is to find a device that control external devices. A type of Input/Output controller that can turn devices on and off from the PC either through the USB, Serial, or parallel port. Many of those devices contain examples of scripts to control the I/O ports. A simply script that keeps checking the cpu heat either from data from lm sensors or from a temperture probe attached to the I/O controller and then letting it turn the fan on when it is hot enough and off when it reaches the low temp setting you desire. I have devices like this but have never tried them or can remember where I have seen them. Others here when they read will know where to find what you are after. If I remeber I will post.

Edit:
It might be posiable for lm sensors to see the cpu temp and control the fan depending on the chipset. See what is under your /proc/acpi/fan. What is there if anything. From this depnding on the fan connector used for the cpu it might be able to control the remote fan as well. Some boards have more than one fan connector and can control all of them.
Edit:

Brian1

Last edited by Brian1; 03-27-2006 at 04:35 PM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ata2: disabling port stomach Linux - Hardware 1 02-26-2006 04:38 PM
Disabling port configuration screens xaenn *BSD 2 11-09-2005 05:12 PM
Disabling Port 6000 on X.org X Server crackm0nk3y Linux - Software 0 04-20-2004 04:46 AM
routing on a specific port stapper Linux - Networking 0 10-10-2002 02:08 PM
Telnet to a specific port... Harbinger Linux - Networking 1 01-28-2001 11:41 AM


All times are GMT -5. The time now is 07:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration