From mboxrd@z Thu Jan 1 00:00:00 1970 From: scott Date: Sun, 26 Nov 2006 23:50:15 +0000 Subject: How to configure the tty with a usb serial device Message-Id: <456A2837.7050109@waye.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Hello, Is hotplug the right place to set up (e.g. stty ispeed 4800) a USB=20 serial device? I can see that after udev runs and creates the=20 /dev/tts/USB0, the only call left to hotplug is with a type of tty. But=20 I have no tty.agent (of course I can cp usb.agent tty.agent which I've=20 done), but what would be the equivalent of usbmodules? Also how can=20 hotplug "know" the /dev/tts/USBx device that was created by the udev=20 rule, there doesn't seem to be any environment variable for that? kernel 2.6.15.4 Here is a section of debug: Nov 26 20:34:32 calera default.hotplug[7676]: no runnable=20 /etc/hotplug/usb-serial.agent is installed Nov 26 20:34:32 calera kernel: drivers/usb/serial/usb-serial.c: USB=20 Serial support registered for pl2303 Nov 26 20:34:32 calera kernel: pl2303 1-1:1.0: pl2303 converter detected Nov 26 20:34:32 calera kernel: usb 1-1: pl2303 converter now attached to=20 ttyUSB0 Nov 26 20:34:32 calera kernel: usbcore: registered new driver pl2303 Nov 26 20:34:32 calera kernel: drivers/usb/serial/pl2303.c: Prolific=20 PL2303 USB to serial adaptor driver Nov 26 20:34:32 calera default.hotplug[7689]: testing debug Nov 26 20:34:32 calera udev[7695]: udev_rules.c: rule applied, 'ttyUSB0'=20 becomes 'tts/USB0' Nov 26 20:34:32 calera udev[7695]: udev_add.c: creating device node=20 '/dev/tts/USB0' Nov 26 20:34:32 calera default.hotplug[7689]: arguments (tty) env=20 (PHYSDEVPATH=3D/devices/pci0000:00/0000:00:10.0/usb1/1-1/1-1:1.0/ttyUSB0 SUBSYSTEM=3Dtty OLDPWD=3D/ DEVPATH=3D/class/tty/ttyUSB0 MINOR=3D0=20 PATH=3D/bin:/sbin:/usr/sbin:/usr/bin ACTION=ADd PWD=3D/etc/hotplug MAJOR=18= 8=20 HOME=3D/ SHLVL=3D2 PHYSDEVDRIVER=3Dpl2303 DEBUG=3Dyes PHYSDEVBUS=3Dusb-serial SEQNU= Mf1=20 _=3D/usr/bin/env) Nov 26 20:34:32 calera default.hotplug[7689]: invoke=20 /etc/hotplug/tty.agent () Nov 26 20:34:32 calera tty.agent[7689]: testing debug Nov 26 20:34:32 calera tty.agent[7689]: load_drivers for tty and module Nov 26 20:34:32 calera tty.agent[7689]: lister is /sbin/ttymodules Nov 26 20:34:32 calera tty.agent[7689]: mapfile is /etc/hotplug/usb.usermap Nov 26 20:34:32 calera tty.agent[7689]: device is Nov 26 20:34:32 calera tty.agent[7689]: drivers is Nov 26 20:34:32 calera tty.agent[7689]: ... no modules for USB product ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel