Solved

no mice, no keyboard

Posted on 2003-10-21
19
1,102 Views
Last Modified: 2013-12-27
Hello
after
#dpkg-reconfigure xserver-xfree86
I lost both my keyboard and mice, now when I boot I see kde login window but I can not move my mice or enter any keys in the boxes.
debian 3.0r1, linux 2.4.21, grub version .91

how can I get back in the system and bypass x window?

thanks
0
Comment
Question by:samj
  • 10
  • 7
19 Comments
 

Author Comment

by:samj
ID: 9593400
CTRL-ALT-F1
nothing happens

when I insert the rescue disk and reboot the box.

LILO Boot Menu
Loading linux_
Error 0x10

boot: linux_[RTN]
Loading linux
Error 0x10
boot: linux_

0
 
LVL 20

Expert Comment

by:Gns
ID: 9598197
At the normal system startup LILO: prompt, enter your bootlabel followed what runlevel you'd like to go to (will be passed on to init)... Since this is Debian 3.0r1, default runlevel is 2 (which will try to run X), and you probably have Linux as the bootlabel, so going to runlevel 1 would be OK:
LILO: Linux 1<Enter>

When it has booted up to runlevel 1, and entering the root password (You will have a PATH with mostly sbin entries, and no X11, so either add that, or do ". /etc/profile" to get something sane:-), you can either edit /etc/X11/XF86Config-4 to suit you, or run (if you have it installed)
xf86cfg -textmode
which will help you fix any problems with the keyboard.
When done testing with startx, just
telinit 2
and you should be up and ruinning...

-- Glenn
0
 
LVL 20

Expert Comment

by:Gns
ID: 9598241
If you did the
. /etc/profile
I suggested, it'll make all the sbin (/sbin:/usr/sbin) disappear from your PATH, so the last command in the above
telinit 2
will not be found. Simply add the path like this:
/sbin/telinit 2
and it'll work.

-- Glenn
0
 

Author Comment

by:samj
ID: 9601041
I used my installation CD to make a bootable floppy.
inserted the floppy into the drive, boot the box.
boot: linux 1
Could not find kernel image: linux
boot:
Loading linux.bin......
and into a kde which is frozen so I got to boot with the installation CD,
boot: linux 1
...
#. /etc/profile
#edit /etc/X11/XF86Config-4
open GNU nano 1.0.8
wrote a line to check things out and then ^X and Y to save
Could not open file for writing: No such file or directory.
0
 
LVL 20

Expert Comment

