Re: sound on Compaq Presario (and kernel question)
On Wed, 22 Mar 2006, Ariff Abdullah wrote: You left out options PREEMPTION in your kernel, which is pretty much *mandatory* for snd_atiixp driver. Put it back, recompile your kernel, and try again. Thanks. It works now! /wokka -- Doktorand, Institutionen för kärn- och partikelfysik Uppsala universitet http://www3.tsl.uu.se/~akesson/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sound on Compaq Presario (and kernel question)
On Wed, 22 Mar 2006, Ariff Abdullah wrote: On Tue, 21 Mar 2006 18:46:25 +0100 (CET) Anna Davour [EMAIL PROTECTED] wrote: Trying to get the sound to work on my Compaq Presario M2000. Now uname -a gives: FreeBSD possession 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Thu Mar 9 20:27:08 CET 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/KERNEL2 i386 1) Don't compile sound support into your kernel, remove any device sound/snd or whatsoever from there. 2) Don't kldload snd_driver . Use kldload sound and kldload snd_atiixp 3) If the above doesn't work, post your kernel config here, also the output of vmstat -i OK. I have tried 1) and 2), and still don't get it to work. Kernel config is attached, and vmstat -i gives possession# vmstat -i interrupt total rate irq1: atkbd01650 0 irq12: psm030536 17 irq13: npx01 0 irq14: ata0 7014 4 irq15: ata1 40 0 irq17: pcm01 0 irq18: rl0 5754 3 irq19: ohci0 ohci1 2 0 irq21: acpi0 311 0 cpu0: timer 3443599 1998 Total3488908 2024 /wokka -- Doktorand, Institutionen för kärn- och partikelfysik Uppsala universitet http://www3.tsl.uu.se/~akesson/# # modified from GENERIC -- Generic kernel configuration file for FreeBSD/i386 # machine i386 cpu I686_CPU ident KERNEL2 # To statically compile in device wiring instead of /boot/device.hints #hints GENERIC.hints # Default places to look for devices. options SCHED_4BSD # 4BSD scheduler options INET# InterNETworking options INET6 # IPv6 communications protocols options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options MD_ROOT # MD is a potential root device options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS# Pseudo-filesystem framework options GEOM_GPT# GUID Partition Tables. options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 # Compatible with FreeBSD options COMPAT_FREEBSD5 # Compatible with FreeBSD4 options SCSI_DELAY=15000# Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options KBD_INSTALL_CDEV# install a CDEV entry in /dev options AHC_REG_PRETTY_PRINT# Print register bitfields in debug # output. Adds ~128k to driver. options AHD_REG_PRETTY_PRINT# Print register bitfields in debug # output. Adds ~215k to driver. options ADAPTIVE_GIANT # Giant mutex is adaptive. device apic# I/O APIC # don't know what this is, apparently needed for X device io # IPFW Firewall settings options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=10 options IPFIREWALL_DEFAULT_TO_ACCEPT options DUMMYNET options HZ=1000 # Bus support. Do not remove isa, even if you have no isa slots device isa device eisa device pci # ATA and ATAPI devices device ata device atadisk # ATA disk drives device ataraid # ATA RAID drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives device atapist # ATAPI tape drives options ATA_STATIC_ID # Static device numbering # SCSI Controllers device ahb # EISA AHA1742 family device ahc # AHA2940 and onboard AIC7xxx devices device ahd # AHA39320/29320 and onboard AIC79xx devices device amd # AMD 53C974 (Tekram DC-390(T)) device isp # Qlogic family device mpt # LSI-Logic MPT-Fusion device
Re: sound on Compaq Presario (and kernel question)
Anna Davour wrote: On Wed, 22 Mar 2006, Ariff Abdullah wrote: On Tue, 21 Mar 2006 18:46:25 +0100 (CET) Anna Davour [EMAIL PROTECTED] wrote: Trying to get the sound to work on my Compaq Presario M2000. Now uname -a gives: FreeBSD possession 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Thu Mar 9 20:27:08 CET 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/KERNEL2 i386 1) Don't compile sound support into your kernel, remove any device sound/snd or whatsoever from there. 2) Don't kldload snd_driver . Use kldload sound and kldload snd_atiixp 3) If the above doesn't work, post your kernel config here, also the output of vmstat -i OK. I have tried 1) and 2), and still don't get it to work. Kernel config is attached, and vmstat -i gives Sorry, I got late into this thread and lost your first post. 1st: when having this kind of kernel problems it is good practice to go back and try the GENERIC kernel configuration. Then we all know what you are talking about, once the problem is solved you can try to tune it. 2nd: kldload sound may not load the driver you need - now I didn't see your first post so I don't know if you identified the correct driver. Anyway, you can try the snd_ modules one by one. 3rd: Long ago, a common mistake was not to turn up the volume (yeah, I know it's silly). Try using mixer. Still out of luck? If you use the GENERIC kernel, then show us output of: # kldstat # sysctl -a|grep snd Hope this helps, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt Subject ID: 9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72 Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sound on Compaq Presario (and kernel question)
On Wed, 22 Mar 2006 12:30:05 +0100 (CET) Anna Davour [EMAIL PROTECTED] wrote: On Wed, 22 Mar 2006, Ariff Abdullah wrote: On Tue, 21 Mar 2006 18:46:25 +0100 (CET) Anna Davour [EMAIL PROTECTED] wrote: Trying to get the sound to work on my Compaq Presario M2000. Now uname -a gives: FreeBSD possession 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Thu Mar 9 20:27:08 CET 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/KERNEL2 i386 1) Don't compile sound support into your kernel, remove any device sound/snd or whatsoever from there. 2) Don't kldload snd_driver . Use kldload sound and kldload snd_atiixp 3) If the above doesn't work, post your kernel config here, also the output of vmstat -i OK. I have tried 1) and 2), and still don't get it to work. Kernel config is attached, and vmstat -i gives You left out options PREEMPTION in your kernel, which is pretty much *mandatory* for snd_atiixp driver. Put it back, recompile your kernel, and try again. -- Ariff Abdullah FreeBSD pgpkPWyDGGXoD.pgp Description: PGP signature
sound on Compaq Presario (and kernel question)
Trying to get the sound to work on my Compaq Presario M2000. With version 5.4 everything worked fine except sound and ACPI. After looking at http://people.freebsd.org/~ariff/ I had the impression that I could get the sound to work by applying the provided patch, but that it should work without extra tricks if I upgraded to version 6 of the kernel. Well, I didn't succeed with the patch, but since I didn't think sound so important I let it be for the moment. Later I decided to upgrade anyway, and now I return to the sound problem. Now uname -a gives: FreeBSD possession 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Thu Mar 9 20:27:08 CET 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/KERNEL2 i386 Here I must ask what PRERELEASE actually means. It's not in the handbook as far as I can see. This is the message I get when starting KDE, unchanged since before the kernel upgrade: Sound server informational message: Error while initializing the sound driver: device /dev/dsp can't be opened (No such file or directory) The sound server will continue, using the null output device. When I do kldload snd_driver the following message appears on the console: pcm0: ATI IXP 400 mem 0xc0003400-0xc00034ff irq 17 at device 20.5 on pci0 pcm0: WARNING: timeout during codec detection; codecs might be present but haven't interrupted What does this mean? It seems to find the right module, but it still doesn't work and I don't understand the message. Now, according to instructions I also run the following: possession# pciconf -lv | grep -B 4 audio subclass = PCI-PCI [EMAIL PROTECTED]:20:5: class=0x040100 card=0x3091103c chip=0x43701002 rev=0x02 hdr=0x00 vendor = 'ATI Technologies Inc' class= multimedia subclass = audio possession# sysctl hw.snd.verbose=2 hw.snd.verbose: 1 - 2 possession# cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: possession# sysctl hw.snd hw.snd.report_soft_formats: 1 hw.snd.targetirqrate: 32 hw.snd.verbose: 2 hw.snd.maxautovchans: 0 hw.snd.unit: 0 possession# /usr/sbin/mixer mixer: /dev/mixer: No such file or directory And by the way I got another problem as well. After upgrading the kernel I had a strange crash where the screen turned white (actually grey with some vague patterns) and I could do nothing except turning off the power. Could not contact the computer from outside, it was really dead. It only happened once, but I would like to know why -- or if anyone else has seen a similar behaviour. Lots of questionmarks here. I will greatly appreciate to get some of them straightened out. /wokka -- Doktorand, Institutionen för kärn- och partikelfysik Uppsala universitet http://www3.tsl.uu.se/~akesson/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sound on Compaq Presario (and kernel question)
On Tue, 21 Mar 2006 18:46:25 +0100 (CET) Anna Davour [EMAIL PROTECTED] wrote: Trying to get the sound to work on my Compaq Presario M2000. With version 5.4 everything worked fine except sound and ACPI. After looking at http://people.freebsd.org/~ariff/ I had the impression that I could get the sound to work by applying the provided patch, but that it should work without extra tricks if I upgraded to version 6 of the kernel. Well, I didn't succeed with the patch, but since I didn't think sound so important I let it be for the moment. Later I decided to upgrade anyway, and now I return to the sound problem. Now uname -a gives: FreeBSD possession 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Thu Mar 9 20:27:08 CET 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/KERNEL2 i386 Here I must ask what PRERELEASE actually means. It's not in the handbook as far as I can see. 1) Don't compile sound support into your kernel, remove any device sound/snd or whatsoever from there. 2) Don't kldload snd_driver . Use kldload sound and kldload snd_atiixp 3) If the above doesn't work, post your kernel config here, also the output of vmstat -i -- Ariff Abdullah FreeBSD pgpUWuMsTOOVN.pgp Description: PGP signature