LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   USB keyboard and mouse not detected at boot with kernel 5.13.4, 5.12.11 is OK (https://www.linuxquestions.org/questions/slackware-14/usb-keyboard-and-mouse-not-detected-at-boot-with-kernel-5-13-4-5-12-11-is-ok-4175698287/)

Didier Spaier 07-28-2021 03:30 PM

Quote:

Originally Posted by LuckyCyborg (Post 6270468)
Mr. Didier, I suggest you to look for the openSUSE Tumbleweed sources.

https://download.opensuse.org/source.../repo/oss/src/

https://download.opensuse.org/source....4-1.2.src.rpm

This one will be more or less along with our slackware-current. The other variant of openSUSE is for enterprise.

And I suggest you to do your experiments with -current.

Your issues may be produced by the really old GCC of Slackware 14.2.

In other hand, yes. They patch the kernel heavily. For example, those are the openSUSE patches from that .src.rpm

<snip>

Thanks LuckyCyborg. The build failed too with the config from Arch. The age of gcc is something I also have in mind, although according to the kernel documentation the minimal requirements to compile the kernel mention a minimum version of 4.9 for GCC (withy a caveat: "The gcc version requirements may vary depending on the type of CPU in your computer".

Yes I could experiment on Slackware64-current, but if I am successful there and not in Slint that won't help much.

Which leads to two newbie questions:
  • Can I upgrade gcc from 5.5 to the version shipped in -current (10.3.0 at time of writing) without rebuilding or upgrading any other package? Else what should be rebuilt or upgraded (glibc?) ?
  • Can I build only the kernel with a new gcc?

LuckyCyborg 07-28-2021 03:36 PM

In my humble opinion, a heavy upgrade of GCC like you describe may lead in a need for a mass rebuild.

In other hand, regarding building the kernel (and even the external modules) with a dedicated GCC is a question to which response makes me also interested.

I did in the past some experiments with using a x86_64 kernel from Slackware64 under the i586 Slackware. Yes, it's possible, at least in theory.

Didier Spaier 07-28-2021 03:52 PM

Quote:

Originally Posted by LuckyCyborg (Post 6270479)
In my humble opinion, a heavy upgrade of GCC like you describe may lead in a need for a mass rebuild.

In other hand, regarding building the kernel (and even the external modules) with a dedicated GCC is a question to which response makes me also interested.

I did in the past some experiments with using a x86_64 kernel from Slackware64 under the i586 Slackware. Yes, it's possible, at least in theory.

Thanks for your answers. I will provide 5.12.16 for Slint which is ready for upload for now, then explore my options going further. Maybe someone more skilled than me (not a big challenge, that) will solve the issue for Slackware -current in a way I can apply to Slint, which would be ideal. In any case I am of course ready to test a proposed solution in Slackware64-current.

drumz 07-28-2021 04:29 PM

Quote:

Originally Posted by Didier Spaier (Post 6270475)
  • Can I build only the kernel with a new gcc?

Yes, you can install a newer gcc in /opt and use it to compile the kernel. But then you also have to remember to compile any kernel modules with the same compiler - that's why it's best to just use the system gcc to compile the kernel.

On my work work computer I have /opt/gcc-{4.9.4,6.3.0,7.3.0,8.4.0,10.2.0} At least a few of the versions are for MATLAB.

Didier Spaier 07-29-2021 11:43 AM

Good news
 
With the kernel 5.13.6 released by Patrick used in Slackware64-current as well as the one built for and installed in Slint my mouse and keyboard are usable when connected to any of the six USB ports of my tower.

Chris[1] and anyone having suffered from this issue, please test to confirm that it is also solved for you.

Then I will mark this thread as [SOLVED].

[1]I know it's 3 AM in Brisbane. So do it when you can...

Franklin 07-29-2021 03:33 PM

Still having the same behavior here unfortunately.

Applied update to 5.13.6. Rebooted without shutting down to verify no issues - mouse and keyboard worked fine. Then shut down completely and restarted - no response from keyboard and mouse. Hit reset button to restart and mouse and keyboard worked fine again.

The only time things seemed "fixed" for me was with the 5.13.5 upgrade, but that broke with the subsequent -current update even though no kernel update was included and I can't see anything else in the update that might have caused the change in behavior.

It's very odd and seems random with few other folks reporting similar issues. Maybe it's a random hardware problem? I'm just happy I can get things to work easily, but would interested to figure out why this is happening. Curious minds want to know ...

Oh well.

Didier Spaier 07-29-2021 03:54 PM

Quote:

Originally Posted by Franklin (Post 6270781)
Still having the same behavior here unfortunately.

Applied update to 5.13.6. Rebooted without shutting down to verify no issues - mouse and keyboard worked fine. Then shut down completely and restarted - no response from keyboard and mouse. Hit reset button to restart and mouse and keyboard worked fine again.

The only time things seemed "fixed" for me was with the 5.13.5 upgrade, but that broke with the subsequent -current update even though no kernel update was included and I can't see anything else in the update that might have caused the change in behavior.

It's very odd and seems random with few other folks reporting similar issues. Maybe it's a random hardware problem? I'm just happy I can get things to work easily, but would interested to figure out why this is happening. Curious minds want to know ...

Oh well.

The issue you describe doesn't look like the one reported in this thread as behaviors differ. Still eager to get reports to know if now (with kernel 5.13.6) all USB ports work, from folks for whom it was not the case.

DryFalls 07-29-2021 04:12 PM

k5.13.6
 
Code:

Machine:  Type: Desktop Mobo: Acer model: Aspire XC-603G serial: <filter> UEFI: American Megatrends v: P11-A2
          date: 01/23/2014
CPU:      Info: Quad Core model: Intel Celeron J1900 bits: 64 type: MCP arch: Silvermont rev: 3 cache: L2: 1024 KiB
          flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 16000
          Speed: 1528 MHz min/max: 1333/2416 MHz Core speeds (MHz): 1: 1528 2: 1333 3: 1333 4: 1333
Graphics:  Device-1: Intel Atom Processor Z36xxx/Z37xxx Series Graphics & Display vendor: Acer Incorporated ALI
          driver: i915 v: kernel bus-ID: 00:02.0
          Display: server: X.Org 1.20.12 driver: loaded: intel resolution: 1600x900~60Hz
          OpenGL: renderer: Mesa DRI Intel HD Graphics (BYT) v: 4.2 Mesa 21.1.5 direct render: Yes

upgraded kernel 5.13.6 and it dropped the (usb) mouse and keyboard during the installation. Had to reinstall 5.13.5 from a live install to recover. Installation is on a usb sdd 500G external drive.

Franklin 07-29-2021 04:25 PM

Quote:

Originally Posted by Didier Spaier (Post 6270787)
The issue you describe doesn't look like the one reported in this thread as behaviors differ. Still eager to get reports to know if now (with kernel 5.13.6) all USB ports work, from folks for whom it was not the case.


Well, you may be correct that it's not the same issue. It is odd though that we are both having keyboard and mouse USB problems that seem to have started at the same time after a kernel update. I'm not convinced we aren't seeing different symptoms of the same cause. I'm just not technical enough to know where to begin with respect to diagnosing.


I will continue follow this thread and refrain from chiming in so as not to gum up the discussion in case it is truly a separate problem.

Didier Spaier 07-29-2021 04:45 PM

Quote:

Originally Posted by DryFalls (Post 6270789)
upgraded kernel 5.13.6 and it dropped the (usb) mouse and keyboard during the installation. Had to reinstall 5.13.5 from a live install to recover. Installation is on a usb sdd 500G external drive.

Not sure it's the same issue either. What do you mean exactly writing "it dropped the (usb) mouse and keyboard during installation?" Do you really mean that you lost the keyboard and mouse before rebooting? In this case this is indeed another issue as the new kernel won't be used before you reboot. Or do you mean that you lost the keyboard and mouse after reboot? Then it could be because the package kernel-modules-5.13.6 has not been installed. How did you install the 5.13.6 packages: manually or using slackpkg?

chris.willing 07-29-2021 05:35 PM

Quote:

Originally Posted by Didier Spaier (Post 6270721)
Chris[1] and anyone having suffered from this issue, please test to confirm that it is also solved for you.

Yes, good news. The update to 5.13.6 has fixed the problem for me.

I also tried the warm/cold boot scenario but it made no difference here - all USB2 and 3 ports now work correctly in both cases.

chris

Didier Spaier 07-29-2021 06:06 PM

Quote:

Originally Posted by chris.willing (Post 6270801)
Yes, good news. The update to 5.13.6 has fixed the problem for me.

I also tried the warm/cold boot scenario but it made no difference here - all USB2 and 3 ports now work correctly in both cases.

chris

Thanks for the report. I mark this thread as [SOLVED].

DryFalls 07-29-2021 09:36 PM

Quote:

Originally Posted by Didier Spaier (Post 6270793)
Not sure it's the same issue either. What do you mean exactly writing "it dropped the (usb) mouse and keyboard during installation?" Do you really mean that you lost the keyboard and mouse before rebooting? In this case this is indeed another issue as the new kernel won't be used before you reboot. Or do you mean that you lost the keyboard and mouse after reboot? Then it could be because the package kernel-modules-5.13.6 has not been installed. How did you install the 5.13.6 packages: manually or using slackpkg?

I really lost the keyboard and mouse before rebooting. In fact, it was while slackpkg was installing the kernel modules package after the kernel was installed. But you're right, it could be an old problem which used to occur (intel_idle.max_cstate) similarly, but coincidentally crashing my box.


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