求助!xinit的兩個問題!!

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
linuxmm9
帖子: 214
注册时间: 2017-08-19 10:12
系统: linux

求助!xinit的兩個問題!!

#1

帖子 linuxmm9 » 2017-09-04 5:42

普通用戶不能使用xinit,不知何故。我用的是archlinux,以前一直用xinit登錄X,開始以為是系統壞掉,可是裝了幾次系統,結果xinit還是啟動不了,不過startx又能用!


另外我想避開.xinitrc,另外寫腳本,讓程序從X上啟動,不經過wm。
參考了http://blog.csdn.net/clozxy/article/details/5488699,比如:
X &

export DISPLAY=:0.0

xterm

但還是啟動不了,不知道是不是xinit不能用的緣故。不過root下是可以啟動。
linuxmm9
帖子: 214
注册时间: 2017-08-19 10:12
系统: linux

Re: 求助!xinit的兩個問題!!

#2

帖子 linuxmm9 » 2017-09-04 6:12

代码: 全选

[ 42673.549] 
X.Org X Server 1.19.3
Release Date: 2017-03-15
[ 42673.552] X Protocol Version 11, Revision 0
[ 42673.554] Build Operating System: Linux 4.12.5-1-ARCH x86_64 
[ 42673.555] Current Operating System: Linux DJ 4.12.8-2-ARCH #1 SMP PREEMPT Fri Aug 18 14:08:02 UTC 2017 x86_64
[ 42673.555] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=58b6eb69-9abf-40e3-9676-4452b3266f4e rw quiet
[ 42673.557] Build Date: 13 August 2017  09:37:50PM
[ 42673.558]  
[ 42673.559] Current version of pixman: 0.34.0
[ 42673.560] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[ 42673.560] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 42673.563] (==) Log file: "/home/atar/.local/share/xorg/Xorg.0.log", Time: Mon Sep  4 06:11:12 2017
[ 42673.564] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 42673.565] (==) No Layout section.  Using the first Screen section.
[ 42673.565] (==) No screen section available. Using defaults.
[ 42673.565] (**) |-->Screen "Default Screen Section" (0)
[ 42673.565] (**) |   |-->Monitor "<default monitor>"
[ 42673.565] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[ 42673.565] (==) Automatically adding devices
[ 42673.565] (==) Automatically enabling devices
[ 42673.565] (==) Automatically adding GPU devices
[ 42673.565] (==) Automatically binding GPU devices
[ 42673.565] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 42673.565] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 42673.565] 	Entry deleted from font path.
[ 42673.565] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/
[ 42673.565] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 42673.565] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 42673.565] (II) Loader magic: 0x55c2aa495d40
[ 42673.565] (II) Module ABI versions:
[ 42673.565] 	X.Org ANSI C Emulation: 0.4
[ 42673.565] 	X.Org Video Driver: 23.0
[ 42673.565] 	X.Org XInput driver : 24.1
[ 42673.565] 	X.Org Server Extension : 10.0
[ 42673.565] (++) using VT number 1

