Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No keyboard and mouse after switching from console (systemd)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
renergy
n00b
n00b


Joined: 26 Feb 2011
Posts: 28

PostPosted: Sat Sep 06, 2014 10:44 am    Post subject: No keyboard and mouse after switching from console (systemd) Reply with quote

Following http://wiki.gentoo.org/wiki/Systemd, I switched to systemd yesterday. Virtually a hassle free experience and I am fairly impressed by how fast the system starts up and shuts down. There is one little thing though.

X works just fine after starting. But when I switch to console using e.g. Ctrl+Alt+F2 and then switch back with Alt+F1, X displays fine BUT keyboard and mouse are no longer responsive, as if they were unplugged. I can regain mouse control by plugging it out and back in (can't do that with notebook keyboard).

I start X with "startx" from command line, have "exec ck-launch-session startxfce4" in .xinitrc

Tried to run startx as root, the same behaviour.

Any clues what might be causing this?

Dell Latitude D530, intel GM965/GL960, emerge --info below

Code:
Portage 2.2.12 (python 2.7.8-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.16.1-gentoo x86_64)
=================================================================
System uname: Linux-3.16.1-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-2.2
KiB Mem:     4040320 total,   3051552 free
KiB Swap:     988156 total,    988156 free
Timestamp of tree: Fri, 05 Sep 2014 20:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://ftp6.linux.cz/pub/linux/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.cz.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 apng berkdb bidi bindist bzip2 cairo cdr cdrom cli consolekit cracklib crypt cups cxx dbus dri dvd fortran gdbm gnome gudev iconv ipv6 jpeg keymap kwdb lock minizip mmx modules mp3 mpeg multilib ncurses nls nptl ogg openmp pam pcre png policykit readline session sqlite sse sse2 sse3 ssl ssse3 startup-notification systemd tcpd thunar tiff truetype udisks unicode x264 xinerama zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="vesa intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7048
Location: almost Mile High in the USA

PostPosted: Sun Sep 07, 2014 1:32 pm    Post subject: Reply with quote

Did you do any driver updates lately along with systemd? I suppose these are PS/2 attached devices, are you using evdev or direct access? I suspect direct access may have problems at this point due to ageing drivers, but evdev should work...

Just tested at least with my intel driver laptop: ctrl-alt-f1 and then alt-f7 back to the GUI seems to work OK - mouse and keyboard work fine. My other systemd box does not work in console mode after switching to graphical mode but that that's due to at-drivers...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
renergy
n00b
n00b


Joined: 26 Feb 2011
Posts: 28

PostPosted: Sun Sep 07, 2014 2:59 pm    Post subject: Reply with quote

eccerr0r wrote:
Did you do any driver updates lately along with systemd? I suppose these are PS/2 attached devices, are you using evdev or direct access? I suspect direct access may have problems at this point due to ageing drivers, but evdev should work...

Just tested at least with my intel driver laptop: ctrl-alt-f1 and then alt-f7 back to the GUI seems to work OK - mouse and keyboard work fine. My other systemd box does not work in console mode after switching to graphical mode but that that's due to at-drivers...


Thanks for the reply, eccerr0r! I am using x11-drivers/xf86-input-evdev 2.8.4. It might got rebuilt when doing "emerge systemd", I'm not sure, but not a driver upgrade per se. The notebook keyboard is detected as AT keyboard, see X log below (again, X works fine after starting). The external mouse is USB. Keyboard, mouse and touchpad as well are all lost on the switch back (Alt-F1 in my case, since I am starting X from tty1). Graphics works fine.

Code:

[ 28235.606]
X.Org X Server 1.16.0
Release Date: 2014-07-16
[ 28235.606] X Protocol Version 11, Revision 0
[ 28235.606] Build Operating System: Linux 3.16.1-gentoo x86_64 Gentoo
[ 28235.606] Current Operating System: Linux localhost 3.16.1-gentoo #3 SMP Fri Sep 5 22:28:27 CEST 2014 x86_64
[ 28235.606] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.16.1-gentoo root=/dev/sda3 ro init=/usr/lib/systemd/systemd
[ 28235.606] Build Date: 05 September 2014  10:44:19PM
[ 28235.606] 
[ 28235.606] Current version of pixman: 0.32.4
[ 28235.606]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[ 28235.606] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 28235.607] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Sep  7 15:50:31 2014
[ 28235.607] (==) Using config file: "/etc/X11/xorg.conf"
[ 28235.607] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 28235.607] (==) No Layout section.  Using the first Screen section.
[ 28235.607] (==) No screen section available. Using defaults.
[ 28235.607] (**) |-->Screen "Default Screen Section" (0)
[ 28235.607] (**) |   |-->Monitor "<default monitor>"
[ 28235.607] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[ 28235.607] (==) Automatically adding devices
[ 28235.607] (==) Automatically enabling devices
[ 28235.607] (==) Automatically adding GPU devices
[ 28235.607] (==) FontPath set to:
   /usr/share/fonts/misc/,
   /usr/share/fonts/TTF/,
   /usr/share/fonts/OTF/,
   /usr/share/fonts/Type1/,
   /usr/share/fonts/100dpi/,
   /usr/share/fonts/75dpi/
[ 28235.607] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 28235.607] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 28235.607] (II) Loader magic: 0x808d20
[ 28235.607] (II) Module ABI versions:
[ 28235.607]    X.Org ANSI C Emulation: 0.4
[ 28235.607]    X.Org Video Driver: 18.0
[ 28235.607]    X.Org XInput driver : 21.0
[ 28235.607]    X.Org Server Extension : 8.0
[ 28235.609] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_34
[ 28235.610] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 28235.610] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 0
[ 28235.612] (--) PCI:*(0:0:2:0) 8086:2a02:1028:0200 rev 12, Mem @ 0xfea00000/1048576, 0xe0000000/268435456, I/O @ 0x0000efe8/8
[ 28235.612] (--) PCI: (0:0:2:1) 8086:2a03:1028:0200 rev 12, Mem @ 0xfeb00000/1048576
[ 28235.612] (II) LoadModule: "glx"
[ 28235.612] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 28235.613] (II) Module glx: vendor="X.Org Foundation"
[ 28235.613]    compiled for 1.16.0, module version = 1.0.0
[ 28235.613]    ABI class: X.Org Server Extension, version 8.0
[ 28235.613] (==) AIGLX enabled
[ 28235.613] (==) Matched intel as autoconfigured driver 0
[ 28235.613] (==) Matched intel as autoconfigured driver 1
[ 28235.613] (==) Matched modesetting as autoconfigured driver 2
[ 28235.613] (==) Matched fbdev as autoconfigured driver 3
[ 28235.614] (==) Matched vesa as autoconfigured driver 4
[ 28235.614] (==) Assigned the driver to the xf86ConfigLayout
[ 28235.614] (II) LoadModule: "intel"
[ 28235.614] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[ 28235.614] (II) Module intel: vendor="X.Org Foundation"
[ 28235.614]    compiled for 1.16.0, module version = 2.99.914
[ 28235.614]    Module class: X.Org Video Driver
[ 28235.614]    ABI class: X.Org Video Driver, version 18.0
[ 28235.614] (II) LoadModule: "modesetting"
[ 28235.614] (WW) Warning, couldn't open module modesetting
[ 28235.614] (II) UnloadModule: "modesetting"
[ 28235.614] (II) Unloading modesetting
[ 28235.614] (EE) Failed to load module "modesetting" (module does not exist, 0)
[ 28235.614] (II) LoadModule: "fbdev"
[ 28235.614] (WW) Warning, couldn't open module fbdev
[ 28235.614] (II) UnloadModule: "fbdev"
[ 28235.614] (II) Unloading fbdev
[ 28235.614] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 28235.614] (II) LoadModule: "vesa"
[ 28235.615] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[ 28235.615] (II) Module vesa: vendor="X.Org Foundation"
[ 28235.615]    compiled for 1.16.0, module version = 2.3.3
[ 28235.615]    Module class: X.Org Video Driver
[ 28235.615]    ABI class: X.Org Video Driver, version 18.0
[ 28235.615] (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
[ 28235.615] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 28235.615] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 28235.615] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[ 28235.615] (II) VESA: driver for VESA chipsets: vesa
[ 28235.615] (++) using VT number 1

[ 28235.615] (--) controlling tty is VT number 1, auto-enabling KeepTty
[ 28235.615] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20080730
[ 28235.615] (WW) Falling back to old probe method for vesa
[ 28235.616] (--) intel(0): Integrated Graphics Chipset: Intel(R) 965GM
[ 28235.616] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3
[ 28235.616] (II) intel(0): Creating default Display subsection in Screen section
   "Default Screen Section" for depth/fbbpp 24/32
[ 28235.616] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[ 28235.616] (==) intel(0): RGB weight 888
[ 28235.616] (==) intel(0): Default visual is TrueColor
[ 28235.616] (II) intel(0): Output LVDS1 has no monitor section
[ 28235.616] (--) intel(0): Found backlight control interface acpi_video0 (type 'firmware') for output LVDS1
[ 28235.616] (II) intel(0): Output VGA1 has no monitor section
[ 28235.616] (II) intel(0): Output DVI1 has no monitor section
[ 28235.616] (II) intel(0): Output TV1 has no monitor section
[ 28235.616] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[ 28235.617] (II) intel(0): Output VIRTUAL1 has no monitor section
[ 28235.617] (--) intel(0): Output LVDS1 using initial mode 1024x768 on pipe 1
[ 28235.617] (==) intel(0): TearFree disabled
[ 28235.617] (==) intel(0): DPI set to (96, 96)
[ 28235.617] (II) Loading sub module "dri2"
[ 28235.617] (II) LoadModule: "dri2"
[ 28235.617] (II) Module "dri2" already built-in
[ 28235.617] (II) Loading sub module "present"
[ 28235.617] (II) LoadModule: "present"
[ 28235.617] (II) Module "present" already built-in
[ 28235.617] (II) UnloadModule: "vesa"
[ 28235.617] (II) Unloading vesa
[ 28235.617] (==) Depth 24 pixmap format is 32 bpp
[ 28235.617] (II) intel(0): SNA initialized with Broadwater (gen4) backend
[ 28235.617] (==) intel(0): Backing store enabled
[ 28235.617] (==) intel(0): Silken mouse enabled
[ 28235.617] (II) intel(0): HW Cursor enabled
[ 28235.617] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 28235.617] (==) intel(0): DPMS enabled
[ 28235.617] (II) intel(0): [DRI2] Setup complete
[ 28235.617] (II) intel(0): [DRI2]   DRI driver: i965
[ 28235.618] (II) intel(0): [DRI2]   VDPAU driver: i965
[ 28235.618] (II) intel(0): direct rendering: DRI2 enabled
[ 28235.618] (II) intel(0): hardware support for Present enabled
[ 28235.618] (==) intel(0): display hotplug detection enabled
[ 28235.618] (--) RandR disabled
[ 28235.634] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 28235.634] (II) AIGLX: enabled GLX_ARB_create_context
[ 28235.634] (II) AIGLX: enabled GLX_ARB_create_context_profile
[ 28235.634] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
[ 28235.634] (II) AIGLX: enabled GLX_INTEL_swap_event
[ 28235.634] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[ 28235.634] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[ 28235.634] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[ 28235.634] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[ 28235.634] (II) AIGLX: Loaded and initialized i965
[ 28235.634] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 28235.639] (II) intel(0): switch to mode 1024x768@60.0 on LVDS1 using pipe 1, position (0, 0), rotation normal, reflection none
[ 28235.650] (II) intel(0): Setting screen physical size to 270 x 203
[ 28235.764] (II) config/udev: Adding input device Video Bus (/dev/input/event3)
[ 28235.764] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[ 28235.764] (II) LoadModule: "evdev"
[ 28235.765] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[ 28235.765] (II) Module evdev: vendor="X.Org Foundation"
[ 28235.765]    compiled for 1.16.0, module version = 2.8.4
[ 28235.765]    Module class: X.Org XInput Driver
[ 28235.765]    ABI class: X.Org XInput driver, version 21.0
[ 28235.765] (II) Using input driver 'evdev' for 'Video Bus'
[ 28235.765] (**) Video Bus: always reports core events
[ 28235.765] (**) evdev: Video Bus: Device: "/dev/input/event3"
[ 28235.765] (--) evdev: Video Bus: Vendor 0 Product 0x6
[ 28235.765] (--) evdev: Video Bus: Found keys
[ 28235.765] (II) evdev: Video Bus: Configuring as keyboard
[ 28235.765] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/LNXVIDEO:01/input/input3/event3"
[ 28235.765] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 6)
[ 28235.765] (**) Option "xkb_rules" "evdev"
[ 28235.765] (**) Option "xkb_model" "pc104"
[ 28235.765] (**) Option "xkb_layout" "us"
[ 28235.795] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[ 28235.795] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[ 28235.795] (II) Using input driver 'evdev' for 'Power Button'
[ 28235.795] (**) Power Button: always reports core events
[ 28235.795] (**) evdev: Power Button: Device: "/dev/input/event1"
[ 28235.795] (--) evdev: Power Button: Vendor 0 Product 0x1
[ 28235.795] (--) evdev: Power Button: Found keys
[ 28235.795] (II) evdev: Power Button: Configuring as keyboard
[ 28235.795] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1/event1"
[ 28235.795] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 7)
[ 28235.795] (**) Option "xkb_rules" "evdev"
[ 28235.795] (**) Option "xkb_model" "pc104"
[ 28235.795] (**) Option "xkb_layout" "us"
[ 28235.796] (II) config/udev: Adding input device Lid Switch (/dev/input/event0)
[ 28235.796] (II) No input driver specified, ignoring this device.
[ 28235.796] (II) This device may have been added with another device file.
[ 28235.796] (II) config/udev: Adding input device Sleep Button (/dev/input/event2)
[ 28235.796] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[ 28235.796] (II) Using input driver 'evdev' for 'Sleep Button'
[ 28235.796] (**) Sleep Button: always reports core events
[ 28235.796] (**) evdev: Sleep Button: Device: "/dev/input/event2"
[ 28235.796] (--) evdev: Sleep Button: Vendor 0 Product 0x3
[ 28235.796] (--) evdev: Sleep Button: Found keys
[ 28235.796] (II) evdev: Sleep Button: Configuring as keyboard
[ 28235.796] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input2/event2"
[ 28235.796] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 8)
[ 28235.796] (**) Option "xkb_rules" "evdev"
[ 28235.796] (**) Option "xkb_model" "pc104"
[ 28235.796] (**) Option "xkb_layout" "us"
[ 28235.797] (II) config/udev: Adding input device Genius USB Optical Mouse (/dev/input/event5)
[ 28235.797] (**) Genius USB Optical Mouse: Applying InputClass "evdev pointer catchall"
[ 28235.797] (II) Using input driver 'evdev' for 'Genius USB Optical Mouse'
[ 28235.797] (**) Genius USB Optical Mouse: always reports core events
[ 28235.797] (**) evdev: Genius USB Optical Mouse: Device: "/dev/input/event5"
[ 28235.797] (--) evdev: Genius USB Optical Mouse: Vendor 0x458 Product 0x3a
[ 28235.797] (--) evdev: Genius USB Optical Mouse: Found 12 mouse buttons
[ 28235.797] (--) evdev: Genius USB Optical Mouse: Found scroll wheel(s)
[ 28235.797] (--) evdev: Genius USB Optical Mouse: Found relative axes
[ 28235.797] (--) evdev: Genius USB Optical Mouse: Found x and y relative axes
[ 28235.797] (II) evdev: Genius USB Optical Mouse: Configuring as mouse
[ 28235.797] (II) evdev: Genius USB Optical Mouse: Adding scrollwheel support
[ 28235.797] (**) evdev: Genius USB Optical Mouse: YAxisMapping: buttons 4 and 5
[ 28235.797] (**) evdev: Genius USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 28235.797] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb5/5-2/5-2:1.0/0003:0458:003A.0007/input/input14/event5"
[ 28235.797] (II) XINPUT: Adding extended input device "Genius USB Optical Mouse" (type: MOUSE, id 9)
[ 28235.797] (II) evdev: Genius USB Optical Mouse: initialized for relative axes.
[ 28235.797] (**) Genius USB Optical Mouse: (accel) keeping acceleration scheme 1
[ 28235.797] (**) Genius USB Optical Mouse: (accel) acceleration profile 0
[ 28235.797] (**) Genius USB Optical Mouse: (accel) acceleration factor: 2.000
[ 28235.797] (**) Genius USB Optical Mouse: (accel) acceleration threshold: 4
[ 28235.798] (II) config/udev: Adding input device Genius USB Optical Mouse (/dev/input/mouse0)
[ 28235.798] (II) No input driver specified, ignoring this device.
[ 28235.798] (II) This device may have been added with another device file.
[ 28235.798] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event4)
[ 28235.798] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[ 28235.798] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[ 28235.798] (**) AT Translated Set 2 keyboard: always reports core events
[ 28235.798] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event4"
[ 28235.798] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[ 28235.798] (--) evdev: AT Translated Set 2 keyboard: Found keys
[ 28235.798] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[ 28235.798] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input4/event4"
[ 28235.798] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 10)
[ 28235.798] (**) Option "xkb_rules" "evdev"
[ 28235.798] (**) Option "xkb_model" "pc104"
[ 28235.798] (**) Option "xkb_layout" "us"
[ 28235.799] (II) config/udev: Adding input device AlpsPS/2 ALPS GlidePoint (/dev/input/event7)
[ 28235.799] (**) AlpsPS/2 ALPS GlidePoint: Applying InputClass "evdev touchpad catchall"
[ 28235.799] (**) AlpsPS/2 ALPS GlidePoint: Applying InputClass "touchpad catchall"
[ 28235.799] (**) AlpsPS/2 ALPS GlidePoint: Applying InputClass "Default clickpad buttons"
[ 28235.799] (**) AlpsPS/2 ALPS GlidePoint: Applying InputClass "touchpad catchall"
[ 28235.799] (II) LoadModule: "synaptics"
[ 28235.799] (II) Loading /usr/lib64/xorg/modules/input/synaptics_drv.so
[ 28235.799] (II) Module synaptics: vendor="X.Org Foundation"
[ 28235.799]    compiled for 1.16.0, module version = 1.7.6
[ 28235.799]    Module class: X.Org XInput Driver
[ 28235.799]    ABI class: X.Org XInput driver, version 21.0
[ 28235.799] (II) Using input driver 'synaptics' for 'AlpsPS/2 ALPS GlidePoint'
[ 28235.799] (**) AlpsPS/2 ALPS GlidePoint: always reports core events
[ 28235.799] (**) Option "Device" "/dev/input/event7"
[ 28235.822] (--) synaptics: AlpsPS/2 ALPS GlidePoint: x-axis range 0 - 1023 (res 0)
[ 28235.822] (--) synaptics: AlpsPS/2 ALPS GlidePoint: y-axis range 0 - 767 (res 0)
[ 28235.822] (--) synaptics: AlpsPS/2 ALPS GlidePoint: pressure range 0 - 127
[ 28235.822] (II) synaptics: AlpsPS/2 ALPS GlidePoint: device does not report finger width.
[ 28235.822] (--) synaptics: AlpsPS/2 ALPS GlidePoint: buttons: left right middle
[ 28235.822] (--) synaptics: AlpsPS/2 ALPS GlidePoint: Vendor 0x2 Product 0x8
[ 28235.822] (--) synaptics: AlpsPS/2 ALPS GlidePoint: invalid finger width range.  defaulting to 0 - 15
[ 28235.822] (**) Option "TapButton1" "1"
[ 28235.822] (**) Option "TapButton2" "2"
[ 28235.822] (**) Option "TapButton3" "3"
[ 28235.822] (--) synaptics: AlpsPS/2 ALPS GlidePoint: touchpad found
[ 28235.822] (**) AlpsPS/2 ALPS GlidePoint: always reports core events
[ 28235.834] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input6/event7"
[ 28235.834] (II) XINPUT: Adding extended input device "AlpsPS/2 ALPS GlidePoint" (type: TOUCHPAD, id 11)
[ 28235.834] (**) synaptics: AlpsPS/2 ALPS GlidePoint: (accel) MinSpeed is now constant deceleration 2.5
[ 28235.834] (**) synaptics: AlpsPS/2 ALPS GlidePoint: (accel) MaxSpeed is now 1.75
[ 28235.834] (**) synaptics: AlpsPS/2 ALPS GlidePoint: (accel) AccelFactor is now 0.156
[ 28235.834] (**) AlpsPS/2 ALPS GlidePoint: (accel) keeping acceleration scheme 1
[ 28235.834] (**) AlpsPS/2 ALPS GlidePoint: (accel) acceleration profile 1
[ 28235.834] (**) AlpsPS/2 ALPS GlidePoint: (accel) acceleration factor: 2.000
[ 28235.834] (**) AlpsPS/2 ALPS GlidePoint: (accel) acceleration threshold: 4
[ 28235.834] (--) synaptics: AlpsPS/2 ALPS GlidePoint: touchpad found
[ 28235.834] (II) config/udev: Adding input device AlpsPS/2 ALPS GlidePoint (/dev/input/mouse2)
[ 28235.834] (**) AlpsPS/2 ALPS GlidePoint: Ignoring device from InputClass "touchpad ignore duplicates"
[ 28235.834] (II) config/udev: Adding input device ALPS PS/2 Device (/dev/input/event6)
[ 28235.835] (**) ALPS PS/2 Device: Applying InputClass "evdev pointer catchall"
[ 28235.835] (II) Using input driver 'evdev' for 'ALPS PS/2 Device'
[ 28235.835] (**) ALPS PS/2 Device: always reports core events
[ 28235.835] (**) evdev: ALPS PS/2 Device: Device: "/dev/input/event6"
[ 28235.835] (--) evdev: ALPS PS/2 Device: Vendor 0x2 Product 0x8
[ 28235.835] (--) evdev: ALPS PS/2 Device: Found 3 mouse buttons
[ 28235.835] (--) evdev: ALPS PS/2 Device: Found relative axes
[ 28235.835] (--) evdev: ALPS PS/2 Device: Found x and y relative axes
[ 28235.835] (II) evdev: ALPS PS/2 Device: Configuring as mouse
[ 28235.835] (**) evdev: ALPS PS/2 Device: YAxisMapping: buttons 4 and 5
[ 28235.835] (**) evdev: ALPS PS/2 Device: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 28235.835] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input7/event6"
[ 28235.835] (II) XINPUT: Adding extended input device "ALPS PS/2 Device" (type: MOUSE, id 12)
[ 28235.835] (II) evdev: ALPS PS/2 Device: initialized for relative axes.
[ 28235.835] (**) ALPS PS/2 Device: (accel) keeping acceleration scheme 1
[ 28235.835] (**) ALPS PS/2 Device: (accel) acceleration profile 0
[ 28235.835] (**) ALPS PS/2 Device: (accel) acceleration factor: 2.000
[ 28235.835] (**) ALPS PS/2 Device: (accel) acceleration threshold: 4
[ 28235.835] (II) config/udev: Adding input device ALPS PS/2 Device (/dev/input/mouse1)
[ 28235.835] (II) No input driver specified, ignoring this device.
[ 28235.835] (II) This device may have been added with another device file.
[ 28236.031] (II) intel(0): EDID vendor "AUO", prod id 9041
[ 28236.031] (II) intel(0): Printing DDC gathered Modelines:
[ 28236.031] (II) intel(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz eP)
Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 480
Location: Estonia

