← Back to team overview

hybrid-graphics-linux team mailing list archive

Re: Samsung RF711 S07 and Optirun

 

Thanks, this helps!
Bumblebee is installed and the acpi_call is this which works:
\_SB.PCI0.PEG0.PEGP._ON
Now i have to adjust the enable and disable scripts.
How can i do this? What should i change in this template
that the script works?
#-->Begin
#!/bin/bash
# This script should contain the command(s) necessary to switch on the
# nVidia card.
# This is a template script.
#
# Please note that the acpi_call module is need for these operations:
# http://linux-hybrid-graphics.blogspot.com/2010/07/using-acpicall-module-to-switch-onoff.html

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

acpi_call () {
    echo "$*" > /proc/acpi/call
    result=$(cat /proc/acpi/call)
    case "$result" in
     Error*)
      echo "Enabling nVidia card failed ($result)."
      ;;
     *)
      echo "Enabling nVidia card succeeded."
     ;;
    esac
}

INSERTPOWERON \_SB.PCI0.PEG0.PEGP._ON

modprobe nvidia-current
#-->END


Am 06.07.2011 14:41, schrieb Albert Vilella:
This means that it's already loaded. You can either load it every time
you reboot, or permanently load it using:

sudo cp acpi_call.ko /lib/modules/`uname -r`/kernel/drivers/acpi/
sudo depmod

On Wed, Jul 6, 2011 at 1:27 PM, Michel Schweegmann
<michel.schweegmann@xxxxxxxx>  wrote:
Hi,

thanks for your help!

if i try to load the acpi_call.ko to the kernel
i get the following error:
"insmod: error inserting 'acpi_call.ko': -1 File exists"
What should i do?

Thanks for your time.

Michel
Am 05.07.2011 08:54, schrieb Madura Anushanga:
Hi
Download the acpi_call module source from here,
http://github.com/mkottman/acpi_call
you have to compile it by using,
make
# and load it to kernel
sudo insmod acpi_call.ko
# runt the test script
./test_off.sh

The test script will list the code for turning off your card, just
replace OFF in that code with ON for the code that will enable the
card, then to enable the card again you just have to
echo (CODE)>    /proc/acpi/call

Take a look at the howto below to make it run at startup every time.
Make sure you edit the bumblebee-enablecard and bumblebee-dsiablecard
files bumblebee uses them to enable and disable the card.
https://help.ubuntu.com/community/RcLocalHowto

hope it helps,
             - Madura A.



On Tue, Jul 5, 2011 at 2:06 AM, Michel Schweegmann
<michel.schweegmann@xxxxxxxx>    wrote:
Hello.

I've a Samsung RF711 S07 with a Nvidia GeForce 540M and a Intel Core i7
(2nd generation).

I have succesfully installed bumblebee on Ubuntu / Kubuntu 11.04, but
i'm not sure what to do
by editing the scrips to enable/disable the card.
How can i create a script which should work? I can't find a template in
the template folder
from bumblebee.

If i try to start a appication with optirun programname, it shows me
this message:
_PS0 Enabling nVidia Card failed (Error: AE_NOT_FOUND).
I copied a random template from the scripts to /usr/local/bin. It
doesn't work for me.

How can i create such scripts for this notebook?

Sorry for my bad english. I hope you can understand my problem..

Best regards, Michel
--
This message was sent from Launchpad by
Michel Schweegmann (https://launchpad.net/~michel-schweegmann)
using the "Contact this team" link on the Hybrid Graphics Linux team page
(https://launchpad.net/~hybrid-graphics-linux).
For more information see
https://help.launchpad.net/YourAccount/ContactingPeople

_______________________________________________
Mailing list: https://launchpad.net/~hybrid-graphics-linux
Post to     : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~hybrid-graphics-linux
More help   : https://help.launchpad.net/ListHelp


_______________________________________________
Mailing list: https://launchpad.net/~hybrid-graphics-linux
Post to     : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~hybrid-graphics-linux
More help   : https://help.launchpad.net/ListHelp




References