Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Module Issues with Keyboard/Network
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
streak
n00b
n00b


Joined: 22 May 2013
Posts: 13

PostPosted: Mon May 27, 2013 8:40 pm    Post subject: Module Issues with Keyboard/Network Reply with quote

I've been struggling with my Gentoo install. I know the drivers for all my equipment exist because I run Slackware fine on both my desktop and netbook, however I am not sure what is wrong with the Gentoo installations.

On my desktop I can boot into Gentoo but when it gets into the login screen my keyboard is unresponsive. The screen cursor still flashes but it is obvious it doesn't detect the keyboard because it not only won't type to console but also the Caps Lock and other Locks don't do anything. I've tried a custom install with all drivers that I could think of being built in. Finally I gave up and used the generic 'genkernel all' and still the same issue.

On my netbook everything boots up and I can use my system but I cannot get networking to work. I have wicd and every wireless card I could think of is built into the kernel and I even got interfaces up (except wlan0 which is missing even though Slack sees it and uses it fine). Don't know what to do here.

Obviously, you'll probably need some console output so tell me what is needed. I have a hard time with screenshots or console output because I can only use the internet from my Slackware system.

Thanks a ton, this has been so time consuming.
Back to top
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Mon May 27, 2013 8:45 pm    Post subject: probably missing evdev Reply with quote

See if you have xf86-input-evdev emerged
Back to top
View user's profile Send private message
streak
n00b
n00b


Joined: 22 May 2013
Posts: 13

PostPosted: Mon May 27, 2013 8:49 pm    Post subject: Reply with quote

Okay, I'm emerging it, I'll get back to you as soon as it's done and I test it. Thank you

EDIT: And oh, as far as emerging on the netbook, I can't. Even when I chroot in I still have no networking ability (outside the chroot I do)...
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13975

PostPosted: Mon May 27, 2013 9:04 pm    Post subject: Reply with quote

Using chroot has no effect on the availability of the network. However, if your resolv.conf inside the chroot is missing or wrong, you will not have name service while in the chroot.

For the desktop problem, is it unresponsive in console mode, X11 mode, or both?
Back to top
View user's profile Send private message
streak
n00b
n00b


Joined: 22 May 2013
Posts: 13

PostPosted: Mon May 27, 2013 9:33 pm    Post subject: Reply with quote

Hu: For the desktop I'm currently only working in the console. Do you recommend somehow launching X11 before the login prompt, how would I do that?

EDIT: Thank you Hu. I got the chroot internet to work. I edited resolv.conf to the right settings. Internet in the non-chroot environment is still a no-go.

vaxbrat: I emerged it but it didn't fix it, unfortunately.
Back to top
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Mon May 27, 2013 10:06 pm    Post subject: didn't catch that it was not in console either. Reply with quote

So it doesn't work in the initial console either huh? The evdev module would have been a fix for the X desktop only assuming keyboard was already being seen. Assuming this is a usb keyboard it's possible that you had it initially in boot mode but your usb ports didn't get plumbed up with modules properly after bootup. See if you can pull it out of one port and plug it into another (preferably on another hub) to get it working. If the desktop still has a ps2 style port on it, you might try putting a keyboard on that before boot. That one should be just about guaranteed to stick around for normal operations. Then you can start looking to see whether you are getting the right usb drivers loaded (ohci, ehci, xhci or whatever)
Back to top
View user's profile Send private message
streak
n00b
n00b


Joined: 22 May 2013
Posts: 13

PostPosted: Mon May 27, 2013 10:50 pm    Post subject: Reply with quote

Thanks. Unfortunately, I tried two usb keyboards on two different ports, one in the front of the desktop and one on the back. I don't have a ps2 keyboard lying around. I can use the keyboard before I boot into Gentoo, from both LILO and Grub if that helps. When I compiled the kernel with 'genkernel all' I think it should've installed basically every module. I also manually configured the kernel with all modules I could think of that might be useful built in with the same problem.

EDIT: Do you think there's a grub option I am missing here? It boots but with the keyboard issue. I have:
title Gentoo Linux 3.8.13
root (hd0,11)
kernel /boot/kernel-genkernel-x86_64-3.8.13-gentoo root=/dev/sda12 rw vga=normal
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13975

PostPosted: Tue May 28, 2013 1:29 am    Post subject: Reply with quote

