You are not logged in.

#1 2011-10-13 08:40:16

microcz
Member
Registered: 2008-11-08
Posts: 45

arch32 subsystem and bumblebee optirun

Hello, i installed bumblebee for my Thinkpad T420 and configured arch32 subsystem in /etc/arch32. Both are working but i want to run 32 bit application installed in subsystem on my NVidia graphic card. Can you help me please, what am i supposed to do?

Here are outputs from glxinfo

$ glxinfo | grep renderer
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
$ optirun glxinfo | grep renderer
OpenGL renderer string: NVS 4200M/PCI/SSE2
$ optirun schroot -p -- glxinfo | grep renderer
OpenGL renderer string: Gallium 0.4 on llvmpipe"

Offline

#2 2011-10-14 11:35:37

microcz
Member
Registered: 2008-11-08
Posts: 45

Re: arch32 subsystem and bumblebee optirun

no suggestions? sad

Offline

#3 2011-10-15 15:35:24

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,389

Re: arch32 subsystem and bumblebee optirun

i assume you have lib32-virtualgl installed ?

can you clarify how you have setup that 'arch32 subsystem' and how you run apps in it ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2011-10-16 09:12:13

microcz
Member
Registered: 2008-11-08
Posts: 45

Re: arch32 subsystem and bumblebee optirun

Hello, thank you for the response,

I don't have lib32-virtualgl installed, because I don't want to use multilib on my 64bit arch. That is why I installed that arch32 subsystem: https://wiki.archlinux.org/index.php/In … _in_Arch64 (alternative lightweight install).

Now I am able to install i686 packages to this subsystem and run applications via:

schroot -p -- <application_name>

I can for example install wine into subsystem and than run:

schroot -p -- wine <win_app>

Everything is working well even the intel graphic card appeared in subsystem after: pacman32 -S xf86-video-intel. Only thing that is not working is optirun, i try to install virtualgl into subsystem but nothing has happened, maybe something has to be configured.

Offline

#5 2011-10-18 18:50:53

microcz
Member
Registered: 2008-11-08
Posts: 45

Re: arch32 subsystem and bumblebee optirun

So I reinstalled bumblebee to latest version (from aur) in my 64bit system and installed all xf86 VGA drivers into 32bit subsystem, now glxinfo look like this:

$ glxinfo | grep renderer
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
$ optirun glxinfo | grep renderer
OpenGL renderer string: NVS 4200M/PCI/SSE2
$ schroot -p -- glxinfo | grep renderer
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile x86/MMX/SSE2
$ optirun schroot -p -- glxinfo | grep renderer
/usr/bin/vglrun: line 200: hostname: command not found
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'librrfaker.so' from LD_PRELOAD cannot be preloaded: ignored.
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile x86/MMX/SSE2

Offline

#6 2011-10-20 21:49:24

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,389

Re: arch32 subsystem and bumblebee optirun

/usr/bin/vglrun: line 200: hostname: command not found

is because hostname command was moved from net-tools to inetutils .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2011-10-22 08:15:32

microcz
Member
Registered: 2008-11-08
Posts: 45

Re: arch32 subsystem and bumblebee optirun

thank you, i've installed inetutils and that message disappeared, but still can't switch to nvidia:

$ optirun schroot -p -- glxinfo | grep renderer
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'librrfaker.so' from LD_PRELOAD cannot be preloaded: ignored.
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile x86/MMX/SSE2

Offline

#8 2011-10-25 13:34:24

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,389

Re: arch32 subsystem and bumblebee optirun

http://www.virtualgl.org/vgldoc/2_1/#hd0010 , part 10 Using VirtualGL with setuid/setgid Executables is about that error.

1 workaround is to modify the script (schroot in this case) , another is to change the properties of the 2 libraries.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#9 2011-10-26 20:13:00

microcz
Member
Registered: 2008-11-08
Posts: 45

Re: arch32 subsystem and bumblebee optirun

thank you for advice, issue with that libraries has been solved, but NVidia still cannot be activated by: optirun schroot -p -- glxinfo | grep renderer

Finally fixed this issue....optirun has to be installed directly into the subsystem, but it works:

1) Install yaourt and other needed packages into subsystem:

sudo pacman32 -S yaourt tar gawk wget file patch automake 

2) Switch to the subsystem and configure yaourt:

sudo chroot /opt/arch32
cp etc/pacman32.conf pacman.conf
cp mirrorlist etc/pacman.d/mirrorlist

3) Install bumblebee:

linux32
yaourt -Sy bumblebee-thinkpad_w520_t520_t420
exit

4) Cleanup (OPTIONAL):

exit
sudo pacman32 -Rs yaourt net-tools nasm
sudo chroot /opt/arch32
rm etc/pacman.conf
rm -R etc/pacman.d
exit

5) Test:

schroot -p -- optirun glxinfo | grep renderer
OpenGL renderer string: NVS 4200M/PCI/SSE2

Offline

#10 2011-10-27 15:26:35

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,389

Re: arch32 subsystem and bumblebee optirun

nice find, glad i could help you.

Can you do 2 things  :
- please add [SOLVED} to the thread title (edit the first post)
- add something about this on the bumblebee page in the archwiki


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB