From owner-freebsd-questions@FreeBSD.ORG Fri Jan 1 11:56:02 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9069E1065670 for ; Fri, 1 Jan 2010 11:56:02 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by mx1.freebsd.org (Postfix) with ESMTP id 0CF328FC16 for ; Fri, 1 Jan 2010 11:56:01 +0000 (UTC) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id o01Bu08Y027591; Fri, 1 Jan 2010 12:56:00 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 2DC9EB847; Fri, 1 Jan 2010 12:56:00 +0100 (CET) Date: Fri, 1 Jan 2010 12:56:00 +0100 From: Roland Smith To: Manish Jain Message-ID: <20100101115600.GA69250@slackbox.xs4all.nl> References: <4B3DDCDE.4040205@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <4B3DDCDE.4040205@gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Need help configuring upsd, sound and logo saver on freebsd 8.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jan 2010 11:56:02 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 01, 2010 at 05:00:38PM +0530, Manish Jain wrote: >=20 > I recently installed FreeBSD 8.0 on my amd64 system attached to an APC=20 > UPS via USB and a RealTek HDA onboard soundcard. I chose 'logo' as the=20 > screensaver during installation, and put snd_hda_load=3D"YES" in=20 > /boot/loader.conf and upsd_enable=3D"YES" in /etc/rc.conf. >=20 > On booting, the sound driver gets loaded successfully and the APC UPS is= =20 > also detected (although there is no mention of the UPS in the output of= =20 > dmesg). I have the following problems : If there is nothing in dmesg, how do you know if it is detected? > 1) There is no sound. AFAIK, there is a sysctl parameter to be tuned for= =20 > setting the correct audio channel (in my case hdac1), but I have=20 > forgotten the parameter name. Can someone please remind me ? I think 'hw.snd.default_unit' is the one you are looking for. The command '= cat /dev/sndstat' gives you an overview of which devices are available. Also have a look at the output of 'mixer'. Maybe some volume is just set to 0. :-) > 2) upsd complains of inappropriate ioctl no matter which USB device node= =20 > I set in /usr/local/etc/upsd.conf. How can I set the device name=20 > correctly so that the OS can shut itself down properly on extended power= =20 > failure ? If the UPS daemon acts as a serial device, it binds to the ucom(4) driver. = So you'd expect to see a /dev/cuaU? and /dev/ttyU? device. =20 > 3) For my console saver ('logo'), I get the following error message at=20 > boot-time : >=20 > module_register_init: MOD_LOAD (logo_saver, 0xffffffff81044010, 0) error = 19 Can't help you here. I never use it. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAks94s8ACgkQEnfvsMMhpyUGJwCgmhn6IWRWpF9BKcSGW1mAwoZ7 msoAn0bF+ebsMWZL+3hwZtk2Ek9PklZh =LAPg -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--