You are not logged in.
Pages: 1
Hi,
I've just migrated to systemd and I've discovered that vgaswitcheroo is gone.
So I've installed acpi_call-git from AUR http://aur.archlinux.org/packages.php?ID=39470
now the test_off.sh script give me:
# test_off.sh
Trying \_SB.PCI0.P0P1.VGA._OFF: failed
Trying \_SB.PCI0.P0P2.VGA._OFF: failed
Trying \_SB_.PCI0.OVGA.ATPX: failed
Trying \_SB_.PCI0.OVGA.XTPX: failed
Trying \_SB.PCI0.P0P3.PEGP._OFF: works!
so far, so good.. but... I need to execute it from root or with sudo
now I want to load acpi_call module on boot with systemd, so I've created a new file in /etc/modules-load.d/ called acpi_call.conf containing
acpi_call
now on boot I get acpi_call module loaded:
$ lsmod | grep acpi_call
acpi_call 4791 0
very well. Now I need to create a script to send the correct command to acpi_call. In /usr/local/bin I've created my switchoff script:
sudo sh -c "echo '\_SB.PCI0.PEG0.PEGP._OFF' > /proc/acpi/call"
BUT... executing it on boot nor from command line I get
$ dmesg | grep acpi_call
[ 6.090261] acpi_call: Module loaded successfully
[ 44.364205] acpi_call: Calling \_SB.PCI0.PEG0.PEGP._OFF
[ 44.364215] acpi_call: Cannot get handle: Error: AE_NOT_FOUND
[ 60.319973] acpi_call: Calling \_SB.PCI0.PEG0.PEGP._OFF
[ 60.319992] acpi_call: Cannot get handle: Error: AE_NOT_FOUND
[ 96.766350] acpi_call: Calling \_SB.PCI0.PEG0.PEGP._OFF
[ 96.766369] acpi_call: Cannot get handle: Error: AE_NOT_FOUND
[ 292.208153] acpi_call: Calling \_SB.PCI0.PEG0.PEGP._OFF
[ 292.208174] acpi_call: Cannot get handle: Error: AE_NOT_FOUND
It works only if called from the test_off switch... how could I get it to work?
Thanks,
enrico
Last edited by enricostn (2012-09-05 14:49:48)
Offline
me fool...
the correct script is, in my case:
sudo sh -c "echo '\_SB.PCI0.P0P3.PEGP._OFF' > /proc/acpi/call"
just taken from test_off "works!" result.
thank you Kevin Geurts!
Offline
Pages: 1