dglt1 / optimus-switch

*installer finished* installs nvidia prime and makes switching to intel only and back again easy as one command. intel mode fully disables the nvidia gpu to extend battery life.
71 stars 9 forks source link

Unable to properly remove NVIDIA card #24

Closed andreimarinescu closed 4 years ago

andreimarinescu commented 4 years ago

This seems related to #19 however I'm freezing on the line following the ACPI call.

I've had optimus-switch running on my machine since February, however on my last switch to intel GPU my system is freezing when booting up X, right after the mouse cursor is shown.

echo '\_SB.PCI0.PEG0.PEGP._DSM' > /proc/acpi/call
echo -n 1 > '/sys/bus/pci/devices/0000:01:00.0/remove'

I'm able to replicate the crash by running these two commands. I switched the ACPI method above because I'm getting 4 or 5 variants that are reported to work (I used to use the default method). Running the acpi call doesn't trigger any crash, however calling the remove command freezes the system to the point that only using the power button will work.

I'm sure I'm doing something wrong, since this used to work, but I'm not sure how to debug this further. I really miss my GPU fans being completely quiet :)

andreimarinescu commented 4 years ago

Was able to finally figure it out :) Seems that I misinterpreted the instructions for switching to the intel modesetting driver from the xf86 one. I was skipping over this line, which in retrospect is obviously still needed:

cp /etc/switch/intel/intel-modprobe.conf /etc/modprobe.d/99-intel.conf

Once I added it back in and rebooted the machine everything went back to normal. Hopefully this helps someone else facing this issue.