Closed marlee closed 13 years ago
This is also present in the a Lenovo T420 with optimus I submitted a bug report re: issue 404
Can you please upload both enable and disable scripts ?
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 }
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
}
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}")
# is already off: Buffer {0x41 0x0 0x0 0x11}
echo _PS3 $(acpi_call "_SB.PCI0.PEG0.PEGP._PS3")
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...
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.
Ok, I think I've found the solution for the biggest problem.
Could you post here the content of /etc/X11/xorg.conf.nvidia ?
ok.. this was a bug introduced by the new configuration script.. this is now fixed in both git and ppa..
Please update...
I'm having the calls, will add them soon.
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.
Have you tried with another image transport
optirun -c (proxy,jpeg,xv,yuv)
No, and it worked ! Thanks a lot ! "proxy" work fine; "jpeg" is a bit laggy but "xv" and "yuv" both crash.
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")
Yes, this is a known issue, but normally the card should be turned on by the system when you suspend/hibernate.
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
_PS0 Enabling nVidia Card Succeded. [ OK ]
_DSM Disabling nVidia Card Succeded. _PS3 Disabling nVidia Card Succeded. [ OK ]