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 50 forks source link

Dell XPS 17 not working on Ubuntu 11.04 #419

Closed marlee closed 13 years ago

marlee commented 13 years ago

sudo apt-add-repository ppa:mj-casalogic/bumblebee sudo apt-get update sudo apt-get install bumblebee

$ optirun glxgears

and nothing happens just:

$ optirun glxgears

Hoverbear commented 13 years ago

This is also present in the a Lenovo T420 with optimus I submitted a bug report re: issue 404

ArchangeGabriel commented 13 years ago

Can you please upload both enable and disable scripts ?

marlee commented 13 years ago

Enable cart:

modprobe acpi_call

if ! lsmod | grep -q acpi_call; then echo "Error: acpi_call module not loaded" exit fi

acpicall () { echo "$" > /proc/acpi/call result=$(cat /proc/acpi/call) case "$result" in Error_) echo "Enabling nVidia Card failed ($result)." ;; *) echo "Enabling nVidia Card Succeded." ;; esac }

INSERTPOWERON

echo _PS0 $(acpi_call "_SB.PCI0.PEG0.PEGP._PS0")

modprobe nvidia-current


Disable cart:

rmmod nvidia if lsmod | grep -q nvidia; then echo "Error: could not unload nvidia module, leaving card turned on" exit fi modprobe acpi_call

if ! lsmod | grep -q acpi_call; then echo "Error: acpi_call module not loaded" exit fi

acpicall () { echo "$" > /proc/acpi/call result=$(cat /proc/acpi/call) case "$result" in Error_)
echo "Disabling nVidia Card failed ($result)." ;;
*)
echo "Disabling nVidia Card Succeded."
;;
esac
}

INSERTPOWEROFF

echo _DSM $(acpi_call "_SB.PCI0.PEG0.PEGP._DSM" \ "{0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47," \ "0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0}" \ "0x100 0x1A {0x1,0x0,0x0,0x3}")

ok to turn off: Buffer {0x59 0x0 0x0 0x11}

# is already off: Buffer {0x41 0x0 0x0 0x11}

echo _PS3 $(acpi_call "_SB.PCI0.PEG0.PEGP._PS3")

ArchangeGabriel commented 13 years ago

Ok, I think that these scripts aren't the good ones...

Could you do the following : sudo apt-get install acpidump iasl mkdir ~/acpiinfo ; cd ~/acpiinfo sudo acpidump > acpidump.txt sudo acpixtract acpidump.txt ls *.dat | while read i; do iasl -d "${i}"; done && name=sudo dmidecode -s system-product-name` mkdir "${name}" && cp *.dsl "${name}"/ && tar czf "${name}.tar.gz" "${name}"/ && ls -l "$( pwd )/${name}".tar.gz`

And then upload the .tar.gz file created somewhere and link it here.

I found from where come your scripts, and the people who wrote them did it a very bad way...

marlee commented 13 years ago

http://chomikuj.pl/lesz.mar/Dell%20System%20XPS%20L702X.tar.gz

ArchangeGabriel commented 13 years ago

Thank you, I will study that and come back with a solution.

However, I going to sleep right now and I'm over busy for tomorrow, so don't expect anything before Monday.

ArchangeGabriel commented 13 years ago

Ok, I think I've found the solution for the biggest problem.

Could you post here the content of /etc/X11/xorg.conf.nvidia ?

marlee commented 13 years ago

http://chomikuj.pl/lesz.mar/xorg.conf,769285709.nvidia

MrMEEE commented 13 years ago

ok.. this was a bug introduced by the new configuration script.. this is now fixed in both git and ppa..

Please update...

ArchangeGabriel commented 13 years ago

I'm having the calls, will add them soon.

Lucas-C commented 13 years ago

Hi.

I think the problem persists on some form.

Dell XPS 15 L502x NVIDIA GeForce GT 525M, 1G Ubuntu 10.10 64bits (upgraded to 2.6.38-4-generic kernel)

$ optirun64 glxgears

* Starting Bumblebee X server bumblebee _PS0 Enabling nVidia Card Succeded. ...done

A window flashes quicly but close immediately.

I tested another application (a game made with SFML) and it reacts the same way, with some excedent output of openal error messages.

MrMEEE commented 13 years ago

Have you tried with another image transport

optirun -c (proxy,jpeg,xv,yuv)

Lucas-C commented 13 years ago

No, and it worked ! Thanks a lot ! "proxy" work fine; "jpeg" is a bit laggy but "xv" and "yuv" both crash.

marlee commented 13 years ago

Now I have a problem with suspend/hibernate and freezing system, when the card nvidia is deactivated. When the cards nvidia do not turn off, everything is OK. Dell XPS l702x, nvidia GeForce GT 555M

DISABLECART: echo _DSM $(acpi_call "_SB.PCI0.PEG0.PEGP._DSM {0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47,0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0} 0x100 0x1A {0x1,0x0,0x0,0x3}") echo _PS3 $(acpi_call "_SB.PCI0.PEG0.PEGP._PS3")

ArchangeGabriel commented 13 years ago

Yes, this is a known issue, but normally the card should be turned on by the system when you suspend/hibernate.