NetBSD-Users archive

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

Re: Keybord seems to be attached to ttyE0 after wdm starts



RVP a écrit :
> On Sun, 5 Jun 2022, BERTRAND Joël wrote:
> 
>>     When NetBSD starts, wdm is launched, mouse works fine, but
>> keyboard not
>> ! I cannot switch from X console to ttyE1, but from a remote server, if
>> I kill X or wdm, I see that keyboard has sent characters to ttyE1 (login
>> I have enter in wdm is written after 'login: ' on ttyE1).
>>
>>     If I restart wdm, keyboard is active in wdm.
>>
>>     I don't understand why wdm loses keyboard when it is started during
>> boot. Explanation will be welcome.
>>
> 
> Those config. files look OK. Can you post your Xorg config. file and the
> /var/log/Xorg.0.log file?

	My /var/log/Xorg.0.log.old contains (I suppose it is the good log file
as I have restarted X and wdm to use keyboard... and I cannot restart
this server):

[   216.638]
X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
[   216.639] Build Operating System: NetBSD/amd64 9.2_STABLE - The
NetBSD Foundation, Inc.
[   216.639] Current Operating System: NetBSD legendre.systella.fr
9.2_STABLE NetBSD 9.2_STABLE (CUSTOM) #11: Thu Mar 31 11:43:25 CEST 2022
 root%legendre.systella.fr@localhost:/usr/src/netbsd-9/obj/sys/arch/amd64/compile/CUSTOM amd64
[   216.640] Build Date: 03 March 2019  07:11:23AM
[   216.640]
[   216.640] Current version of pixman: 0.38.4
[   216.640]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   216.640] Markers: (--) probed, (**) from config file, (==) default
setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   216.640] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jun  5
10:02:01 2022
[   216.641] (==) Using config file: "/etc/X11/xorg.conf"
[   216.641] (==) ServerLayout "X.org Configured"
[   216.641] (**) |-->Screen "Screen0" (0)
[   216.641] (**) |   |-->Monitor "Monitor0"
[   216.642] (**) |   |-->Device "Card0"
[   216.642] (**) |-->Input Device "Mouse0"
[   216.642] (**) |-->Input Device "Keyboard0"
[   216.642] (**) Option "BlankTime" "0"
[   216.642] (**) Option "StandbyTime" "0"
[   216.642] (**) Option "SuspendTime" "0"
[   216.642] (**) Option "OffTime" "0"
[   216.642] (==) Not automatically adding devices
[   216.642] (==) Not automatically enabling devices
[   216.642] (==) Not automatically adding GPU devices
[   216.642] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   216.643] (**) FontPath set to:
        /usr/X11R7/lib/X11/fonts/misc/,
        /usr/X11R7/lib/X11/fonts/TTF/,
        /usr/X11R7/lib/X11/fonts/Type1/,
        /usr/X11R7/lib/X11/fonts/75dpi/,
        /usr/X11R7/lib/X11/fonts/100dpi/,
        /usr/X11R7/lib/X11/fonts/misc/,
        /usr/X11R7/lib/X11/fonts/TTF/,
        /usr/X11R7/lib/X11/fonts/Type1/,
        /usr/X11R7/lib/X11/fonts/75dpi/,
        /usr/X11R7/lib/X11/fonts/100dpi/