PostPosted: Mon Sep 08, 2014 1:26 pm    Post subject: Reply with quote

Try not using .xinitrc. Also logind + CK sounds wrong, but not sure what XFCE4 wants.
Instead of .xinitrc, try deleting that and use this instead:
Code:
XSESSION=Xfce4 startx

If that works, set the variable as your default via /etc/env.d - there is gentoo Xorg documentation about that.
Or just use a login manager.
http://wiki.gentoo.org/wiki/Xorg/Configuration#Using_startx
_________________
GNOME team lead; GStreamer; MIPS/ARM64
Back to top
View user's profile Send private message
renergy
n00b
n00b


Joined: 26 Feb 2011
Posts: 28

PostPosted: Mon Sep 08, 2014 4:21 pm    Post subject: Reply with quote

Thanks for your suggestions, Leio!

I prefer console login to X login manager. Thought using ~/.xinitrc is fairly standard, and "exec ck-launch-session" before startxfce4 was necessary, otherwise thunar wouldn't mount usb drives and restart/shutdown from xfce would not be possible [edit: with systemd, it is actually no longer necessary; it was with udev/sysv rc]

Back to the problem: Tried startx without .xinitrc. xterms + twm fire up and the problem persists - after start, everything works ok, switch to console and back (Ctrl+Alt+F2, Alt+F1) and keyboard+mouse is lost.

