Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]xorg-server-1.6.3.901-r2 no keyboard or mouse
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Oct 07, 2009 4:58 pm    Post subject: Reply with quote

Hmm, not sure, but I think that you might want to add one or both of these (could be as modules too)
Code:
CONFIG_DRM_I830=y
CONFIG_DRM_I915=y


Are you using Device Driver="intel" in xorg.conf?

and do you have VIDEO_CARDS="intel" in your make.conf?
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Wed Oct 07, 2009 5:07 pm    Post subject: Reply with quote

I'll try the extra configs. However, xorg 1.5.2 ran happily with the kernel as it is.

VIDEO-CARDS is "intel"

On the basis of current advice in this thread, there is no driver in xorg.conf, but if the journal happens to restore enough of Xorg.0.log to see it, the correct intel driver is loaded automagically.
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Wed Oct 07, 2009 5:09 pm    Post subject: Reply with quote

Actually, CONFIG_DRM_I830 is set, but of course your grep did not catch it
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Wed Oct 07, 2009 7:11 pm    Post subject: Reply with quote

I found a bug explained at https://forums.gentoo.org/viewtopic-p-5991384.html#5991384, but it does not help my problem.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Oct 07, 2009 7:15 pm    Post subject: Reply with quote

rickj wrote:
Actually, CONFIG_DRM_I830 is set, but of course your grep did not catch it


sure it did, look at your post on the previous page. :P
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Wed Oct 07, 2009 7:18 pm    Post subject: Reply with quote

Right Mike, my apologies, this thing seems to be frying my brain.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Oct 07, 2009 7:19 pm    Post subject: Reply with quote

I know, it can get frustrating at times.

Do you have MTRR and SYSVIPC enabled in your kernel?
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Wed Oct 07, 2009 7:28 pm    Post subject: Reply with quote

Yes, both are set
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Oct 07, 2009 7:38 pm    Post subject: Reply with quote

Here is my next idea:

post the output of lspci -n :arrow: over here, and check that the correct drivers are enabled in your kernel,

but make sure that CONFIG_DRM_I915_KMS is not set - because that one is what often causes the kinds of symptoms that you have, hence the reason for my previous grep request. :)

You can also try Pappy's Kernel Seeds

Try different versions of xf86-video-intel - maybe the unstable one is what you need.

Try X with and without an xorg.conf file.
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Wed Oct 07, 2009 8:03 pm    Post subject: Reply with quote

Interesting - your Debian driver-checker recommends intelfb and intel-agp. which are the ones I am using in the kernel.

CONFIG_DRM_I915_KMS does not appear as an option in my .config at all. I'm using the 2.6.30-gentoo-r6 stable kernel. CONFIG_DRM_I915 is not set.

I've been compiling UNIX kernels for a long time, and have my own "seeds" which have worked well up to now.

The stable intel driver worked just fine with xorg-server 1.5.2, but it's quite possible that an unstable one may be needed for 1.6, so I'll try it.
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Wed Oct 07, 2009 8:14 pm    Post subject: Reply with quote

Tried x11-drivers/xf86-video-intel-2.9.0, the only one later than the stable 2.8.1, but it does not help.

I've tried X with just plain X, with a generated config file from X -config, with no xorg.conf at all, and with the skeletal xorg.conf advised in this topic. I've tried starting via startx, and via xdm. I can't claim to have tried all combinations of the above, but I suspect that with a basic complete lock-up of the sort I'm getting, there is something fairly basic broken.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Oct 07, 2009 8:37 pm    Post subject: Reply with quote

I would give CONFIG_DRM_I915 a try :)
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Wed Oct 07, 2009 9:14 pm    Post subject: Reply with quote

That *almost* does it. Instead of freezing with a blank screen, I can now see the kde screen, but the CPU is 100% busy and nothing responds. The Xorg.0.log ends with a large number of line pairs of the form:
Code:

[mi] EQ overflowing. The server is probably stuck in an infinite loop.
[mi] mieqEnequeue: out-of-order valuator event; dropping.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Oct 07, 2009 9:32 pm    Post subject: Reply with quote

I would disable the FB_INTEL stuff in the kernel.
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Wed Oct 07, 2009 9:47 pm    Post subject: Reply with quote

Tried that, results are just the same.

I found that I still had INPUT_DEVICES="evdev keyboard mouse" in /etc/make.conf from an earlier experiment, so I reduced that to "evdev" and ran
Code:
emerge -DuavNq world
which rebuilt xorg-drivers only. Now KDE comes up, but all characters typed appear tripled, and the system locks when I try to log out of KDE. In fact, it locks if I just leave it running for a minute or so.

At least the mouse works properly, up to when the system dies.

Xorg.0.log now looks quite normal and shows no errors.

