From owner-freebsd-questions@FreeBSD.ORG Tue May 14 20:21:03 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BC03181E for ; Tue, 14 May 2013 20:21:03 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from eu1sys200aog103.obsmtp.com (eu1sys200aog103.obsmtp.com [207.126.144.115]) by mx1.freebsd.org (Postfix) with ESMTP id 1714799A for ; Tue, 14 May 2013 20:21:02 +0000 (UTC) Received: from mail-wi0-f176.google.com ([209.85.212.176]) (using TLSv1) by eu1sys200aob103.postini.com ([207.126.147.11]) with SMTP ID DSNKUZKck57+MNelbsWXAzoU3hxF60ZaHElt@postini.com; Tue, 14 May 2013 20:21:03 UTC Received: by mail-wi0-f176.google.com with SMTP id hr14so4434227wib.15 for ; Tue, 14 May 2013 13:20:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-received:sender:date:from:message-id:to:subject :reply-to:x-gm-message-state; bh=m/P7/peCefNRFM9E2d9J2qszM6ES3erv7WVIUb+lbxY=; b=BVL6Y0opEkUs0brwEFW28hzGLQwOWFHSi/XqMsPZiR7ZxfI6dnoBf/vXGL6Ig8VC77 U3ihDNA0z40Kt9z8KIIzYksw0fHVZPDJlNnzdzX51zvM1McjPGN5b2sqZTYbnQ/AHSnE wC1Qci/8qndPnZTfrh3Zns3UetB2wI5ImL4HK4MHnJUnHqUBxz9BUPsh3GEYt2+kIpwd ajRnOIX5lKQivo0tl8FG3H14cBZYza7rh8n2ZEV7UUx+E5Pl6t+/97SsSvDdP4EqfVXO ktAwrPTETvFOkzAhtaw9lPKqlY+E/vmWcdRXTKfVVZVmmfsZ7+sQe9qKCneH0yfUUE5M vksw== X-Received: by 10.180.72.227 with SMTP id g3mr10107039wiv.1.1368562835710; Tue, 14 May 2013 13:20:35 -0700 (PDT) X-Received: by 10.180.72.227 with SMTP id g3mr10107021wiv.1.1368562835604; Tue, 14 May 2013 13:20:35 -0700 (PDT) Received: from mech-cluster241.men.bris.ac.uk (mech-cluster241.men.bris.ac.uk. [137.222.187.241]) by mx.google.com with ESMTPSA id q13sm26270253wie.8.2013.05.14.13.20.33 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 May 2013 13:20:34 -0700 (PDT) Sender: Anton Shterenlikht Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.6/8.14.6) with ESMTP id r4EKKWfq065219 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 14 May 2013 21:20:32 +0100 (BST) (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.6/8.14.6/Submit) id r4EKKWeB065218 for freebsd-questions@freebsd.org; Tue, 14 May 2013 21:20:32 +0100 (BST) (envelope-from mexas) Date: Tue, 14 May 2013 21:20:32 +0100 (BST) From: Anton Shterenlikht Message-Id: <201305142020.r4EKKWeB065218@mech-cluster241.men.bris.ac.uk> To: freebsd-questions@freebsd.org Subject: X breaks sound X-Gm-Message-State: ALoCoQm5857DcpPplsO1xqNJVMO+jAyNgqxmCxSqr96iI8mJ1oCp7dgFvok7N4TlQ+twzCxcDyeU/pAuPpx4yf2RhpgDojthGIxhA/qQO7Pdg2kYph+j8ZjiWHQ64KOUuTdIP0gKXDsgYHtSLi3C3wtA17MUhtnmNRV8jXVt/+aNfRWT9CS/Er8= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mexas@bristol.ac.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 May 2013 20:21:03 -0000 Briefly, the sound works fine until X starts. As soon as X starts, sound doesn't work until a reboot. This is HP Compaq 6715s laptop. I'm running current r250633. I have this sound device: hdac0@pci0:0:20:2: class=0x040300 card=0x30c2103c chip=0x43831002 rev=0x00 hdr=0x00 vendor = 'Advanced Micro Devices [AMD] nee ATI' device = 'SBx00 Azalia (Intel HDA)' class = multimedia subclass = HDA I use it with snd_hda(4): hdac0: mem 0xc0000000-0xc0003fff irq 16 at device 20. 2 on pci0 Until I start X, I can get sound e.g. via /dev/dsp, or play a cd with: dd if=/dev/cd0 of=/dev/dspcd bs=2352 As soon as I start X, either via xdm, or simply "X -config /roor/xorg.conf.new -retro" the sound does not work anymore until reboot. Instead I see on the console a very long stream of: hdac0: Unexpected unsolicited response from address 0: 00400083 hdac0: Unexpected unsolicited response from address 0: 00000000 hdac0: Unexpected unsolicited response from address 0: 04a12020 hdac0: Unexpected unsolicited response from address 0: 00001727 hdac0: Unexpected unsolicited response from address 0: 00000020 hdac0: Unexpected unsolicited response from address 0: 00400187 hdac0: Unexpected unsolicited response from address 0: 00000002 hdac0: Unexpected unsolicited response from address 0: 00000e03 hdac0: Unexpected unsolicited response from address 0: 0181302e hdac0: Unexpected unsolicited response from address 0: 00001737 etc. and sometimes: hdac0: Command timeout on address 0 hdac0: Reset setting timeout pcm0: chn_write(): pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead My graphics device is: vgapci0@pci0:1:5:0: class=0x030000 card=0x30c2103c chip=0x791f1002 rev=0x00 hdr=0x00 vendor = 'Advanced Micro Devices [AMD] nee ATI' device = 'RS690M [Radeon X1200 Series]' class = display subclass = VGA which is seen in dmesg as: vgapci0: port 0x4000-0x40ff mem 0xc0100000-0xc80fffff,0 xd0200000-0xd020ffff,0xd0300000-0xd03fffff irq 19 at device 5.0 on pci1 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 I use x11-drivers/xf86-video-ati port to drive it. In Xorg logs I see that the card is recognised correctly: (--) PCI:*(0:1:5:0) 1002:791f:103c:30c2 Advanced Micro Devices [AMD] nee ATI RS6 90M [Radeon X1200 Series] rev 0, Mem @ 0xc0000000/134217728, 0xd0200000/65536, 0 xd0300000/1048576, I/O @ 0x00004000/256, BIOS @ 0x????????/65536 The only issue seems to be with DRM/DRI: drmOpenDevice: node name is /dev/dri/card0 Failed to change owner or group for file /dev/dri! 2: No such file or directory Failed to change owner or group for file /dev/dri/card0! 2: No such file or dire ctory drmOpenDevice: open result is -1, (No such file or directory) Failed to change owner or group for file /dev/dri/card0! 2: No such file or dire ctory drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: Open failed [drm] failed to load kernel module "radeon" (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM [dri] Disabling DRI. But I don't think this is related to the sound problem. Anyway, should I add radeon and drm to the kernel? Is it a good idea? I'd be grateful for any advice. Thanks Anton