LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 10-14-2020, 08:08 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,400

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Weird USB behaviour on RazPi 4


This seems strictly a hardware problem on my 4G RazPi 4.
AFAIK, the (blue) USB3 sockets have a 500mA current Limit, and the (black) USB-2 sockets have a 250mA limit. Please correct if you know better.

I'd been running on sdcards, but it was SSD time. My setup had been
  • Ralink RT-530 external wifi in usb3
  • Micro SDCard in sdcard -->usb converter in usb3
  • Logitech wireless mouse/keyboard adapter in usb-2
and it all worked fine. The internal sdcard slot was vacant. So I unplugged the sdcard converter and plugged in the (kingston) SSD. That's when the trouble started. It came up, with no mouse. The keyboard was sort of OK, but the mouse was gone, and both were on the same adapter. I'll spare you the blow-by blow, but trying the devices around gave me only one working combination.
  • Logitech wifi keyboard/mouse adapter in usb3
  • ssd and external wifi in usb2
Replacing the battery in the mouse brought no joy either. Still no mouse.

The RazPi is behind a tv on a small table. I have another larger table with keyboard & mouse, so wired is not an option. The switch that brought this about was pulling the sdcard usb converter, and inserting the ssd with it's little case. I did have a faulty ssd case before, which stopped play for a while. So the case is a component in the chain, with it's own pcb & ICs.

What's even more irritating is that I'd class myself as a hardware guru, and know enough to know this doesn't make much sense. I'd already done an rsync successfully on my pc. Why?

Last edited by business_kid; 10-14-2020 at 08:13 AM.
 
Old 10-14-2020, 09:21 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,760

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
As far as I know there is no current limit per port but the max total current for all ports is 1.2 amps. It seems unrealistic that all three devices are drawing 1.2 amps but there could be a peak start up current on the SSD. There are some known issues with USB 3 hubs so it could be a problem with the drive case and why it only works in a USB 2 port.

BYI, the suggested power supply for a Pi 4 is 3 amps.

Last edited by michaelk; 10-14-2020 at 09:22 AM.
 
Old 10-14-2020, 11:56 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,400

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
1.2amps between them? That makes no sense, as usual, but it means we can eliminate power as a cause.

The separation makes no sense. Going by the chips on the board, there's one usb chip with usb-2 & usb-3 hubs. So that probably provides the 1.2A. I have the recommended 3A power supply. I've a hunch it's in the signal pins, not the power line at all. But I'm way beyond verifying it. My left hand arm went in a stroke, so I can't use a multimeter or solder.

I got a case for this ssd previously. and couldn't boot. I found solder bridges in it, and returned it. I'm just wondering if I should get myself a different case.
 
Old 10-14-2020, 01:55 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,760

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Here you go

https://www.raspberrypi.org/document...md#powerlimits

Does sound like a USB 3 problem with the case.

Last edited by michaelk; 10-14-2020 at 01:56 PM.
 
Old 10-15-2020, 04:33 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,400

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Quote:
Originally Posted by michaelk View Post
Here you go

https://www.raspberrypi.org/document...md#powerlimits

Does sound like a USB 3 problem with the case.
I have experience with hardware, and one thing I remember is checking voltage levels with an oscilloscope. That's what had me thinking about it. Just thinking, you wouldn't want big current levels swinging around at 150 Mbps, would you? These days, instead of looking for the needle in the haystack, I'm reduced to looking into the haystack. But I think I have a quick dodge to get me out of this, and I'll post the results.
 
Old 10-15-2020, 04:39 AM   #6
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,506

Rep: Reputation: Disabled
A lot of electrics in external cases wouldn't work to boot from, unfortunately.

I've been quite lucky in that most of my cases & cable adapters work, but one consistently refuses to work on my RPi4, so now resides on my RPi3B+ & works perfectly on it, so it is down to the chips used in the adapter cable or case.

Edit: I boot from an external HDD, not SSD, on my RPi4, plugged into a USB3 port, so it isn't down to the current or voltage.

Last edited by fatmac; 10-15-2020 at 04:41 AM.
 
Old 10-16-2020, 08:47 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,400

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Well, it's just a straight through as far as possible. But SATA ≠ USB. It boots OK.
 
Old 10-18-2020, 11:04 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,400

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Quote:
Originally Posted by fatmac View Post
Edit: I boot from an external HDD, not SSD, on my RPi4, plugged into a USB3 port, so it isn't down to the current or voltage.
SSDs can give current pulses, I'm told. What's frustrating for me is that I can boot with usb3, but then the Logitech Keyboard or Mouse goes down. And one goes down, but not the other. That indicates some evil coming at the from the usb port, or the room is being battered by radiation. I am no conspiracy theorist! What causes the evil is the SSD; that's for certain, because when I pull the ssd and replace it with an sdcard in a usb converter, the problem vanishes.

In days gone by, I would have tacked on a 220µF capacitor right at the usb ports, to smooth any pulses. But, post stroke I can't even solder! I tried swapping usb cases - maybe 1% improvement. The one trick up my sleeve is to swap in the SSD from my pc to the RazPi. I resurrected an old 450G hd, and backed them both up, but haven't bothered yet.

Last edited by business_kid; 10-18-2020 at 11:05 AM.
 
1 members found this post helpful.
Old 10-19-2020, 05:10 AM   #9
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,506

Rep: Reputation: Disabled
I used to have the keyboard/mouse problem on my RPi3A+, it just didn't have enough power for both at the same time, my solution is to use one of those micro keyboard/mouse pad wireless units on it. The combined milliamps were just too much for the USB port.

(Maybe a powered USB hub would sort it, at the cost of another piece of hardware.)

Last edited by fatmac; 10-19-2020 at 05:11 AM.
 
Old 10-19-2020, 05:40 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,400

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
A wireless unit is what I have… I reckon ~100 mA is all it uses. The range isn't great. But I doubt if a wired kb/mouse would use that. It's sensitivity is lacking. A new battery in the mouse restored that for 10 minutes. I'm not as smart as I was, but I still have a good techie's brain. It seems to me that if the voltage dropped by 0.5V, things could go wrong. But I don't see how. It's a 3A supply.
 
Old 10-19-2020, 12:33 PM   #11
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
I have had power supplies go bad. They still produced the volts, but not the current. Most of my power problems with laptops and other devices over the years have been caused by faulty power supplies.
 
1 members found this post helpful.
Old 10-19-2020, 02:37 PM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,400

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Quote:
Originally Posted by sgosnell View Post
I have had power supplies go bad. They still produced the volts, but not the current. Most of my power problems with laptops and other devices over the years have been caused by faulty power supplies.
Amen to that. I fixed Industrial electronics, and an awful lot of power supplies went west.


EDIT: Mind you, I can't complain I'm getting 35MB/S on hdparm, which is dangerously fast for usb-2.0

Last edited by business_kid; 10-19-2020 at 02:41 PM.
 
Old 10-25-2020, 02:42 PM   #13
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,400

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
I'm marking this solved. The other night I had mouse, but no keyboard. I picked up the keyboard (always messy with one hand, and brought it forward onto my knees, and bingo, it was back. Poor reception. Subsequent tests showed even a box of tissues tilled the signal on occasion.

Conclusion: The SSD is dropping the voltage a few percent, causing the wifi receiver issues. It's a borderline install. I'm following Rule#1 of Electronic maintenance: "If it ain't broke, don't fix it." I've repositioned the RazPi & SSD to get a better wifi signal. I've repositioned things on my work area also to work around the issue.
 
1 members found this post helpful.
Old 10-27-2020, 10:35 AM   #14
TheTKS
Member
 
Registered: Sep 2017
Location: Ontario, Canada
Distribution: Slackware, X/ubuntu, OpenBSD, OpenWRT
Posts: 361

Rep: Reputation: 243Reputation: 243Reputation: 243
Although marked as solved, I’m going to post this as another weird USB event on RPi4, in case it can help someone, although I can’t explain the behaviour.

I installed OpenBSD 6.8 (64 bit ARM) on RPi 4 4GB with recommended 3A power supply.

In doing that, when I got to the text installer’s install/update/autoinstall step, it wouldn’t accept keyboard inputs.

The problem went away when I moved things around usb ports.

I started with
- USB wireless mouse in lower USB 2 port (the one closer to the board)
- USB wired keyboard in upper USB 2 port
- uSD card with OpenBSD 6.8 ARM installer in sd-usb adaptor in lower USB 3 port (UEFI firmware uSD card in the Pi’s uSD slot)

After some messing around - yes, I tried unplugging and replugging the usb wired keyboard, and turning the Pi off and on again - the problem went away when I removed the mouse and moved the keyboard to the lower USB 2 port. No mouse is needed for OpenBSD’s text installer, which then recognized the keyboard.

During rebooting after installation, and before adding xenodm and Xfce, I put the wireless mouse usb adaptor back in, but into the upper USB 2.

So in the end, I switched the things in the two USB 2 ports (although in a particular sequence), and now both keyboard and mouse work.

I would like to understand why one arrangement worked and the other didn’t, so if anybody knows or can guess, please post here.

If not, I’ll be happy that I found a path to installation with my specific collection of uSD cards, USB things and RPi4, and hopefully it helps someone else in a similar situation.

TKS
 
Old 10-27-2020, 12:47 PM   #15
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,400

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
I got the impression the usb & keyboard are teetotally underpowered for wifi comms. I reckon if you left them as were and just moved closer, things would eventually work. That was my experience.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wifi missing on Sarpi (32bit) with RazPi 4 business_kid Slackware - ARM 21 06-26-2020 12:38 PM
[SOLVED] Fedora 32 out now. how on a RazPi 4? business_kid Fedora - Installation 12 05-02-2020 08:17 AM
HP Photosmart weird weird weird.... Vlad_M Linux - General 5 02-20-2005 05:41 AM
Weird mozilla language behaviour White_lightning Linux - Software 1 11-18-2003 03:51 PM
Weird Apache behaviour ? zalmox Linux - Software 1 11-10-2003 08:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration