Hi there,

I'm new to this list.  Could you please give me suggestions about
enhancement of Linux USB driver, so that we can control port power of
USB Hub from user space?

I did an experiment with Elecom's USB hub [1] and USB-coupled AC power
code [2].  Original usage of USB-coupled AC power code is disabling
priter and/or display's power automatically when PC is turned off.

The combination of USB-coupled AC power code and USB hub's port
control gives us control of AC power from command line. This brilliant
idea was by my friend, TANAKA 'akr' Akira.  That's the purpose.

For my own experiment, I hacked linux/drivers/usb/core/hub.c so that
it exports a variable with sysfs to control port power.  This
experiment succeeded, I could control AC power by changing the
variable of sysfs.  (Actually, I found that many USB hubs don't
support control of port power, even if chips support the feature.  I
had to buy new one, that's Elecom U2H-G4S.)

I think that controling port power is quite useful feature.  It would
be better to have some character device, say, /dev/usb/hub0 or
something, and to control port power through this character device.

Any thoughts?

References (in Japanese):
[1] Elecom U2H-G4S:
    http://www2.elecom.co.jp/peripheral/usb-hub/u2h-g4s/

[2] USB-coupled AC power code:
    http://www2.elecom.co.jp/products/T-J03USB.html
    http://www.sanwa.co.jp/product/syohin.asp?code=TAP-RE7U&cate=1
-- 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to