samj
asked on
no mice, no keyboard
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
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
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
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
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
. /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
ASKER
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.
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.
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
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
ASKER
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_
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_
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
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
ASKER
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> _
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> _
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
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
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
Try the edit, I think you'll have best progress with that.
-- Glenn
ASKER
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.
press e
select kernel /vmlinuz-2.2.20-idepci....
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.
ASKER
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-com mon/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/cyrill ic"
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
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-com
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/cyrill
FontPath "/usr/lib/X11/fonts/100dpi
FontPath "/usr/lib/X11/fonts/75dpi/
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
ASKER
#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.
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.
ASKER
#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
...
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
ASKER
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.
ASKER
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-com mon/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/cyrill ic"
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
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-com
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/cyrill
FontPath "/usr/lib/X11/fonts/100dpi
FontPath "/usr/lib/X11/fonts/75dpi/
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
PAQ with refund seems very reasonable.
-- Glenn
-- Glenn
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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_