FreeBSD on macbook & backlight module
swhetzel at gmail.com
Sat Jan 12 22:45:09 PST 2008
On 1/12/08, michel Junger <michel.junger at gmail.com> wrote:
> The wiki page about FreeBSD on MacBook explains that it's possible to
> build a module to control backlight. A link points a depot where to
> download backlight.c and backlightvar.h but there's no README.
> I've tried to create a directory /usr/src/sys/dev/backlight put files in
> it, add a line "device backlight" in /usr/src/sys/i386/conf/GENERIC
> but make buildkernel ends with:
> config: Error: device "backlight" is unknown
> config: 1 errors
> *** Error code 1
> Is there someone who knows where to put these files under /usr/src and
> compile a new kernel ?
> Thanks for any help.
I had to google search to find the wiki, a link to it would have been nice.
To create the backlight.ko module, you'll need to create the
and then place the module Makefile in there:
cd /sys/modules/backlight ; fetch -o Makefile \
You'll also need to add backlight to /sys/modules/Makefile, as shown here:
To build it with your kernel, you would need to modify
/sys/conf/files, as shown here:
More information about the freebsd-current