Displaying 3 results from an estimated 3 matches for "stopusb".
Did you mean:
stops
2015 Jan 16
4
shutdown -h doesn't
I've got a fresh CentOS 7 test machine, fully patched. The command:
shutdown -h now
surprisingly does not halt the machine. Instead it reboots it. WTF?
I found the following Debian discussion which seems to be the same
issue: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766338>
However, removing kexec-tools in this case did not solve the problem.
Nor does
2015 Jan 16
0
shutdown -h doesn't
...PLUS, BIOS 2305 10/09/2014" (as
per dmesg|grep ASUS).
The workaround is a line
for i in /sys/bus/usb/devices/*/power/control ; do echo on > $i ; done
in /etc/rc.local . Unfortunately this prevents powersaving of all USB
ports/hubs.
What didn't work: I created /usr/lib/systemd/system/stopusb.service with
[Unit]
Description=Power-on USB in prep for shutdown
[Service]
Type=oneshot
ExecStart=/bin/sh -c "for i in /sys/bus/usb/devices/*/power/control ; do
echo on > \$i ; done"
ExecStop=/bin/sh -c "for i in /sys/bus/usb/devices/*/power/control ; do
echo on > \$i ; done...
2015 Jan 16
1
shutdown -h doesn't
...g|grep ASUS).
>
> The workaround is a line
>
> for i in /sys/bus/usb/devices/*/power/control ; do echo on > $i ; done
>
> in /etc/rc.local . Unfortunately this prevents powersaving of all USB
> ports/hubs.
>
> What didn't work: I created /usr/lib/systemd/system/stopusb.service with
>
> [Unit]
> Description=Power-on USB in prep for shutdown
>
> [Service]
> Type=oneshot
> ExecStart=/bin/sh -c "for i in /sys/bus/usb/devices/*/power/control ; do
> echo on > \$i ; done"
> ExecStop=/bin/sh -c "for i in /sys/bus/usb/devices...