Tried "XSESSION=Xfce4 startx" as well - in the end, all it does is it simply runs "startxfce4" - but the keyboard and mouse still get lost after switching to console and back.

So, no progress, but thanks again for your reply.
Back to top
View user's profile Send private message
renergy
n00b
n00b


Joined: 26 Feb 2011
Posts: 28

PostPosted: Mon Sep 08, 2014 11:46 pm    Post subject: Reply with quote

Just installed xdm and lxdm (to try a login manager) and both starts with just a black screen. I was able to Ctrl+Alt+F2 back to console. By ps ax I've found that xdm unsuccesfully starts X with

Code:
/usr/bin/X :0 vt07 -nolisten tcp


while startx succesfully starts with

Code:
/usr/bin/X -nolisten tcp :0 -auth /home/adam/.serverauth.297 vt1


Perhaps this has some relevance to my problem?

Is the problem in the missing serverauth? Perhaps i need to setup the "vt7" somehow? Actually I was quite surprised that after migrating to systemd, X run on the same console (alt+F1 is what brings X back, though with no keyboard and mouse, not alt+F7 as was the case with sysv).

Thanks in advance for any clue.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7048
Location: almost Mile High in the USA

PostPosted: Tue Sep 09, 2014 12:05 am    Post subject: Reply with quote

