Giter Club home page Giter Club logo

Comments (2)

liyan avatar liyan commented on May 20, 2024

Sorry for the late reply. I hadn't been monitoring this account. It seemed that your device didn't response to sync and stop in a normal way. For now I can't do much about it since it's likely a device-specific issue. Have you tried other USB devices on that machine? So that we can see whether it's machine-specific or device-specific. Thanks.

from suspend-usb-device.

mehturt avatar mehturt commented on May 20, 2024

Recently I reinstalled my laptop to Debian, I'm now trying with a different USB disk (WD).
The script output looks better:

Found device /devices/pci0000:00/0000:00:1d.7/usb2/2-1 associated to /dev/sdb; USB bus id is 2-1
Syncing device /dev/sdb
Stopping device /dev/sdb
Unbinding device 2-1
Checking whether /devices/pci0000:00/0000:00:1d.7/usb2/2-1 can be suspended
Suspending /devices/pci0000:00/0000:00:1d.7/usb2/2-1 by writing to /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/power/level
But in the /var/log/messages I see:

Sep 30 10:21:59 laptop kernel: [58941.352130] scsi 5:0:0:0: [sdb] Unhandled error code
Sep 30 10:21:59 laptop kernel: [58941.352137] scsi 5:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
Sep 30 10:21:59 laptop kernel: [58941.352147] scsi 5:0:0:0: [sdb] CDB: Read(10): 28 00 00 00 00 00 00 00 08 00
Is that ok?
Btw when I get a chance I'll retry with the disk that I got the errors previously.

from suspend-usb-device.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.