Tried rebuilding the drivers with
Code:
emerge -avq `qlist -IC x11-drivers\`
but it did not help at all
Back to top
View user's profile Send private message
Kalessin
n00b
n00b


Joined: 04 Apr 2007
Posts: 21
Location: Fresno, CA USA

PostPosted: Thu Oct 08, 2009 1:34 am    Post subject: Reply with quote

rickj wrote:
Tried that, results are just the same.

I found that I still had INPUT_DEVICES="evdev keyboard mouse" in /etc/make.conf from an earlier experiment, so I reduced that to "evdev" and ran
Code:
emerge -DuavNq world
which rebuilt xorg-drivers only. Now KDE comes up, but all characters typed appear tripled, and the system locks when I try to log out of KDE. In fact, it locks if I just leave it running for a minute or so.

At least the mouse works properly, up to when the system dies.

Xorg.0.log now looks quite normal and shows no errors.

Tried rebuilding the drivers with
Code:
emerge -avq `qlist -IC x11-drivers\`
but it did not help at all


IIRC, the triple key thing has to do with HAL and evdev fighting. I believe if your system is set up so that HAL is the one to deal with the keyboard and mouse, then it isn't a problem, but I haven't a clue how to set that up correctly. Another option (which, IIRC is what I"m doing now) is to just not use evdev. The third option (which I was actually doing for a while) is to disable HAL so that it doesn't start up on any runlevel and then start it manually once you're logged into KDE.
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Thu Oct 08, 2009 3:33 pm    Post subject: Reply with quote

This has a nasty sound of credibility to it. Your workarounds seem very reasonable, but ideally a stable system should not need special workarounds.

Could some knowledgeable person please let us know how to set this up optimally?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu Oct 08, 2009 4:37 pm    Post subject: Reply with quote

Try adding Option "AutoAddDevices" "false" to the ServerFlags section of xorg.conf
Code:
Section "ServerFlags"
       Option "AutoAddDevices" "false"
EndSection

See man xorg.conf for what it is supposed to achieve.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Thu Oct 08, 2009 4:54 pm    Post subject: Reply with quote

Thanks, nixnut, that's another part of the answer. Now if I move fast after KDE comes up, I can type normally, and the system responds normally.

But still, after anything from a few seconds to a minute or two, the whole system freezes, with the exception that the mouse pointer remains alive. There is no response to mouse clicks, to keyboard presses or to the power button, and the only way to get the system going again is to pull the power cord. The effect is the same regardless of user activity.

After recovery /var/log/Xorg.0.log is suspiciously truncated.
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Thu Oct 08, 2009 5:21 pm    Post subject: Reply with quote

This may not be entirely an X problem.

If I comment out the XSESSION in /etc/rc.conf, and startx, FVWM comes up normally, and works well for a quarter of an hour. I can get out by typing "reboot" in a root window, and the /var/log/Xorg.0.log looks clean, with two error messages near the end showing that hal failed to add a keyboard and a mouse.

So X alone seems stable. This is some sort of interaction under KDE.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Oct 08, 2009 7:32 pm    Post subject: Reply with quote

rickj,

please post the output of
    emerge --info
    eselect rc show
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Thu Oct 08, 2009 7:48 pm    Post subject: Reply with quote

eselect rc show:
Code:
Status of init scripts in runlevel "default"
  dbus                      [started]
  hald                      [started]
  local                     [started]
  metalog                   [started]
  net.eth0                  [started]
  sshd                      [started]
  vixie-cron                [started]


emerge --info:
Code:
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-gentoo-1.12.11.1
Timestamp of tree: Thu, 08 Oct 2009 16:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev /etc/udev/rules.d /usr/kde/3.5/share/config /usr/kde/3.5/share/config/kdm /usr/share/X11/xkb /usr/share/X11/xkb/compat /usr/share/X11/xkb/geometry /usr/share/X11/xkb/geometry/sgi /usr/share/X11/xkb/keycodes /usr/share/X11/xkb/keymap /usr/share/X11/xkb/keymap/sgi /usr/share/X11/xkb/keymap/sgi_vndr /usr/share/X11/xkb/keymap/sun /usr/share/X11/xkb/rules /usr/share/X11/xkb/symbols /usr/share/X11/xkb/symbols/macintosh /usr/share/X11/xkb/symbols/macintosh_vndr /usr/share/X11/xkb/symbols/nec /usr/share/X11/xkb/symbols/pc /usr/share/X11/xkb/symbols/sun /usr/share/X11/xkb/symbols/xfree68 /usr/share/X11/xkb/types /usr/share/texmf/dvips/config"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer "
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/ http://adelie.polymtl.ca/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage/"
USE="X a52 aac aalib acl acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus dri dts dvd dvdr eds emboss encode esd evo fam firefox flac fortran gd gdbm gif gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kpathsea ldap libnotify mad mikmod modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png postgres ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd thunar tiff tk truetype unicode usb vorbis win32codecs wxwidgets x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
baldeante
Guru
Guru


Joined: 17 Jan 2004
Posts: 498
Location: Caldas da Rainha, Portugal

PostPosted: Sun Oct 11, 2009 6:34 pm    Post subject: Reply with quote

Mike Hunt wrote:
EDIT: try blueflame's suggestion in the next post first.

If it doesn't work, as a last resort try this:

Get your installCD into the tray
    boot CD
    mount your gentoo / partition
    rm /etc/runlevels/default/xdm
    reboot and remove CD


now your Gentoo box should reboot without X and you can re-emerge x11-drivers - you need portage-utils to do this
Code:
emerge -1av $(qlist -IC x11-drivers)


then re-link xdm and start X
Code:
rc-update add xdm default
/etc/init.d/xdm start


Thanks that did the trick ...
_________________
Never Quit, Never Get Mad, Get Even
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Mon Oct 12, 2009 10:15 pm    Post subject: Reply with quote

All solved, see this bug. The key is to use the latest ~arch gentoo-sources kernel 2.6.31-r2 and ~arch xf86-video-intel driver 2.9.0, with no xorg.conf at all. My thanks to all who helped.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Mon Oct 12, 2009 11:00 pm    Post subject: Reply with quote

Wow, cool that all is well. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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