-
Notifications
You must be signed in to change notification settings - Fork 1.7k
RPi-zero-w: Iterating previous commands using up/down arrow keys has become very slow and unresponsive #1450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Are you directly connected with a wired keyboard and hdmi display? |
Connected through Wi-Fi. Using Bitvise SSH client on my Win 10 PC to connect to RPi (headless config). Has always worked fine. Have to press arrow key longer before iterating starts which makes harder/impossible to control since a normal press does (most of the time) nothing. Dropbear SSH server on RPi-zero-w |
Does |
it is already off... :-) |
Please check if you're effected by #1431 . |
Whoopsie, hitting return has altered the linked issue, I edited it above: #1431 |
Indeed I was effected by #1431 as I reported (MichaIng/DietPi#3690) :-) your suggestion helped: But still wondering what this (might) have to do with stuttering iteration on command line. Curious ... |
Ah lol sorry, blindly overseen that you were the OP it the issue 🤣. The shuttering/unresponsive behaviour was at least what I recognised as symptom of the (broken) frequency scaling, before the RPi hang completely. So you're facing this now even after reverting min frequency to defaults 🤔. Did you try to set scaling governor to performance, so that the RPi runs at full clock and does not scale at all? Change it via But probably we're looking into the wrong direction and it has nothing to do with frequency scaling. Generally observing CPU and RAM usage ( And of course try to rule out anything related to the SSH client/connection, e.g. using a different client machine+software and e.g. connecting it via cable. I know the Zero W has WiFi only, I man the client. |
mesg output= reveals some 'failed', warnings and errors Do I have to worry or take action to prevent these failures, errors and warning?
... warning: errors: |
All the vc_sm errors are expected since you reasonably have gpu_mem set to 16M (<32M) for this headless device. Some GPU features are disabled automatically then (cut-down
You use the JustBoom Digi HAT for sound? First it seems to fail several times, then it finally seems to succeed:
But then much later you get those I2S errors:
I never used any external sound on my RPi nor do I have experience with I2S, probably it is expected to throw an error by times. However of course you can try to disable the sound card (via dietpi-config or manually remove the dtoverlay from config.txt) and remove the HAT just to be sure it is not related. Then there is something about the onboard WiFi chip:
No idea if that is expected either. |
There's no such concept of firmware-variant-specific DTB files. It would be possible to get the firmware to explicitly disable the vchiq node in the loaded DTB, but I would argue that is more confusing in the event that somebody is actually trying to use vchiq. |
Occasional SYNC errors at the beginning or end of playback are probably nothing to worry about.
Those are all to be expected (we don't use board-specific "nvram" .txt files, and the 43438 firmware has a built-in clm_blob. |
Thanks for clarification. Ah okay I was not sure if those different start(_cd.elf) methods actually (can) manipulate the device tree or not. Disabling vchiq completely is not great since it breaks @maartenlangeveld |
I'd like to understand exactly what is slow/unresponsive and what isn't. For each of the following, can you describe the responsiveness?
For the avoidance of doubt and confusion, the above are all done over SSH via WiFi. |
No problems
"A0b;xId" went fine
holding down 30s, stutter-free, avg speed almost 30 characters per second (29,3)
no problem, responsive
went okay
stutters: very 1-3 seconds it pauses for 0,5 to 1 second,
Yes |
And how is "cat"ing a large text file , e.g. |
I have "cat"a very large text file (> 500 MB), result stutter-free except for very few minor hiccups (< 0,5 second). |
Thanks. I understand the problem better now, but I still have no idea what's going wrong. |
Hmm, the "up"/"down" button basically query |
"up" and "down" the same
|
after reboot, with very small history: stuttering still occurs. Seems RPi problem as of lately since no issues with my NanoPi NEO2 |
I think it's more likely to be triggered by the pattern of transmits and receives than the fact that you are scrolling through your history. One option is to capture the network traffic on one or (ideally) both sides. You won't see the data itself because of the encryption, but you should see packet sizes, timing and any retransmission.
|
I don't think so since often it won't react to first (since idle time of for example 10 minutes) or following cursur "up" presses whilst typing a character always immediately echoes in terminal. |
Drives me crazy. It is possible to revert to previous firmware (<5) without reinstalling os and applications ? |
You can revert to the last 4.19 firmware with |
Since its not pre-installed on DietPi, if you want to test: |
If it was not an issue pre-5.4, it's probably still reasonable to investigate, e.g. checking if downgrading the kernel solves the issue:
Or we keep it in mind for now in case a similar report is done. |
When I have time and appetite I will consider to downgrade the kernel on a backup sd card. Strange is that when in Python3 interpreter, iterating through commands is rather trouble free. |
Yes of course bash/shell and python are two entirely different applications. Indeed it seems to be related to the way the input/response is transmitted though SSH, testing different clients on different machines is hence another reasonable debug track. |
RPi-zero-w
Linux M-STREAMER 5.4.51+ #1327 Thu Jul 23 10:53:06 BST 2020 armv6l GNU/Linux
Iterating previous commands in terminal window (xterm, UTF-8) using up/down arrow keys has become very slow and unresponsive since latest firmware updates. It's hardly usable anymore. Would be pleased if fixed.
The text was updated successfully, but these errors were encountered: