Subject: Re: Problem with Xorg and maybe wscons too?
To: Marco Trillo <marcotrillo@gmail.com>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 10/26/2006 09:01:56
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Oct 26, 2006, at 07:19, Marco Trillo wrote:

> Audio works great, since the eMac uses the TAS3004 audio chip
> supported by the snapper(4) driver. You simply have to activate the
> driver and build the kernel.
>
> The complete documentation on building a kernel is available on the
> NetBSD website:
>
> http://www.netbsd.org/Documentation/kernel/#how_to_build_a_kernel
>
> In the step 6 in which you edit the config file, you simply need to
> activate the driver:
>
> Search the string "snapper" to find the following line:
>
> #snapper* at obio?			# Snapper audio device
>
> Uncomment the line by removing the first hash character (#) .
>
> Just a few lines above the snapper line you have this:
>
> #ki2c*	at obio?			# Keywest I2C
>
> You need to uncomment that line too since ki2c is needed by snapper(4)
> to operate.

That's not enough anymore - what matters is
deq* at ki2c?
Since there may be other devices hooked up to the iic bus which we may 
want to use I changed the snapper driver to not talk to the ki2c 
directly anymore but look for deq instead.
Without deq snapper won't be able to find its mixer.
It may be worth a try to have both ki2c ( at obio and at uni_n ), 
adm1030c at ki2c and adt7467c at ki2c enabled - chances are that the 
eMac uses one of those thermal monitor / fan controller chips. That 
would give various temperatures, fan speeds etc. via envsys.

> Then search again by "snapper" to find the following line:
>
> #audio*	at snapper?
>
> Again, uncomment it by removing the # character. This will attach the
> audio(4) interface to the snapper(4) driver.
>
> By the way you can uncomment the OFB_ENABLE_CACHE option too, since it
> greatly improves the console speed:
>
> # OFB_ENABLE_CACHE speeds up the console on many machines, but should
> # not be enabled on some older machines, such as the rev. A-D iMacs.
> #options 	OFB_ENABLE_CACHE	# Speed up console
>
> Of course this is unrelated to audio and is not required.

Reminds me - I need to clean up and commit the code that allows us to 
use hardware accelerated framebuffer drivers as console. That would 
also eliminate the messed up screen when X exits, at least with drivers 
that know how to change video modes ( like radeonfb... )

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRUCxxMpnzkX8Yg2nAQLlfQgAtpg6kyaxyv73xnn/Fn4VXg3A+ip9kYMC
l4euKjaiQ0me93FLUv81h8mXW+0RmLHMtUvF8KXrydaJ0SHSr/z/ITXre5Ap+x0F
OeL6wr9AvwZulu7AfmjKkjPiFUGMJULUOIpFF0CvjL1j87E1un+reTZc01T5f/E4
ogos7n0IpUPU3xk0o1hgr8N8lEGzAx0OrUk8BWIIzum9y2xgH1g/hPcAZFeNFdVj
kAwhYJDqz+WVhdHbzYJj8zkVuDFDv+dsM3IeEddKIRhuxiS/mGFcpLy5lM53LCfY
x+oFg3958S9GkEoZ831YvjVo3mZi4KXIiDgdicORr7CEWZfscFZVTg==
=z0sj
-----END PGP SIGNATURE-----