We need to get your console working before we examine X11. There are certain well known ways to have X11 not handle your keyboard, so we needed to determine whether you had hit one of those or if you have a more fundamental problem. Since the keyboard does not work in console, we have a more fundamental problem. As vaxbrat suggested, it sounds like you have a configuration where your USB devices are not recognized. Please pastebin a comment-stripped form of your kernel configuration and the output of lsmod ; lsusb as run when the console ignores your keyboard. If you have a USB mouse that emits a light to track its position, please connect that and check whether the light appears. That will indicate whether the USB port is powered.

Since the keyboard works while using GRUB, I do not think it is a GRUB issue. That also confirms that your hardware is functional.
Back to top
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Wed May 29, 2013 4:24 am    Post subject: ssh? Reply with quote

If you have network set up and can ssh into the box, at least you can do some probing that way
Back to top
View user's profile Send private message
streak
n00b
n00b


Joined: 22 May 2013
Posts: 13

PostPosted: Thu May 30, 2013 10:11 pm    Post subject: Reply with quote

I figured out that it is the Chicony Electronics Co., Ltd device, and that both my keyboards are from that manufacturer. I see that the Chicony USB devices are enabled as a module.
Code:
CONFIG_HID_CHICONY=m


I have a feeling that it is being blocked by a HIDBP (which I can't find yet). The following is the help for 'USB HID transport layer'. It seems that there is a chance it won't load (otherwise why can't I have it built in) because of HIDBP. I've done some 'grep'ing but haven't figured out where that is.
Code:
 CONFIG_USB_HID:                                                                         x 
  x                                                                                         x 
  x Say Y here if you want to connect USB keyboards,                                        x 
  x mice, joysticks, graphic tablets, or any other HID based devices                        x 
  x to your computer via USB, as well as Uninterruptible Power Supply                       x 
  x (UPS) and monitor control devices.                                                      x 
  x                                                                                         x 
  x You can't use this driver and the HIDBP (Boot Protocol) keyboard                        x 
  x and mouse drivers at the same time. More information is available:                      x 
  x <file:Documentation/input/input.txt>.                                                   x 
  x                                                                                         x 
  x If unsure, say Y.                                                                       x 
  x                                                                                         x 
  x To compile this driver as a module, choose M here: the                                  x 
  x module will be called usbhid.   


Code:
bash-4.2# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 002 Device 002: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Bus 005 Device 002: ID 0a5c:217d Broadcom Corp.
Bus 004 Device 002: ID 093a:2521 Pixart Imaging, Inc.
Bus 004 Device 003: ID 04f2:1060 Chicony Electronics Co., Ltd
Bus 001 Device 005: ID 0bc2:50a5 Seagate RSS LLC FreeAgent GoFlex Desk USB 3.0
Bus 001 Device 006: ID 1058:1100 Western Digital Technologies, Inc.
Bus 001 Device 007: ID 1058:1021 Western Digital Technologies, Inc. Elements 2TB


Code:
bash-4.2# lsmod
Module                  Size  Used by
snd_seq_dummy           1455  0
snd_seq_oss            29048  0
snd_seq_midi_event      5620  1 snd_seq_oss
snd_seq                51265  5 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy
snd_seq_device          5228  3 snd_seq,snd_seq_oss,snd_seq_dummy
snd_pcm_oss            39183  0
snd_mixer_oss          15404  1 snd_pcm_oss
ipv6                  279979  20
lp                      9787  0
ppdev                   5958  0
parport_pc             19423  0
parport                31427  3 parport_pc,ppdev,lp
fuse                   66626  5
brcmsmac              534140  0
cordic                  1065  1 brcmsmac
crc8                    1104  1 brcmsmac
joydev                  9972  0
snd_hda_codec_realtek   195474  1
btusb                  11676  0
bluetooth             151679  1 btusb
usbhid                 35615  0
radeon                758810  2
brcmutil                3531  1 brcmsmac
mac80211              227731  1 brcmsmac
snd_hda_intel          23267  0
snd_hda_codec          81925  2 snd_hda_intel,snd_hda_codec_realtek
hid                    82876  1 usbhid
cfg80211              169025  2 mac80211,brcmsmac
snd_hwdep               6324  1 snd_hda_codec
snd_pcm                72864  3 snd_hda_codec,snd_hda_intel,snd_pcm_oss
snd_page_alloc          7081  2 snd_pcm,snd_hda_intel
snd_timer              18798  2 snd_pcm,snd_seq
snd                    57796  11 snd_timer,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek,snd_mixer_oss,snd_pcm_oss,snd_seq_device,snd_seq,snd_seq_oss
k10temp                 2843  0
processor              25592  4
rfkill                 15428  3 cfg80211,bluetooth
ttm                    53508  1 radeon
drm_kms_helper         26133  1 radeon
drm                   187389  4 drm_kms_helper,ttm,radeon
agpgart                27372  2 drm,ttm
i2c_algo_bit            5319  1 radeon
i2c_piix4               8152  0
i2c_core               19978  5 i2c_piix4,i2c_algo_bit,drm,drm_kms_helper,radeon
thermal_sys            14578  1 processor
sdhci_pci              10812  0
sdhci                  23109  1 sdhci_pci
mmc_core               77850  2 sdhci,sdhci_pci
evdev                   9574  6
r8169                  48922  0
soundcore               5474  1 snd
hwmon                   1329  3 thermal_sys,k10temp,radeon
mii                     3987  1 r8169
button                  4529  0
loop                   18192  0


EDIT:
I tried loading it as a module. I might have edited a /usr/src/linux/.config setting but my current kernel won't boot properly, neither will my old kernel, nor a new one that I compiled. They freeze during the boot process. I'm lost. Been working on this for endless hours.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13975

PostPosted: Fri May 31, 2013 2:39 am    Post subject: Reply with quote

Your lsmod output confirms that usbhid is loaded, so you did not enable HIDBP. This is good. You say you tried loading it as a module. I recommend against that. For the freeze problem, please provide more information. We cannot tell what is wrong from the limited description so far.
Back to top
View user's profile Send private message
streak
n00b
n00b


Joined: 22 May 2013
Posts: 13

PostPosted: Fri May 31, 2013 5:18 am    Post subject: Reply with quote

I think the reason why it appears in lsmod is because I am using my Slackware system to run lsmod... I can't use the keyboard or boot up gentoo so I have to run these commands/probes from Slackware...

The kernel never used to hang. I've tried with both the modules file edited and not edited and under the current, old, and new gentoo kernels. The current and new were both compiled with 'genkernel all' and both hang at
Code:
VFS : Cannot open root device "sdb5" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions :  (rest of line blank)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
While the old kernel says "Switching to clocksource tsc" and after 20 some seconds the screen goes from black console to fine multicolored lines and is unresponsive (the keyboard never functioning anyways).

The /usr/src/linux/.config file might have been changed making it different than the kernel. Would that make the kernel not boot properly? That is the only thing I can remember messing with. But then again, when I recompiled using 'genkernel all' shouldn't have that been fixed? I am confused.
Back to top
View user's profile Send private message
streak
n00b
n00b


Joined: 22 May 2013
Posts: 13

PostPosted: Fri May 31, 2013 7:03 pm    Post subject: Reply with quote

One thing I notice is that my Slackware installation has a much fuller /lib/udev listing. I don't know if gentoo's is by design supposed to be simpler.

Slackware:
Code:
root@darkstar:/lib/udev# ls -l
total 476
-rwxr-xr-x 1 root root 33528 Sep 10  2012 accelerometer
-rwxr-xr-x 1 root root 19904 Sep 10  2012 ata_id
-rwxr-xr-x 1 root root   631 Aug  5  2008 bluetooth_serial
-rwxr-xr-x 1 root root 30176 Sep 10  2012 cdrom_id
-rwxr-xr-x 1 root root   489 Jul 17  2012 check-ptp-camera
-rwxr-xr-x 1 root root 17672 Sep 10  2012 collect
-rwxr-xr-x 1 root root 16672 Sep 10  2012 create_floppy_devices
drwxr-xr-x 3 root root  4096 Mar 27 12:56 devices
-rwxr-xr-x 1 root root  2613 Sep 10  2012 findkeyboards
-rwxr-xr-x 1 root root 11440 Sep  9  2012 hid2hci
-rwxr-xr-x 1 root root 38008 Jun 19  2012 ipod-set-info
-rwxr-xr-x 1 root root   622 Sep 10  2012 keyboard-force-release.sh
-rwxr-xr-x 1 root root 46176 Sep 10  2012 keymap
drwxr-xr-x 3 root root  4096 Sep 10  2012 keymaps
-rwxr-xr-x 1 root root  5808 Sep 10  2012 mtd_probe
-rwxr-xr-x 1 root root  5608 Aug 10  2012 mtp-probe
-rwxr-xr-x 1 root root 10824 Feb 27  2011 pcmcia-check-broken-cis
-rwxr-xr-x 1 root root 21288 Feb 27  2011 pcmcia-socket-startup
-rwxr-xr-x 1 root root  3481 Sep 10  2012 rule_generator.functions
drwxr-xr-x 2 root root  4096 Aug 10  2012 rules.d
-rwxr-xr-x 1 root root 32080 Sep 10  2012 scsi_id
-rwxr-xr-x 1 root root  9061 Jun 19  2012 udev-add-printer
-rwxr-xr-x 1 root root 29376 Jun 19  2012 udev-configure-printer
lrwxrwxrwx 1 root root    11 Mar 27 12:56 udevd -> /sbin/udevd
-rwxr-xr-x 1 root root  8744 Apr  8  2012 udisks-dm-export
-rwxr-xr-x 1 root root 30320 Apr  8  2012 udisks-part-id
-rwxr-xr-x 1 root root  5592 Apr  8  2012 udisks-probe-ata-smart
-rwxr-xr-x 1 root root  5984 Apr  8  2012 udisks-probe-sas-expander
-rwxr-xr-x 1 root root  1647 Aug 29  2012 usb_modeswitch
-rwxr-xr-x 1 root root  5592 Sep 10  2012 v4l_id
-rwxr-xr-x 1 root root  5227 Sep 10  2012 write_cd_rules
-rwxr-xr-x 1 root root  4384 Sep 10  2012 write_net_rules


Gentoo:
Code:
bash-4.2# ls -l
total 236
-rwxr-xr-x 1 root root 30640 May 16 02:05 accelerometer
-rwxr-xr-x 1 root root 38832 May 16 02:05 ata_id
-rwxr-xr-x 1 root root 42928 May 16 02:05 cdrom_id
-rwxr-xr-x 1 root root 34744 May 16 02:05 collect
-rwxr-xr-x 1 root root   724 May 16 02:05 dev-root-link.sh
drwxr-xr-x 2 root root  4096 May 23 00:20 hwdb.d
-rwxr-xr-x 1 root root  5968 May 16 02:05 mtd_probe
-rwxr-xr-x 1 root root   865 May 16 02:05 net.sh
drwxr-xr-x 2 root root  4096 May 23 03:41 rules.d
-rwxr-xr-x 1 root root 51640 May 16 02:05 scsi_id
lrwxrwxrwx 1 root root    21 May 23 03:41 udev-acl -> /usr/libexec/udev-acl
-rwxr-xr-x 1 root root  5968 May 16 02:05 v4l_id
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13975

PostPosted: Fri May 31, 2013 9:25 pm    Post subject: Reply with quote

streak wrote:
I think the reason why it appears in lsmod is because I am using my Slackware system to run lsmod... I can't use the keyboard or boot up gentoo so I have to run these commands/probes from Slackware...
If you ran that under Slackware, then your console was not ignoring the keyboard, so the output is irrelevant. As vaxbrat suggested, use ssh to run these commands while Gentoo is running.
streak wrote:
The kernel never used to hang. I've tried with both the modules file edited and not edited and under the current, old, and new gentoo kernels. The current and new were both compiled with 'genkernel all' and both hang at
Code:
VFS : Cannot open root device "sdb5" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions :  (rest of line blank)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
While the old kernel says "Switching to clocksource tsc" and after 20 some seconds the screen goes from black console to fine multicolored lines and is unresponsive (the keyboard never functioning anyways).
Although old, [FAQ] KC13: I just installed a new kernel and it won't boot is a good starting place for this. It looks like you removed support for your hard drive.
streak wrote:
The /usr/src/linux/.config file might have been changed making it different than the kernel. Would that make the kernel not boot properly? That is the only thing I can remember messing with. But then again, when I recompiled using 'genkernel all' shouldn't have that been fixed? I am confused.
No. The kernel configuration only affects how the kernel is built. Once the build completes, the configuration file can be changed or deleted without affecting the compiled kernel.
Back to top
View user's profile Send private message
streak
n00b
n00b


Joined: 22 May 2013
Posts: 13

PostPosted: Sat Jun 01, 2013 4:20 pm    Post subject: Reply with quote

I am unsure how to SSH into Gentoo if networking isn't up yet. It sounds complicated, like somehow during boot forcing the machine to start up networking, log-in to the network, and enable ssh. I've never done it before. Do you have a pointer as to how I'd start? Is there an article that you remember explaining the process? Thanks a lot.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13975

PostPosted: Sat Jun 01, 2013 5:13 pm    Post subject: Reply with quote

Once you get your kernel configured so that it does not panic on boot, Gentoo should bring up the network automatically. You can optionally configure the init system to start sshd by default, using rc-update add. I suggest we focus on getting a bootable kernel before dealing with the lack of keyboard support.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum