SoftWord
Posts: 20
Joined: Mon Oct 19, 2015 7:43 pm

issue on usb?

Sat Oct 24, 2015 11:06 am

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?

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 6001
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: issue on usb?

Sat Oct 24, 2015 11:41 am

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?
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.)
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

User avatar
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?

Sat Oct 24, 2015 12:45 pm

SoftWord wrote: in standby, after some minutes, usb seams to poweroff all attached devices.
The flaw in that is that there's no such thing as "standy" for a RPi it is always powered up.

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.

SoftWord
Posts: 20
Joined: Mon Oct 19, 2015 7:43 pm

Re: issue on usb?

Sat Oct 24, 2015 1:04 pm

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?

User avatar
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?

Sat Oct 24, 2015 2:05 pm

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.

klricks
Posts: 7422
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: issue on usb?

Sat Oct 24, 2015 3:17 pm

SoftWord wrote:1) I try with "max_usb_current=1" thanks :), so default 600mA on all ports and not one by one?
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: ...
..
3) I'v read on some site that may be need to set "safe_mode_gpio=4", is true?
Not true....... That is the old command and should not be used. Use max_usb_current=1
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

SoftWord
Posts: 20
Joined: Mon Oct 19, 2015 7:43 pm

Re: issue on usb?

Sat Oct 24, 2015 5:41 pm

klricks wrote:
SoftWord wrote:1) I try with "max_usb_current=1" thanks :), so default 600mA on all ports and not one by one?
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: ...
..
3) I'v read on some site that may be need to set "safe_mode_gpio=4", is true?
Not true....... That is the old command and should not be used. Use max_usb_current=1

many thanks for support! :)

SoftWord
Posts: 20
Joined: Mon Oct 19, 2015 7:43 pm

Re: issue on usb?

Sun Oct 25, 2015 7:43 am

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

User avatar
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?

Sun Oct 25, 2015 8:28 am

-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.

SoftWord
Posts: 20
Joined: Mon Oct 19, 2015 7:43 pm

Re: issue on usb?

Sun Oct 25, 2015 1:10 pm

Low power.......maybe!

Thanks, I try with another solution to attach my peripherals to RPi2

SoftWord
Posts: 20
Joined: Mon Oct 19, 2015 7:43 pm

Re: issue on usb?

Mon Oct 26, 2015 10:00 am

I can confirm that with usb hud powered it's all ok now.......thanks for support :)

Return to “General discussion”