I solved this problem by booting into bios. Go to usb configuration and disable usb2 legacy support. Everyting worked ok since also stopped my pc rebooting after shutdown