[   216.643] (**) ModulePath set to "/usr/X11R7/lib/modules"
[   216.643] (II) Loader magic: 0xf508fa60
[   216.643] (II) Module ABI versions:
[   216.643]    X.Org ANSI C Emulation: 0.4
[   216.643]    X.Org Video Driver: 24.0
[   216.643]    X.Org XInput driver : 24.1
[   216.643]    X.Org Server Extension : 10.0
[   216.659] (--) PCI:*(0@0:2:0) 8086:0412:1043:8534 rev 6, Mem @
0xf7400000/4194304, 0xe0000000/268435456, I/O @ 0x0000f000/64
[   216.659] (II) "glx" will be loaded. This was enabled by default and
also specified in the config file.
[   216.659] (II) LoadModule: "dbe"
[   216.660] (II) Module "dbe" already built-in
[   216.660] (II) LoadModule: "dri"
[   216.660] (II) Module "dri" already built-in
[   216.660] (II) LoadModule: "dri2"
[   216.660] (II) Module "dri2" already built-in
[   216.660] (II) LoadModule: "extmod"
[   216.660] (II) Module "extmod" already built-in
[   216.660] (II) LoadModule: "glx"
[   216.662] (II) Loading /usr/X11R7/lib/modules/extensions/libglx.so
[   216.662] (II) Module glx: vendor="X.Org Foundation"
[   216.662]    compiled for 1.20.5, module version = 1.0.0
[   216.662]    ABI class: X.Org Server Extension, version 10.0
[   216.662] (II) LoadModule: "shadow"
[   216.664] (II) Loading /usr/X11R7/lib/modules/extensions/libshadow.so
[   216.664] (II) Module shadow: vendor="X.Org Foundation"
[   216.664]    compiled for 1.20.5, module version = 1.1.0
[   216.665]    ABI class: X.Org ANSI C Emulation, version 0.4
[   216.665] (II) LoadModule: "record"
[   216.665] (II) Module "record" already built-in
[   216.665] (II) LoadModule: "intel"
[   216.665] (II) Loading /usr/X11R7/lib/modules/drivers/intel_drv.so
[   216.666] (II) Module intel: vendor="X.Org Foundation"
[   216.666]    compiled for 1.20.5, module version = 2.99.917
[   216.666]    Module class: X.Org Video Driver
[   216.666]    ABI class: X.Org Video Driver, version 24.0
[   216.666] (II) LoadModule: "mouse"
[   216.667] (II) Loading /usr/X11R7/lib/modules/drivers/mouse_drv.so
[   216.668] (II) Module mouse: vendor="X.Org Foundation"
[   216.668]    compiled for 1.20.5, module version = 1.9.2
[   216.668]    Module class: X.Org XInput Driver
[   216.668]    ABI class: X.Org XInput driver, version 24.1
[   216.668] (II) LoadModule: "kbd"
[   216.669] (II) Loading /usr/X11R7/lib/modules/drivers/kbd_drv.so
[   216.669] (II) Module kbd: vendor="X.Org Foundation"
[   216.669]    compiled for 1.20.5, module version = 1.9.0
[   216.669]    Module class: X.Org XInput Driver
[   216.669]    ABI class: X.Org XInput driver, version 24.1
[   216.669] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35,
Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[   216.670] (II) intel: Driver for Intel(R) HD Graphics
[   216.670] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[   216.670] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[   216.670] (--) Using wscons driver on /dev/ttyE4 in pcvt
compatibility mode (version 3.32)
[   216.670] (--) using VT number 5
[   216.676] (II) intel(0): Using Kernel Mode Setting driver: i915,
version 1.6.0 20151010
[   216.677] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card
support
[   216.677] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD
Graphics 4600
[   216.677] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1,
sse4.2, avx, avx2; using a maximum of 4 threads
[   216.678] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[   216.678] (==) intel(0): RGB weight 888
[   216.678] (==) intel(0): Default visual is TrueColor
[   216.678] (II) intel(0): Output VGA1 using monitor section Monitor0
[   216.679] (II) intel(0): Enabled output VGA1
[   216.679] (II) intel(0): Output DP1 has no monitor section
[   216.679] (II) intel(0): Enabled output DP1
[   216.679] (II) intel(0): Output HDMI1 has no monitor section
[   216.679] (II) intel(0): Enabled output HDMI1
[   216.679] (II) intel(0): Output DP2 has no monitor section
[   216.679] (II) intel(0): Enabled output DP2
[   216.679] (II) intel(0): Output HDMI2 has no monitor section
[   216.679] (II) intel(0): Enabled output HDMI2
[   216.679] (--) intel(0): Using a maximum size of 256x256 for hardware
cursors
[   216.679] (II) intel(0): Output VIRTUAL1 has no monitor section
[   216.679] (II) intel(0): Enabled output VIRTUAL1
[   216.679] (--) intel(0): Output VGA1 using initial mode 1280x1024 on
pipe 0
[   216.680] (==) intel(0): TearFree enabled
[   216.680] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[   216.680] (==) intel(0): DPI set to (96, 96)
[   216.680] (II) Loading sub module "dri2"
[   216.680] (II) LoadModule: "dri2"
[   216.680] (II) Module "dri2" already built-in
[   216.680] (II) intel(0): SNA initialized with Haswell (gen7.5, gt2)
backend
[   216.680] (==) intel(0): Backing store enabled
[   216.680] (==) intel(0): Silken mouse enabled
[   216.680] (II) intel(0): HW Cursor enabled
[   216.681] (II) intel(0): [DRI2] Setup complete
[   216.681] (II) intel(0): [DRI2]   DRI driver: i965
[   216.681] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[   216.681] (II) intel(0): direct rendering: DRI2 enabled
[   216.681] (II) Initializing extension Generic Event Extension
[   216.682] (II) Initializing extension SHAPE
[   216.683] (II) Initializing extension MIT-SHM
[   216.684] (II) Initializing extension XInputExtension
[   216.684] (II) Initializing extension XTEST
[   216.685] (II) Initializing extension BIG-REQUESTS
[   216.686] (II) Initializing extension SYNC
[   216.686] (II) Initializing extension XKEYBOARD
[   216.687] (II) Initializing extension XC-MISC
[   216.688] (II) Initializing extension SECURITY
[   216.689] (II) Initializing extension XFIXES
[   216.689] (II) Initializing extension XFree86-Bigfont
[   216.690] (II) Initializing extension RENDER
[   216.691] (II) Initializing extension RANDR
[   216.692] (II) Initializing extension COMPOSITE
[   216.693] (II) Initializing extension DAMAGE
[   216.693] (II) Initializing extension MIT-SCREEN-SAVER
[   216.694] (II) Initializing extension DOUBLE-BUFFER
[   216.695] (II) Initializing extension RECORD
[   216.696] (II) Initializing extension DPMS
[   216.696] (II) Initializing extension Present
[   216.696] (II) Initializing extension X-Resource
[   216.697] (II) Initializing extension XVideo
[   216.698] (II) Initializing extension XVideo-MotionCompensation
[   216.698] (II) Initializing extension GLX
[   216.719] (II) AIGLX: Loaded and initialized i965
[   216.719] (II) GLX: Initialized DRI2 GL provider for screen 0
[   216.719] (II) Initializing extension XFree86-VidModeExtension
[   216.720] (II) Initializing extension XFree86-DGA
[   216.721] (II) Initializing extension XFree86-DRI
[   216.721] (II) Initializing extension DRI2
[   216.727] (II) intel(0): switch to mode 1280x1024@60.0 on VGA1 using
pipe 0, position (0, 0), rotation normal, reflection none
[   216.727] (II) intel(0): Setting screen physical size to 338 x 270
[   216.915] (II) Using input driver 'mouse' for 'Mouse0'
[   216.915] (**) Option "CorePointer"
[   216.915] (**) Mouse0: always reports core events
[   216.915] (**) Option "Protocol" "wsmouse"
[   216.915] (**) Option "Device" "/dev/wsmouse"
[   216.915] (**) Mouse0: auto calibration enabled
[   216.915] (**) Mouse0: associated screen: 0
[   216.915] (**) Mouse0: Protocol: "wsmouse"
[   216.915] (**) Mouse0: always reports core events
[   216.916] (==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
[   216.916] (**) Option "ZAxisMapping" "4 5 6 7"
[   216.916] (**) Mouse0: ZAxisMapping: buttons 4, 5, 6 and 7
[   216.916] (**) Mouse0: Buttons: 11
[   216.916] (II) XINPUT: Adding extended input device "Mouse0" (type:
MOUSE, id 6)
[   216.916] (**) Mouse0: (accel) keeping acceleration scheme 1
[   216.916] (**) Mouse0: (accel) acceleration profile 0
[   216.916] (**) Mouse0: (accel) acceleration factor: 2.000
[   216.916] (**) Mouse0: (accel) acceleration threshold: 4
[   216.917] (II) Using input driver 'kbd' for 'Keyboard0'
[   216.917] (**) Option "CoreKeyboard"
[   216.917] (**) Keyboard0: always reports core events
[   216.917] (**) Keyboard0: always reports core events
[   216.917] (**) Option "Protocol" "standard"
[   216.917] (**) Option "XkbRules" "xorg"
[   216.917] (**) Option "XkbModel" "pc105"
[   216.917] (**) Option "XkbLayout" "fr"
[   216.917] (**) Option "XkbVariant" "latin9"
[   216.917] (II) XINPUT: Adding extended input device "Keyboard0"
(type: KEYBOARD, id 7)
[   220.775] (II) AIGLX: Suspending AIGLX clients for VT switch
[   229.149] (II) AIGLX: Resuming AIGLX clients after VT switch
[   229.149] (II) intel(0): switch to mode 1280x1024@60.0 on VGA1 using
pipe 0, position (0, 0), rotation normal, reflection none
[   764.904] (II) AIGLX: Suspending AIGLX clients for VT switch
[   780.900] (II) AIGLX: Resuming AIGLX clients after VT switch
[   780.900] (II) intel(0): switch to mode 1280x1024@60.0 on VGA1 using
pipe 0, position (0, 0), rotation normal, reflection none
[   782.020] (II) AIGLX: Suspending AIGLX clients for VT switch
[   785.562] (II) AIGLX: Resuming AIGLX clients after VT switch
[   785.562] (II) intel(0): switch to mode 1280x1024@60.0 on VGA1 using
pipe 0, position (0, 0), rotation normal, reflection none
[ 34083.369] (II) UnloadModule: "kbd"
[ 34083.387] (II) UnloadModule: "mouse"
...

xorg.conf:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        Option "BlankTime" "0"
        Option "StandbyTime" "0"
        Option "SuspendTime" "0"
        Option "OffTime" "0"
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  "shadow"
        Load  "record"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "fr"
        Option          "XkbVariant"    "latin9"
EndSection

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

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        Option "DPMS" "false"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "AccelMethod"               # <str>
        #Option     "Backlight"                 # <str>
        #Option     "DRI"                       # <str>
        #Option     "Present"                   # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "VideoKey"                  # <i>
        #Option     "Tiling"                    # [<bool>]
        #Option     "LinearFramebuffer"         # [<bool>]
        #Option     "VSync"                     # [<bool>]
        #Option     "PageFlip"                  # [<bool>]
        #Option     "SwapbuffersWait"           # [<bool>]
        #Option     "TripleBuffer"              # [<bool>]
        #Option     "XvPreferOverlay"           # [<bool>]
        #Option     "HotPlug"                   # [<bool>]
        #Option     "ReprobeOutputs"            # [<bool>]
        #Option     "DeleteUnusedDP12Displays"  # [<bool>]
        #Option     "XvMC"                      # [<bool>]
        #Option     "ZaphodHeads"               # <str>
        #Option     "VirtualHeads"              # <i>
        #Option     "TearFree"                  # [<bool>]
        #Option     "PerCrtcPixmaps"            # [<bool>]
        #Option     "FallbackDebug"             # [<bool>]
        #Option     "DebugFlushBatches"         # [<bool>]
        #Option     "DebugFlushCaches"          # [<bool>]
        #Option     "DebugWait"                 # [<bool>]
        #Option     "BufferCache"               # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
#       Driver      "modesetting"
        BusID       "PCI:0:2: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

	Regards,

	JB


Home | Main Index | Thread Index | Old Index