Re: snd_hda blues

2010-01-08 Thread Sandra Kachelmann
On Mon, Jan 4, 2010 at 5:03 PM, Bob Johnson fbsdli...@gmail.com wrote:
 It is likely that whomever is able to help you will need additional
 information. You can get this information by rebooting your system and
 selecting Boot FreeBSD with verbose logging from the boot menu.
 After it boots, use grep hdac /var/run/dmesg.boot to extract the
 detailed information about your sound system configuration and post it
 back to freebsd-questions.

 If I have time I will try to look through the info and come up with a
 suggestion, but I must warn you in advance that I am unlikely to find
 the time in the next few days, so post the info to the list to give
 others a chance to look at it.

Hi Bob

Here is the information of a verbose boot. That's the output when i
have the following lines in my /boot/device.hints file:

hint.hdac.0.cad0.nid22.config=as=1 seq=15
hint.hdac.0.cad0.nid24.config=as=3
hint.hdac.0.cad0.nid26.config=as=1
hint.hdac.0.cad0.nid29.config=as=2

Let me know if you need the verbose output with a virgin
/boot/device.hints file - I don't think it would make a difference in
this case.

Thanks in advance.

Sandra


 - Bob


 On 1/4/10, Sandra Kachelmann s.kachelm...@googlemail.com wrote:
 I am trying to get my HDA based soundcard work on both output jacks
 (back by the card and on the jack on top of the tower).

 With earlier FreeBSD versions I was able to have my speakers plugged in
 on the back of my soundcard and whenever I would plug in the headphones
 on the top of the tower the speakers would mute and the sound would
 play on the headphones.

 Now this doesn't work anymore. The speakers work but plugging in the
 top tower jack won't do anything.

 Looking at man snd_hda I tried all the examples (adding stuff
 to /boot/device.hints). None of the examples did what I wanted.

 By googling a little bit I found a dude who had the same problem so I
 simply copied the device.hints lines that solved his problem.

 The following lines make my headphones work:

 hint.hdac.0.cad0.nid22.config=as=1 seq=15
 hint.hdac.0.cad0.nid24.config=as=3
 hint.hdac.0.cad0.nid26.config=as=1
 hint.hdac.0.cad0.nid29.config=as=2

 However, after that my speakers are mute, all the time. If anyone could
 help me restoring the old snd_hda behaviour I would be very thankful
 since I don't quite understand what the snd_hda manpage is trying to
 tell me (sorry, I really tried...).

 Here are the information I think might help:

 $ cat /dev/sndstat
 FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
 Installed devices: pcm0: HDA Realtek ALC883 PCM #0 Analog at cad 0
 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex
 default)

 Any help is gratefully apreciated.

 Sandra
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



 --
 -- Bob Johnson
   fbsdli...@gmail.com

hdac0: Intel 82801I High Definition Audio Controller mem 
0xf5ff8000-0xf5ffbfff irq 22 at device 27.0 on pci0
hdac0: HDA Driver Revision: 20091113_0138
hdac0: Reserved 0x4000 bytes for rid 0x10 type 3 at 0xf5ff8000
hdac0: attempting to allocate 1 MSI vectors (1 supported)
hdac0: using IRQ 256 for MSI
hdac0: [MPSAFE]
hdac0: [ITHREAD]
hdac0: Caps: OSS 4, ISS 4, BSS 0, NSDO 1, 64bit, CORB 256, RIRB 256
hdac0: Probing codec #0...
hdac0: HDA Codec #0: Realtek ALC883
hdac0:  HDA Codec ID: 0x10ec0883
hdac0:Vendor: 0x10ec
hdac0:Device: 0x0883
hdac0:  Revision: 0x00
hdac0:  Stepping: 0x02
hdac0: PCI Subvendor: 0x829f1043
hdac0:  Found audio FG nid=1 startnode=2 endnode=39 total=37
hdac0: 
hdac0: Processing audio FG cad=0 nid=1...
hdac0: GPIO: 0x4002 NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdac0:  nid 20 0x01014010 as  1 seq  0  Line-out  Jack jack  1 loc  1 color 
  Green misc 0
hdac0:  nid 21 0x01011012 as  1 seq  2  Line-out  Jack jack  1 loc  1 color 
  Black misc 0
hdac0:  nid 22 0x01016011 as  1 seq  1  Line-out  Jack jack  1 loc  1 color 
 Orange misc 0
hdac0: Patching pin config nid=22 0x01016011 - 0x0101601f
hdac0:  nid 23 0x01012014 as  1 seq  4  Line-out  Jack jack  1 loc  1 color 
   Grey misc 0
hdac0:  nid 24 0x01a19840 as  4 seq  0   Mic  Jack jack  1 loc  1 color 
   Pink misc 8
hdac0: Patching pin config nid=24 0x01a19840 - 0x01a19830
hdac0:  nid 25 0x02a19c50 as  5 seq  0   Mic  Jack jack  1 loc  2 color 
   Pink misc 12
