On 9/21/07, Giuseppe Sacco <[EMAIL PROTECTED]> wrote: > On Thu, 20 Sep 2007 11:15:16 -0500 "Lukasz Szybalski" <[EMAIL PROTECTED]> > wrote: > [...] > > faxserver:/home/xxxx# faxaddmodem > > Serial port that modem is connected to [ttyS0]? ttyS3 > > Sorry, the device is currently in use by another program. > > Hi Lukasz, > I think I found the problem: when faxaddmodem test the availability of the > device, it check for a lock. This lock is usually a file. > Could you please check if you have files like /var/lock/LCK..ttyS* ?
Probing for best speed to talk to modem: 38400 19200 9600 4800 2400 1200 Unable to deduce DTE-DCE speed; check that you are using the correct device and/or that your modem is setup properly. If all else fails, try the -s option to lock the speed. faxserver:/home/xxx# faxaddmodem Serial port that modem is connected to [ttyS0]? ttyS3 Sorry, the device is currently in use by another program. faxserver:/home/xxxx# cat /var/lock/LCK..ttyS3 6302 faxserver:/home/xxxx# ps -A PID TTY TIME CMD 1 ? 00:00:01 init 2 ? 00:00:00 migration/0 3 ? 00:00:00 ksoftirqd/0 4 ? 00:00:00 migration/1 5 ? 00:00:00 ksoftirqd/1 6 ? 00:00:00 events/0 7 ? 00:00:00 events/1 8 ? 00:00:00 khelper 9 ? 00:00:00 kthread 13 ? 00:00:00 kblockd/0 14 ? 00:00:00 kblockd/1 15 ? 00:00:00 kacpid 107 ? 00:00:00 kseriod 149 ? 00:00:00 pdflush 150 ? 00:00:00 pdflush 151 ? 00:00:00 kswapd0 152 ? 00:00:00 aio/0 153 ? 00:00:00 aio/1 311 ? 00:00:00 kirqd 642 ? 00:00:00 khubd 680 ? 00:00:00 ata/0 681 ? 00:00:00 ata/1 682 ? 00:00:00 ata_aux 780 ? 00:00:00 scsi_eh_0 781 ? 00:00:00 scsi_eh_1 1114 ? 00:00:00 kjournald 1302 ? 00:00:00 udevd 1736 ? 00:00:00 kpsmoused 2018 ? 00:00:00 kmirrord 2361 ? 00:00:00 portmap 2619 ? 00:00:00 syslogd 2625 ? 00:00:00 klogd 2661 ? 00:00:00 hpiod 2665 ? 00:00:00 python 2759 ? 00:00:00 mysqld_safe 2796 ? 00:00:00 mysqld 2797 ? 00:00:00 logger 2910 ? 00:00:00 acpid 2934 ? 00:00:00 cupsd 2947 ? 00:00:00 dbus-daemon 2955 ? 00:00:01 hald 2956 ? 00:00:00 hald-runner 2962 ? 00:00:00 hald-addon-acpi 2973 ? 00:00:00 hald-addon-keyb 2979 ? 00:00:00 hald-addon-stor 2990 ? 00:00:00 dhcdbd 2997 ? 00:00:00 NetworkManager 3012 ? 00:00:00 avahi-daemon 3013 ? 00:00:00 avahi-daemon 3020 ? 00:00:00 NetworkManagerD 3084 ? 00:00:00 exim4 3510 ? 00:00:00 dhclient 4126 ? 00:00:00 faxq 4128 ? 00:00:00 hfaxd 4178 ? 00:00:00 papd 4180 ? 00:00:00 afpd 4182 ? 00:00:00 cnid_metad 4210 ? 00:00:00 nfsd4 4211 ? 00:00:00 nfsd 4212 ? 00:00:00 nfsd 4213 ? 00:00:00 nfsd 4214 ? 00:00:00 nfsd 4215 ? 00:00:00 nfsd 4216 ? 00:00:00 nfsd 4217 ? 00:00:00 nfsd 4218 ? 00:00:00 nfsd 4220 ? 00:00:00 lockd 4221 ? 00:00:00 rpciod/0 4222 ? 00:00:00 rpciod/1 4225 ? 00:00:00 rpc.mountd 4235 ? 00:00:00 inetd 4260 ? 00:00:01 nmbd 4262 ? 00:00:00 smbd 4268 ? 00:00:00 smbd 4273 ? 00:00:00 sshd 4292 ? 00:00:00 winbindd 4341 ? 00:00:00 winbindd 4361 ? 00:00:00 gdm 4367 ? 00:00:00 gdm 4368 tty7 00:00:02 Xorg 4375 ? 00:00:00 rpc.statd 4387 ? 00:00:00 rpc.idmapd 4426 ? 00:00:00 atd 4440 ? 00:00:00 cron 4468 tty1 00:00:00 getty 4469 tty2 00:00:00 getty 4470 tty3 00:00:00 getty 4471 tty4 00:00:00 getty 4472 tty5 00:00:00 getty 4473 tty6 00:00:00 getty 5940 ? 00:00:00 x-session-manag 5983 ? 00:00:00 ssh-agent 5986 ? 00:00:00 dbus-launch 5987 ? 00:00:00 dbus-daemon 5989 ? 00:00:00 gconfd-2 5992 ? 00:00:00 gnome-keyring-d 5994 ? 00:00:00 bonobo-activati 5996 ? 00:00:00 gnome-settings- 5999 ? 00:00:00 metacity 6010 ? 00:00:00 gnome-panel 6012 ? 00:00:01 nautilus 6018 ? 00:00:00 gnome-volume-ma 6020 ? 00:00:00 vino-session 6022 ? 00:00:00 bluetooth-apple 6024 ? 00:00:00 update-notifier 6026 ? 00:00:00 wnck-applet 6031 ? 00:00:00 gnome-vfs-daemo 6033 ? 00:00:00 nm-applet 6035 ? 00:00:00 gnome-cups-icon 6039 ? 00:00:00 gnome-power-man 6043 ? 00:00:00 gnome-netstatus 6045 ? 00:00:00 multiload-apple 6047 ? 00:00:00 trashapplet 6050 ? 00:00:00 modem_applet 6051 pts/0 00:00:02 perl 6055 ? 00:00:00 mapping-daemon 6059 ? 00:00:00 mixer_applet2 6061 ? 00:00:00 clock-applet 6064 ? 00:00:00 notification-ar 6126 ? 00:00:00 notification-da 6180 ? 00:00:02 gksu 6198 ? 00:00:00 gnome-screensav 6236 pts/2 00:00:00 su 6258 pts/2 00:00:00 gksu-run-helper 6263 pts/2 00:00:00 gnome-terminal 6265 pts/2 00:00:00 gconfd-2 6267 ? 00:00:00 bonobo-activati 6268 pts/2 00:00:00 gnome-pty-helpe 6269 pts/3 00:00:00 bash 6763 ? 00:00:05 firefox-bin 6937 pts/3 00:00:00 ps You are correct. faxaddmodem leaves a lock file in a var/lock/ I run this again. faxserver:/home/xxx# faxaddmodem Serial port that modem is connected to [ttyS0]? ttyS3 Sorry, the device is currently in use by another program. faxserver:/home/xxxx# rm /var/lock/LCK..ttyS3 faxserver:/home/xxxx# faxaddmodem Serial port that modem is connected to [ttyS0]? ttyS3 Ok, time to setup a configuration file for the modem. The manual page config(5) may be useful during this process. Also be aware that at any time you can safely interrupt this procedure. ........ Removing the lock worked. So next time I run a faxaddmodem. faxserver:/home/xxxx# cat /var/lock/LCK..ttyS3 7572 faxserver:/home/xxxx# ps -A |grep 7572 7572 pts/3 00:00:00 faxaddmodem But when its done. faxserver:/home/xxxx# ps -A |grep 7572 faxserver:/home/xxxx# cat /var/lock/LCK..ttyS3 7572 The lock stays. Thanks a lot, Lucas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]