Skip to main content
16 events
when toggle format what by license comment
Jan 19, 2018 at 17:52 comment added codinghands That's a cracking looking chart that.
Jan 19, 2018 at 15:54 comment added Radu Worked really well, ty. Now that I know the magic behind it, I will try to experiment more, I will try to put it before the network target, since I'd like to shut down the networking at all (at least the wifi part of it).
Jan 19, 2018 at 15:47 comment added Aurora0001 Just replace your old disableusb.service with the new one – I've edited my post with the correct version now, so just copy that and put it in disableusb.service, then re-enable it.
Jan 19, 2018 at 15:47 comment added Radu Where should I copy it from/to?
Jan 19, 2018 at 15:46 comment added Aurora0001 I think I've spotted the issue, @Radu. Try copying the new unit in, then run systemctl reenable disableusb.service. I wrote base.target, should have written basic.target. Let me know if that fixes it.
Jan 19, 2018 at 15:46 comment added Radu No problem. Done also.
Jan 19, 2018 at 15:45 history edited Aurora0001 CC BY-SA 3.0
added 2 characters in body
Jan 19, 2018 at 15:41 comment added Aurora0001 Apologies, I didn't realise that systemd-analyse on its own didn't give you the unit chain. The output of systemd-analyze critical-chain should be what we need (this will show which units have loaded on boot), can you edit that in too?
Jan 19, 2018 at 15:40 comment added Radu I did that also. Cool command btw, I used to time it with a timer on my phone (and it matches).
Jan 19, 2018 at 15:36 comment added Aurora0001 Hmm, definitely sounds like your unit never ran. Could you also edit in the output of systemd-analyze?
Jan 19, 2018 at 15:28 comment added Aurora0001 In that case, @Radu, could you please edit the output of journalctl -u disableusb.service into your question? Thanks.
Jan 19, 2018 at 15:27 comment added Radu For some reason it doesn't work. I made the file that looks like so: code[Unit] Description=Disable USB power Before=base.target After=local-fs.target sysinit.target DefaultDependencies=no [Service] Type=oneshot ExecStart=/sbin/usb_down [Install] WantedBy=base.target For some reason, that script doesn't run
Jan 19, 2018 at 14:53 comment added Radu Btw, my script is actually just a line of code, "echo 0 | tee /sys/devices/platform/soc/20980000.usb/buspower >/dev/null" Can I just put that in ExecStart, or does it have to be a path to an actual script?
Jan 19, 2018 at 14:42 comment added Radu Thank you very much. I will experiment with this, and if it works well, I will try to move it even earlier than that, until it doesn't work or it hangs on boot :)
Jan 19, 2018 at 14:41 vote accept Radu
Jan 19, 2018 at 14:21 history answered Aurora0001 CC BY-SA 3.0