jetsonhacks / rootOnNVMe

Switch the rootfs to a NVMe SSD on the Jetson Xavier NX and Jetson AGX Xavier
MIT License
395 stars 145 forks source link

[BUG]USB mouse and keyboard not functioning after reboot #3

Open joshhu opened 4 years ago

joshhu commented 4 years ago

General USB mouse and keyboard(both not wireless).

I could boot from SD and the mouse/keyboard were functioning normally. After rootOnNVMe, the mouse and keyboard are not functioning at boot screen. I have to unplug the mouse and keyboard and plug them back again to enable them.

smyeungx commented 3 years ago

@joshhu

My usb devices (keyboard, mouse, camera, wifi etc) also encountered such problem. The problem probably due to the kernel is detecting usb devices while switch rootfs (the usb devices were detected before switch rootfs and not work afterwards as they are under mmcblk's /dev) What we are experimenting is creating a systemd service that reset the usb bus after launching the setssdroot.service using a bash script to search for a specific USB hub device bus and device id (in our AGX it's 002/001) that connect to the periperals, and reset it with the usbreset.c

It's working for me. Need some effort to make it more robust

yulan0215 commented 1 year ago

@joshhu

My usb devices (keyboard, mouse, camera, wifi etc) also encountered such problem. The problem probably due to the kernel is detecting usb devices while switch rootfs (the usb devices were detected before switch rootfs and not work afterwards as they are under mmcblk's /dev) What we are experimenting is creating a systemd service that reset the usb bus after launching the setssdroot.service using a bash script to search for a specific USB hub device bus and device id (in our AGX it's 002/001) that connect to the periperals, and reset it with the usbreset.c

It's working for me. Need some effort to make it more robust

Hi, I am fresh here, can you please tell me exactly how you solve this problem? Thx