Skip to content
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

~10 Second System Hang #13

Closed
morrownr opened this issue Nov 13, 2024 · 3 comments
Closed

~10 Second System Hang #13

morrownr opened this issue Nov 13, 2024 · 3 comments

Comments

@morrownr
Copy link
Owner

Originally posted by @clyvari

System hang: when booting the machine with the device plugged-in or when plugin the device some operations seem to hang:

When booting, and logging into my user session, there's a ~10 sec hang before the desktop appears. The hang doesn't happen if the device isn't connected.

When pluggin the device and running dmesg for instance, it also hangs for ~10 sec


Please add any details that you can if you are seeing this.

@morrownr
Copy link
Owner Author

morrownr commented Nov 15, 2024

@clyvari

I've been pondering this issue. I think the first thing we need to do is determine whether the driver has anything to do with this.

First update the driver code:

$ git pull

Run the following to totally remove the driver:

$ sudo sh remove-driver.sh

Shut the system down so that we have a cold boot.

Boot the system with the adapter in the usb port. See what happens.

Shut the system down so that we have another cold boot but this time do not put the adapter in the usb port.

Boot the system and when it is fully stable, plug the adapter into the usb port. See what happens.

Do anything else you have done that results in 10 second hand with the driver installed.

If you still see the problem without the driver installed, then the hand has nothing to do with this driver and we need to look for other causes.

@morrownr
Copy link
Owner Author

More:

After this happens, run the following to see if you see any lines:

$ sudo dmesg | grep WQ_UNBOUND

If you see this, it probably means the driver is creating a workqueue that is not playing nicely. I think I have duplicated this here on one specific system.

If this turns out to be the case, fixing this type of issue is likely beyond my skill level and I will have to attempt to document the problem and pass it on to someone who can get the issue to Realtek... which means I will need very specific details of your hardware and distro.

@MassonY
Copy link
Collaborator

MassonY commented Nov 18, 2024

Hi,

As I do encounter the same 10 seconds~ hang as @clyvari , I did the test on my side.

Without the driver :

  • 10 seconds hang with the adapter connected before the boot. (no usb_modeswitch)
  • No 10 seconds hang when connecting the adapter after the boot. (usb_modeswitch automatically)

This does coincide with the usb_modeswitch not being done when booting

With the driver :

  • 10 seconds hang with the adapter connected before the boot.
  • 10 seconds hang when connecting the adapter after the boot. And after lsusb hang from detection.

From my testing there seems to be a problem from the driver. (not that i also have this problem #12 and I don't know if it's related).

$ sudo dmesg | grep WQ_UNBOUND

Doesn't output anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants