Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Mar 2012 10:36:44 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        Baptiste Daroussin <bapt@freebsd.org>, Ade Lovett <ade@freebsd.org>, freebsd-ports@freebsd.org
Subject:   Re: Fix nvidia-like ports, help needed
Message-ID:  <4F51133C.7030902@FreeBSD.org>
In-Reply-To: <20120302094710.GD75778@deviant.kiev.zoral.com.ua>
References:  <20120223072132.GB88092@azathoth.lan> <20120223093421.Horde.oN2FMZjmRSRPRfoNKQ4BA-g@webmail.leidinger.net> <d0ee88b5486535475f0c1c4bf5ecea55@etoilebsd.net> <20294.39398.620930.217619@gromit.timing.com> <20120223211406.GA14803@azathoth.lan> <4F46D751.2090100@FreeBSD.org> <20120228211513.GD99283@azathoth.lan> <4F4D44F0.9060901@FreeBSD.org> <20120228223656.GF99283@azathoth.lan> <4F509414.3070605@FreeBSD.org> <20120302094710.GD75778@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 03/02/2012 01:47, Konstantin Belousov wrote:
> On Fri, Mar 02, 2012 at 01:34:12AM -0800, Doug Barton wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> On 02/28/2012 14:36, Baptiste Daroussin wrote:
>>> On Tue, Feb 28, 2012 at 01:19:44PM -0800, Doug Barton wrote:
>>>> On 2/28/2012 1:15 PM, Baptiste Daroussin wrote:
>>>>> Here is a patch to add support for includedir keyword to
>>>>> libmap.conf so that we
>>>>
>>>> I think this is overly complicated, and not generally useful. It
>>>> also delays the utility of the solution until this gets into the
>>>> base.
>>>>
>>>> What I would do instead is to incorporate an nvidia option into
>>>> the xorg meta-port, and separate the GL libs into a separate
>>>> port. If the nvidia option is checked the GL libs come from an
>>>> nvidia slave port. If not, they come from an xorg-server slave
>>>> port.
>>>>
>>>> Or, we just keep doing what we're doing now, since it works. I'm
>>>> still not sure what problem we're trying to solve. :)
>>>>
>>>>
>>>> Doug
>>>
>>> the problem we are trying to solve is to avoid having the nvidia
>>> drivers overwritting libGL.so.1 which break the package database
>>> consistency.
>>
>> In that case the solution I outlined above would work, and it's hard
>> for me to see why it wouldn't be the best solution.
>
> There are hybrid machines which have both Intel and NVidia GPUs.
> Depending on a switch position, you may activate one of the GPU.
> Usually, on-CPU GPU gives power efficiency, while discrete one provdes
> a performance.
> 
> For such machines, it is _very_ useful to have both libGL.so.1 installed
> and somehow switched around. It would be best to have Mesa and NVidia
> libGL.so.1 installed under other names, like libGL-mesa.so.1. and
> ligGL-nvidia.so.1, and provide a symlink for libGL.so.1
> 
> BTW, besides libGL.so.1, another conflicting file is
> /usr/local/lib/xorg/modules/extensions/libglx.so.

For us to support that would actually require a script of some sort, but
it's not impossible. If the switch you're referring to provides a devd
event it could even be automated, although (AFAIK) you'd have to restart
X. I'm not opposed to what you're proposing, install both libs and
symlink one or the other ... but that situation is still most easily
handled by having the GL components of both xorg-server and
nvidia-driver being split out into separate slave ports.


Doug

- -- 

    This .signature sanitized for your protection
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iQEcBAEBCAAGBQJPURM8AAoJEFzGhvEaGryE1k0IAIk3Ah/29qsu43ivE0Twycc0
Mmv66FpgmVSxlBBuySpWhw+zHhGBVU9wN5X/fYSG1r70oYInq/lnFP65hBt/hyXj
/Cpua4x/RtfWj7RCszz39FyAe7sY8F3qGVgzxYBr5k8+7q/TDh5ezQdKbb++zZZF
5VbyITwCI8+f3P8UL1kidUu8J8GEPSbYWv7O7nDlddeyv0rR4Sc7WtF+84hJIqlX
XXzFCi64/5cC1tYstbUA4j8bMdEUYIAgCa07Ugs7OnLNiZVnnnxuuNqclEZBe5/w
XRnda183Jbf+9zin9FTckNxjdZE9CH74VwW+cSCuNWPYmfuUvfg5ve8qx676Gs8=
=oeZG
-----END PGP SIGNATURE-----



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