Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Mar 2013 19:03:32 +0100
From:      kaltheat@googlemail.com
To:        CeDeROM <cederom@tlen.pl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how to disable bluetooth
Message-ID:  <20130302180332.GA54872@sol>
In-Reply-To: <CAFYkXjm9ZS2rdNCnbrXSD%2BRxg2USGzSBrivrUHB62ddtSwWcQQ@mail.gmail.com>
References:  <CAFYkXjmNH6n4VL-CUsQkM3TF1XzMP71BZ2EERaX8S8%2Btyc9m7g@mail.gmail.com> <20130227174137.cc0c9ad4.freebsd@edvax.de> <CAFYkXjnQqV7EoczY06N0W%2Ban3pZWN8w2nq-3uFbM9=DbF9m_Ug@mail.gmail.com> <20130301183049.GB2161@sol> <CAFYkXjm9ZS2rdNCnbrXSD%2BRxg2USGzSBrivrUHB62ddtSwWcQQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 01, 2013 at 09:50:45PM +0100, CeDeROM wrote:
> On Fri, Mar 1, 2013 at 7:30 PM,  kaltheat wrote:
> > On Wed, Feb 27, 2013 at 06:31:38PM +0100, CeDeROM wrote:
> >> hey hey :-)  its not that i dont want the bluetooth at all, just want to
> >> shut it down when its supposed to be shut down :-) bluetooth stack is
> >> always functional and my device is always visible even if i disable all
> >> bluetooth services, this seems insecure a bit huh. :-)
> >
> > You might want to create a cutomized minimal kernel and load every module
> > either by /boot/loader.conf or by hand.
> 
> Yea, I have noticed that defaul kernel now contains everything. I am
> not sure if this is a good choice. Do you know how can I mark which
> code pieces should be build as modules and which ones should become
> part of kernel? I got lots of modules - are they built into the kernel
> or loaded one by one at boot time?
> 
> Thank you! :-)
> Tomek

Well. I don't think that it contains everything.
Do `kldstat -v` to get informations on modules built into kernel and modules
loaded seperately.
You can mark code pieces you want to have in kernel by writing a KERNCONF
file. Details can be taken from handbook[1]. You may find other step-by-step
instructions in forum[2] and on several blogs. I saw some posts of people
sharing their minimal kernel configuration file. It's interesting for people
using laptops and wanting to save as much power as possible, too.

Regards,
kaltheat

[1] http://www.freebsd.org/doc/handbook/kernelconfig-building.html
[2] https://forums.freebsd.org/





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130302180332.GA54872>