[ 42673.565] (--) controlling tty is VT number 1, auto-enabling KeepTty
[ 42673.566] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c14
[ 42673.566] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 42673.567] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[ 42673.568] (--) PCI:*(0:0:2:0) 8086:0412:1458:d000 rev 6, Mem @ 0xf0000000/4194304, 0xe0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[ 42673.568] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 42673.568] (II) LoadModule: "glx"
[ 42673.568] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 42673.568] (II) Module glx: vendor="X.Org Foundation"
[ 42673.568] 	compiled for 1.19.3, module version = 1.0.0
[ 42673.568] 	ABI class: X.Org Server Extension, version 10.0
[ 42673.568] (==) Matched intel as autoconfigured driver 0
[ 42673.568] (==) Matched intel as autoconfigured driver 1
[ 42673.568] (==) Matched modesetting as autoconfigured driver 2
[ 42673.568] (==) Matched fbdev as autoconfigured driver 3
[ 42673.568] (==) Matched vesa as autoconfigured driver 4
[ 42673.568] (==) Assigned the driver to the xf86ConfigLayout
[ 42673.568] (II) LoadModule: "intel"
[ 42673.568] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 42673.568] (II) Module intel: vendor="X.Org Foundation"
[ 42673.568] 	compiled for 1.19.3, module version = 2.99.917
[ 42673.568] 	Module class: X.Org Video Driver
[ 42673.568] 	ABI class: X.Org Video Driver, version 23.0
[ 42673.568] (II) LoadModule: "modesetting"
[ 42673.568] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 42673.568] (II) Module modesetting: vendor="X.Org Foundation"
[ 42673.568] 	compiled for 1.19.3, module version = 1.19.3
[ 42673.568] 	Module class: X.Org Video Driver
[ 42673.568] 	ABI class: X.Org Video Driver, version 23.0
[ 42673.568] (II) LoadModule: "fbdev"
[ 42673.568] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 42673.568] (II) Module fbdev: vendor="X.Org Foundation"
[ 42673.568] 	compiled for 1.19.3, module version = 0.4.4
[ 42673.568] 	Module class: X.Org Video Driver
[ 42673.568] 	ABI class: X.Org Video Driver, version 23.0
[ 42673.568] (II) LoadModule: "vesa"
[ 42673.569] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 42673.569] (II) Module vesa: vendor="X.Org Foundation"
[ 42673.569] 	compiled for 1.19.3, module version = 2.3.4
[ 42673.569] 	Module class: X.Org Video Driver
[ 42673.569] 	ABI class: X.Org Video Driver, version 23.0
[ 42673.569] (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
[ 42673.569] (II) intel: Driver for Intel(R) HD Graphics
[ 42673.569] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[ 42673.569] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[ 42673.569] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 42673.569] (II) FBDEV: driver for framebuffer: fbdev
[ 42673.569] (II) VESA: driver for VESA chipsets: vesa
[ 42673.569] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[ 42673.569] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20170403
[ 42673.569] (II) intel(0): SNA compiled from 2.99.917-781-gc8990575
[ 42673.569] (WW) Falling back to old probe method for modesetting
[ 42673.569] (WW) Falling back to old probe method for fbdev
[ 42673.569] (II) Loading sub module "fbdevhw"
[ 42673.569] (II) LoadModule: "fbdevhw"
[ 42673.569] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 42673.569] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 42673.569] 	compiled for 1.19.3, module version = 0.0.2
[ 42673.569] 	ABI class: X.Org Video Driver, version 23.0
[ 42673.569] (EE) open /dev/fb0: Permission denied
[ 42673.569] (WW) Falling back to old probe method for vesa
[ 42673.569] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 42673.569] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4600
[ 42673.569] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2; using a maximum of 4 threads
[ 42673.569] (II) intel(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[ 42673.569] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[ 42673.569] (==) intel(0): RGB weight 888
[ 42673.569] (==) intel(0): Default visual is TrueColor
[ 42673.569] (II) intel(0): Output VGA1 has no monitor section
[ 42673.569] (II) intel(0): Enabled output VGA1
[ 42673.569] (II) intel(0): Output HDMI1 has no monitor section
[ 42673.569] (II) intel(0): Enabled output HDMI1
[ 42673.569] (II) intel(0): Output HDMI2 has no monitor section
[ 42673.569] (II) intel(0): Enabled output HDMI2
[ 42673.569] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[ 42673.569] (II) intel(0): Output VIRTUAL1 has no monitor section
[ 42673.570] (II) intel(0): Enabled output VIRTUAL1
[ 42673.570] (--) intel(0): Output VGA1 using initial mode 1280x1024 on pipe 0
[ 42673.570] (--) intel(0): Output HDMI2 using initial mode 1920x1080 on pipe 1
[ 42673.570] (==) intel(0): TearFree disabled
[ 42673.570] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[ 42673.570] (==) intel(0): DPI set to (96, 96)
[ 42673.570] (II) Loading sub module "dri3"
[ 42673.570] (II) LoadModule: "dri3"
[ 42673.570] (II) Module "dri3" already built-in
[ 42673.570] (II) Loading sub module "dri2"
[ 42673.570] (II) LoadModule: "dri2"
[ 42673.570] (II) Module "dri2" already built-in
[ 42673.570] (II) Loading sub module "present"
[ 42673.570] (II) LoadModule: "present"
[ 42673.570] (II) Module "present" already built-in
[ 42673.570] (II) UnloadModule: "modesetting"
[ 42673.570] (II) Unloading modesetting
[ 42673.570] (II) UnloadModule: "fbdev"
[ 42673.570] (II) Unloading fbdev
[ 42673.570] (II) UnloadSubModule: "fbdevhw"
[ 42673.570] (II) Unloading fbdevhw
[ 42673.570] (II) UnloadModule: "vesa"
[ 42673.570] (II) Unloading vesa
[ 42673.570] (==) Depth 24 pixmap format is 32 bpp
[ 42673.570] (II) intel(0): SNA initialized with Haswell (gen7.5, gt2) backend
[ 42673.570] (==) intel(0): Backing store enabled
[ 42673.570] (==) intel(0): Silken mouse enabled
[ 42673.570] (II) intel(0): HW Cursor enabled
[ 42673.570] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 42673.570] (==) intel(0): DPMS enabled
[ 42673.570] (==) intel(0): Display hotplug detection enabled
[ 42673.570] (II) intel(0): [DRI2] Setup complete
[ 42673.570] (II) intel(0): [DRI2]   DRI driver: i965
[ 42673.570] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[ 42673.570] (II) intel(0): direct rendering: DRI2 DRI3 enabled
[ 42673.570] (II) intel(0): hardware support for Present enabled
[ 42673.570] (--) RandR disabled
[ 42673.577] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 42673.577] (II) AIGLX: enabled GLX_ARB_create_context
[ 42673.577] (II) AIGLX: enabled GLX_ARB_create_context_profile
[ 42673.577] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[ 42673.577] (II) AIGLX: enabled GLX_INTEL_swap_event
[ 42673.577] (II) AIGLX: enabled GLX_SGI_swap_control
[ 42673.577] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[ 42673.577] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[ 42673.577] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[ 42673.577] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[ 42673.577] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[ 42673.577] (II) AIGLX: Loaded and initialized i965
[ 42673.577] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 42673.578] (II) intel(0): switch to mode 1280x1024@75.0 on VGA1 using pipe 0, position (0, 0), rotation normal, reflection none
[ 42673.579] (II) intel(0): switch to mode 1920x1080@60.0 on HDMI2 using pipe 1, position (0, 0), rotation normal, reflection none
[ 42673.595] (II) intel(0): Setting screen physical size to 508 x 285
[ 42673.644] (II) config/udev: Adding input device Power Button (/dev/input/event7)
[ 42673.644] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[ 42673.644] (II) LoadModule: "libinput"
[ 42673.644] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[ 42673.646] (II) Module libinput: vendor="X.Org Foundation"
[ 42673.646] 	compiled for 1.19.3, module version = 0.25.1
[ 42673.646] 	Module class: X.Org XInput Driver
[ 42673.646] 	ABI class: X.Org XInput driver, version 24.1
[ 42673.646] (II) Using input driver 'libinput' for 'Power Button'
[ 42673.646] (II) systemd-logind: got fd for /dev/input/event7 13:71 fd 20 paused 0
[ 42673.646] (**) Power Button: always reports core events
[ 42673.646] (**) Option "Device" "/dev/input/event7"
[ 42673.646] (**) Option "_source" "server/udev"
[ 42673.647] (II) event7  - (II) Power Button: (II) is tagged by udev as: Keyboard
[ 42673.647] (II) event7  - (II) Power Button: (II) device is a keyboard
[ 42673.647] (II) event7  - (II) Power Button: (II) device removed
[ 42673.647] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input7/event7"
[ 42673.647] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[ 42673.647] (II) event7  - (II) Power Button: (II) is tagged by udev as: Keyboard
[ 42673.647] (II) event7  - (II) Power Button: (II) device is a keyboard
[ 42673.647] (II) config/udev: Adding input device Video Bus (/dev/input/event9)
[ 42673.647] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[ 42673.647] (II) Using input driver 'libinput' for 'Video Bus'
[ 42673.648] (II) systemd-logind: got fd for /dev/input/event9 13:73 fd 23 paused 0
[ 42673.648] (**) Video Bus: always reports core events
[ 42673.648] (**) Option "Device" "/dev/input/event9"
[ 42673.648] (**) Option "_source" "server/udev"
[ 42673.648] (II) event9  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[ 42673.648] (II) event9  - (II) Video Bus: (II) device is a keyboard
[ 42673.648] (II) event9  - (II) Video Bus: (II) device removed
[ 42673.648] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input9/event9"
[ 42673.648] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[ 42673.648] (II) event9  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[ 42673.648] (II) event9  - (II) Video Bus: (II) device is a keyboard
[ 42673.649] (II) config/udev: Adding input device Power Button (/dev/input/event6)
[ 42673.649] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[ 42673.649] (II) Using input driver 'libinput' for 'Power Button'
[ 42673.649] (II) systemd-logind: got fd for /dev/input/event6 13:70 fd 24 paused 0
[ 42673.649] (**) Power Button: always reports core events
[ 42673.649] (**) Option "Device" "/dev/input/event6"
[ 42673.649] (**) Option "_source" "server/udev"
[ 42673.649] (II) event6  - (II) Power Button: (II) is tagged by udev as: Keyboard
[ 42673.649] (II) event6  - (II) Power Button: (II) device is a keyboard
[ 42673.649] (II) event6  - (II) Power Button: (II) device removed
[ 42673.649] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input6/event6"
[ 42673.649] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
[ 42673.649] (II) event6  - (II) Power Button: (II) is tagged by udev as: Keyboard
[ 42673.649] (II) event6  - (II) Power Button: (II) device is a keyboard
[ 42673.650] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=3 (/dev/input/event10)
[ 42673.650] (II) No input driver specified, ignoring this device.
[ 42673.650] (II) This device may have been added with another device file.
[ 42673.650] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=7 (/dev/input/event11)
[ 42673.650] (II) No input driver specified, ignoring this device.
[ 42673.650] (II) This device may have been added with another device file.
[ 42673.650] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=8 (/dev/input/event12)
[ 42673.650] (II) No input driver specified, ignoring this device.
[ 42673.650] (II) This device may have been added with another device file.
[ 42673.650] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=9 (/dev/input/event13)
[ 42673.650] (II) No input driver specified, ignoring this device.
[ 42673.650] (II) This device may have been added with another device file.
[ 42673.650] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=10 (/dev/input/event14)
[ 42673.650] (II) No input driver specified, ignoring this device.
[ 42673.650] (II) This device may have been added with another device file.
[ 42673.650] (II) config/udev: Adding input device PixArt USB Optical Mouse (/dev/input/event5)
[ 42673.650] (**) PixArt USB Optical Mouse: Applying InputClass "libinput pointer catchall"
[ 42673.650] (II) Using input driver 'libinput' for 'PixArt USB Optical Mouse'
[ 42673.651] (II) systemd-logind: got fd for /dev/input/event5 13:69 fd 25 paused 0
[ 42673.651] (**) PixArt USB Optical Mouse: always reports core events
[ 42673.651] (**) Option "Device" "/dev/input/event5"
[ 42673.651] (**) Option "_source" "server/udev"
[ 42673.651] (II) event5  - (II) PixArt USB Optical Mouse: (II) is tagged by udev as: Mouse
[ 42673.651] (II) event5  - (II) PixArt USB Optical Mouse: (II) device set to 1000 DPI
[ 42673.651] (II) event5  - (II) PixArt USB Optical Mouse: (II) device is a pointer
[ 42673.651] (II) event5  - (II) PixArt USB Optical Mouse: (II) device removed
[ 42673.651] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0/0003:093A:2510.0005/input/input5/event5"
[ 42673.651] (II) XINPUT: Adding extended input device "PixArt USB Optical Mouse" (type: MOUSE, id 9)
[ 42673.651] (**) Option "AccelerationScheme" "none"
[ 42673.651] (**) PixArt USB Optical Mouse: (accel) selected scheme none/0
[ 42673.651] (**) PixArt USB Optical Mouse: (accel) acceleration factor: 2.000
[ 42673.651] (**) PixArt USB Optical Mouse: (accel) acceleration threshold: 4
[ 42673.651] (II) event5  - (II) PixArt USB Optical Mouse: (II) is tagged by udev as: Mouse
[ 42673.651] (II) event5  - (II) PixArt USB Optical Mouse: (II) device set to 1000 DPI
[ 42673.651] (II) event5  - (II) PixArt USB Optical Mouse: (II) device is a pointer
[ 42673.652] (II) config/udev: Adding input device PixArt USB Optical Mouse (/dev/input/mouse2)
[ 42673.652] (II) No input driver specified, ignoring this device.
[ 42673.652] (II) This device may have been added with another device file.
[ 42673.652] (II) config/udev: Adding input device Logitech USB Receiver (/dev/input/event1)
[ 42673.652] (**) Logitech USB Receiver: Applying InputClass "libinput pointer catchall"
[ 42673.652] (II) Using input driver 'libinput' for 'Logitech USB Receiver'
[ 42673.709] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 26 paused 0
[ 42673.709] (**) Logitech USB Receiver: always reports core events
[ 42673.709] (**) Option "Device" "/dev/input/event1"
[ 42673.709] (**) Option "_source" "server/udev"
[ 42673.709] (II) event1  - (II) Logitech USB Receiver: (II) is tagged by udev as: Mouse
[ 42673.709] (II) event1  - (II) Logitech USB Receiver: (II) device is a pointer
[ 42673.709] (II) event1  - (II) Logitech USB Receiver: (II) device removed
[ 42673.709] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-5/3-5:1.0/0003:046D:C52F.0001/input/input1/event1"
[ 42673.709] (II) XINPUT: Adding extended input device "Logitech USB Receiver" (type: MOUSE, id 10)
[ 42673.710] (**) Option "AccelerationScheme" "none"
[ 42673.710] (**) Logitech USB Receiver: (accel) selected scheme none/0
[ 42673.710] (**) Logitech USB Receiver: (accel) acceleration factor: 2.000
[ 42673.710] (**) Logitech USB Receiver: (accel) acceleration threshold: 4
[ 42673.710] (II) event1  - (II) Logitech USB Receiver: (II) is tagged by udev as: Mouse
[ 42673.710] (II) event1  - (II) Logitech USB Receiver: (II) device is a pointer
[ 42673.710] (II) config/udev: Adding input device Logitech USB Receiver (/dev/input/mouse0)
[ 42673.710] (II) No input driver specified, ignoring this device.
[ 42673.710] (II) This device may have been added with another device file.
[ 42673.711] (II) config/udev: Adding input device Logitech USB Receiver (/dev/input/event2)
[ 42673.711] (**) Logitech USB Receiver: Applying InputClass "libinput keyboard catchall"
[ 42673.711] (II) Using input driver 'libinput' for 'Logitech USB Receiver'
[ 42673.711] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 27 paused 0
[ 42673.711] (**) Logitech USB Receiver: always reports core events
[ 42673.711] (**) Option "Device" "/dev/input/event2"
[ 42673.711] (**) Option "_source" "server/udev"
[ 42673.712] (II) event2  - (II) Logitech USB Receiver: (II) is tagged by udev as: Keyboard
[ 42673.712] (II) event2  - (II) Logitech USB Receiver: (II) device is a keyboard
[ 42673.712] (II) event2  - (II) Logitech USB Receiver: (II) device removed
[ 42673.712] (II) libinput: Logitech USB Receiver: needs a virtual subdevice
[ 42673.712] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-5/3-5:1.1/0003:046D:C52F.0002/input/input2/event2"
[ 42673.712] (II) XINPUT: Adding extended input device "Logitech USB Receiver" (type: MOUSE, id 11)
[ 42673.712] (**) Option "AccelerationScheme" "none"
[ 42673.712] (**) Logitech USB Receiver: (accel) selected scheme none/0
[ 42673.712] (**) Logitech USB Receiver: (accel) acceleration factor: 2.000
[ 42673.712] (**) Logitech USB Receiver: (accel) acceleration threshold: 4
[ 42673.713] (II) event2  - (II) Logitech USB Receiver: (II) is tagged by udev as: Keyboard
[ 42673.713] (II) event2  - (II) Logitech USB Receiver: (II) device is a keyboard
[ 42673.713] (II) config/udev: Adding input device RAPOO RAPOO 2.4G Wireless Device (/dev/input/event3)
[ 42673.714] (**) RAPOO RAPOO 2.4G Wireless Device: Applying InputClass "libinput keyboard catchall"
[ 42673.714] (II) Using input driver 'libinput' for 'RAPOO RAPOO 2.4G Wireless Device'
[ 42673.714] (II) systemd-logind: got fd for /dev/input/event3 13:67 fd 28 paused 0
[ 42673.714] (**) RAPOO RAPOO 2.4G Wireless Device: always reports core events
[ 42673.714] (**) Option "Device" "/dev/input/event3"
[ 42673.714] (**) Option "_source" "server/udev"
[ 42673.715] (II) event3  - (II) RAPOO RAPOO 2.4G Wireless Device: (II) is tagged by udev as: Keyboard
[ 42673.715] (II) event3  - (II) RAPOO RAPOO 2.4G Wireless Device: (II) device is a keyboard
[ 42673.715] (II) event3  - (II) RAPOO RAPOO 2.4G Wireless Device: (II) device removed
[ 42673.715] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.0/0003:24AE:2000.0003/input/input3/event3"
[ 42673.715] (II) XINPUT: Adding extended input device "RAPOO RAPOO 2.4G Wireless Device" (type: KEYBOARD, id 12)
[ 42673.716] (II) event3  - (II) RAPOO RAPOO 2.4G Wireless Device: (II) is tagged by udev as: Keyboard
[ 42673.716] (II) event3  - (II) RAPOO RAPOO 2.4G Wireless Device: (II) device is a keyboard
[ 42673.716] (II) config/udev: Adding input device RAPOO RAPOO 2.4G Wireless Device (/dev/input/event4)
[ 42673.716] (**) RAPOO RAPOO 2.4G Wireless Device: Applying InputClass "libinput pointer catchall"
[ 42673.716] (**) RAPOO RAPOO 2.4G Wireless Device: Applying InputClass "libinput keyboard catchall"
[ 42673.716] (II) Using input driver 'libinput' for 'RAPOO RAPOO 2.4G Wireless Device'
[ 42673.717] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 29 paused 0
[ 42673.717] (**) RAPOO RAPOO 2.4G Wireless Device: always reports core events
[ 42673.717] (**) Option "Device" "/dev/input/event4"
[ 42673.717] (**) Option "_source" "server/udev"
[ 42673.718] (II) event4  - (II) RAPOO RAPOO 2.4G Wireless Device: (II) is tagged by udev as: Keyboard Mouse
[ 42673.718] (II) event4  - (II) RAPOO RAPOO 2.4G Wireless Device: (II) device is a pointer
[ 42673.718] (II) event4  - (II) RAPOO RAPOO 2.4G Wireless Device: (II) device is a keyboard
[ 42673.718] (II) event4  - (II) RAPOO RAPOO 2.4G Wireless Device: (II) device removed
[ 42673.718] (II) libinput: RAPOO RAPOO 2.4G Wireless Device: needs a virtual subdevice
[ 42673.718] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.1/0003:24AE:2000.0004/input/input4/event4"
[ 42673.718] (II) XINPUT: Adding extended input device "RAPOO RAPOO 2.4G Wireless Device" (type: MOUSE, id 13)
[ 42673.718] (**) Option "AccelerationScheme" "none"
[ 42673.718] (**) RAPOO RAPOO 2.4G Wireless Device: (accel) selected scheme none/0
[ 42673.718] (**) RAPOO RAPOO 2.4G Wireless Device: (accel) acceleration factor: 2.000
[ 42673.718] (**) RAPOO RAPOO 2.4G Wireless Device: (accel) acceleration threshold: 4
[ 42673.719] (II) event4  - (II) RAPOO RAPOO 2.4G Wireless Device: (II) is tagged by udev as: Keyboard Mouse
[ 42673.719] (II) event4  - (II) RAPOO RAPOO 2.4G Wireless Device: (II) device is a pointer
[ 42673.719] (II) event4  - (II) RAPOO RAPOO 2.4G Wireless Device: (II) device is a keyboard
[ 42673.719] (II) config/udev: Adding input device RAPOO RAPOO 2.4G Wireless Device (/dev/input/mouse1)
[ 42673.719] (II) No input driver specified, ignoring this device.
[ 42673.719] (II) This device may have been added with another device file.
[ 42673.719] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event15)
[ 42673.719] (II) No input driver specified, ignoring this device.
[ 42673.719] (II) This device may have been added with another device file.
[ 42673.720] (II) config/udev: Adding input device HDA Intel PCH Front Mic (/dev/input/event16)
[ 42673.720] (II) No input driver specified, ignoring this device.
[ 42673.720] (II) This device may have been added with another device file.
[ 42673.720] (II) config/udev: Adding input device HDA Intel PCH Rear Mic (/dev/input/event17)
[ 42673.720] (II) No input driver specified, ignoring this device.
[ 42673.720] (II) This device may have been added with another device file.
[ 42673.720] (II) config/udev: Adding input device HDA Intel PCH Line (/dev/input/event18)
[ 42673.720] (II) No input driver specified, ignoring this device.
[ 42673.720] (II) This device may have been added with another device file.
[ 42673.721] (II) config/udev: Adding input device HDA Intel PCH Line Out Front (/dev/input/event19)
[ 42673.721] (II) No input driver specified, ignoring this device.
[ 42673.721] (II) This device may have been added with another device file.
[ 42673.721] (II) config/udev: Adding input device HDA Intel PCH Line Out Surround (/dev/input/event20)
[ 42673.721] (II) No input driver specified, ignoring this device.
[ 42673.721] (II) This device may have been added with another device file.
[ 42673.721] (II) config/udev: Adding input device HDA Intel PCH Line Out CLFE (/dev/input/event21)
[ 42673.721] (II) No input driver specified, ignoring this device.
[ 42673.721] (II) This device may have been added with another device file.
[ 42673.722] (II) config/udev: Adding input device HDA Intel PCH Line Out Side (/dev/input/event22)
[ 42673.722] (II) No input driver specified, ignoring this device.
[ 42673.722] (II) This device may have been added with another device file.
[ 42673.722] (II) config/udev: Adding input device HDA Intel PCH Front Headphone (/dev/input/event23)
[ 42673.722] (II) No input driver specified, ignoring this device.
[ 42673.722] (II) This device may have been added with another device file.
[ 42673.722] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[ 42673.722] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[ 42673.722] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[ 42673.723] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 30 paused 0
[ 42673.723] (**) AT Translated Set 2 keyboard: always reports core events
[ 42673.723] (**) Option "Device" "/dev/input/event0"
[ 42673.723] (**) Option "_source" "server/udev"
[ 42673.723] (II) event0  - (II) AT Translated Set 2 keyboard: (II) is tagged by udev as: Keyboard
[ 42673.723] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device is a keyboard
[ 42673.723] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device removed
[ 42673.723] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[ 42673.723] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 14)
[ 42673.723] (II) event0  - (II) AT Translated Set 2 keyboard: (II) is tagged by udev as: Keyboard
[ 42673.723] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device is a keyboard
[ 42673.724] (II) config/udev: Adding input device PC Speaker (/dev/input/event8)
[ 42673.724] (II) No input driver specified, ignoring this device.
[ 42673.724] (II) This device may have been added with another device file.
[ 42673.745] (**) Logitech USB Receiver: Applying InputClass "libinput keyboard catchall"
[ 42673.745] (II) Using input driver 'libinput' for 'Logitech USB Receiver'
[ 42673.745] (II) systemd-logind: returning pre-existing fd for /dev/input/event2 13:66
[ 42673.745] (**) Logitech USB Receiver: always reports core events
[ 42673.745] (**) Option "Device" "/dev/input/event2"
[ 42673.745] (**) Option "_source" "_driver/libinput"
[ 42673.745] (II) libinput: Logitech USB Receiver: is a virtual subdevice
[ 42673.745] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-5/3-5:1.1/0003:046D:C52F.0002/input/input2/event2"
[ 42673.745] (II) XINPUT: Adding extended input device "Logitech USB Receiver" (type: KEYBOARD, id 15)
[ 42673.745] (**) RAPOO RAPOO 2.4G Wireless Device: Applying InputClass "libinput pointer catchall"
[ 42673.745] (**) RAPOO RAPOO 2.4G Wireless Device: Applying InputClass "libinput keyboard catchall"
[ 42673.745] (II) Using input driver 'libinput' for 'RAPOO RAPOO 2.4G Wireless Device'
[ 42673.745] (II) systemd-logind: returning pre-existing fd for /dev/input/event4 13:68
[ 42673.745] (**) RAPOO RAPOO 2.4G Wireless Device: always reports core events
[ 42673.745] (**) Option "Device" "/dev/input/event4"
[ 42673.745] (**) Option "_source" "_driver/libinput"
[ 42673.745] (II) libinput: RAPOO RAPOO 2.4G Wireless Device: is a virtual subdevice
[ 42673.745] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.1/0003:24AE:2000.0004/input/input4/event4"
[ 42673.745] (II) XINPUT: Adding extended input device "RAPOO RAPOO 2.4G Wireless Device" (type: KEYBOARD, id 16)
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 求助!xinit的兩個問題!!

