From owner-freebsd-questions@FreeBSD.ORG Sat Jun 20 20:58:50 2009 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 E55591065672 for ; Sat, 20 Jun 2009 20:58:50 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by mx1.freebsd.org (Postfix) with ESMTP id 921428FC08 for ; Sat, 20 Jun 2009 20:58:50 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id n5KKwmAf034642; Sat, 20 Jun 2009 22:58:49 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 96C36B85F; Sat, 20 Jun 2009 22:58:48 +0200 (CEST) Date: Sat, 20 Jun 2009 22:58:48 +0200 From: Roland Smith To: Manish Jain Message-ID: <20090620205848.GA53362@slackbox.xs4all.nl> References: <4A396736.8010808@gmail.com> <20090617222407.GB26045@slackbox.xs4all.nl> <4A3D4029.6090408@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: <4A3D4029.6090408@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.19 (2009-01-05) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: FreeBSD Mailing List Subject: Re: No sound, no mouse and now X applications won't start 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: Sat, 20 Jun 2009 20:58:51 -0000 --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 21, 2009 at 01:31:45AM +0530, Manish Jain wrote: >=20 > Hi Roland, >=20 > Looks like nobody at freebsd-questions has any answers for me. Maybe=20 > 7.2-x86 doesn't like newish amd hardware. Anyway, here are the=20 > contents of /dev/sndstat : >=20 > > FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) > > Installed devices: > > pcm0: at cad 0 nid 1 on hdac0 k= ld snd_hda [MPSAFE] (1p:1v/0r:0v channels default) > > pcm1: at cad 0 nid 1 on hdac1 kld sn= d_hda [MPSAFE] (1p:1v/1r:1v channels duplex) > > pcm2: at cad 0 nid 1 on hdac1 kld sn= d_hda [MPSAFE] (1p:1v/1r:1v channels duplex) > > pcm3: at cad 0 nid 1 on hdac1 kld s= nd_hda [MPSAFE] (1p:1v/1r:1v channels duplex) > I tried snd_hda, even though it's listed as the driver for Intel > HDA, not Realtek HDA on AMD hardware. It doesn't work. The volume > control applet still complains no sound device has been configured. The fact that /dev/sndstat exists means that there is a sound driver that works. From the contents you can see that it is indeed the snd_hda driver ("HDA Realtek ALC885 "). You can also see that there are four sound outputs. Currently the digital HDMI is the default. You can configure the sound hardware through sysctls. If you run "sysctl hw.snd" you'll see a list of things you can change. With 'sysctl -d' you can see what a particular sysctl does. In this case one that is interesting is 'hw.snd.default_unit'. The different outputs in /dev/sndstat will be connected to different sockets on the machine (e.g. front/back panel). Try setting hw.snd.default_unit to 1, 2 or 3 and see if that helps. It could be that you have to unload and reload the snd_hda module after setting the default channel. You might also have to restart the volume control applet. > /dev/ums0 does get created I if plug in the mouse after the login=20 > prompt has appeared. Ok. I think it should be a bug that the mouse isn't properly detected when connected at boot, but since the USB stack has been replaced in 8-CURRENT, I don't know if anyone is willing to go bughunting in the 7.x USB stack. > But the mouse would behave crazy till I changed the Xorg generated > xorg.conf's setting of ZAxisMapping from "4 5 6 7" to "4 5". That is not abnormal. A lot of mice need special zaxis mappings. > I have still more problems. After all ports finished installing,=20 > some X applications just don't start (eg Acroread). I can't any=20 > error messages from the terminal because gnome-terminal itself=20 > doesn't start. Then use an xterm instead of a gnome-terminal. Acroread depends on Linux emulation. Maybe you're missing some bits there? > Given time, maybe I could ultimately figure this problem out, but if=20 > you have any ready ideas, please be kind enough to share them me. >=20 > Here are some messages. =20 > #/var/log/console.log : > > Jun 20 01:17:01 pbbi kernel: Jun 20 01:17:01 pbbi pulseaudio[1276]: mai= n.c: Daemon startup without any loaded modules, refusing to work. I've never used pulseaudio. I prefer esound. > > Jun 20 01:18:04 pbbi kernel: Jun 20 01:18:04 pbbi gnome-keyring-daemon[= 1251]: dbus failure unregistering from session: Connection is closed This looks pretty harmless. > #/var/log/messages : > > Jun 20 02:00:07 pbbi kernel: info: [drm] Loading RS780 CP Microcode > > Jun 20 02:00:07 pbbi kernel: info: [drm] Loading RS780 PFP Microcode > > Jun 20 02:00:07 pbbi kernel: info: [drm] Resetting GPU > > Jun 20 02:00:07 pbbi kernel: info: [drm] writeback test succeeded in 1 = usecs > > Jun 20 02:00:07 pbbi kernel: drm0: [ITHREAD] > > Jun 20 02:00:07 pbbi console-kit-daemon[1135]: WARNING: kvm_getenvv fai= led Look at kvm_getenvv(3), in the BUGS section:=20 "In order for kvm_getenvv(3) to function correctly, procfs(5) must be mounted on /proc" > loader.conf looks like following : > > kern.maxdsiz=3D"734003200" > > ums_load=3D"YES" > > linprocfs_load=3D"YES" > > linsysfs_load=3D"YES" > > sound_load=3D"YES" > > snd_hda_load=3D"YES" Looks OK.=20 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) --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAko9TYgACgkQEnfvsMMhpyX91wCfdT8sxtt9qQzg6Ri1w/niontX cBEAn1LIr2PwUSqPaGF+CYzhXbCX1oFU =DZ+d -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--