| View previous topic :: View next topic |
| Author |
Message |
curtdodds EVDO Newbie
Joined: 06 Mar 2008 Posts: 1 Location: So. CA
|
Posted: Thu Mar 06, 2008 12:18 am Post subject: u727 linux disable cdrom feature? |
|
|
Using a Novatel u727 modem in kubuntu gutsy.
While it works well, I can't ask users to "eject the cdrom"
then open a terminal, unload drivers, re-load drivers etc.
EVERY time the system starts up?
Is there some way to disable the cdrom "feature" to get
around this, so the normal users don't have this problem?
Thanks for your time,
Curt |
|
| Back to top |
|
 |
twistx EVDO Newbie
Joined: 14 Mar 2008 Posts: 10
|
Posted: Wed Mar 26, 2008 12:19 pm Post subject: |
|
|
I'm curious about this myself. I think a small shell script executed by hotplug or the like should achieve what you're trying to do.
I'll let you know if I find a solution. |
|
| Back to top |
|
 |
twistx EVDO Newbie
Joined: 14 Mar 2008 Posts: 10
|
Posted: Wed Mar 26, 2008 1:26 pm Post subject: |
|
|
I found a solution to this via a udev rule.
I made a new rule in /etc/udev/rules.d/99-novatel.rules
| Code: | # rule to auto eject the cdrom device when u727 is plugged in and put it in a mode to dial out.
ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="Novatel_Mass_Storage_091080884120000-0:0", RUN+="/usr/bin/eject /dev/%k"
|
|
|
| Back to top |
|
 |
sailwind EVDO Newbie
Joined: 27 Mar 2008 Posts: 4
|
Posted: Thu Mar 27, 2008 4:13 pm Post subject: |
|
|
I'm searching for a way too. I can't reliably mount the device as a cdrom (Have USB Mass Storage/Dynamic Minor options turned on the kernel) so there's nothing under /dev to eject.
Is there a way to tell Linux to ignore the 5100 device id when USB scanning?? |
|
| Back to top |
|
 |
twistx EVDO Newbie
Joined: 14 Mar 2008 Posts: 10
|
Posted: Thu Mar 27, 2008 7:55 pm Post subject: |
|
|
I'm not sure of any other way to trigger the device to switch modes other than ejecting it.
The usb-storage module is required for the device to show up, but dmesg seems to indicate that it also requires scsi support. Try enabling scsi cdrom and scsi disk support in your kernel as well.
Here's my relevant dmesg log for the device when I plug it in, before its ejected.
| Code: |
usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi5 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 5:0:0:0: CD-ROM Novatel Mass Storage 1.00 PQ: 0 ANSI: 2
sr1: scsi-1 drive
sr 5:0:0:0: Attached scsi CD-ROM sr1
sr 5:0:0:0: Attached scsi generic sg2 type 5
usb-storage: device scan complete
|
|
|
| Back to top |
|
 |
sailwind EVDO Newbie
Joined: 27 Mar 2008 Posts: 4
|
Posted: Fri Mar 28, 2008 2:22 pm Post subject: |
|
|
My output is pretty much the same, without the /dev mount point. I've enabled the following in the kernel:
USB Mass Storage
Dynamic Minor
shared table of common storage devices
SCSI
/proc/scsi support
SCSI disk support
SCSI CDROM support
and just about everythingelse. Here's the output:
usb 1-1: Vendor: 1410
usb 1-1: Product: 5010
usb 1-1: Product: Novatel Wireless CDMA
usb 1-1: Manufacturer: Novatel Wireless Inc.
usb 1-1: SerialNumber: 091051064650000
usb 1-1: Vendor: 1410
usb 1-1: Product: 5010
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Novatel Model: Mass Storage Rev: 1.00
Type: CD-ROM ANSI SCSI revision: 02
sr0: scsi-1 drive
Uniform CD-ROM driver Revision: 3.20
sr 0:0:0:0: Attached scsi generic sg0 type 5 |
|
| Back to top |
|
 |
twistx EVDO Newbie
Joined: 14 Mar 2008 Posts: 10
|
Posted: Tue Apr 01, 2008 12:04 pm Post subject: |
|
|
| sailwind wrote: | My output is pretty much the same, without the /dev mount point. I've enabled the following in the kernel:
USB Mass Storage
Dynamic Minor
shared table of common storage devices
SCSI
/proc/scsi support
SCSI disk support
SCSI CDROM support
and just about everythingelse. Here's the output:
usb 1-1: Vendor: 1410
usb 1-1: Product: 5010
usb 1-1: Product: Novatel Wireless CDMA
usb 1-1: Manufacturer: Novatel Wireless Inc.
usb 1-1: SerialNumber: 091051064650000
usb 1-1: Vendor: 1410
usb 1-1: Product: 5010
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Novatel Model: Mass Storage Rev: 1.00
Type: CD-ROM ANSI SCSI revision: 02
sr0: scsi-1 drive
Uniform CD-ROM driver Revision: 3.20
sr 0:0:0:0: Attached scsi generic sg0 type 5 |
isn't that the device or is it an already existing cdrom? check for /dev/sr0 |
|
| Back to top |
|
 |
sandmanfvr EVDO Fledgling
Joined: 15 Aug 2007 Posts: 15
|
Posted: Wed Apr 23, 2008 12:51 pm Post subject: |
|
|
| The cd-rom is easy, for me is Ubuntu 7.10, in that I just right click the cd and hit EJECT. Not much to do. I sometimes doesn't even come up if I leave the thing plugged in. You did view Sprints PDF and how to load the driver at startup didn't you? |
|
| Back to top |
|
 |
|