Not sure what you changed to get it to start X11 on /dev/tty1 but it's a bit abnormal and suspect that this has something to do with it.

What was running on /dev/tty1 before X11 started, you actually logged in: Do you have *getty running on /dev/tty1 or was this disabled by choice?

What do you have in the directory /etc/systemd/system/getty.target.wants ?

What does
Code:
systemctl status getty@tty1.service


give you?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
renergy
n00b
n00b


Joined: 26 Feb 2011
Posts: 28

PostPosted: Tue Sep 09, 2014 5:33 pm    Post subject: Reply with quote

The problem goes away when using SLiM (x11-misc/slim). slim starts X ok at vt7, Ctrl+Alt+F1 goes to console, Alt+F7 back to X and everything works.

Still it would be good to know why X behaves differently/wrongly when started with startx.

eccerr0r wrote:
Not sure what you changed to get it to start X11 on /dev/tty1 but it's a bit abnormal and suspect that this has something to do with it.


Agreed. I did not change anything (afaictl), just followed the instructions at http://wiki.gentoo.org/wiki/Systemd

eccerr0r wrote:
What do you have in the directory /etc/systemd/system/getty.target.wants ?

What does
Code:
systemctl status getty@tty1.service

give you?


Code:

# ls -la /etc/systemd/system/getty.target.wants/
total 8
drwxr-xr-x 2 root root 4096 Sep  5 22:40 .
drwxr-xr-x 5 root root 4096 Sep  9 18:58 ..
lrwxrwxrwx 1 root root   49 Sep  5 22:40 getty@tty1.service -> ../../../../usr/lib/systemd/system/getty@.service

