Discuss EVDO PC Cards, ExpressCards, EVDO USB, PDAs, Phones, Coverage and Mobile Broadband Cards. Discuss Verizon and Sprint Coverage. CradlePoint CTR350 / PHS300/ MBR1000 & Kyocera KR1 / KR2 & LinkSys WRT54G3G-ST Forums!
EVDOforums.com
Discussion forum for EVDO users
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Our sites Include: EVDO Info :: EVDO Forums :: EVDO Maps :: EVDO Blog :: 3Gstore.com

To purchase your EVDO Card / Antenna / Amplifier / Router from the EVDO Experts, just contact us!

u727 linux disable cdrom feature?

 
Post new topic   Reply to topic    EVDOforums.com Forum Index -> EVDO Developers & Technical
View previous topic :: View next topic  
Author Message
curtdodds
EVDO Newbie


Joined: 06 Mar 2008
Posts: 1
Location: So. CA

PostPosted: Thu Mar 06, 2008 12:18 am    Post subject: u727 linux disable cdrom feature? Reply with quote

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
View user's profile Send private message
twistx
EVDO Newbie


Joined: 14 Mar 2008
Posts: 10

PostPosted: Wed Mar 26, 2008 12:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
twistx
EVDO Newbie


Joined: 14 Mar 2008
Posts: 10

PostPosted: Wed Mar 26, 2008 1:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
sailwind
EVDO Newbie


Joined: 27 Mar 2008
Posts: 4

PostPosted: Thu Mar 27, 2008 4:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
twistx
EVDO Newbie


Joined: 14 Mar 2008
Posts: 10

PostPosted: Thu Mar 27, 2008 7:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
sailwind
EVDO Newbie


Joined: 27 Mar 2008
Posts: 4

PostPosted: Fri Mar 28, 2008 2:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
twistx
EVDO Newbie


Joined: 14 Mar 2008
Posts: 10

PostPosted: Tue Apr 01, 2008 12:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
sandmanfvr
EVDO Fledgling


Joined: 15 Aug 2007
Posts: 15

PostPosted: Wed Apr 23, 2008 12:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    EVDOforums.com Forum Index -> EVDO Developers & Technical All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum








Sprint Rev A USB: Compass 597



Sprint Rev A ExpressCard: Merlin EX720


Purchase an V740 Rev A ExpressCard


Sprint U727


CTR350 Router


CradlePoint PHS300


Purchase a MBR1000


Purchase an EVDO Booster Antenna

Purchase a LinkSys 3G Router



Purchase an EVDO Amplifier


Your Mac EVDO Experts









EVDO Antenna Booster





Digg Us :: del.icio.us :: technorati :: furl

4G :: 4G Forums :: PHS300 :: MBR1000 :: KR2