You are not logged in.

#1 2011-10-10 19:50:22

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

nvidia_g210m_acpi breaks reboot, halt, and suspend

I have an Asus UL30VT-A1 with a hybrid Nvidia graphics solution.

I have found many other posts of UL30VT owners pointing to the nvidia-g210m-acpi package from the AUR as a solution for powering off the Nvidia graphics to save power.

When I load the module, it does successfully power down my nvidia device, but afterwards I am unable to reboot, halt, or suspend.

I am new to Arch and Linux so any points in the right direction is greatly appreciated.  Thank you.

Offline

#2 2011-10-10 21:04:49

archreg
Member
Registered: 2011-03-12
Posts: 14

Re: nvidia_g210m_acpi breaks reboot, halt, and suspend

Offline

#3 2011-10-10 23:09:23

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

Re: nvidia_g210m_acpi breaks reboot, halt, and suspend

I gave it a try.  I receive the following error after "make install-arch":

install -m 0644 -D asus-switcheroo.ko /lib/modules/3.0-ARCH/extra/asus-switcheroo/asus-switcheroo.ko
install -m 0644 -D byo-switcheroo.ko /lib/modules/3.0-ARCH/extra/asus-switcheroo/byo-switcheroo.ko
install -m 0644 -D i915-jprobe.ko /lib/modules/3.0-ARCH/extra/asus-switcheroo/i915-jprobe.ko
install -m 0644 -D nouveau-jprobe.ko /lib/modules/3.0-ARCH/extra/asus-switcheroo/nouveau-jprobe.ko
depmod -a
install -m 0755 asus-switcheroo-pm /etc/pm/sleep.d/75-asus-switcheroo-pm
install -m 0644 asus-switcheroo.conf-modprobe.d /etc/modprobe.d/asus-switcheroo.conf
sed -i -e "s/asus-switcheroo i915-jprobe nouveau-jprobe //" /etc/rc.conf
sed -i -e "s/MODULES=(/MODULES=(asus-switcheroo i915-jprobe nouveau-jprobe /" /etc/rc.conf
cp /boot/kernel26.img /boot/kernel26.img.bak
cp: cannot stat `/boot/kernel26.img': No such file or directory
make: *** [install-arch] Error 1

From the documentation, it stays the installation steps should be as follows:
- copy the kernel modules in place (*.ko)
- update modprobe.d to load asus-switcheroo before nouveau
- update modprobe.d to load i915-jprobe before i915
- add asus-switcher and i915-jprobe to the initramfs conf files
- install the suspend/resume script
- run depmod
- build a new initramfs

What step did it break on?  It still works as far as powering down the nvidia graphics but it still breaks my halt reboot suspend.  I am currently using the latest kernel. 

Just for reference, I have also tried:

https://github.com/mkottman/acpi_call.git
and its fork:
https://github.com/Bumblebee-Project/acpi_call

They all work as far as powering down the nvidia graphics but all break my halt reboot suspend.

Last edited by betting4value (2011-10-10 23:31:00)

Offline

#4 2011-10-11 07:24:09

archreg
Member
Registered: 2011-03-12
Posts: 14

Re: nvidia_g210m_acpi breaks reboot, halt, and suspend

betting4value wrote:

I gave it a try.  I receive the following error after "make install-arch":

(...)

What step did it break on?  It still works as far as powering down the nvidia graphics but it still breaks my halt reboot suspend.  I am currently using the latest kernel. 

(...)

It failed on last step: - build a new initramfs

try to change makefile or build initramfs by hand (mkinitcpio -p linux);)

diff --git a/Makefile b/Makefile
index 8386bde..c64b959 100644
--- a/Makefile
+++ b/Makefile
@@ -66,8 +66,8 @@ install-arch:
 	install -m 0644 asus-switcheroo.conf-modprobe.d /etc/modprobe.d/asus-switcheroo.conf
 	sed -i -e "s/asus-switcheroo i915-jprobe nouveau-jprobe //" /etc/rc.conf
 	sed -i -e "s/MODULES=(/MODULES=(asus-switcheroo i915-jprobe nouveau-jprobe /" /etc/rc.conf
-	cp /boot/kernel26.img /boot/kernel26.img.bak
-	mkinitcpio -p kernel26
+	cp /boot/initramfs-linux.img /boot/initramfs-linux.img.bak
+	mkinitcpio -p linux
 
 uninstall-arch:
 	rm -fr /lib/modules/$(shell uname -r)/extra/asus-switcheroo
@@ -75,7 +75,7 @@ uninstall-arch:
 	rm -f /etc/pm/sleep.d/75-asus-switcheroo-pm
 	rm -f /etc/modprobe.d/asus-switcheroo.conf
 	sed -i -e "s/asus-switcheroo i915-jprobe nouveau-jprobe //" /etc/rc.conf
-	mkinitcpio -p kernel26
+	mkinitcpio -p linux
 
 install-opensuse:
 	install -m 0644 -D asus-switcheroo.ko /lib/modules/$(shell uname -r)/extra/asus-switcheroo/asus-switcheroo.ko

Also when testing switcheroo disable g210m_acpi module (don't load it)

Offline

#5 2011-10-11 12:17:48

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

Re: nvidia_g210m_acpi breaks reboot, halt, and suspend

archreg wrote:

It failed on last step: - build a new initramfs

try to change makefile or build initramfs by hand (mkinitcpio -p linux);)

This is what I thought but I was hoping it was an earlier step.  I had already tried mkinitcpio -p linux but it did not make a change.

archreg wrote:

Also when testing switcheroo disable g210m_acpi module (don't load it)

Only one method of disabling the discrete card was attempted at a time.


Thanks for your help though.

Offline

Board footer

Powered by FluxBB