#3

帖子 vickycq » 2017-09-04 9:17

前几年为了弄非 root Xorg 这块改了,具体我也没闹明白,
https://www.archlinux.org/news/xorg-ser ... available/

不过用 xinit -- :? vt? 可以启动
vt? 替换成当前 vt,如在 vt1 执行指令就写 vt1
:? 替换成未被占用的 DISPLAY 号码。如果还没有启动任何 Xorg 就写 :0
例如

代码: 全选

xinit -- :0 vt1
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
linuxmm9
帖子: 214
注册时间: 2017-08-19 10:12
系统: linux

Re: 求助!xinit的兩個問題!!

#4

帖子 linuxmm9 » 2017-09-04 15:16

vickycq 写了:前几年为了弄非 root Xorg 这块改了,具体我也没闹明白,
https://www.archlinux.org/news/xorg-ser ... available/

不过用 xinit -- :? vt? 可以启动
vt? 替换成当前 vt,如在 vt1 执行指令就写 vt1
:? 替换成未被占用的 DISPLAY 号码。如果还没有启动任何 Xorg 就写 :0
例如

代码: 全选

xinit -- :0 vt1
我發現我的家目錄裡沒有.xserverrc這個文件,開始我也不知道跟這個有關係,後來增加這個文件後,xinit就能啟動了。

你的方法我也試了,可以啟動。謝謝你!

另外一個問題,我想不開wm,直接運行在X上運行程序。我在腳本裡試了好多命令,也試了網上的辦法,可都啟動不了。我把程序名寫在.xinitrc裡倒是能啟動,但是我想單獨寫個腳本來實現。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 求助!xinit的兩個問題!!

#5

帖子 vickycq » 2017-09-04 16:26

linuxmm9 写了:我在腳本裡試了好多命令
您打算如何運行這個腳本
linuxmm9 写了:參考了http://blog.csdn.net/clozxy/article/details/5488699,比如:
X &
export DISPLAY=:0.0
xterm
但還是啟動不了
開機後在 vt1 以普通用戶登錄 執行

代码: 全选

X :0 vt1
屏幕會變黑,此時一個 X Server 已經運行在 vt1
按 Ctrl + Alt + F2 切換到 vt2,以普通用戶登錄,執行

代码: 全选

DISPLAY=:0 xterm &
再按 Ctrl + Alt + F1 切換到 vt1,可以看到 xterm 已經啓動
linuxmm9 写了:另外我想避開.xinitrc,另外寫腳本,讓程序從X上啟動,不經過wm
使用 .xinitrc 也可以讓程序直接從X上啟動,不經過wm
在家目錄新建一個 .xinitrc,然後寫上至少一個 X Client 就好 (空的 .xinitrc 會直接退出)
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
linuxmm9
帖子: 214
注册时间: 2017-08-19 10:12
系统: linux

Re: 求助!xinit的兩個問題!!

#6

帖子 linuxmm9 » 2017-09-05 0:14

vickycq 写了:
linuxmm9 写了:我在腳本裡試了好多命令
您打算如何運行這個腳本
linuxmm9 写了:參考了http://blog.csdn.net/clozxy/article/details/5488699,比如:
X &
export DISPLAY=:0.0
xterm
但還是啟動不了
開機後在 vt1 以普通用戶登錄 執行

代码: 全选

X :0 vt1
屏幕會變黑,此時一個 X Server 已經運行在 vt1
按 Ctrl + Alt + F2 切換到 vt2,以普通用戶登錄,執行

代码: 全选

DISPLAY=:0 xterm &
再按 Ctrl + Alt + F1 切換到 vt1,可以看到 xterm 已經啓動
linuxmm9 写了:另外我想避開.xinitrc,另外寫腳本,讓程序從X上啟動,不經過wm
使用 .xinitrc 也可以讓程序直接從X上啟動,不經過wm
在家目錄新建一個 .xinitrc,然後寫上至少一個 X Client 就好 (空的 .xinitrc 會直接退出)
怎么新建呢,不会覆盖吗?其实我的意思想在X上直接启动vbox,启动后就只有win7全屏;如果启动xinit,那我就用回openbox,我的随机启动的一些小程序都写在xinit里。
linuxmm9
帖子: 214
注册时间: 2017-08-19 10:12
系统: linux

