Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start service fails #5

Open
exploide opened this issue Jan 9, 2014 · 3 comments
Open

Start service fails #5

exploide opened this issue Jan 9, 2014 · 3 comments

Comments

@exploide
Copy link

exploide commented Jan 9, 2014

Just found your useful systemd service and tried it out.
It failed because of the modprobe command.

# systemctl status no-dis-gpu.service 
no-dis-gpu.service - Turn discrete graphics off
   Loaded: loaded (/etc/systemd/system/no-dis-gpu.service; enabled)
   Active: failed (Result: exit-code) since Do 2014-01-09 19:35:22 CET; 1min 2s ago
  Process: 700 ExecStartPre=/usr/bin/modprobe radeon (code=exited, status=203/EXEC)

Jan 09 19:35:22 jtop systemd[1]: Starting Turn discrete graphics off...
Jan 09 19:35:22 jtop systemd[1]: no-dis-gpu.service: control process exited, code=exited status=203
Jan 09 19:35:22 jtop systemd[1]: Failed to start Turn discrete graphics off.
Jan 09 19:35:22 jtop systemd[1]: Unit no-dis-gpu.service entered failed state.

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 #3 (comment) X4 assumed the modprobe is not necessary.

@fredoche
Copy link
Owner

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 ?

@exploide
Copy link
Author

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 .....

@exploide
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants