[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#673424: bbswitch packaging



On Sun, Mar 17, 2013 at 9:25 AM, Ritesh Raj Sarraf <rrs@researchut.com> wrote:
> On Thursday 28 February 2013 11:16 AM, Ritesh Raj Sarraf wrote:
>> Installed, rebooted and everything seems to be working fine. This is
>> on the following platform:
>>
>> rrs@zan:~$ uname -a
>> Linux zan 3.7-trunk-amd64 #1 SMP Debian 3.7.8-1~experimental.1 x86_64 GNU/Linux
>> rrs@zan:~$ lspci | grep NVIDIA
>> 01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [Quadro
>> K1000M] (rev ff)
>>
>>
>> PS: bumblebee 3.1 is supposed to have support for primus which I will
>> test once it can be built.
>
> I pulled in your changes today and built primus. It is playing well with
> my setup. Bumblebee is able to apply the power savings when
> optirun/primusrun is not in use.

I wasn't actually done with primus' packaging; for some reason I kept
on getting a strange error ("primus: fatal: failed to open secondary X
display") every time I tried running primusrun, even though it works
with the optirun+virtualgl backend, so I'm surprised that it worked
for you. That prompted me to dig deeper to find out what was causing
the issue for me; it turns out that, for whatever reason, reverting
one of my previous changes (overriding CXXFLAGS with dpkg-buildflags'
default build flags) fixed the problem for me, although I'm still
unsure why build hardening flags would've been the root cause. Oh
well...

> I did have to uncomment the following in primusrun to make it work.
>
> # Mesa drivers need a few symbols to be visible
> export PRIMUS_LOAD_GLOBAL=${PRIMUS_LOAD_GLOBAL:-'libglapi.so.0'}

Please pull in my latest commits and test primusrun without
uncommenting the above line. The primusrun wrapper script should still
work correctly.

> The NEW queue is big already and there's very little progress (has to do
> with the freeze). But you would want to push primus now for review.

Agreed, at this point I think bumblebee and primus are ready for
review (bbswitch is already in the NEW queue and I'm happy with it
as-is). If you're offering to review the package and/or sponsor it,
thanks in advance! And feel free to make changes directly in the git
repo if you want to change anything. :)

(Aron, if you have a bit of time to spare, could you also take a look
at the changes I've made to bumblebee + primus?)

Regards,
Vincent


Reply to: