MrMEEE / bumblebee-Old-and-abbandoned

OUTDATED!!!!! - Replaced by "The Bumblebee Project" and "Ironhide"
http://www.martin-juhl.dk/2011/08/ironhide-reporting-for-duty/
469 stars 49 forks source link

Gentoo Support #36

Closed MrMEEE closed 13 years ago

MrMEEE commented 13 years ago

buboleck wrote:

I would also appreciate Gentoo ebuild. Maybe some update in the README for distro specific installation is needed too. Installation script refuse to install on Gentoo (always spit message that I run the install.sh as root, but I start it from normal user with sudo).

Anyway this are thing that will be polished. I appreciate the hard work. Cheers

buboleck commented 13 years ago

I can provide testing with Gentoo. My laptop is Acer Aspire 5742G. Maybe in the weekend I will install Ubuntu on a spare partition to test Bumblebee and to provide bugreport in order to provide you information about the hardware.

MrMEEE commented 13 years ago

From Iegor:

My name is Iegor, I am proud owner of ASUS N61jv, recently I've downloaded your beautiful optimus problem solution. But found that it is supposed to be installed on Ubuntu initially. I am trying now to bring this tool to the gentoo (create installation) but having some hard time with xdm-optimus daemon starting and operating

I've already transformed your install.sh script into simple ebuild for layman and performed "successful" installation (i.e. files are copied and links are created).

If you will need those files just send me letter and I will send them to you (not doing it now because I don't know if you need them). And if/when I will send you those files could you please help me by looking at them and maybe send me a letter with info on what I did wrong ?

As I said I still have troubles to bring /etc/init.d/xdm-optimus to operational state, although I've splitted initial .script file into: /etc/init.d - part /etc/conf.d - part

optirun64/32 torcs (I don't have *gears :) ) gives [VGL] ERROR: Could not open display :1.

Sorry if I forgot about anything, I am not exactly a part of hybrid-linux project. I did sign to receive all email but I didn't aplied as tester or created any component for it. Actually this is my first email about linux, so excuse me issues that I made writing it :)

Cheers, Iegor Danylchenko

iegor commented 13 years ago

Hi Martin,

I am already opened git hub account and can create repository containing all I have done with your bumblebee in last two days.

I never did such things and I think I need your approval for doing such a thing.

Could you please assist me with this in any way you can, as I understand you are very busy now with your own initiatives.

I did not change any license strings or copyright info within files I have made from your scripts, all of them either empty (i.e. with no info about license or copyright etc.) or contain info added by you.

Cheers, Iegor

MrMEEE commented 13 years ago

Hi Iegor..

I have no problem, that you are working on my script...

I will try to keep track on what you are doing, and maybe in time implement in my version...

buboleck commented 13 years ago

Hello Iegor,

Is there any progress with the ebuild? Can you share it, maybe I can help with it?

Cheers

iegor commented 13 years ago

Hello buboleck,

Sorry for holding with sharing files, I am in kind of "HOT WATER" now on my work, I will try to do it today. Of course any help, comments, critics will be appreciated and met with gratefulness. I am new bee in ebuild writing though so please take into account that I can make (and certainly did) mistakes in that :)

Cheers

iegor commented 13 years ago

Hi everyone, I've uploaded everything. Cheers

iegor commented 13 years ago

https://github.com/iegor/bumblebee-Gentoo-support

buboleck commented 13 years ago

Thanks, I will take a look when I have some free time.

Cheers

iegor commented 13 years ago

here is the update:

tried to launch separate X session for testing bumblebee with .sh script which contains:

| #!/bin/bash | # Testing bumblebee on my machine | xinit /home/rainman/src/bumblebee-gentoo-support/init_test.xinitrc -- :1 -config /etc/X11/xorg.conf.nvidia

init_test.xinitrc contains:

| // Copied from standart xinitrc // | ... | # start some nice programs | vglrun -ld /usr/lib64 -d :1 /usr/bin/uxterm -bg grey -fn 7x14 -maximized

used vglrun because can't find optirun64 under sudo and sudo used because can't assign another config to xinit without sudo.

nothing appeared, although uxterm is running, checked with "pe -fe | grep uxterm"

in terminal where xinit was called there is somekind of log of what is happening. apparently I missed something with vglrun command because it says:

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

iegor commented 13 years ago

Hm, I am also not sure that nvidia is running (this might be a mistake) but when I running windows on my laptop there is a led indicators on laptop body that tells when nvidia is on, and now they are not telling anything about nvidia.

iegor commented 13 years ago

but I can type in the terminal commands like "exit" and then execute them with pressing on 'return'

iegor commented 13 years ago

Hello guys,

I am stuck a little with launching bumblebee. The fact that I am not sure how start and stop bumblebee procedures should be done is slowing me down with releasing something descent.

Could you please help me with that please?

Hey Martin, it would be great if you could write about bumblebee correct startup procedure, or give me a link to that kind of info in the web.

Also when I installed nvidia-drivers package I found that I don't have /usr/lib/nvidia-current directory. Could that mean that I've installed nvidia-drivers incorrectly ?

Cheers

buboleck commented 13 years ago

Hello,

In Gentoo the nVidia libraries are here:

/usr/lib/libnvidia-cfg.so /usr/lib/libnvidia-cfg.so.1 /usr/lib/libnvidia-cfg.so.270.41.19 /usr/lib/libnvidia-compiler.so /usr/lib/libnvidia-compiler.so.1 /usr/lib/libnvidia-compiler.so.270.41.19 /usr/lib/libnvidia-glcore.so /usr/lib/libnvidia-glcore.so.1 /usr/lib/libnvidia-glcore.so.270.41.19 /usr/lib/libnvidia-ml.so /usr/lib/libnvidia-ml.so.1 /usr/lib/libnvidia-ml.so.270.41.19 /usr/lib/libvdpau_nvidia.so /usr/lib/libvdpau_nvidia.so.1 /usr/lib/libvdpau_nvidia.so.270.41.19 /usr/lib/opengl/nvidia /usr/lib/opengl/nvidia/extensions /usr/lib/opengl/nvidia/lib /usr/lib/opengl/nvidia/extensions/libglx.so /usr/lib/opengl/nvidia/extensions/libglx.so.270.41.19 /usr/lib/opengl/nvidia/lib/libGL.so /usr/lib/opengl/nvidia/lib/libGL.so.1 /usr/lib/opengl/nvidia/lib/libGL.so.270.41.19 /usr/lib/opengl/nvidia/lib/libnvidia-tls.so /usr/lib/opengl/nvidia/lib/libnvidia-tls.so.1 /usr/lib/opengl/nvidia/lib/libnvidia-tls.so.270.41.19

I didn't have time to install and test it yet.

iegor commented 13 years ago

Hello guys,

I have an update for what I've done for now. I've rearranged files so that layman can --add bumblebee right after user will add info into cache.xml file in the /var/lib/layman/, but after changing cache you should not do layman -S or sync any package in layman (changes in cache.xml will be lost).

So the procedure is pretty simple now.

  1. copy/paste info from ( layman_files / insert_into_cache.xml ) to /var/lib/layman/cache_.xml ( means set of numbers)
  2. enter sudo layman --add bumblebee, in term of your choise
  3. sudo emerge bumblebee ( -pvt to make sure everything is as expected ) :)

everything should install now pretty smooth. I did digesting before commiting, so if it is not working just re-digest it your self.

Oh, there is one more thing, about re-digesting. today I spent lots of time on finding out what is the reason for my ebuild groing in the size after getting it from github. That was CRLF issue. Solution was to set --global core.autocrlf input with sudo. It turns out every time I get it from github, my git was changing local copies in /var/lib/layman

Still working on launching optirun/64 glxgears though. Have received helpful info about ebuild for VirtualGL from one of github users.

Cheers, Iegor