Re: Freebsd iSCSI client ?

2012-10-30 Thread dweimer

On 2012-10-29 17:08, dweimer wrote:

On 2012-10-29 13:51, dweimer wrote:

On 2012-10-29 08:29, John Levine wrote:
I'm trying to set up a freebsd image under vmware, but I need more 
disk
space than the vmware hosts offer.  So the guy who runs the hosting 
place
suggests getting a 1U disk server and using iSCSI over gigabit 
Ethernet

so I can build zfs volumes from the iSCSI disks.

Poking around, the reports say that FreeBSD is a pretty good iSCSI
server in such forms as freenas, but a lousy iSCSI client, with the
first problem being that that kludges are required to get iSCSI
volumes mounted early enough in the boot process for ZFS to find 
them.

Is this still the case in FreeBSD 9?

I'd rather not use NFS, since the remote disks have mysql 
databases,

and mysql and NFS are not friends.

An alternative is to mount the iSCSI under vmware, so zfs sees them 
as

normal disks.  Anyone tried that?

TIA,
John


I don't have an answer for you at the moment, but I can tell you 
that

I just started a new server build this morning with the intent of
using it as an iSCSI client and running ZFS on the drive.  In my 
case

however its going to be a file server that doesn't have very much
heavy I/O, with the intention of using compression on the ZFS file
set.  In my case a script ran after start up to mount the drive 
would

work if it fails.  I will let you know what I find out, server is in
the middle of a buildworld to get it updated to the p4 release.

Yes you can mount as a drive through VMware and use ZFS just fine, I
have done a lot of recent tests using ZFS as the boot volume under
VMware. This new server will be my first production server to use 
what

I have learned from those tests, as its system drive mounted through
VMware (ESX 4.1) and is booting from ZFS.  Once the install of the
buildworld is complete I will add a 150G ZFS data set on our HP
Lefthand Networks SAN, run some tests and let you know the outcome 
of

them.


Looks like I have some learning to do, system is up and running and
talks to the iscsi volume just fine, however as you mentioned, the 
big
problem is mounting the volume at start up.  can't find any options 
at

all to launch iscontrol at boot.  Found an example
/usr/local/etc/rc.d/ script from a mail forum a ways back however it
was setup to use UFS volumes and a secondary fstab file for the iscsi
volumes.  I don't see any reason that one can't be made to make use 
of

zfs with the volumes set with option canmount=noauto and using an
rc.conf variable to pass which volumes to mount at boot, and umount 
at

shutdown to the script.
However, I have some reading to do before I get started, as I haven't
tried to create an rc.d script, and need to get an understanding of
how to properly create one which follows all the proper guidelines,
and allows itself to be a requirement for other scripts.  I don't see
any reason it would work successfully to host a MySQL database as the
OP was looking for or a Samba share as I intend to use it as long as
their start up can be set to require the iSCSI start up to run first.
If anyone has already done something similar to this and has some
information to pass on that would be great.  I probably won't have
time to even start researching this till Thursday this week


Well I got stuck waiting at work today for a replacement array 
controller, and got some time to work on this.  This still needs some 
work, and I am not sure its the best way to handle it as it does an 
export on the zpool at shutdown and import at start up.  I also don't 
know at this point about other services waiting on it.  But I have 
verified that a server reboot cleanly dismounts the volumes and a reboot 
remounts them.


Things to note, the # BEFORE: line below, that was copied from the old 
mailing list thread I found, not sure if that is something real or not.  
The ZFS data set I was using was set with option canmount=noauto.  the 
zpool import/export and zfs mount/umount are just typed in there, it 
needs to be broken up and pulled form an rc.conf variable option instead


#!/bin/sh

# PROVIDE: iscsi
# REQUIRE: NETWORKING
# BEFORE: mountcritremote
# KEYWORD: shutdown

. /etc/rc.subr

name="iscsi"
start_cmd="iscsi_start"
stop_cmd="iscsi_stop"
rcvar="iscsi_enable"
required_modules="iscsi_initiator:iscsi"

iscsi_start() {
  ${iscsi_command} -c ${iscsi_config} -n ${iscsi_nickname}
  sleep 1
  zpool import ziscsi
  zfs mount ziscsi/storage
}

iscsi_stop() {
  zfs umount ziscsi/storage
  zpool export ziscsi
  killall -HUP ${iscsi_command}
}

load_rc_config $name

: ${iscsi_enable="NO"}
: ${iscsi_command="iscontrol"}
: ${iscsi_config="/etc/iscsi.conf"}
: ${iscsi_nickname=""}

run_rc_command "$1"



Other files information used:
rc.conf:
...
# Enable iscsi
iscsi_enable="YES"
iscsi_command="iscontrol"
iscsi_nickname="LHMG002"
iscsi_config="/etc/iscsi.conf"
...

iscsi.conf:
# Globals
port = 3260
InitiatorName = iqn.2005-01.il.ac.huji.cs:testvm.local

