You are not logged in.
Hey,
I tried to poweroff the discrete GPU of my MacBook 10,1 at startup. I created this systemd service:
# /etc/systemd/system/disablegpu.service
[Unit]
Description=DisableGPU
Requires=sys-kernel-debug.mount
After=sys-kernel-debug.mount
[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo OFF > /sys/kernel/debug/vgaswitcheroo/switch"
[Install]
WantedBy=multi-user.target
and enabled it with "systemctl enable disablegpu.service". I get this error after startup:
disablegpu.service - DisableGPU
Loaded: loaded (/etc/systemd/system/disablegpu.service; enabled)
Active: failed (Result: exit-code) since Mi 2014-05-07 13:31:14 CEST; 11min ago
Process: 280 ExecStart=/bin/sh -c echo OFF > /sys/kernel/debug/vgaswitcheroo/switch (code=exited, status=1/FAILURE)
Main PID: 280 (code=exited, status=1/FAILURE)
Mai 07 13:31:14 macbook sh[280]: /bin/sh: /sys/kernel/debug/vgaswitcheroo/switch: file or directory not found
Mai 07 13:31:14 macbook systemd[1]: disablegpu.service: main process exited, code=exited, status=1/FAILURE
Mai 07 13:31:16 macbook systemd[1]: Failed to start DisableGPU.
Mai 07 13:31:16 macbook systemd[1]: Unit disablegpu.service entered failed state.
When I try to start it afterwards with "systemctl start disablegpu.service", it works.
Any ideas?
Thanks,
Felix
EDIT:
Enabled early KMS start and now it works.
Last edited by helskor (2014-05-08 06:40:56)
Offline