# systemctl status getty@tty1.service
● getty@tty1.service - Getty on tty1
   Loaded: loaded (/etc/systemd/system/getty.target.wants/../../../../usr/lib/systemd/system/getty@.service; enabled)
   Active: active (running) since Tue 2014-09-09 18:59:58 CEST; 3min 12s ago
     Docs: man:agetty(8)
           man:systemd-getty-generator(8)
           http://0pointer.de/blog/projects/serial-console.html
 Main PID: 165 (agetty)
   CGroup: /system.slice/system-getty.slice/getty@tty1.service
           └─165 /sbin/agetty --noclear tty1 linux
Back to top
View user's profile Send private message
renergy
n00b
n00b


Joined: 26 Feb 2011
Posts: 28

PostPosted: Tue Sep 09, 2014 9:30 pm    Post subject: Reply with quote

Another finding: from tty1,
Code:
startx -- vt7
fails to start X in the same way xdm does [black screen].

"startx -- vt1" from tty1 starts fine, as well as simply "startx" with no parameters (this works from any console).

But whenever "startx" succeeds to start X, keyboard and mouse are ok at first, and are lost after switching to console and back to X.


Last edited by renergy on Wed Sep 10, 2014 8:53 am; edited 3 times in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7048
Location: almost Mile High in the USA

PostPosted: Tue Sep 09, 2014 10:06 pm    Post subject: Reply with quote

startx should start X11 on an unused console. It is very weird and wrong to run it on /dev/tty1. I pretty much followed the Gentoo systemd guide and X11 starts on vt7, and everything works just fine (on my Intel graphics box.)

What about startx -- vt8 and use /dev/tty8 for X ?

If you just run X by itself with no options, what does it do (be prepared to get your terminal stuck...) -- Does it also choose tty1?

So if you control-alt-F2 with X running on tty1, that will bring you to a dead screen as no getty is being run there... was that also expected behavior?