by:Gns
ID: 9604904
When you do a normal boot, don't you get/use the nice LILO menu? Which will show all available bootlabels? That is what I'm referring to.
At any LILO: prompt, press <TAB> (== <Ctrl>-<i>) to list all labels... (Excepting the Install CD which doesn't use LILO).

In the latter case you list, you don't have a / mounted read/write so can never save aything to it. In fact, you wouldn't even be running against your on-disk installation. So that is as expected.

So please try again, using a normal startup and the bootlabel you've set on your system.

-- Glenn
0
 

Author Comment

by:samj
ID: 9609117
I tried the boot floppy which I created with the cd which did not have LILO, I then tried the other floppy which I mentined in my first post which has LILO
LILO Boot Menu "the nice red box with 'linux' only on the left section"
boot: linux
Loading linux_  ' I hear the floppy drive working'
Error 0x10
boot: linux_
0
 
LVL 20

Expert Comment

by:Gns
ID: 9612510
Why are you mucking about with floppies? If you have lilo on the MBR, that is what you should use.
How else do you boot your "normal linux"? Not via that floppy surely?
To spell it out: If you normally boot via LILO on the harddrive, you don't need any rescue disk method.
Just do as I detailed above.

-- Glenn
0
 

Author Comment

by:samj
ID: 9613085
aha.. I should have gussed it, ok. I am not using Lilo, but grub.
GRUM version .91
Debian GNU/Linux, kernel 2.4.21.031019a
Debian GNU/Linux, kernel 2.2.20-idepci
Winodows 2000 pro

use the arrows to highlight the option or
e to edit the commands before booting, c for a command-line.

c [ENTER]
grub> _
0
 
LVL 20

Expert Comment

by:Gns
ID: 9613337
Ok... (Resetting mind for grub:-)....
IIRC you can press a "c" or somesuch to get to the Grub> prompt, then pehaps type "<whatever title, probably "Debian GNU/Linux, kernel 2.4.21.031019a"> 1, or if that fails ISTR you cound "e"dit the relevant line and add the kernel command line there, then execute it.
This is all to go to singel user (runlevel 1) mode. After that, it is as the above ... Hope you'll have more luck with this:-).

Don't hesitate to give a holler otherwise.

-- Glenn
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 20

Expert Comment

by:Gns
ID: 9613355
Duh, I'm at IQ60 after lunch... You already quoted that info... (Blush)

Try the edit, I think you'll have best progress with that.

-- Glenn
0
 

Author Comment

by:samj
ID: 9616497
on the grub screen
press e
select kernel /vmlinuz-2.2.20-idepci....ro and press e to edit it
add single at the end of the line and press return
press b to boot
give root password when asked
<boxname>:~#
so I was able to emacs and change the XFCofig-4 and startx or reboot to try.
but now after booting I get
(none):~# which does not have emacs or vi to edit the XFConfig-4
here what happens
when I boot into Debian GNU/Linux, kernel 2.4.21.031019a
/dev/hdb1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
fsck failed. Please repair manually and rebot.  
...
....
Give root password for maintenance or type Ctl-D for startup.
0
 

Author Comment

by:samj
ID: 9616992
ok.. the problem with the not being able to have <boxname> is fixed. I had to force check and fix the partitions.
now back to editing the XFConfig-4, "I will not reboot again-just startx"
rebooting sometimes gets me into the case where I have no choice but to use the reset button and that is not good for the box. but that reboot command will not work when I am loged in as single.

now to the XFConfig-4
I tried
dpkg-reconfigure xserver-xfree86
#startx
back to a frozen kde screen
it looks I have to do manual work.

/etc/X11/XFConfig-4
# To change things within the debconf section, run the command:
#   dpkg-reconfigure xserver-xfree86
# as root.  Also see "How do I add custom sections to a dexconf-generated
# XF86Config or XF86Config-4 file?" in /usr/share/doc/xfree86-common/FAQ.gz.

Section "Files"
      FontPath      "unix/:7100"                  # local font server
      # if the local font server has problems, we can fall back on these
      FontPath      "/usr/lib/X11/fonts/misc"
      FontPath      "/usr/lib/X11/fonts/cyrillic"
      FontPath      "/usr/lib/X11/fonts/100dpi/:unscaled"
      FontPath      "/usr/lib/X11/fonts/75dpi/:unscaled"
      FontPath      "/usr/lib/X11/fonts/Type1"
      FontPath      "/usr/lib/X11/fonts/Speedo"
      FontPath      "/usr/lib/X11/fonts/100dpi"
      FontPath      "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
      Load      "GLcore"
      Load      "bitmap"
      Load      "dbe"
      Load      "ddc"
      Load      "dri"
      Load      "extmod"
      Load      "freetype"
      Load      "glx"
      Load      "int10"
      Load      "pex5"
      Load      "record"
      Load      "speedo"
      Load      "type1"
      Load      "vbe"
      Load      "xie"
EndSection

Section "InputDevice"
      Identifier      "Generic Keyboard"
      Driver            "keyboard"
      Option            "CoreKeyboard"
      Option            "XkbRules"      "xfree86"
      Option            "XkbModel"      "pc105"
      Option            "XkbLayout"      "us"
EndSection

Section "InputDevice"
      Identifier      "Configured Mouse"
      Driver            "mouse"
      Option            "CorePointer"
      Option            "Device"            "/dev/input/mice"
      Option            "Protocol"            "ImPS/2"
      Option            "ZAxisMapping"            "4 5"
EndSection

Section "Device"
      Identifier      "Generic Video Card"
      Driver            "nv"
      ChipSet            "RIVATNT2"
      Card            "Creative Graphics Blaster TNT2"
EndSection

Section "Monitor"
      Identifier      "Generic Monitor"
      HorizSync      30-69
      VertRefresh      50-120
      Option            "DPMS"
EndSection

Section "Screen"
      Identifier      "Default Screen"
      Device            "Generic Video Card"
      Monitor            "Generic Monitor"
      DefaultDepth      24
      SubSection "Display"
            Depth            24
            Modes            "1024x768" "800x600" "640x480"
      EndSubSection
EndSection

Section "ServerLayout"
      Identifier      "Default Layout"
      Screen            "Default Screen"
      InputDevice      "Generic Keyboard"
      InputDevice      "Configured Mouse"
EndSection

Section "DRI"
      Mode      0666
EndSection

### END DEBCONF SECTION
0
 

Author Comment

by:samj
ID: 9617025
#more /proc/mise
175 agpgart
   1 psaux
134 apm_bios
#
why isn't there something like
32 USB mouse

if I change the
Option          "Device"          "/dev/input/mice"
to
Option          "Device"          "/dev/psaux"
thats when the box loads up kde and freezes so I don't use it.
0
 

Author Comment

by:samj
ID: 9618749
#startx
...
PEXExtensionInit: Couldn't open default PEX font file Roman_M
(II) Keyboard "Generic Keyboard" handled by legacy driver
(**) Configured Mouse: Protocol: "ImPS/2"
(**) Configured Mouse: Core Pointer
(EE) xf86OpenSerial: CAnnot open device /dev/input/mice
           No such device.
(EE) Configured Mouse: cannot open input device
(EE) PreInit failed for input device "Configured Mouse"
(WW) No core pointer registered
No core pointer

Fatal server error:
failed to initialize core devices
0
 

Author Comment

by:samj
ID: 9618827

In the kernel, turn on
Mouse Support in the Input core support
Preliminary USB device filesystem in the USB support

Now I have keyboard working but no mice still.
0
 

Author Comment

by:samj
ID: 9619321
problems fixed
thanks Gns
I had to add USB Human Interface Device (full HID) support and it's sub-choice (HID input layer support)

the XF86Config-4 is

# To change things within the debconf section, run the command:
#   dpkg-reconfigure xserver-xfree86
# as root.  Also see "How do I add custom sections to a dexconf-generated
# XF86Config or XF86Config-4 file?" in /usr/share/doc/xfree86-common/FAQ.gz.

Section "Files"
      FontPath      "unix/:7100"                  # local font server
      # if the local font server has problems, we can fall back on these
      FontPath      "/usr/lib/X11/fonts/misc"
      FontPath      "/usr/lib/X11/fonts/cyrillic"
      FontPath      "/usr/lib/X11/fonts/100dpi/:unscaled"
      FontPath      "/usr/lib/X11/fonts/75dpi/:unscaled"
      FontPath      "/usr/lib/X11/fonts/Type1"
      FontPath      "/usr/lib/X11/fonts/Speedo"
      FontPath      "/usr/lib/X11/fonts/100dpi"
      FontPath      "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
      Load      "GLcore"
      Load      "bitmap"
      Load      "dbe"
      Load      "ddc"
      Load      "dri"
      Load      "extmod"
      Load      "freetype"
      Load      "glx"
      Load      "int10"
      Load      "pex5"
      Load      "record"
      Load      "speedo"
      Load      "type1"
      Load      "vbe"
      Load      "xie"
EndSection

Section "InputDevice"
      Identifier      "Generic Keyboard"
      Driver            "keyboard"
      Option            "CoreKeyboard"
      Option            "XkbRules"      "xfree86"
      Option            "XkbModel"      "pc105"
      Option            "XkbLayout"      "us"
EndSection

Section "InputDevice"
      Identifier      "Configured Mouse"
      Driver            "mouse"
      Option            "Device"            "/dev/input/mice"
      Option            "Protocol"            "IMPS/2"
      Option            "ZAxisMapping"            "4 5"
      Option            "Buttons"            "5"
EndSection

Section "Device"
      Identifier      "Generic Video Card"
      Driver            "nv"
      ChipSet            "RIVATNT2"
      Card            "NVidia TNT2"
EndSection

Section "Monitor"
      Identifier      "Generic Monitor"
      HorizSync      30-69
      VertRefresh      50-120
      Option            "DPMS"
EndSection

Section "Screen"
      Identifier      "Default Screen"
      Device            "Generic Video Card"
      Monitor            "Generic Monitor"
      DefaultDepth      24
      SubSection "Display"
            Depth            24
            Modes            "1024x768" "800x600" "640x480"
      EndSubSection
EndSection

Section "ServerLayout"
      Identifier      "Default Layout"
      Screen            "Default Screen"
      InputDevice      "Generic Keyboard"
      InputDevice      "Configured Mouse"  "CorePointer"
EndSection

Section "DRI"
      Mode      0666
EndSection

### END DEBCONF SECTION


0
 
LVL 20

Expert Comment

by:Gns
ID: 9625586
PAQ with refund seems very reasonable.

-- Glenn
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 9628606
Hi Glenn,

Thanks for responding !
As you agree, I've finalized this question as proposed.

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now