hdac0:  nid 26 0x0181304f as  4 seq 15   Line-in  Jack jack  1 loc  1 color 
   Blue misc 0
hdac0: Patching pin config nid=26 0x0181304f - 0x0181301f
hdac0:  nid 27 0x02214c20 as  2 seq  0Headphones  Jack jack  1 loc  2 color 
  Green misc 12
hdac0:  nid 28 0x593301f0 as 15 seq  0CD  None jack  3 loc 25 color 
Unknown misc 1
hdac0: Patching widget caps nid=29 0x0040 - 0x0070
hdac0:  nid 30 0x01441130 as  3 seq  0 SPDIF-out  Jack jack  4 loc  1 color

snd_hda blues

2010-01-04 Thread Sandra Kachelmann
I am trying to get my HDA based soundcard work on both output jacks
(back by the card and on the jack on top of the tower).

With earlier FreeBSD versions I was able to have my speakers plugged in
on the back of my soundcard and whenever I would plug in the headphones
on the top of the tower the speakers would mute and the sound would
play on the headphones.

Now this doesn't work anymore. The speakers work but plugging in the
top tower jack won't do anything.

Looking at man snd_hda I tried all the examples (adding stuff
to /boot/device.hints). None of the examples did what I wanted.

By googling a little bit I found a dude who had the same problem so I
simply copied the device.hints lines that solved his problem.

The following lines make my headphones work:

hint.hdac.0.cad0.nid22.config=as=1 seq=15
hint.hdac.0.cad0.nid24.config=as=3
hint.hdac.0.cad0.nid26.config=as=1
hint.hdac.0.cad0.nid29.config=as=2

However, after that my speakers are mute, all the time. If anyone could
help me restoring the old snd_hda behaviour I would be very thankful
since I don't quite understand what the snd_hda manpage is trying to
tell me (sorry, I really tried...).

Here are the information I think might help:

$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices: pcm0: HDA Realtek ALC883 PCM #0 Analog at cad 0
nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex
default)

Any help is gratefully apreciated.

Sandra
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ifdown/ifup under FreeBSD?

2009-12-18 Thread Sandra Kachelmann
On Thu, Dec 17, 2009 at 4:17 PM, Greg Larkin glar...@freebsd.org wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Sandra Kachelmann wrote:
 On Thu, Dec 17, 2009 at 3:46 PM, Igor V. Ruzanov ig...@canmos.ru wrote:
 |Under RedHat Linux I can configure an interface, routes and so on in
 |/etc/sysconfig/network-scripts/ifcfg-eth1,
 |/etc/sysconfig/network-scripts/routes-eth1 then simply run:
 |
 |$ ifup eth1
 |
 |and it will set all the routes/netconfig/aliases I just configured.
 |
 |Is there something similar in FreeBSD?
 |
 |I tried configuring aliases in /etc/rc.conf and running:
 |
 |$ /etc/rc.d/netif restart
 |
 |but that just ended in errors that the route was already configured
 |and so on. Sure I could do all the work manually with ifconfig and
 |route but that's not my question.
 |
 Under FreeBSD (as well as under Linux) you could use Zebra (Zebra/Quagga
 projects) to configure any interfaces/routing specific things.

 I try to avoid doing complex routing things on my servers. I leave
 that up to the NOC guys. They can do that on their fancy cisco
 switches. I want just one route per interface :-)

 I just wanted to add a seperate route/ip for the second interface,
 make it permanent by adding it to /etc/rc.conf and tell my FreeBSD to
 pretend it's booting up by running /etc/rc.d/netif restart. As others
 pointed out I forgot /etc/rc.d/route.

 Sandra

 Hi all,

 I use /etc/netstart, since it includes all of the commands listed
 previously, as well as others that start the DHCP client, firewall, etc.

That's what i was looking for. How do you use it correctly? Just sh
/etc/netstart?

Sandra
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ifdown/ifup under FreeBSD?

2009-12-17 Thread Sandra Kachelmann
Under RedHat Linux I can configure an interface, routes and so on in
/etc/sysconfig/network-scripts/ifcfg-eth1,
/etc/sysconfig/network-scripts/routes-eth1 then simply run:

$ ifup eth1

and it will set all the routes/netconfig/aliases I just configured.

Is there something similar in FreeBSD?

I tried configuring aliases in /etc/rc.conf and running:

$ /etc/rc.d/netif restart

but that just ended in errors that the route was already configured
and so on. Sure I could do all the work manually with ifconfig and
route but that's not my question.

Sandra
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ifdown/ifup under FreeBSD?

2009-12-17 Thread Sandra Kachelmann
On Thu, Dec 17, 2009 at 3:46 PM, Igor V. Ruzanov ig...@canmos.ru wrote:
 |Under RedHat Linux I can configure an interface, routes and so on in
 |/etc/sysconfig/network-scripts/ifcfg-eth1,
 |/etc/sysconfig/network-scripts/routes-eth1 then simply run:
 |
 |$ ifup eth1
 |
 |and it will set all the routes/netconfig/aliases I just configured.
 |
 |Is there something similar in FreeBSD?
 |
 |I tried configuring aliases in /etc/rc.conf and running:
 |
 |$ /etc/rc.d/netif restart
 |
 |but that just ended in errors that the route was already configured
 |and so on. Sure I could do all the work manually with ifconfig and
 |route but that's not my question.
 |
 Under FreeBSD (as well as under Linux) you could use Zebra (Zebra/Quagga
 projects) to configure any interfaces/routing specific things.

I try to avoid doing complex routing things on my servers. I leave
that up to the NOC guys. They can do that on their fancy cisco
switches. I want just one route per interface :-)

I just wanted to add a seperate route/ip for the second interface,
make it permanent by adding it to /etc/rc.conf and tell my FreeBSD to
pretend it's booting up by running /etc/rc.d/netif restart. As others
pointed out I forgot /etc/rc.d/route.

Sandra
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ifdown/ifup under FreeBSD?

2009-12-17 Thread Sandra Kachelmann
On Thu, Dec 17, 2009 at 3:17 PM, Bas Smeelen b.smee...@ose.nl wrote:
 Sandra Kachelmann wrote:
 Under RedHat Linux I can configure an interface, routes and so on in
 /etc/sysconfig/network-scripts/ifcfg-eth1,
 /etc/sysconfig/network-scripts/routes-eth1 then simply run:

 $ ifup eth1

 and it will set all the routes/netconfig/aliases I just configured.

 Is there something similar in FreeBSD?

 I tried configuring aliases in /etc/rc.conf and running:

 $ /etc/rc.d/netif restart

 but that just ended in errors that the route was already configured
 and so on. Sure I could do all the work manually with ifconfig and
 route but that's not my question.

 Usually I do this from remote with /etc/rc.d/netif restart 
 /etc/rc.d/routing restart 
 Maybe you are not root (because of the $ prompt)?
 #/etc/rc.d/netif restart  /etc/rc.d/routing restart 
 This always works for me

I was root but I didn't think of '/etc/rc.d/routing' also thanks to Ivan.

Sandra
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


boot0cfg, how to use -m option

2009-10-23 Thread Sandra Kachelmann
I installed the FreeBSD boot loader and have now the following options:

F1  Win
F2  Win
F3  FreeBSD
F4  FreeBSD

F6  PXE

Now I wan't to enable only partition 1 and 3 and PXE (F1, F3, F6).

The manpage of boot0cfg says:

-m mask
Specify slices to be enabled/disabled, where mask is an integer
between 0 (no slices enabled) and 0xf (all four slices enabled).

which I find very confusing.

Could someone explain me what value (and why?) I have to chose to
achieve the above mentioned.

Thanks for any enlightenment.

Sandra
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


NFS, how to find out which files are used

2009-02-03 Thread Sandra Kachelmann
I have an NFS fileserver and would like to figure out which files are
being read/written to. Is there something to find that out? Something
similar to samba's 'smbstatus' command.

Sandra
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


disable ipv6 lookups

2008-10-18 Thread Sandra Kachelmann
I'd like to disable ipv6 () lookups entirely since I'm not using
ipv6 at all. I tried taking INET6 out of my kernel but i still see
 lookups being made. I stumbled accross some references in old
resolv.conf manpages (it's not in there anymore) about where you can
enable inet6 but not on how you can disable them at all.

Why are  lookups default anyway? I mean hardly anybody is unsing
ipv6 other than some geeks over tunnels. I'd love to use it when i can
get it w/o tunnel but i'd say 99% of all users out there waste cpu
cycles on making  lookups even though they don't have ipv6 suport.

Sorry if this sounds kinda whiny, I am seriously wondering about this.

Sandra
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


what is hostuuid, hostid (for)?

2008-07-25 Thread Sandra Kachelmann
I just setup a new server with 7.0-RELEASE and saw the following lines
for the fist time when booting the system:

Setting hostuuid: 2231232f-4000--2333-aafbb88a88ca.
Setting hostid: 0x89e3310b.

What exactly are those for? Is it a unique string based on my hardware
based on a certain component? CPU maybe? Is it something that could be
determined under lets say Linux as well? I am asking because this
could become handy as a unique identifier for a piece of equipment
(for putting it on stock, re-using, inventory database, ...).

Sandra
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Is FreeBSD i386 64bit?

2008-06-26 Thread Sandra Kachelmann
Coming from the Linux world I am pretty new to FreeBSD, please bare with me.
I find the FreeBSD handbook pretty useful and I just managed to update
7.0-RELEASE to 7-STABLE from source. I have an Intel core4quad CPU and was
wondering if I now have a 64bit FreeBSD. I am a bit confused because from
/usr/src/sys/ I only see the directories amd64, ia64 and sparc64 with the
number 64 in it.

Another question, is setting CPUTYPE advised or discouraged? I am aware
about problems if you mix binaries built with different CPU flags; not a
problem for me because coming from Gentoo I am used to build everything
myself.

Sandra

--
Mit freundlichen Grüssen
Sandra Kachelmann
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]