The curious line in your xorg.log is
Code:
[ 28235.615] (++) using VT number 1

[ 28235.615] (--) controlling tty is VT number 1, auto-enabling KeepTty


This probably implies it knows that it needs to use vt1 and knows it will conflict (and use KeepTty to return, but appears to fail). But does the log look differently if you force VT7?

Sigh...dammit, I need to set up a virtual systemd box or a machine I can leave up 24/7 that I can play with, yesterday I found an interesting variable in a systemd config file but I can't recall what it was. Ran into it when I found out the default install opens only one getty, so I tried to make it run four gettys on four VTs...

[EDIT]

Ahh...here we go, this is why. Hmm... I guess I don't have the systemd virtual terminals going, just kernel-based.

http://unix.stackexchange.com/questions/141604/why-x-server-runs-on-tty1-and-not-tty7-on-arch-linux
https://bbs.archlinux.org/viewtopic.php?id=169903
Back to top
View user's profile Send private message
renergy
n00b
n00b


Joined: 26 Feb 2011
Posts: 28

PostPosted: Thu Sep 11, 2014 7:26 pm    Post subject: Reply with quote

eccerr0r wrote:
startx should start X11 on an unused console. It is very weird and wrong to run it on /dev/tty1.

I concur, it is weird.

eccerr0r wrote:
What about startx -- vt8 and use /dev/tty8 for X ?

The same result as with startx -- vt7, i.e. black screen, but I am able to do e.g. ctrl+alt+f3 to another text console

eccerr0r wrote:
If you just run X by itself with no options, what does it do (be prepared to get your terminal stuck...) -- Does it also choose tty1?

"X" by itself results in black screen, similar behaviour as "startx -- vt7".

eccerr0r wrote:
So if you control-alt-F2 with X running on tty1, that will bring you to a dead screen as no getty is being run there... was that also expected behavior?

After start, I have six /sbin/agetty running on tty1 to tty6 (standard situation imo). So control+alt+f2 from X brings me to /sbin/agetty run on tty2, given X was started with "startx" from tty1.

eccerr0r wrote:
The curious line in your xorg.log is
Code:
[ 28235.615] (++) using VT number 1

[ 28235.615] (--) controlling tty is VT number 1, auto-enabling KeepTty


This probably implies it knows that it needs to use vt1 and knows it will conflict (and use KeepTty to return, but appears to fail). But does the log look differently if you force VT7?


It does! After some sifting, I found difference between logs when X is started by slim (completely correct behaviour) and by startx -- vt7 (black screen); here's the diff without timecodes:

Code:

< (EE) intel(0): failed to set mode: Permission denied [13]
< (WW) intel(0): failed to restore desired modes on VT switch
< (EE) intel(0): sna_mode_check: invalid state found on pipe 1, disabling CRTC:7
Back to top
View user's profile Send private message
renergy
n00b
n00b


Joined: 26 Feb 2011
Posts: 28

PostPosted: Thu Sep 11, 2014 9:01 pm    Post subject: Reply with quote

Perhaps this has some relevance

http://unix.stackexchange.com/questions/149283/xorg-with-kernel-mode-settings-wont-work-with-other-tty

I.e. the core of the problem seems to be rootless X vs. X run with root privileges.

startx seems to be going the rootless way, which would explain starting on tty1 and not being able to run on tty7/vt7, while slim probably runs the X as root. Just guessing...

Why "startx -- vt7" fails even if run from root login?


EDIT: recent thread with the same issue, guess I'm on the right track..

https://forums.gentoo.org/viewtopic-t-998338.html


Last edited by renergy on Thu Sep 11, 2014 9:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
poncho
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2011
Posts: 88

PostPosted: Thu Sep 11, 2014 9:17 pm    Post subject: Reply with quote

your issues might be fixed with x11-apps/xinit-1.3.3-r1

see https://bugs.gentoo.org/show_bug.cgi?id=521392 and https://bugs.gentoo.org/show_bug.cgi?id=451956
Back to top
View user's profile Send private message
renergy
n00b
n00b


Joined: 26 Feb 2011
Posts: 28

PostPosted: Thu Sep 11, 2014 9:24 pm    Post subject: Reply with quote

Just re-emerged xinit again to be sure, have version 1.3.3-r1. The problem persist.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum