<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Person @ CREATIVEDESK &#187; usb/devices usb-devices usbfs debugfs debuger</title>
	<atom:link href="http://hardik.in/tag/usbdevices-usb-devices-usbfs-debugfs-debuger/feed/" rel="self" type="application/rss+xml" />
	<link>http://hardik.in</link>
	<description>Hardik Dalwadi</description>
	<lastBuildDate>Mon, 26 Jul 2010 19:47:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Where is usb/devices file in Ubuntu 9.10?</title>
		<link>http://hardik.in/2010/03/12/where-is-usbdevices-file-in-ubuntu-9-10/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://hardik.in/2010/03/12/where-is-usbdevices-file-in-ubuntu-9-10/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 07:12:39 +0000</pubDate>
		<dc:creator>Hardik Dalwadi</dc:creator>
				<category><![CDATA[10.4]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Lucid Lynx]]></category>
		<category><![CDATA[Public]]></category>
		<category><![CDATA[Time Pass]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[usb/devices usb-devices usbfs debugfs debuger]]></category>

		<guid isPermaLink="false">http://hardik.in/?p=335</guid>
		<description><![CDATA[I am neither good developer nor good debuger, But since 9.10 upgradation / installation in my lab,  i could not find the usb/devices file in default path, which is: /proc/bus/usb/devices And, it&#8217;s default path if you are on kernel 2.6.31 and usbfs is mounted by Init. Now, Ubuntu 9.10 is using upstart instead of init. [...]]]></description>
			<content:encoded><![CDATA[<p>I am neither good developer nor good debuger, But since 9.10 upgradation / installation in my lab,  i could not find the usb/devices file in default path, which is:</p>
<blockquote><p>/proc/bus/usb/devices</p></blockquote>
<p>And, it&#8217;s default path if you are on kernel 2.6.31 and usbfs is mounted by Init. Now, Ubuntu 9.10 is using upstart instead of init. It was working fine in Ubuntu 9.04. So it brought me in big world of usbfs. From Scott&#8217;s post <a href="http://markmail.org/message/3mw5yw465qmxgnwp">usbfs: deprecate and hide option for !embedded.</a> usbfs was enabled <a title="Please enable CONFIG_USB_DEVICEFS" href="https://bugs.launchpad.net/bugs/417748">#417748</a> and disabled<a title="disable deprecated config option CONFIG_USB_DEVICEFS" href="https://bugs.launchpad.net/bugs/488274">#488274</a> in Karmic Koala Released and Proposed version.</p>
<p>Ok, Ping back to original query, Ubuntu 9.10 is mounting debugfs instead of usbfs, regardless of  usbfs in enabled / disabled in Kernel. So you will fine usb/devices file under /sys/kernel/debug directory, check below output:</p>
<blockquote><p>person@CANONICAL-DESK:/proc/bus$ mount<br />
/dev/sda6 on / type ext4 (rw,errors=remount-ro)<br />
proc on /proc type proc (rw)<br />
none on /sys type sysfs (rw,noexec,nosuid,nodev)<br />
none on /sys/fs/fuse/connections type fusectl (rw)<br />
none on /sys/kernel/debug type debugfs (rw)</p>
<p>&#8230;.</p>
<p>person@CANONICAL-DESK:/proc/bus$person@CANONICAL-DESK:/proc/bus$</p>
<p>person@CANONICAL-DESK:/proc/bus$ uname -a<br />
Linux CANONICAL-DESK 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:05:19 UTC 2010 i686 GNU/Linux<br />
person@CANONICAL-DESK:/proc/bus$ cat /sys/kernel/debug/usb/devices</p>
<p>&#8230;</p>
<p>T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0<br />
D:  Ver= 1.10 Cls=00(&gt;ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1<br />
P:  Vendor=046d ProdID=0a12 Rev= 1.00<br />
S:  Manufacturer=Logitech<br />
S:  Product=Logitech Wireless Headset<br />
C:* #Ifs= 4 Cfg#= 1 Atr=80 MxPwr=100mA<br />
I:* If#= 0 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00 Driver=snd-usb-audio<br />
I:* If#= 1 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio<br />
I:  If#= 1 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio<br />
E:  Ad=01(O) Atr=09(Isoc) MxPS= 288 Ivl=1ms<br />
I:* If#= 2 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio<br />
I:  If#= 2 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio<br />
E:  Ad=82(I) Atr=05(Isoc) MxPS=  32 Ivl=1ms<br />
I:* If#= 3 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid<br />
E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=10ms</p>
<p>&#8230;<br />
person@CANONICAL-DESK:/proc/bus$</p></blockquote>
<p>Currently i am testing this on <a title="Ubuntu 9.10 (Lucid Lynx) Alpha 3" href="http://www.ubuntu.com/testing/lucid/alpha3" target="_blank">Ubuntu 10.04 (Lucid Lynx) Alpha 3,</a> and behavior is almost same. But it contains  new version of <a title="usbutils" href="https://launchpad.net/ubuntu/+source/usbutils" target="_blank">usbutils</a>, which has new shell script called &#8220;usb-devices&#8221;. It will give you connected USB buses with machine, regardless of where your usb/devices file is! and output is almost same. check below output</p>
<blockquote><p>hardik@hardik-desktop:~$ uname -a<br />
Linux hardik-desktop 2.6.32-16-generic-pae #25-Ubuntu SMP Tue Mar 9 18:03:39 UTC 2010 i686 GNU/Linux<br />
hardik@hardik-desktop:~$ usb-devices</p></blockquote>
<blockquote><p>&#8230;</p></blockquote>
<blockquote><p>T:  Bus=01 Lev=02 Prnt=02 Port=04 Cnt=01 Dev#=  3 Spd=12  MxCh= 0<br />
D:  Ver= 2.00 Cls=00(&gt;ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1<br />
P:  Vendor=046d ProdID=c52e Rev=15.00<br />
S:  Manufacturer=Logitech<br />
S:  Product=USB Receiver<br />
C:  #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=98mA<br />
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbhid<br />
I:  If#= 1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid</p></blockquote>
<blockquote><p>&#8230;</p></blockquote>
<p>This question  was asked by my  friend Mr.  Sunil and  it turns in to  blog <img src='http://hardik.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . That&#8217;s it for now&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://hardik.in/2010/03/12/where-is-usbdevices-file-in-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