LHMG002 {
TargetAddress   = 

Re: No sound from speaker, using Realtek ALC269 and snd_hda

2012-10-30 Thread Big Yuuta
Yes, actually I'm using  sysctl hw.snd.verbose=4 to understand
what's happening inside.

>From my tests, it's not a sense redirection problem. Because, when
I unmute everything, and then I plug a headphone, the sound goes
to the headphone and the internal speaker is mutted, and when I unplug
it, the internal speaker gets the sound, and (nid 26: the headphone)
is mutted.

So, anyway, I'm still debugging it and I found out that I don't have
to "unmute" everything, I just have to make sure that nid=15 is never
mutted.

i.e. the test I wrote in my last email could be more precise like this:

hdaa_audio_ctl_amp_set_internal(struct hdaa_devinfo *devinfo, nid_t nid,
int index, int lmute, int rmute,
int left, int right, int dir)
{
uint16_t v = 0;

if(nid == 15){ //just don't mute nid15, and it works
   lmute = 0;
   rmute = 0;
 }


Strange thing is from my dmesg here: http://dpaste.com/818967/plain/
I thought that nid 15 wasn't used.

hdaa0: nid: 15 [DISABLED]
hdaa0:Name: audio mixer
hdaa0:  Widget cap: 0x0020010a
hdaa0:   Input amp: 0x8000
hdaa0:  mute=1 step=0 size=0 offset=0
hdaa0: connections: 2
hdaa0:   |
hdaa0:   + [DISABLED] <- nid=2 [audio output]
hdaa0:   + [DISABLED] <- nid=11 [audio mixer]

Maybe it's disabled because others were disabled for other reasons?
I honestly don't grok the whole thing yet.

We, IMVHO, probably just should add a patch inside hdaa_patches.c
for this case:

case HDA_CODEC_ALC269:
if (subid == 0x10438437){ //0x10438437 is my subsystem id.
w = hdaa_widget_get(devinfo, 15);
if(w != NULL)
 //some magic to unmute it ?
}
break;

What do you think?


On Tue, Oct 30, 2012 at 10:26 AM, Alexander Motin  wrote:
> On 30.10.2012 09:17, Big Yuuta wrote:
>>
>> Hi Alexander,
>>
>> I got the sound out of that speaker!! :)
>>
>> I actually started to read your code, and I'm still trying to understand
>> the stuff in it (I never wrote a device driver)
>>
>> Anyway, so I did a little hack'ish modification (just to test) in function
>>
>> hdaa_audio_ctl_amp_set_internal(struct hdaa_devinfo *devinfo, nid_t nid,
>> int index, int lmute, int rmute,
>> int left, int right, int dir)
>> {
>> uint16_t v = 0;
>>
>>  // Do not mute, even if asked for. Test to be removed of course
>>  lmute = 0;
>>  rmute = 0;
>>
>>
>> I know, this is absolutely NOT the way to do it, but I wanted to see
>> if the speaker wasn't muted (or the mixer that controls it)
>> and it -actually- WAS muted!
>>
>> Now, I guess I'll have to read the whole code, try to understand its
>> internals, and I hope to be able to write a patch to add to hdaa_patches.c
>
>
> Speaker should be muted on headphones connection. That is one of two ways of
> handling playback redirection. But it should be unmuted on disconnection.
> You may try to set sysctl hw.snd.verbose=4 and connect/disconnect
> headphones. It should report which controls are affected and how.
>
> You may try this hack to use pin controls instead of muters for redirection:
> --- hdaa.c  (revision 242315)
> +++ hdaa.c  (working copy)
> @@ -260,7 +260,7 @@
> /* (Un)Mute headphone pin. */
> ctl = hdaa_audio_ctl_amp_get(devinfo,
> w->nid, HDAA_CTL_IN, -1, 1);
> -   if (ctl != NULL && ctl->mute) {
> +   if (ctl != NULL && ctl->mute && 0) {
> /* If pin has muter - use it. */
> val = connected ? 0 : 1;
> if (val != ctl->forcemute) {
> @@ -290,7 +290,7 @@ hdaa_hpredir_handler(struct hdaa_widget *w)
> continue;
> ctl = hdaa_audio_ctl_amp_get(devinfo,
> as->pins[j], HDAA_CTL_IN, -1, 1);
> -   if (ctl != NULL && ctl->mute) {
> +   if (ctl != NULL && ctl->mute && 0) {
> /* If pin has muter - use it. */
> val = connected ? 1 : 0;
> if (val == ctl->forcemute)
>
>
> --
> Alexander Motin
___
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: VirtualBox Guest Addons

2012-10-30 Thread Warren Block

On Wed, 31 Oct 2012, Lachlan Holmes wrote:


Hey all,

If you can help 'd really appreciate it.

I have a 9.0 release 64bit freebsd. I've done a Portsnap fetch extract and
freebsd-update.

I can't get virtualbox-ose-additions to install I get this error message.


# make install clean
===> virtualbox-ose-additions-4.1.22 requires kernel sources.
*** Error code 1

Stop in /usr/ports/emulators/virtualbox-ose-addtions
#


i found this on the web, http://forums.freebsd.org/showthread.php?t=32503


That does not apply to this problem, which is just missing kernel 
source.  Install the kernel source:


http://forums.freebsd.org/showthread.php?t=29172
___
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"


VirtualBox Guest Addons

2012-10-30 Thread Lachlan Holmes
Hey all,

If you can help 'd really appreciate it.

I have a 9.0 release 64bit freebsd. I've done a Portsnap fetch extract and
freebsd-update.

I can't get virtualbox-ose-additions to install I get this error message.


# make install clean
===> virtualbox-ose-additions-4.1.22 requires kernel sources.
*** Error code 1

Stop in /usr/ports/emulators/virtualbox-ose-addtions
#


i found this on the web, http://forums.freebsd.org/showthread.php?t=32503

But I'm new to bsd and and I don't understand how I downloaded the "patch"
and then rebuild the "system" and then redo the install process.

Thanks in advance for any help.

regards,
Lachlan Holmes
___
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: I need a simple cli tool to rotate mp4 video.

2012-10-30 Thread Jakub Lach
Thanks, I'm was already playing with mencoder, but I had no luck with it; 
either I was destroying/misaligning audio track or loosing video quality.

(or encoding raw with 54x size increase).

I have more success with ffmpeg, e.g.

$ ffmpeg -i A.mp4  -vf "transpose=1" -r 30 -sameq -acodec copy B.mp4 

Is _almost_ ideal, apart from x1.5 increase in size... playing with fps does
not
change it too.



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/I-need-a-simple-cli-tool-to-rotate-mp4-video-tp5756670p5756683.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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: I need a simple cli tool to rotate mp4 video.

2012-10-30 Thread Polytropon
On Tue, 30 Oct 2012 14:46:32 -0700 (PDT), Jakub Lach wrote:
> Just something that wouldn't pull in whole KDE/latest flavour of the month
> DE.
> 
> Any recommendations?

The default tool: mencoder -vf rotate plus copy options
in case you don't want to convert formats. See "man mencoder"
for details.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Famp Server

2012-10-30 Thread Peter Vereshagin
Hello.

2012/10/30 15:37:55 -0400 Michael Powell  => To 
freebsd-questions@freebsd.org :
MP> I do not know. Never ran Gentoo. Never had the time to try every 'distro'. 
MP> Some imprecise and poor wording on my part when I said something about 
MP> 'all', when I should have said the 3 that I did try.  Mistake on my part.

Totally 'portages'-based 'gentoo' with its 'USE flags' feature is a kind of a
freebsd in a linuxes world.  Opps, and an offtopic here, too. But... there
seems to be somebody porting the portages to freebsd, no? Something like
'creating a freebsd kernel portage' as I see this task. If so then 'debian'
guys are not alone foloowing that way with their 'kFreebsd' for whiles
already.

MP> [snip]
MP> > 
MP> > What if being a proper sysadm means ability to deploy a package on
MP> > thousands (tens of thaousands, etc.) of machines? In formal terms this
MP> > means create a package and install on the every machine. This cannot be a
MP> > several packages because this makes the whole task less quick and the
MP> > solution less reliable. And the creation of such a package can be a more
MP> > trivial task for sysadm than the such of a package installation or upgrade
MP> > by itself.
MP> > 
MP> > Such a metaport can be a person-scale/company-wide solution, not a public
MP> > one so no harm for the general freebsd usage approaches/pphilosophy which
MP> > is a kind of a public stuff.
MP>  
MP> I completely agree with this. However, noting the most recent email it 
looks 
MP> as if he still hasn't quite got the hang of installing software on FreeBSD 
MP> yet. I believe there is a chapter in the Handbook devoted to it. 

I shoudn't ever judge about what the other side did or didn't (read or didn't
read, know or doesn't know). But it's me.

MP> One would still need to learn how to install software on FreeBSD in order 
to 
MP> make use of a meta port; after all - it is still the same process. I do not 
MP> think a meta port is a solution for not learning how to install software. 

But metaport build/install process can give a clue about the what it is. Ain't
it a 'learning how to install software'?

MP> My suggestion is centered around the idea that learning to install software 
MP> is a prerequisite to using a meta port. I think we should be guiding him 
MP> towards acquiring that understanding, then if such a meta port comes into 
MP> being he will be able to make use of it as well. 
MP> 
MP> I do not disagree with the potential utility of a meta port. This is a 
MP> 'horse before the cart' situation where one cannot replace the other. We 
MP> should be helping him learn how to install software. A meta port should be 
a 
MP> separate issue of its own, and not be attempting to replace not knowing how 
MP> to install software.

I hate methodologies and teaching. But here are my cents:

  - Such a metaport creation task can motivate him on learning about the
'porting and installing software for freebsd' topic by himself.  Ain't it
great for him and easy for us than learning here about his typically
known beforehand small steps on that way?

  - Horse before the cart is a problem when it's a vice-versa only.

--
Peter Vereshagin  (http://vereshagin.org) pgp: A0E26627 
___
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"


9.1-PRERELEASE Panic String: double fault

2012-10-30 Thread Eugen Konkov
Здравствуйте, FreeBSD.

Fatal double fault:
eip = 0xc0e538e8
esp = 0xc7945004
ebp = 0xc7945c64
cpuid = 3; apic id = 03
panic: double fault
cpuid = 3
KDB: stack backtrace:
#0 0xc0af724f at kdb_backtrace+0x4f
#1 0xc0ac3c4f at panic+0x16f
#2 0xc0e68aab at dblfault_handler+0x9b
Uptime: 17h57m50s
Physical memory: 3534 MB
Dumping 452 MB: 437 421 405 389 373 357 341 325 309 293 277 261 245 229 213 197 
181 165 149 133 117 101 85 69 53 37 21 5

Reading symbols from /boot/kernel/accf_http.ko...Reading symbols from 
/boot/kernel/accf_http.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/accf_http.ko
Reading symbols from /boot/kernel/accf_data.ko...Reading symbols from 
/boot/kernel/accf_data.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/accf_data.ko
#0  doadump (textdump=1) at pcpu.h:244
244 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) #0  doadump (textdump=1) at pcpu.h:244
#1  0xc0ac399f in kern_reboot (howto=260)
at /usr/src/sys/kern/kern_shutdown.c:448
#2  0xc0ac3c92 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:636
#3  0xc0e68aab in dblfault_handler () at /usr/src/sys/i386/i386/trap.c:1051
#4  0xc0e538e8 in Xprot () at /usr/src/sys/i386/i386/exception.s:133
#5  0x00010046 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb)





Fatal double fault:
eip = 0xc0e538e8
esp = 0xc7942004
ebp = 0xc7942c64
cpuid = 2; apic id = 02
panic: double fault
cpuid = 2
KDB: stack backtrace:
#0 0xc0af724f at kdb_backtrace+0x4f
#1 0xc0ac3c4f at panic+0x16f
#2 0xc0e68aab at dblfault_handler+0x9b
Uptime: 1d10h30m30s
Physical memory: 3534 MB
Dumping 447 MB: 432 416 400 384 368 352 336 320 304 288 272 256 240 224 208 192 
176 160 144 128 112 96 80 64 48 32 16

Reading symbols from /boot/kernel/accf_http.ko...Reading symbols from 
/boot/kernel/accf_http.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/accf_http.ko
Reading symbols from /boot/kernel/accf_data.ko...Reading symbols from 
/boot/kernel/accf_data.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/accf_data.ko
#0  doadump (textdump=1) at pcpu.h:244
244 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) #0  doadump (textdump=1) at pcpu.h:244
#1  0xc0ac399f in kern_reboot (howto=260)
at /usr/src/sys/kern/kern_shutdown.c:448
#2  0xc0ac3c92 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:636
#3  0xc0e68aab in dblfault_handler () at /usr/src/sys/i386/i386/trap.c:1051
#4  0xc0e538e8 in Xprot () at /usr/src/sys/i386/i386/exception.s:133
#5  0x00010046 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb)


If you need cores I can send you.





-- 
 Eugen  mailto:kes-...@yandex.ru

___
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"

I need a simple cli tool to rotate mp4 video.

2012-10-30 Thread Jakub Lach
Just something that wouldn't pull in whole KDE/latest flavour of the month
DE.

Any recommendations?

Online video flippers have severe size limits.



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/I-need-a-simple-cli-tool-to-rotate-mp4-video-tp5756670.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
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"


management for VM objects

2012-10-30 Thread Vagner
Hi!
This questions about Inactive queue and Swap layer in VM management
system at FreeBSD. For test, i running dd (for put ufs cache to Inactive), and 
i get this:

1132580 wire
896796 act
5583964 inact
281852 cache
112252 free
836960 buf

in swap: 20M

It is good. Lets start run programm like:

typedef char * pchar;
pchar a[1024*1024*4];
for(size_t i = 0; i < 1024*1024*2; i++)
{
a[i] = (pchar)malloc(1024);
if(a[i]) *(a[i]) = 'F';
}

Get this:

1156420 wire
3070196 act
3465316 inact
206352 cache
109160 free
836960 buf

in swap: 20M

After i call free() pages put to free.

But, why condition is not satisfied from this page:
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/vm-design/freeing-pages.html?
My durty pages don't written to their backing store before being
reusable. I don't understeand this:(

-- 
Respectfully,
Stanislav Putrya
System administrator
FotoStrana.Ru Ltd.
ICQ IM: 328585847
Jabber-GoogleTalk: root.vagner
mob.phone SPB: +79215788755
mob.phone RND: +79525600664
email: vag...@bsdway.ru
email: put...@playform.ru
email: root.vag...@gmail.com
site: bsdway.ru
site: fotostrana.ru


 ( ) ASCII ribbon campaign
  X  - against HTML, vCards and
 / \ - proprietary attachments in e-mail
___
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: laptop with no BIOS? or BIOS reflash pain

2012-10-30 Thread Idwer Vollering
> I've HP compaq 6715s laptop.
> It's all right with 10-current.
> I've got wireless and at one point
> I even managed to get flash working.
>
> My problem is with BIOS.
> Apparently it's wrong and John Baldwin
> provided me with a pci.c patch to get
> it to boot.
>
> There is an updated BIOS version, but
> so far I failed to get it installed.
> HP only provide MS and freedos executables.
> I tried BartPE - doesn't work.
> I tried plugging in a MS disk - doesn't work.
> The only think I haven't tried is getting
> a spare disk, installing freedos on it
> and then running the freedos executable
> from USB - what a fucking pain...
>
> For proper hardware (servers) HP provide
> images which are executed from management
> console, but not for laptops.
> I guess the idea that one might
> use their laptops for anything other than MS
> is so wild, that it never crossed their maid.
>
> Anyway, I think I've heard there are some laptops
> with no BIOS, is this true?
> Or perhaps there are brands where BIOS
> reflash is not such a great pain?
> I remember on Compaq Armada the BIOS was
> stored on disk and Compaq provided a floppy
> image to boot from and reflash BIOS.
> That was easy.
> Anything like this exist these days?
> Are there any EFI laptops?
> Any model people would recommend?
>
> Thanks
>
> Anton

Another approach is to use an external SPI programmer:
http://flashrom.org/Supported_programmers
The 'downside' of this is that you need to take your laptop apart.

ODM schematics of your laptop are found here:
http://notebookschematic.com/wp-content/uploads/2010/06/6515b_6715s.png
Downloads for BIOS updates:
http://h2.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=3356623&prodTypeId=321957&prodSeriesId=3368539&swLang=13&taskId=135&swEnvOID=1093#120
and ftp://ftp.hp.com/pub/softpaq/sp55501-56000/sp6.exe

My guess (I am not a HP service technician) is that you need
ROM.CAB/Rom.bin from sp6.exe - you can use 7zip to extract Rom.bin
___
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"


Halloween Weekend Sale Get 15% Off this Weekend

2012-10-30 Thread Dave George
Halloween Sale - GET 15% OFF
USE COUPON CODE "HALL" Brand New | You Asked for it You Got it ! | 100% 
Targetted Followers
 FaceBook Likes | YouTube Views | Twitter Followers

: http://promogoons.com/?product=new-100-targeted-followers 100% Targeted 
Followers : http://promogoons.com/?product=new-100-targeted-followers Get 100% 
Laser-Targeted Followers . Packages from 1000 to 4000 targeted Followers per 
month , read more... : 
http://promogoons.com/?product=new-100-targeted-followers  : 
http://promogoons.com/?product=twitter 10,000 Followers $20 : 
http://promogoons.com/?product=twitter Get 10,000 Untargeted Followers for just 
$50 . We can help you jumpstart your twitter account , read more ... : 
http://promogoons.com/?product=twitter



: http://promogoons.com/?product=youtube Real Youtube Views : 
http://promogoons.com/?product=youtube Need Youtube Views to catch that A&R's 
eye ? We have 100% Real Views and are Partner Safe,   read more... : 
http://promogoons.com/?product=youtube  : 
http://promogoons.com/?product=facebook FaceBook Likes : 
http://promogoons.com/?product=facebook Lets face it , who doesnt need more 
facebook likes ? We
have what you need ,
read more ... : http://promogoons.com/?product=facebook



: http://promogoons.com/?product=soundcloud SoundCloud Plays : 
http://promogoons.com/?product=soundcloud Fast , Economical and Fun, Let Us 
Help you get more Soundcloud plays , read more... : 
http://promogoons.com/?product=soundcloud  : 
http://promogoons.com/?product=datpiff-plays DatPiff Streams : 
http://promogoons.com/?product=datpiff-plays Got A Hot Mixtape on DatPiff ? ? 
Cant Seem to cut through the wack tapes on the front page ? read more... : 
http://promogoons.com/?product=datpiff-plays

REPEAT CLIENTS GET 15% OFF | USE COUPON CODE "HALL" ON CHECKOUT
Promogoons.com : http://promogoons.com  | The Major Label's Dirty Little Secret
Dave George - 678 508 2941 - sa...@promogoons.com : mailto:sa...@promogoons.com 
Skype | Yahoo | AIM : Promogoons



United Promotions - po box 1526 - atlanta - GA - 30316

Subscribe to this newsletter:
https://www.mynewsletterbuilder.com/tools/subscription.php?username=beatsforrappers&send_id=8130586490&l=s&newsletter_id=1411516624
Unsubscribe freebsd-questions@freebsd.org:
https://www.mynewsletterbuilder.com/tools/subscription.php?username=beatsforrappers&send_id=8130586490&l=u&email=freebsd-questions@freebsd.org
Change your preferences:
https://www.mynewsletterbuilder.com/tools/subscription.php?username=beatsforrappers&send_id=8130586490&l=p&email=freebsd-questions@freebsd.org
Forward to a friend:
https://www.mynewsletterbuilder.com/tools/forward.php?username=beatsforrappers&newsletter_id=1411516624&send_id=8130586490
Report this email as spam:
https://www.mynewsletterbuilder.com/tools/abuse_report.php?username=beatsforrappers&send_id=8130586490&email=freebsd-questions@freebsd.org

This email was sent using MyNewsletterBuilder.com.
___
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: Famp Server

2012-10-30 Thread Michael Powell
Peter Vereshagin wrote:

> Hello.
> 
> 2012/10/29 16:28:11 -0400 Michael Powell  => To
> freebsd-questions@freebsd.org : MP> Perhaps by way of example I can
> illustrate: I run Apache as FastCGI with the MP> event-mpm, mysql,
> memcached, and PHP in the FPM configuration. It is a MP> highly customized
> and tuned environment which is easily obtained utilizing MP> the inherent
> configurability of the FreeBSD ports system.
> 
> jfmi: Which of them can not be found in a 'gentoo'?

I do not know. Never ran Gentoo. Never had the time to try every 'distro'. 
Some imprecise and poor wording on my part when I said something about 
'all', when I should have said the 3 that I did try.  Mistake on my part.
 
[snip]
> 
> What if being a proper sysadm means ability to deploy a package on
> thousands (tens of thaousands, etc.) of machines? In formal terms this
> means create a package and install on the every machine. This cannot be a
> several packages because this makes the whole task less quick and the
> solution less reliable. And the creation of such a package can be a more
> trivial task for sysadm than the such of a package installation or upgrade
> by itself.
> 
> Such a metaport can be a person-scale/company-wide solution, not a public
> one so no harm for the general freebsd usage approaches/pphilosophy which
> is a kind of a public stuff.
 
I completely agree with this. However, noting the most recent email it looks 
as if he still hasn't quite got the hang of installing software on FreeBSD 
yet. I believe there is a chapter in the Handbook devoted to it. 

One would still need to learn how to install software on FreeBSD in order to 
make use of a meta port; after all - it is still the same process. I do not 
think a meta port is a solution for not learning how to install software. 

My suggestion is centered around the idea that learning to install software 
is a prerequisite to using a meta port. I think we should be guiding him 
towards acquiring that understanding, then if such a meta port comes into 
being he will be able to make use of it as well. 

I do not disagree with the potential utility of a meta port. This is a 
'horse before the cart' situation where one cannot replace the other. We 
should be helping him learn how to install software. A meta port should be a 
separate issue of its own, and not be attempting to replace not knowing how 
to install software.

-Mike



___
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: 9.1 and gmirror with GPT?

2012-10-30 Thread freebsd
On 2012-10-27 16:01, Warren Block wrote:
> On Sat, 27 Oct 2012, free...@johnea.net wrote:
> 
>> I ended up just ignoring the not aligned warning from the "gpart add -t 
>> freebsd" and went on to add the freebsd-swap and freebsd-ufs partitions with 
>> "-a 4k" option.
>>
>> Do you think I'm aligned?
> ...
>> =>63  3907029104  mirror/gm0  MBR  (1.8T)
>>  63  63  - free -  (31k)
>> 126  3907028979   1  freebsd  (1.8T)
>>  3907029105  62  - free -  (31k)
>>
>> => 0  3907028979  mirror/gm0s1  BSD  (1.8T)
>>   0   2- free -  (1.0k)
>>   216777216 1  freebsd-swap  (8.0G)
>>16777218  3890251760 2  freebsd-ufs  (1.8T)
>>  3907028978   1- free -  (512B)
> 
> The slice starts at block 126, and then the swap partition starts an 
> additional two blocks into the slice, which is block 128, evenly divisible by 
> 8 (4096 = 512 * 8).
> 
> The freebsd-ufs partition starts at 126+16777218, which is also evenly 
> divisible by 8.
> 
> So yes, that looks aligned to me.

Thanks again Warren!

I think I finally have this 9.1 system up and running with MBR and gmirror 
aligned to 4K sector size.

After getting the gm0 running, I did a dump/restore to transfer the live system 
from ada0 to gm0, before adding ada0 to the mirror. I ran into the journaled 
soft-updates issue, and again relied on one of your posts for the solution:

http://forums.freebsd.org/showthread.php?t=31257

Thank You for your contributions to FreeBSD! 

johnea
___
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: Which NNTP newsreader for huge newsgroups?

2012-10-30 Thread Julien Cigar

slrn ? http://slrn.sourceforge.net/

On 10/30/2012 15:56, C. P. Ghost wrote:

Hello,

I'm looking for an NNTP newsreader that can gracefully
handle newsgroups with a *huge* number of posts, if
possible with a moderate memory and CPU footprint.

My newsreader of choice, news/tin, while quite good for
newsgroups with a moderate number of articles can't
cope with some alt.binaries.* groups that contain over
2,000,000+ active/unread articles. It effectively thrashes
the system and consumes enormous amounts of swap
space and CPU cycles just for opening such a newsgroup.
It also takes ages to update the local index as well, because
it keeps fetching headers for articles that don't even exist or
should have been skipped, according to ~/.newsrc

If you wonder about such huge newsgroups: they are
increasingly common now that commercial NNTP providers
are over 1,000+ retention days for binaries, and some of
those newsgroups are being flooded with crap in an attempt
to DoS them.

What NNTP newsreader are you using? Which one would
you recommend for those huge newsgroups?

Thanks,
-cpghost.




--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

___
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: Which NNTP newsreader for huge newsgroups?

2012-10-30 Thread Steve O'Hara-Smith
On Tue, 30 Oct 2012 15:56:30 +0100
"C. P. Ghost"  wrote:

> Hello,
> 
> I'm looking for an NNTP newsreader that can gracefully
> handle newsgroups with a *huge* number of posts, if
> possible with a moderate memory and CPU footprint.
> 
> My newsreader of choice, news/tin, while quite good for
> newsgroups with a moderate number of articles can't
> cope with some alt.binaries.* groups that contain over
> 2,000,000+ active/unread articles. It effectively thrashes

For binaries I wouldn't use a newsreader at all. I'd use something
like nzbget and an nzb search service.

-- 
Steve O'Hara-Smith 
___
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: Which NNTP newsreader for huge newsgroups?

2012-10-30 Thread jb
C. P. Ghost  cordula.ws> writes:

> 
> Hello,
> 
> I'm looking for an NNTP newsreader that can gracefully
> handle newsgroups with a *huge* number of posts, if
> possible with a moderate memory and CPU footprint.
> ...

$ cat /usr/ports/news/pan/pkg-descr
Pan is a newsreader, loosely based on Agent and Gravity, which attempts to
be pleasant to use for new and advanced users alike. It has all the typical
features found in newsreaders, and also supports offline reading, multiple
connections, and a number of features for power users and alt.binaries fans.

WWW: http://pan.rebelbase.com/

jb
  





___
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: Famp Server

2012-10-30 Thread Dale Scott
- Original Message -
> From: "Polytropon" 
> 
> On Tue, 30 Oct 2012 06:26:19 -0700 (PDT), Hamisi Jabe wrote:
> > Thanks for your quick reply, but would you please give me the right
> > command
> > pkg_add -r apache22
> > pkg_add -r mysql55-server
> > pkg_add -r php5
> > 
> > i installed these packages one by one but to no success please
> > help,
> 
> Can you provide the error message of "no success"?
> 
> > and also when i install them should i go to the port directory or i
> > can execute the command anywhere
> 
> From anywhere.
> 

You must be root though (just in case you were trying to install with
a normal user account)
___
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"


Which NNTP newsreader for huge newsgroups?

2012-10-30 Thread C. P. Ghost
Hello,

I'm looking for an NNTP newsreader that can gracefully
handle newsgroups with a *huge* number of posts, if
possible with a moderate memory and CPU footprint.

My newsreader of choice, news/tin, while quite good for
newsgroups with a moderate number of articles can't
cope with some alt.binaries.* groups that contain over
2,000,000+ active/unread articles. It effectively thrashes
the system and consumes enormous amounts of swap
space and CPU cycles just for opening such a newsgroup.
It also takes ages to update the local index as well, because
it keeps fetching headers for articles that don't even exist or
should have been skipped, according to ~/.newsrc

If you wonder about such huge newsgroups: they are
increasingly common now that commercial NNTP providers
are over 1,000+ retention days for binaries, and some of
those newsgroups are being flooded with crap in an attempt
to DoS them.

What NNTP newsreader are you using? Which one would
you recommend for those huge newsgroups?

Thanks,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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: Famp Server

2012-10-30 Thread Polytropon
On Tue, 30 Oct 2012 06:26:19 -0700 (PDT), Hamisi Jabe wrote:
> Thanks for your quick reply, but would you please give me the right command 
> pkg_add -r apache22
> pkg_add -r mysql55-server
> pkg_add -r php5 
> 
> i installed these packages one by one but to no success please help,

Can you provide the error message of "no success"?



> and also when i install them should i go to the port directory or i
> can execute the command anywhere

>From anywhere.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Hardware recommendations, not "enterprise" budget.

2012-10-30 Thread Waitman Gobble
On Oct 29, 2012 10:57 PM, "Joshua Isom"  wrote:
>
> Soon I'll be purchasing a wireless N card for my current FreeBSD system
since I'm not yet ready to add ethernet to my house.  What would be the
current recommendations for using wireless N on FreeBSD?  My router is a
Linksys E2000, which supports 2.4GHz and 5GHz but not concurrently.
Supporting 5GHz is a strong preference but I doubt I'll have much luck
getting everything else to work at 5GHz.
>
> I'm also thinking of an HTPC.  For low power and mostly silent hardware,
what's the best?
> ___
> 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"

Hi Joshua,
>From my experience an Atheros or Ralink chipset is generally going to be
the best way to go. Not sure about your system, or what type of device you
are considering, but if its going to be a USB dongle id go with Ralink
chipset device.

Waitman Gobble
San Jose California
___
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: how to disable page breaks in line printer

2012-10-30 Thread Polytropon
On Tue, 30 Oct 2012 12:16:02 GMT, Anton Shterenlikht wrote:
>   From at...@sohara.org Tue Oct 30 11:54:11 2012
> 
>   > I thought from reading printcap(5)
>   > that pl sets page length is lines,
>   > so if I make it long enough, I should
>   > see no page breaks. Still, I get
>   > empty space at the bottom of the
>   > physical page and empty space at
>   > the top of the next.
>   > Surely I'm missing someting.
>   > How to get rid of this empty space?
> 
>   The printer may be doing this internally, many dot matrix 
> printers
>   had the ability to set the page length and perforation skip on DIP
>   switches.
> 
> yes, got it:
> 
> dip switch 2-3
> ON: 1-inch skip-over-perforation
> OFF: NO skip-over-perforation
> 
> Need to power off/on for the new settings
> to have effect.

If the document itself contrains page breaks ("form feed",
Ctrl+L, ^L, ASCII code 12) you could previously delete
them with tr -d, just to make sure.





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Famp Server

2012-10-30 Thread Hamisi Jabe
Thanks for your quick reply, but would you please give me the right command 
pkg_add -r apache22
pkg_add -r mysql55-server
pkg_add -r php5 

i installed these packages one by one but to no success please help, and also 
when i install them should i go to the port directory or i can execute the 
command anywhere

thanks






 From: Johan Hendriks 
To: Hamisi Jabe  
Cc: "freebsd-questions@freebsd.org >> FreeBSD"  
Sent: Monday, October 29, 2012 1:57 PM
Subject: Re: Famp Server
 
Hamisi Jabe schreef:
> Dear All,
>
> I freel freebsd is very good in networking server but it make work hard for 
> compiling the Famp package (Freebsd, apache, mysql, php) i would like to ask 
> the developers to compile a package that its a one select and install which 
> will do everything for the famp server rather than downloading selecting 
> extensions, installing this and that exectra.
>
>
> thanks
> ___
> 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"
Well it is simpel, just use pkg_add -r apache mysql php  and so on.
It will install the packages without compiling.
BUT we can not tell you which php modules you need.
So it could be that you later on need php-gd or some other option.
Then pkg_add -r php-module name will install the missing module.
You could install all the php modules, but i think (know) it is not wise 
to do so.

regards
___
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: how to disable page breaks in line printer

2012-10-30 Thread Anton Shterenlikht
From at...@sohara.org Tue Oct 30 11:54:11 2012

> I thought from reading printcap(5)
> that pl sets page length is lines,
> so if I make it long enough, I should
> see no page breaks. Still, I get
> empty space at the bottom of the
> physical page and empty space at
> the top of the next.
> Surely I'm missing someting.
> How to get rid of this empty space?

The printer may be doing this internally, many dot matrix 
printers
had the ability to set the page length and perforation skip on DIP
switches.

yes, got it:

dip switch 2-3
ON: 1-inch skip-over-perforation
OFF: NO skip-over-perforation

Need to power off/on for the new settings
to have effect.

Thanks

Anton

___
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: PXE tftp - double boot

2012-10-30 Thread Vagner
On 17:57 Mon 29 Oct , Rick Miller wrote:
> On Mon, Oct 29, 2012 at 4:57 PM, Vagner  wrote:
> > Hello!
> > Tell me please, how can i boot from tftp server (throught pxe) several
> > copies FreeBSD from different path (For example: /pxeroot/freebsd1 and
> > /pxeroot/freebsd2)?
> > I see variale rootpath at source sys/boot/i386/libi386/pxe.c. I
> > compiled several pxeboot files (there i changed variable rootpath from "/" 
> > to "/pxeroot/freebsd[1-2]"), and i booted this files throught pxelinux.
> > Booting stoped at boot kernel.
> 
> This blog post may help
> you...http://blog.hostileadmin.com/2012/05/04/pxe-booting-into-a-freebsd-installation/
> 
> In the grub2pxe Configuration section, you can see that the kernel and
> "initrd" (or mfsroot) images are variable-ized (if that's a word).
> Perhaps you could use a similar approach to accomplish the same.
> 
> Obviously, in that post, Grub2pxe replaced FreeBSD's pxeboot.bs and
> was chained to pxelinux.
> 
> -- 
> Take care
> Rick Miller

Thanks for your reply!

-- 
Respectfully,
Stanislav Putrya
System administrator
FotoStrana.Ru Ltd.
ICQ IM: 328585847
Jabber-GoogleTalk: root.vagner
mob.phone SPB: +79215788755
mob.phone RND: +79525600664
email: vag...@bsdway.ru
email: put...@playform.ru
email: root.vag...@gmail.com
site: bsdway.ru
site: fotostrana.ru


 ( ) ASCII ribbon campaign
  X  - against HTML, vCards and
 / \ - proprietary attachments in e-mail
___
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: how to disable page breaks in line printer

2012-10-30 Thread Steve O'Hara-Smith
On Tue, 30 Oct 2012 10:53:56 GMT
Anton Shterenlikht  wrote:

> I thought from reading printcap(5)
> that pl sets page length is lines,
> so if I make it long enough, I should
> see no page breaks. Still, I get
> empty space at the bottom of the
> physical page and empty space at
> the top of the next.
> Surely I'm missing someting.
> How to get rid of this empty space?

The printer may be doing this internally, many dot matrix printers
had the ability to set the page length and perforation skip on DIP
switches.

-- 
Steve O'Hara-Smith 
___
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"


how to disable page breaks in line printer

2012-10-30 Thread Anton Shterenlikht
I need to print some text on a continuous
paper with no page breaks. How to do this?

I've epson lq-550 matrix printer attached
via a parallel cable, and

lp|local line printer:\
:sh:\
:lp=/dev/lpt0:\
:sd=/var/spool/output/lpd:\
:lf=/var/log/lpd-errs:\
:pl=1000:

in /etc/printcap.

I thought from reading printcap(5)
that pl sets page length is lines,
so if I make it long enough, I should
see no page breaks. Still, I get
empty space at the bottom of the
physical page and empty space at
the top of the next.
Surely I'm missing someting.
How to get rid of this empty space?

Thanks

Anton
___
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"


yelp could not be built because of libxul dependency (10.0 vs. <2)

2012-10-30 Thread Ewald Jenisch
Hi,

I'm trying to get my system up2date using portupgrade as usual. 
However during the upgrade process I ran into a problem during upgrade
of yelp:

===>   yelp-2.30.2_4 depends on package: libxul<2 - not found
===>   Found libxul-10.0.10, but you need to upgrade to libxul<2.

UPDATING has an entry for www/libxul of 20120910 that says

"...If you want to stay with 1.9.2..."

So in order to make yelp build again, does this mean I've got to 
de-install libxul-10.0.10 and install /usr/ports/www/libxul19 again?

Thanks much in advance for your help,
-ewald
___
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: laptop with no BIOS? or BIOS reflash pain

2012-10-30 Thread Anton Shterenlikht
Date: Mon, 29 Oct 2012 15:44:19 -0700 (PDT)
From: Jakub Lach 
To: freebsd-questions@freebsd.org
Subject: Re: laptop with no BIOS? or BIOS reflash pain

More civilised notebook manufactures usually provide 
also self booting (CD) image to update BIOS 
(e.g. Lenovo/ThinkPad). 


ok, I get the message, thanks.

Anton
___
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: No sound from speaker, using Realtek ALC269 and snd_hda

2012-10-30 Thread Alexander Motin

On 30.10.2012 09:17, Big Yuuta wrote:

Hi Alexander,

I got the sound out of that speaker!! :)

I actually started to read your code, and I'm still trying to understand
the stuff in it (I never wrote a device driver)

Anyway, so I did a little hack'ish modification (just to test) in function

hdaa_audio_ctl_amp_set_internal(struct hdaa_devinfo *devinfo, nid_t nid,
int index, int lmute, int rmute,
int left, int right, int dir)
{
uint16_t v = 0;

 // Do not mute, even if asked for. Test to be removed of course
 lmute = 0;
 rmute = 0;


I know, this is absolutely NOT the way to do it, but I wanted to see
if the speaker wasn't muted (or the mixer that controls it)
and it -actually- WAS muted!

Now, I guess I'll have to read the whole code, try to understand its
internals, and I hope to be able to write a patch to add to hdaa_patches.c


Speaker should be muted on headphones connection. That is one of two 
ways of handling playback redirection. But it should be unmuted on 
disconnection. You may try to set sysctl hw.snd.verbose=4 and 
connect/disconnect headphones. It should report which controls are 
affected and how.


You may try this hack to use pin controls instead of muters for redirection:
--- hdaa.c  (revision 242315)
+++ hdaa.c  (working copy)
@@ -260,7 +260,7 @@
/* (Un)Mute headphone pin. */
ctl = hdaa_audio_ctl_amp_get(devinfo,
w->nid, HDAA_CTL_IN, -1, 1);
-   if (ctl != NULL && ctl->mute) {
+   if (ctl != NULL && ctl->mute && 0) {
/* If pin has muter - use it. */
val = connected ? 0 : 1;
if (val != ctl->forcemute) {
@@ -290,7 +290,7 @@ hdaa_hpredir_handler(struct hdaa_widget *w)
continue;
ctl = hdaa_audio_ctl_amp_get(devinfo,
as->pins[j], HDAA_CTL_IN, -1, 1);
-   if (ctl != NULL && ctl->mute) {
+   if (ctl != NULL && ctl->mute && 0) {
/* If pin has muter - use it. */
val = connected ? 1 : 0;
if (val == ctl->forcemute)


--
Alexander Motin
___
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: No sound from speaker, using Realtek ALC269 and snd_hda

2012-10-30 Thread Big Yuuta
Hi Alexander,

I got the sound out of that speaker!! :)

I actually started to read your code, and I'm still trying to understand
the stuff in it (I never wrote a device driver)

Anyway, so I did a little hack'ish modification (just to test) in function

hdaa_audio_ctl_amp_set_internal(struct hdaa_devinfo *devinfo, nid_t nid,
int index, int lmute, int rmute,
int left, int right, int dir)
{
uint16_t v = 0;

// Do not mute, even if asked for. Test to be removed of course
lmute = 0;
rmute = 0;


I know, this is absolutely NOT the way to do it, but I wanted to see
if the speaker wasn't muted (or the mixer that controls it)
and it -actually- WAS muted!

Now, I guess I'll have to read the whole code, try to understand its
internals, and I hope to be able to write a patch to add to hdaa_patches.c

I'm just a beginner, but I'll try anyway :)


On Mon, Oct 29, 2012 at 6:09 PM, Big Yuuta  wrote:
> On Mon, Oct 29, 2012 at 5:46 PM, Alexander Motin  wrote:
>> On 29.10.2012 18:35, Big Yuuta wrote:
>>>
>>> On Mon, Oct 29, 2012 at 5:07 PM, Alexander Motin  wrote:

 On 29.10.2012 17:44, Big Yuuta wrote:
>
> On Sun, Oct 28, 2012 at 10:34 PM, Alexander Motin 
> wrote:
>>
>>
>> Also check that pin sensing is working. Try to plug in/out headphones.
>> With
>> verbose messages enabled, you should see messages about that on console
>> and
>> in logs.
>
>
>
> Pin sensing works fine. I tested it and whenever I plug the headphone
> in,
> I can hear the sound from the headphone, and I have this output
> on the console:
>
> hdaa0: Pin sense: nid=26 sence=0x8000 (connected)
> pcm0: Redirect output to: headphones
> hdaa0: Pin sense: nid=26 sence=0x (disconnected)
> pcm0: Redirect output to: main
>
> I think the redirection works, but nid20 is not well set? Is "main" here
> the 1st nid of the association? i.e. nid20 which has seq=0?



 Not necessary the seq=0, as it can be multichannel output, but in this
 case
 -- yes.


> I hope I'm not bothering you with my questions, and again thanks
> a lot for all your work, patience, and help!



 Unfortunately I am almost run out of ideas. Neither Linux nor audio/oss
 seems have specific code for your system. That makes me think that
 problem
 is in some different basic assumptions in the drivers. But that doesn't
 give
 any hint to find it out.

 You may try to play with setting different levels of ivref/ovref voltages
 via hint.hdaa.0.config tunable. I haven't even seen it affecting power
 amplifier, but who knows...
>>>
>>>
>>> Thank you, Alexander! :)
>>>
>>> In fact, this netbook works very fine with audio/oss from ports.
>>> My only problem with audio/oss is that whenever I skip (seek) in a
>>> video or an audio file, freebsd crashes and reboots.
>>>
>>> I know it's a problem with mplayer + oss, because, mplayer
>>> with snd_hda works (except speaker) and oss + vlc works
>>>
>>> But I like mplayer more than vlc ;)
>>
>>
>> I don't have plans to support audio/oss, but I would be interested to
>> diagnose this issue with snd_hda. Unfortunately, I am not sure what else can
>> I do now without access to the hardware for low-level debugging. If somebody
>> with the same netbook and the same problem appears at MeetBSD California or
>> otherwise in San Jose in following days, I would be glad to look. Other
>> problematic sound hardware is also welcome.
>
> Perfect! Thank you so much! And if I ever make it work, I'll tell you.
>
> Thanks again :)
___
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: Famp Server

2012-10-30 Thread Peter Vereshagin
Hello.

2012/10/29 16:28:11 -0400 Michael Powell  => To 
freebsd-questions@freebsd.org :
MP> Perhaps by way of example I can illustrate: I run Apache as FastCGI with 
the 
MP> event-mpm, mysql, memcached, and PHP in the FPM configuration. It is a 
MP> highly customized and tuned environment which is easily obtained utilizing 
MP> the inherent configurability of the FreeBSD ports system. 

jfmi: Which of them can not be found in a 'gentoo'?

MP> When such a meta port comes into play, there are defaults chosen which 
begin 
MP> to reflect the same kind of restrictions as I outlined before in my reasons 
MP> for not migrating my chosen environment to Linux.

You can configure separately each port the metaport consists of and then build
that metaport. Those "defaults chosen from begin" do not depend on if the
'nested' port is being built as a part of a metaport build process or
separately thus no restrictions observed.

MP> I suggest, instead of 
MP> leaning on the meta port approach, that the true power of FreeBSD would be 
MP> more fully realized by learning to be a proper system admin. You will also 

What if being a proper sysadm means ability to deploy a package on thousands
(tens of thaousands, etc.) of machines? In formal terms this means create a
package and install on the every machine. This cannot be a several packages
because this makes the whole task less quick and the solution less reliable.
And the creation of such a package can be a more trivial task for sysadm than
the such of a package installation or upgrade by itself.

Such a metaport can be a person-scale/company-wide solution, not a public one
so no harm for the general freebsd usage approaches/pphilosophy which is a
kind of a public stuff.

--
Peter Vereshagin  (http://vereshagin.org) pgp: A0E26627 
___
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"