SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So this my second time dealing with keyboard issues and a Dell. My previous woes were solved by the correct use of mkinitrd in this thread.
This situation is a bit different. This is a fresh install of 14.2. The install runs fine, as does Slackware-live. Neither of those have issues with the keyboard.
Once installed, however, I can often get as far as the luksOpen prompt for the encrypted home partition password. The strange part is that sometimes the keyboard will work long enough to get past that and to the login prompt, and then the keyboard no longer responds. Sometimes the keyboard stops responding once it reaches the home partition password, and never makes it to the login prompt.
Interestingly, I found that I can connect an external USB keyboard, and log in using that. Once I startx, the laptop keyboard works fine. Referring back to my previous issue, I used /usr/share/mkinitrd/mkinitrd_command_generator.sh to create an initrd (properly configured with lilo/lilo.conf, etc.). But the problem persists.
My current workaround is to set runlevel to 4. IF I can make it to the login prompt (X login manager), the keyboard works. Unfortunately that only happens about 50% of the time, and I'd really like to solve the underlying issue (as well as have a properly functioning laptop).
I know this is likely startup module related...I'm just at a loss as to how to diagnose it. There are no obvious (to me, anyway) messages in the dmesg output.
Any thoughts on where to look would be appreciated.
Which model of XPS is it? I have an old 9350 that runs 14.2 perfectly aside from needing a manual bootloader install.
Interestingly, I have had the dead keyboard problem on some Intel desktop boards with USB keyboards, with the most recent Slackware kernel. Have you recently updated the kernel?
note since slk64 14.2 there is a link to vimlinuz to vimlinuz-huge-xxxxx
and a link from vmlinuz-generic to vmlinuz-generic-xxxxx
so after distro kernel upgrades no need re-edit /etc/lilo.conf
you really need to load some modules early.
Just a guess. Huge can cause small issues as thousands of modules are loaded at start.
as for grub well thats another thread. I use grub also.
Which model of XPS is it? I have an old 9350 that runs 14.2 perfectly aside from needing a manual bootloader install.
It's an XPS 12 (2 in 1). The model number is "XPS 12 9Q33". It's low on specs, but fine for my limited purposes. Everything installed as normal here. Lilo ran without error with the initrd image, and once past the keyboard issue (if I can get into X with either an external KB or if it makes it to the X login manager) everything runs great.
Quote:
Originally Posted by Fat_Elvis
Interestingly, I have had the dead keyboard problem on some Intel desktop boards with USB keyboards, with the most recent Slackware kernel. Have you recently updated the kernel?
I'm using the stock 14.2 kernel right now (I've tried both huge and generic with initrd). The keyboard also worked fine with the Slackware-live image I tried (no KB issues at all), which I believe was running 4.14.26. I've also tried 4.14.34 with both the huge kernel and generic with an initrd. I don't think it's an issue with the kernel version. I suspect I'm missing something from the initrd, but I can't figure out what.
As I mentioned in the original post, this is exactly what I did based on the previous issue I had. The mkinitrd generator script gave a long list of drivers to add, but it did not solve the issue. I've tried both huge and generic (with initrd) kernel versions and the issue persists, only resolving if I can somehow get into X. I've been careful to ensure lilo.conf points to the correct kernel version / initrd combo (if applicable), and rerun lilo. No joy.
I do appreciate you taking the time to respond though. The solution you described is exactly what I initially expected to work. Thanks.
It would be very helpful if you could share the exact command you are running to generate your initrd.
On my main laptop (ZaReason Strata 7440) I do not include the external keyboard or mouse modules when generating an initrd. The kernel is smart enough to identify any additional hardware automatically as long as you include the bare minimum kernel modules into your initrd.
On my old Dell Inspiron N4010 if I use the kernel modules for external hardware with the Generic Slackware kernel, it simply won't boot. Also, the Huge kernel will not boot at all and I am forced to generate an initrd for the Generic kernel while in a chroot using the Slackware installation medium.
Anyway, a bit off topic now, here are the steps I follow to generate a initrd on both systems:
Run /usr/share/mkinitrd/mkinitrd_command_generator.sh and pick out the useful bits. The useful portion is in bold.
I like to have my Intel video card loaded in the initrd, it's not necessary, but I still do so. I also use the Intel microcode, you can safely ignore this part if you don't use it or if you have a different processor make. Finally, I use LUKS LVM encryption, so I include the relavant part for that to function. Here is the command I use to generate a working initrd on the ZaReason:
The goal of an initrd is just to get your machine to start up, not to load up every kernel module you might need. The kernel will identify the rest of what you need on it's own. So use the initrd to load just what you need to boot.
AFAIK, most laptop keyboards are PS/2 devices, which usually have less problems than USB connected peripherals.
I've had problems with the Slack installer not loading the correct keymap (all my keyboards are US ASCII), and also specifically with the recent 4.4.111 Slackware kernel, but only with USB keyboards, and not with PS/2.
Your laptop is likely a newer model which may have its own quirks. Would you be willing to try the new 4.14 series kernel from the current branch?
This is the tail end of lilo.conf. These are the entries that remain. I tried others as well (the 'huge' and 'generic' links in the first two entries point to the correct kernels in /boot, in case anyone wonders):
This particular run is using kernel 4.14.34 (I tried this with several kernels, including 4.4 series up to 118 and 4.14.26). It's become apparent that the kernel version is not the issue. It's my initrd setup.
Quote:
Originally Posted by mralk3
<snip>
The goal of an initrd is just to get your machine to start up, not to load up every kernel module you might need. The kernel will identify the rest of what you need on it's own. So use the initrd to load just what you need to boot.
Re-ran lilo...and for the first time, I was able to complete the login process with a reboot. Prior to this it never worked on a reboot, only *occasionally* on a cold start. So this is a first. Got past the luksOpen and straight to X login. But now the KB is non-responsive on a cold boot (it's probably coincidence that one or the other works). I get to the luksOpen passphrase and no KB. Bummer. Two more power cycles, and I get to the login prompt. No rhyme or reason...probably just a timing issue.
It seems this would be a non-issue if I could bypass the luksOpen and go straight to X login, but I really need /home encrypted on this.
AFAIK, most laptop keyboards are PS/2 devices, which usually have less problems than USB connected peripherals.
I've had problems with the Slack installer not loading the correct keymap (all my keyboards are US ASCII), and specifically with the recent 4.4.111 Slackware kernel, but only with USB keyboards, and not with PS/2.
Your laptop is likely a newer model which may have its own quirks. mkinitrd-generator seems to be listing a ridiculous number of USB HID drivers. You seem to have some Logitech devices connected. Have you tried booting with everything but the power disconnected?
This laptop is an older XPS model that came with Win8 loaded (3 or 4 years?). There's been nothing connected when I boot this except power, unless I'm booting the install media or Slack-live.
This laptop is an older XPS model that came with Win8 loaded (3 or 4 years?). There's been nothing connected when I boot this except power, unless I'm booting the install media or Slack-live.
Sorry about that, I confused your post with the other poster above. Edited now.
I see that you're already running the 4.14 kernel as well. If there is no problems when X11 is running, it likely has something to do with the console driver.
Wish I could be of more help, but laptop manufacturers these days seem to be deprioritizing compatibility with anything but their preinstalled hardware and software. Some of them won't even boot with an aftermarket drive or wireless adapter installed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.