You are not logged in.

#1 2011-09-30 15:32:45

betting4value
Member
Registered: 2011-09-29
Posts: 7

Where would I put this so it runs at startup? acpi_call nvidia

I am new to linux/arch.  I have an Asus UL30VT with hybrid nvidia graphics.  I have a few shell commands I can run that will turn off the nvidia card to save power.

insmod /usr/lib/acpi_call/acpi_call.ko
echo '\_SB.PCI0.P0P1.VGA._OFF' > /proc/acpi/call

The first line loads a kernal module and the second line turns off the nvidia device.

They were taken from:

https://launchpad.net/~hybrid-graphics-linux

I also have found that my keyboard brightness function keys do not work and the screen defaults to max brightness.  I am able to set the brightness in half with:

setpci -s 00:02.0 F4.B=7F

I would like all of these things to happen everytime at startup.  How should I run these commands at each startup?

insmod /usr/lib/acpi_call/acpi_call.ko
echo '\_SB.PCI0.P0P1.VGA._OFF' > /proc/acpi/call
setpci -s 00:02.0 F4.B=7F

Thanks.

Last edited by betting4value (2011-09-30 21:39:14)

Offline

#2 2011-09-30 15:35:37

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Where would I put this so it runs at startup? acpi_call nvidia

Offline

#3 2011-09-30 15:39:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Where would I put this so it runs at startup? acpi_call nvidia

Use rc.conf's MODULES array for the module, and rc.local for the commands.

Offline

#4 2011-09-30 15:42:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Where would I put this so it runs at startup? acpi_call nvidia

If you run into some problems or want more features, read https://wiki.archlinux.org/index.php/Hybrid_graphics and https://wiki.archlinux.org/index.php/As … vidia_card

Last edited by karol (2011-09-30 15:42:51)

Offline

#5 2011-09-30 15:48:59

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Where would I put this so it runs at startup? acpi_call nvidia

Not sure why you are putting a kernel module outside the kernel modules path?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2011-09-30 17:30:51

betting4value
Member
Registered: 2011-09-29
Posts: 7

Re: Where would I put this so it runs at startup? acpi_call nvidia

I successfully accomplished this by loading the module in rc.conf and using rc.local as suggested by tomk and further examples shown in the links provided by karol.

I found that after adding the commands to rc.local my login manager would hang 10 seconds or more on login and my battery meter applet(gnome3) would not be displayed.  I solved this by adding a sleep 3 before other commands in my rc.local.

Thank you everyone for your help.

Last edited by betting4value (2011-09-30 21:38:52)

Offline

#7 2011-09-30 21:39:00

betting4value
Member
Registered: 2011-09-29
Posts: 7

Re: Where would I put this so it runs at startup? acpi_call nvidia

I thought I had this fixed.  I am finding that the kernal module acpi_call breaks my shutdown and reboot.  It acts as if it is going to go down and then hangs on the wallpaper.  I have tried halt, poweroff, reboot, shutdown -h now.

If I remove the acpi_call module from my rc.conf I am able to successfully shutdown and reboot.

The original link lists the following version of the kernal module:
https://github.com/mkottman/acpi_call.git

I see that it has been forked as part of the bumblebee-project,  I do not know if there are any changes in this version but I gave it a try and it produces the same results:
https://github.com/Bumblebee-Project/acpi_call

Last edited by betting4value (2011-09-30 21:43:02)

Offline

Board footer

Powered by FluxBB