NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

/etc/ttys, keymap, and X



Good Day,

Running NetBSD 5.1 -current amd64 with src.tar.gz downloaded on 02/23.

<from /var/log/messages 02/26/2011>

Feb 26 18:11:44 ****** /netbsd: NetBSD 5.99.45 (KERNEL_022411-$Revision: 0.0 $) #0: Thu Feb 24 20:21:12 CST 2011 Feb 26 18:11:44 ****** /netbsd: michael@*****.********.net:/usr/obj/sys/arch/amd64/compile/KERNEL_022411

Built new tools and world and installed yesterday.

I have been running NetBSD 5.1 -stable amd64 and i386 on two machines and PcBSD 8.1 i386 on a third. One arch i386 machine has had NetBSD running since 09/2010 with no problems though it does not run X. My problem on this machine (amd64 - DFI LanParty MB) is that I have no ttys to switch to using Ctrl-Alt-F# and do not seem to be able to edit /etc/ttys correctly. I have read 'man ttys' but maybe not good enough. When I turn on 'constty' and ttyE0 - tty E3, the login screen (tty0?) doesn't let me login;

/etc/ttys

console "/usr/libexec/getty Pc"         vt100   on  secure
constty "/usr/libexec/getty Pc"         vt100   off secure
ttyE0   "/usr/libexec/getty Pc"         vt220   off secure
ttyE1   "/usr/libexec/getty Pc"         vt220   off secure
ttyE2   "/usr/libexec/getty Pc"         vt220   off secure
ttyE3   "/usr/libexec/getty Pc"         vt220   off secure
tty00   "/usr/libexec/getty std.9600"   unknown off secure
tty01   "/usr/libexec/getty std.9600"   unknown off secure
tty02   "/usr/libexec/getty std.9600"   unknown off secure
tty03   "/usr/libexec/getty std.9600"   unknown off secure
tty04   "/usr/libexec/getty std.9600"   unknown off secure
tty05   "/usr/libexec/getty std.9600"   unknown off secure
tty06   "/usr/libexec/getty std.9600"   unknown off secure
tty07   "/usr/libexec/getty std.9600"   unknown off secure

Also, I cannot seem to get X to start. I have done 'X -configure' as well as just 'xinit' or 'startx'. The screen blanks and the keyboard quits working. The machine had an ATI PCIe card in one slot but I broke it and am using an old S3 Virge card in one PCI slot until the new one comes.

Current /etc/X11/xorg.conf:

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/X11R7/lib/modules"
        FontPath     "/usr/X11R7/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R7/lib/X11/fonts/TTF/"
        FontPath     "/usr/X11R7/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R7/lib/X11/fonts/75dpi/"
        FontPath     "/usr/X11R7/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
        Load  "dbe"
        Load  "dri"
        Load  "dri2"
        Load  "extmod"
        Load  "glx"
        Load  "record"
        Load  "shadow"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/wsmouse"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/wsmouse"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "slow_edodram"              # [<bool>]
        #Option     "slow_dram"                 # [<bool>]
        #Option     "fast_dram"                 # [<bool>]
        #Option     "fpm_vram"                  # [<bool>]
        #Option     "pci_burst"                 # [<bool>]
        #Option     "fifo_conservative"         # [<bool>]
        #Option     "fifo_moderate"             # [<bool>]
        #Option     "fifo_aggressive"           # [<bool>]
        #Option     "pci_retry"                 # [<bool>]
        #Option     "NoAccel"                   # [<bool>]
        #Option     "early_ras_precharge"       # [<bool>]
        #Option     "late_ras_precharge"        # [<bool>]
        #Option     "lcd_center"                # [<bool>]
        #Option     "set_lcdclk"                # <i>
        #Option     "set_mclk"                  # <freq>
        #Option     "set_refclk"                # <freq>
        #Option     "show_cache"                # [<bool>]
        #Option     "HWCursor"                  # [<bool>]
        #Option     "SWCursor"                  # [<bool>]
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "Rotate"                    # [<str>]
        #Option     "mxcr3afix"                 # [<bool>]
        #Option     "XVideo"                    # [<bool>]
        Identifier  "Card0"
        Driver      "s3virge"
        VendorName  "Unknown Vendor"
        BoardName   "Unknown Board"
        BusID       "PCI:1@1:6:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Finally, it seems the keymap is wrong because when I hit any of the Insert/Home/Delete/PgUp/PgDn keys, control characters are displayed and the intended action does not happen. Makes it kind of hard to use mc and I can't figure it out. Sorry for the long post. Any help is greatly appreciated.

Michael


Home | Main Index | Thread Index | Old Index