Where is usb/devices file in Ubuntu 9.10?

2010 March 12

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’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’s post usbfs: deprecate and hide option for !embedded. usbfs was enabled #417748 and disabled#488274 in Karmic Koala Released and Proposed version.

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:

person@CANONICAL-DESK:/proc/bus$ mount
/dev/sda6 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)

….

person@CANONICAL-DESK:/proc/bus$person@CANONICAL-DESK:/proc/bus$

person@CANONICAL-DESK:/proc/bus$ uname -a
Linux CANONICAL-DESK 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:05:19 UTC 2010 i686 GNU/Linux
person@CANONICAL-DESK:/proc/bus$ cat /sys/kernel/debug/usb/devices

T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=046d ProdID=0a12 Rev= 1.00
S:  Manufacturer=Logitech
S:  Product=Logitech Wireless Headset
C:* #Ifs= 4 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00 Driver=snd-usb-audio
I:* If#= 1 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
I:  If#= 1 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E:  Ad=01(O) Atr=09(Isoc) MxPS= 288 Ivl=1ms
I:* If#= 2 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
I:  If#= 2 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E:  Ad=82(I) Atr=05(Isoc) MxPS=  32 Ivl=1ms
I:* If#= 3 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=10ms


person@CANONICAL-DESK:/proc/bus$

Currently i am testing this on Ubuntu 10.04 (Lucid Lynx) Alpha 3, and behavior is almost same. But it contains  new version of usbutils, which has new shell script called “usb-devices”. 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

hardik@hardik-desktop:~$ uname -a
Linux hardik-desktop 2.6.32-16-generic-pae #25-Ubuntu SMP Tue Mar 9 18:03:39 UTC 2010 i686 GNU/Linux
hardik@hardik-desktop:~$ usb-devices

T:  Bus=01 Lev=02 Prnt=02 Port=04 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=046d ProdID=c52e Rev=15.00
S:  Manufacturer=Logitech
S:  Product=USB Receiver
C:  #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=98mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbhid
I:  If#= 1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid

This question  was asked by my  friend Mr.  Sunil and  it turns in to  blog :) . That’s it for now…

Netbook With Pre-Installed Ubuntu and Lotus Symphony Suite

2010 January 21
by Hardik Dalwadi

If you are frequent visitors of this site, you would have remembered that, some time ago i have written blog about Desktop PC with Pre-installed Ubuntu.

Now time for Netbook. India based MNC Simmtronics Semiconductors has launched SimmBook with Pre-installed Ubuntu.

Also, SimmBook will come with Pre-installed Ubuntu + IBM Client For Smart Work On Ubuntu. This includes Lotus Symphony office productivity software which is made available at no charge to SimmBook customers.
Please find this news bulletin for more information.

Also Canonical offers dedicated support program for Lotus Symphony, the core component of IBM Client for Smart Work on Ubuntu. Here is another news bulletin for more information.

Complete Press release of Canonical + IBM + Simmtronics Semicondutors offerings on IBM Site. The best thing about this combination is that it will help Enterprise Customers to lower down their TCO.

Empathy is now working with gnome-ppp (PPPD) connection on Ubuntu 9.10

2010 January 18
by Hardik Dalwadi

Since Reliance NetConnect Broadband+ modem is not working with Network Manager, Ubuntu 9.10. I am using it with gnome-ppp.  But  great workaround omes with great bugs :( . Now my Empathy is not working, which is one of best feature of Ubuntu 9.10 release. As i am frequent user of GTALK / Desktop Sharing facility, it’s legitimate to say this statment ;)

In simple word, if you are on ppp connection (Say Reliance NetConnect Broadband+),  empathy would not connect. It will give connection error. Here is quick workaround:

Launch Gnome Configuration Editor (gconf Editor) :: ALT + F2 -> gconf-editor

Search for “Empathy” :: Ctrl + F -> “Empathy”

In List of search result, look for “/apps/empathy”

In List of  keys, look for “use_conn”

Uncheck checkbox of “use_conn” value and close it

Now connect Empathy over your ppp connection.  Now i can say great workaround comes with another great workaround :)

Completed One Year @ Canonical

2010 January 6
tags:
by Hardik Dalwadi

Hi,

Just now, Hardik has realized that he has joined Canonical 1 year back on 5th January, 2009. That means, He had completed one year!!! Hurray!!!  He told me that he could define this one year journey in just one word AWESOME!!!.

Wow!!! That’s great. Continue… I am wishing him great and exciting new year, Many More To Come…. Here is quote from Hardik on this occasion…

“It’s great to be part of this very unique company. I am still learning. Everyday is coming with new challenges and excitement. Working from home is very unique experience i learned from this company. Proud to be part of Canonical :)

Transfer your download from Firefox to wget

2009 December 27
by Hardik Dalwadi

Hi,

I have to test  Pre-released Netbook with Ubuntu Netbook Remix (9.04), Now it’s known as Ubuntu Netbook Edition, that’s different story. So in hurry i started my download in Firefox. It was fine for me. But suddenly my friend called me to go for 3 Idiots, So i opened www.bookmyshow.com to book the ticket, but found very slow speed due to UNR download.  So i stopped it, booked ticket for 3 idiots, Bingo!!!

But, i have to also resume my old UNR download. Opps!!! When i pressed “Resume” button on Firefox Download Manager, It has thrown some error, i was not bothered about it, because it’s common for me. But this time i was more excited about to solve that problem. Just got the access of /bin/bash in mood of some hacking / shacking ;) .

Here is  my  code snap shot”

person@CANONICAL-DESK:~/Downloads$ ls -ltr
total 1462988

-rw——- 1 person person         0 2009-12-27 12:38 ubuntu-9.04-netbook-remix-i386.img
-rw——- 1 person person 249075955 2009-12-27 13:05 ubuntu-9.04-netbook-remix-i386.img.part
person@CANONICAL-DESK:~/Downloads$ mv ubuntu-9.04-netbook-remix-i386.img.part ubuntu-9.04-netbook-remix-i386.img
person@CANONICAL-DESK:~/Downloads$ wget http://releases.ubuntu.com/jaunty/ubuntu-9.04-netbook-remix-i386.img -c
–2009-12-27 13:11:04–  http://releases.ubuntu.com/jaunty/ubuntu-9.04-netbook-remix-i386.img
Resolving releases.ubuntu.com… 91.189.88.32, 2001:6b0:e:2018::173, 2001:7b8:3:37::21:1
Connecting to releases.ubuntu.com|91.189.88.32|:80… connected.
HTTP request sent, awaiting response… 206 Partial Content
Length: 992837632 (947M), 743761677 (709M) remaining [application/octet-stream]
Saving to: `ubuntu-9.04-netbook-remix-i386.img’

100%[+++++++++=========>] 99,28,37,632 88.2K/s   in 55m 13s

2009-12-27 14:06:19 (219 KB/s) – `ubuntu-9.04-netbook-remix-i386.img’ saved [992837632/992837632]

person@CANONICAL-DESK:~/Downloads$ ^C

I hope you would  have got my so called “Hack / Shack”.  That was so straight, not more then 10 seconds :) . Anybody can test it for me, if we restart the machine? Are we able to start the download with same hack? Next lesson for you…

Now, time for 3 Idiots ;)

:wq

Hardik Dalwadi