Hi, I have this problem with new RPi2:
in standby, after some minutes, usb seams to poweroff all attached devices.
When in standby I have this process that run.....
- vdr with attached an usb-dvb-t key
- two stereo speakers powered from an usb port
- rs232 serial port connected to a serial ir
If I put an external usb SSD after reboot all devices led blinks......
RPi2 is powered with original 2A power supply "raspberry", and I have tryied with another 2A power supply but no fix
I have to request a RMA for broken USB?
- FTrevorGowen
- Forum Moderator
- Posts: 6001
- Joined: Mon Mar 04, 2013 6:12 pm
- Location: Bristol, U.K.
- Contact: Website
Re: issue on usb?
Have you added "max_usb_current=1" into config.txt to enable the Pi to supply up to 1200mA through the USB ports (shared between the four ports) ? (The default is 600mA and your comment w.r.t. an external USB SSD suggests that you are running with that setting.)SoftWord wrote:Hi, I have this problem with new RPi2:
in standby, after some minutes, usb seams to poweroff all attached devices.
When in standby I have this process that run.....
- vdr with attached an usb-dvb-t key
- two stereo speakers powered from an usb port
- rs232 serial port connected to a serial ir
If I put an external usb SSD after reboot all devices led blinks......
RPi2 is powered with original 2A power supply "raspberry", and I have tryied with another 2A power supply but no fix
I have to request a RMA for broken USB?
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's & P400. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm
- DougieLawson
- Posts: 40485
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: issue on usb?
The flaw in that is that there's no such thing as "standy" for a RPi it is always powered up.SoftWord wrote: in standby, after some minutes, usb seams to poweroff all attached devices.
Your peripheral devices are 100% in control of their own power management. For hard drives you have some control with the hdparm command. For WiFi dongles it depends on the device driver, some react to wireless-power off, others need arcane incantations in /etc/modprobe.d config files to control the driver.
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Re: issue on usb?
1) I try with "max_usb_current=1" thanks
, so default 600mA on all ports and not one by one?
2) For standby I mean, without executing nothing
, I use mi RPi2 only as mediaplayer, at morning, when I wake up, I found error log like "dvb-t disconnect", or "hdd disconnect", isn't managed by standby of every peripherals, because before buy RPi2 I'v another barebone where is all ok.
3) I'v read on some site that may be need to set "safe_mode_gpio=4", is true?

2) For standby I mean, without executing nothing

3) I'v read on some site that may be need to set "safe_mode_gpio=4", is true?
- DougieLawson
- Posts: 40485
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: issue on usb?
There's also an Xwindows screen blanker. There's hundreds of posts on how to disable that thing.
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
-
- Posts: 7422
- Joined: Sat Jan 12, 2013 3:01 am
- Location: Grants Pass, OR, USA
- Contact: Website
Re: issue on usb?
The current limit settings of 600mA or 1200mA are the combined total of all 4 ports.... not each port. If you exceed that then you will need to use a powered USB HUB.SoftWord wrote:1) I try with "max_usb_current=1" thanks, so default 600mA on all ports and not one by one?
Not true....... That is the old command and should not be used. Use max_usb_current=1SoftWord wrote: ...
..
3) I'v read on some site that may be need to set "safe_mode_gpio=4", is true?
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.
Re: issue on usb?
klricks wrote:The current limit settings of 600mA or 1200mA are the combined total of all 4 ports.... not each port. If you exceed that then you will need to use a powered USB HUB.SoftWord wrote:1) I try with "max_usb_current=1" thanks, so default 600mA on all ports and not one by one?
Not true....... That is the old command and should not be used. Use max_usb_current=1SoftWord wrote: ...
..
3) I'v read on some site that may be need to set "safe_mode_gpio=4", is true?
many thanks for support!

Re: issue on usb?
Nothing is fixed, this morning, after a night of idle, somethign on usb ports has happened:
[22979.400148] usb 1-1.5: dvb_usb_v2: 2nd usb_bulk_msg() failed=-110
[22979.400287] af9033 3-0038: i2c rd failed=-110 reg=80f5a9 len=1
[28288.586934] pl2303 ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
[38371.495363] pl2303 ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
[22979.400148] usb 1-1.5: dvb_usb_v2: 2nd usb_bulk_msg() failed=-110
[22979.400287] af9033 3-0038: i2c rd failed=-110 reg=80f5a9 len=1
[28288.586934] pl2303 ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
[38371.495363] pl2303 ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
- DougieLawson
- Posts: 40485
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: issue on usb?
-32 is usually an indication of lack of power to the USB. Try using a powered USB hub.
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Re: issue on usb?
Low power.......maybe!
Thanks, I try with another solution to attach my peripherals to RPi2
Thanks, I try with another solution to attach my peripherals to RPi2
Re: issue on usb?
I can confirm that with usb hud powered it's all ok now.......thanks for support 
