Gentoo Archives: gentoo-user

From: maxim wexler <blissfix@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ttyS0 conflict was UPS recommendation
Date: Fri, 16 May 2008 21:57:28
Message-Id: 558187.73071.qm@web31703.mail.mud.yahoo.com
In Reply to: Re: [gentoo-user] UPS recommendation by maxim wexler
1 > Thanks for your exhaustive replies. I've decided to go
2 > for the APC ES-350 for seventy bucks at the local Staples.
3
4 been following this page:
5
6 http://gentoo-wiki.com/HOWTO_APCUPSD
7
8 Kernel seems to have all the right stuff...
9
10 heathen@localhost ~ $ emerge -pv apcupsd
11
12 These are the packages that would be merged, in order:
13
14 Calculating dependencies... done!
15 [ebuild R ] sys-power/apcupsd-3.12.4 USE="ncurses usb -cgi -doc -nls -snmp -threads -vhosts" 0 kB
16
17 #rc-update add apcupsd default. So far so good.
18
19 $cat /proc/bus/usb/devices
20
21 <...>
22 T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
23 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
24 P: Vendor=051d ProdID=0002 Rev= 1.06
25 S: Manufacturer=APC
26 S: Product=Back-UPS ES 350 FW:823.B1.D USB FW:B1
27 S: SerialNumber=3B0742X02836
28 C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
29 I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
30 E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=10ms
31 <...>
32
33 But when I try dialup I get this:
34
35 Device ttyS0 is blocked by PID 3981
36
37 which turns out is apcupsd. So I have to kill it before I can dial out.
38 Sure enough, in the conf file there is this: DEVICE /dev/ttyS0.
39
40 Which makes me wonder why it needs /dev/ttyS0? I'm using an external USR modem which uses ttyS0.
41
42 If I don't need to protect a fax-machine why do I need that phone line connector in the back of the UPS device anyway? When the power goes I don't care if the modem dies.
43
44 Can I just tell it to use one of these other /dev/ttyS*? If I comment out that DEVICE line will the thing still protect my PC?
45
46 heathen@localhost ~ $ ls /dev/ttyS*
47 /dev/ttyS0 /dev/ttyS1 /dev/ttyS2 /dev/ttyS3
48
49 Maxim
50
51
52
53
54
55
56
57
58 --
59 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] ttyS0 conflict was UPS recommendation Neil Bothwick <neil@××××××××××.uk>