Open exploide opened 10 years ago
Thanks for looking and fixing your issue. I am myself not anymore able to use this script on my laptop. The "echo OFF > .../switch" triggers a kernel panic on fedora 20 - 3.12.6-300.fc20.x86_64 . If I could gather more feedback on your issue I'll gladly make the change, however, I am currrently unable to test it. Do you also run the latest kernel, and haven't notice any regression regarding vgaswitcheroo ?
I've exactly the same problem. After issuing the echo off command, it disables the discrete gpu and then, abrt comes up with the kernel panic. Yesterday, I assumed it works for me, because indeed, it switches the dis-gpu off. Unfortunately, the kernel panic is very annoying and sometimes the boot fails with CPU#0 stuck for 22s .....
I found a couple of bug reports. This two are possibly concerning our problem. I cc'ed there and added the abrt stuff. I hope someone will fix it. https://bugzilla.redhat.com/show_bug.cgi?id=994438 https://bugzilla.redhat.com/show_bug.cgi?id=1045766
Just found your useful systemd service and tried it out. It failed because of the modprobe command.
I had to remove the line ExecStartPre=/usr/bin/modprobe radeon. Now it works fine :-)
Maybe you could consider to drop the modprobe command, since in https://github.com/fredoche/vgaswitcheroo_systemd/pull/3#issuecomment-20819261 X4 assumed the modprobe is not necessary.