[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sheflug] Hald/Hotplug fun..



Hi,

John M Cooper wrote:

> I think that I did figure out a way to do it by adding the id to
> the kernel module source but in the end there did not seam to be a
> simple way.

I had a bit (read several hours...) messing around and debugging using
the hald tools and found that the usb-storage driver did not advertise
its ability to map to my usb device, but it could however control it,
obviously a typo someplace in the driver..

The inelegent solution what to add this to modprobe.conf

alias usb:v0FCEpD016d0000dc02dsc00dp00ic*isc*ip* usb-serial

since hald does a modprobe on the long string at some point :)

I got gnome to mount it by making sure I gave the memorystick a volume
label.

>> Would also be nice if it loaded usbserial (with correct ID's) 
> I did not know it did that! 

Yes, and very well it does too.. GPRS Easy Connect is a fine piece of
software for controlling the connections. There is also a whole
extension to the old AT command set for doing things to GSM phones,
like reading address books, sms messages and such things.. Tempting
ideas for future projects..


My final solution was a bit contrived.. into modprobe.conf

install usb:v0FCEpD016d0000dc02dsc00dp00ic*isc*ip* /sbin/modprobe
usb-storage; /sbin/modprobe sony-phone; /bin/true

remove usb:v0FCEpD016d0000dc02dsc00dp00ic*isc*ip* /sb   in/modprobe -r
usb-storage; /sbin/modprobe -r usbserial; /bin/true

alias sony-phone usbserial
options sony-phone product=0xd016 vendor=0x0fce

However it seems to work, and plug the phone in and everything starts
up nicely..


> It might just be that with a kernel upgrade it would
> work fine as there is no mention of the id in /etc/udev but it is
> in /lib/modules/`uname -r`/modules.usbmap which I think is generated
> from the kernel modules.

Yes, from what i gather the usbmapping and pci mapping is auto
generated from the modules strings at somepoint, so a mistake there
means no modules advertises its ability to load... but as mentioned
above, you can always alias the device and force a module to load if
its thought to work..

-- 
/\/\arc Kelly
..Just your average physicist trying to get by in a world full of
normal people...

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.