syscl / Fix-usb-sleep

Fix issue of "Diks not ejected properly upon sleep" on macOS
71 stars 20 forks source link

Fix usb sleep broken in Sierra 12.4 #10

Open shrubberies opened 7 years ago

shrubberies commented 7 years ago

This script does not fix the "Disc not ejected" problem on gigabyte MB. Running the sleep script from the shell ejects the disk but also produces an error.

$ sudo /etc/sysclusbfix.sleep Disk disk1 ejected usage: ioreg [-abfilrtx] [-c class] [-d depth] [-k key] [-n name] [-p plane] [-w width] where options are: -a archive output -b show object name in bold -c list properties of objects with the given class -d limit tree to the given depth -f enable smart formatting -i show object inheritance -k list properties of objects with the given key -l list properties of all objects -n list properties of objects with the given name -p traverse registry over the given plane (IOService is default) -r show subtrees rooted by the given criteria -t show location of each subtree -w clip output to the given line width (0 is unlimited) -x show data and numbers as hexadecimal /etc/sysclusbfix.sleep: line 47: [: too many arguments /etc/sysclusbfix.sleep: line 53: /Applications/Wireless Network Utility.app/rfoff.rtl: No such file or directory The file /Applications/Wireless Network Utility.app does not exist.


$ diskutil list /dev/disk0 (internal, physical):

: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *1.0 TB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_HFS Evoo 999.3 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3

/dev/disk1 (external, physical):

: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *31.6 GB disk1 1: Apple_HFS PATRIOT 31.6 GB disk1s1

whatsnewsisyphus commented 7 years ago

Same here, no go on sierra with a z270, wish it worked

shrubberies commented 7 years ago

Seems like abandon ware, no word from the Dev in 7 days

syscl commented 7 years ago

I have final exams this week.

syscl

whatsnewsisyphus commented 7 years ago

good luck with the exams!

syscl commented 7 years ago

Hi @shrubberies , this error is related to USBWlan, so does not affect the usb disk eject issue.

syscl