Re: 求助!xinit的兩個問題!!

#7

帖子 linuxmm9 » 2017-09-05 0:28

另外你说的切换到vt2会不会太麻烦!

如果写在xinit里就能实现,但是要切换到openbox我就不知道怎么办了,不会写脚本啊!
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 求助!xinit的兩個問題!!

#8

帖子 vickycq » 2017-09-05 9:20

linuxmm9 写了:怎么新建呢,不会覆盖吗?
默认情况下家目录里应该没有 .xinitrc。不存在覆盖问题,直接建立新文件即可。(默认用的是
/etc/X11/xinit/xinitrc)
linuxmm9 写了:其实我的意思想在X上直接启动vbox,启动后就只有win7全屏
在家目录建立文件 .xinitrc,加入 virtualbox 命令或直接启动某虚拟机的命令
然后执行 startx 即可在X上直接启动vbox
如果您在 .xinitrc 中使用 vboxmanage startvm 直接启动某虚拟机,需要在 .xinitrc 末尾添加一个检测循环,防止提前退出,例如 https://forums.virtualbox.org/viewtopic.php?f=7&t=34505(vboxmanage startvm 会马上返回导致 X Server 停止)
linuxmm9 写了:如果启动xinit,那我就用回openbox,我的随机启动的一些小程序都写在xinit里。
这里不是很明白
linuxmm9 写了:如果写在xinit里就能实现,但是要切换到openbox
这里不是很明白
是否使用 wm (openbox) 与上面的主题 (直接在 X 上运行某程序) 好像没有关系
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复