View previous topic :: View next topic |
Author |
Message |
Tolstoi l33t
Joined: 20 May 2004 Posts: 678
|
Posted: Fri Jan 01, 2010 9:52 am Post subject: X garbled after update |
|
|
Last week I ran an emerge world and ended up with a garbled X after KDM. I'm running ~x86 with gentoo-sources-2.6.32 on my netbook and never had problems so far. Couldn't find any errors in xorg.0.log or any hints on what could be wrong.
I recompiled the kernel, emerged xorg, mesa and xf86-intel-video without solving the problem. Funny thing is that sometimes this error doesn't occur at all and sometimes a reboot or two helps to get to a normal desktop. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Jan 01, 2010 2:25 pm Post subject: |
|
|
Hi, can you post this :
Code: |
# emerge --info
# rc-update show
# cat /etc/X11/xorg.conf
|
|
|
Back to top |
|
|
Tolstoi l33t
Joined: 20 May 2004 Posts: 678
|
Posted: Fri Jan 01, 2010 3:07 pm Post subject: |
|
|
emerge --info:
Code: |
Portage 2.2_rc61 (default/linux/x86/10.0/desktop, gcc-4.3.3, glibc-2.11-r1, 2.6.32-gentoo i686)
=================================================================
System uname: Linux-2.6.32-gentoo-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 27 Dec 2009 13:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python: 2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache: 2.4-r8
dev-util/cmake: 2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.6.0
sys-apps/sandbox: 2.2
sys-devel/autoconf: 2.13, 2.65
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS=" en de it ru "
MAKEOPTS="-j3"
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.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib aas acpi aiff alsa audio avi berkdb bidi bitmap-fonts bluetooth branding bzip2 cairo cdda cdio cdr cli consolekit cracklib cups cxx dbus dga divx4linux dri dts dvb dvd dvdr dvdread e eds emboss encode esd evdev evo fam ffmpeg firefox flac fortran freetype gdbm gif git gnome gnutls gpm gstreamer gtk hal httpd iconv ipod ipv6 java jpeg kde kde4 ldap libcaca libmpeg libnotify libv4l2 live lm_sensors mad matroska midi mikmod mmx mmxext mng mod modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugins nvidia ogg oggvorbis opengl openmp oss oss4 pam pcre pdf pdflib perl png ppds pppd python qt3support qt4 quicktime readline reflection screen sdl session spell spl sse sse2 ssl startup-notification stream subversion svg svga sysfs tcpd theora thunar tiff truetype truetype-fonts type1 type1-fonts unicode usb utils v4l v4l2 vcd video vlm vorbis win32codecs x264 x86 xcomposite xine xml xml2 xorg xulrunner xv xvid zlib" ALSA_CARDS="snd-hda-intel" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS=" en de it ru " RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
rc-update show:
Code: |
keymaps | boot
savecache | shutdown
termencoding | boot
dbus | default
vixie-cron | default
consolekit | default
mtab | boot
devfs | sysinit
udev-postmount | default
killprocs | shutdown
procfs | boot
network | default
xdm | boot
wicd | default boot
fbcondecor | boot
syslog-ng | default
hostname | boot
bootmisc | boot
ntpd | default
sysctl | boot
urandom | boot
mount-ro | shutdown
fsck | boot
udev | sysinit
hwclock | default
local | default nonetwork
root | boot
dmesg | sysinit
hald | default
|
cat /etc/X11/xorg.conf :
Code: |
Section "Module"
# This loads the DBE extension module.
# Load "dbe" # Double buffer extension
# EndSubSection
# This loads the font modules
# Load "type1"
# Load "freetype"
# Load "xtt"
# This loads the GLX module
Load "glx"
# This loads the DRI module
Load "dri"
EndSection
Section "Files"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
# FontPath "/usr/share/fonts/100dpi/"
# FontPath "/usr/share/fonts/75dpi/"
# FontPath "/usr/lib/X11/fonts/local/"
# FontPath "/usr/lib/X11/fonts/misc/"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1/"
FontPath "/usr/lib/X11/fonts/TrueType/"
FontPath "/usr/lib/X11/fonts/freefont/"
FontPath "/usr/lib/X11/fonts/75dpi/"
FontPath "/usr/lib/X11/fonts/100dpi/"
# The module search path. The default path is shown here.
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "AutoRepeat" "500 30"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# Option "LeftAlt" "Meta"
# Option "RightAlt" "ModeShift"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
Option "XkbVariant" "nodeadkeys"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "evdev"
Option "Protocol" "auto"
Option "Device" "/dev/input/event0"
Option "ZAxisMapping" "4 5 "
# Option "YAxisMapping "4 5"
Option "Buttons" "6"
Option "Emulate3Buttons" "no"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "synaptics"
Option "Protocol" "auto-dev"
Option "Device" "/dev/input/mice"
Option "SHMConfig" "on"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "MinSpeed" "0.09"
Option "MaxSpeed" "0.18"
Option "TapButton1" "1"
Option "RTCornerButton" "2"
Option "AccelFactor" "0.0010"
EndSection
Section "Monitor"
Identifier "My Monitor"
Option "DPMS"
EndSection
Section "Device"
Identifier "i945gm"
Driver "intel"
Option "MTRR" "on"
Option "AccelMethod" "UXA"
Option "Tiling" "False"
EndSection
Section "Screen"
Identifier "Screen 1"
Device "i945"
Monitor "My Monitor"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1024x600"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen 1"
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Extensions"
Option "MIT-SHM" "yes"
Option "Composite" "enable"
EndSection
|
|
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Fri Jan 01, 2010 3:51 pm Post subject: |
|
|
With the newer xorg-servers it is important to emerge all x11-drivers after an upgrade. Code: | emerge -av $(qlist -IC x11-drivers) |
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Jan 01, 2010 6:35 pm Post subject: |
|
|
Quick question, can you try without any /etc/X11/xorg.conf since you use hal ?
Also, why do you still use the old method for your input device ? |
|
Back to top |
|
|
Tolstoi l33t
Joined: 20 May 2004 Posts: 678
|
Posted: Fri Jan 01, 2010 7:29 pm Post subject: |
|
|
Yes, I've also thought about using no xorg.conf at all but was a bit unsure because of my resolution of 1024x600 and if xorg will detect it correctly.
What do you mean with old method regarding the input devices? |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Fri Jan 01, 2010 9:46 pm Post subject: |
|
|
It is also possible that some config(s) in the $HOME/.kde4 folder have become incorrect. To test this hypothesis, I would create a new testuser and login to KDE4. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sat Jan 02, 2010 5:18 am Post subject: |
|
|
This is my xorg.conf :
Code: |
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder58) Wed Oct 1 15:12:53 PDT 2008
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
|
I manage my keyboard with this :
Code: |
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keys">
<merge key="input.x11_options.XkbRules" type="string">evdev</merge>
<merge key="input.x11_options.XkbModel" type="string">evdev</merge>
<merge key="input.xkb.layout" type="string">ca</merge>
<merge key="input.xkb.variant" type="string">fr</merge>
<merge key="input.x11_options.XkbOptions" type="string">compose:menu</merge>
</match>
</device>
</deviceinfo>
|
Take a look at this thread for more info : https://forums.gentoo.org/viewtopic-t-722498.html |
|
Back to top |
|
|
Tolstoi l33t
Joined: 20 May 2004 Posts: 678
|
Posted: Sat Jan 02, 2010 7:18 am Post subject: |
|
|
Thanks, just switched to a minimal xorg.conf and an input fdi file. My fdi folder was empty.
My xorg.conf still has to use a modes line because chances to get a normal resolution with it are just a bit higher.
It seems as though X tries to set the right resolution but can't. After the KDE splash screen the screen is black and when I move the mouse to the bottom the desktop flickers and looks like scaled to 1024x50. |
|
Back to top |
|
|
Tolstoi l33t
Joined: 20 May 2004 Posts: 678
|
Posted: Sat Jan 02, 2010 10:47 am Post subject: |
|
|
Seems to work now but I don't know what solved the problem. |
|
Back to top |
|
|
Tolstoi l33t
Joined: 20 May 2004 Posts: 678
|
Posted: Sat Jan 02, 2010 5:31 pm Post subject: |
|
|
Problem still not solved. |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sat Jan 02, 2010 6:00 pm Post subject: |
|
|
I notice this in your config, shouldn't they both be the same? Code: | Section "Device"
Identifier "i945gm" <-----------THIS--------------------
Driver "intel"
Option "MTRR" "on"
Option "AccelMethod" "UXA"
Option "Tiling" "False"
EndSection
Section "Screen"
Identifier "Screen 1"
Device "i945" <-------------------THIS---------------
Monitor "My Monitor"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1024x600"
ViewPort 0 0
EndSubsection
EndSection |
|
|
Back to top |
|
|
Tolstoi l33t
Joined: 20 May 2004 Posts: 678
|
Posted: Sat Jan 02, 2010 6:34 pm Post subject: |
|
|
Hmm, yes. Will change that. But that's my backup xorg.conf now.
My new xorg.conf looks like this:
Code: |
ection "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "intel"
VendorName "INTEL"
ection "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "intel"
VendorName "INTEL"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x600"
EndSubSection
EndSection
|
|
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sat Jan 02, 2010 7:38 pm Post subject: |
|
|
It must be a typo that you have ection "ServerLayout" twice , in fact everything except Section "Screen" is twice. |
|
Back to top |
|
|
Tolstoi l33t
Joined: 20 May 2004 Posts: 678
|
Posted: Sat Jan 02, 2010 10:07 pm Post subject: |
|
|
Sorry was an mistake as I copied and pasted it. Here is file again:
Code: |
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "intel"
VendorName "INTEL"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x600"
EndSubSection
EndSection
|
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sat Jan 02, 2010 10:08 pm Post subject: |
|
|
And now, is this working or not, because your xorg.conf seems to be pretty clean to me. |
|
Back to top |
|
|
Tolstoi l33t
Joined: 20 May 2004 Posts: 678
|
Posted: Sun Jan 03, 2010 6:36 am Post subject: |
|
|
No it doesn't. It seems to me as if xorg is unable to set the proper resolution. Ksplash works normally but swtiching to the desktop after Ksplash (I use autologin) brings up a black screen. The whole desktop is stretched at the bottom of the screen and only shows up when you move the mouse over it. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sun Jan 03, 2010 3:47 pm Post subject: |
|
|
And if you do this inside your /etc/X11/xorg.conf :
Code: |
#SubSection "Display"
# Depth 24
# Modes "1024x600"
#EndSubSection
|
Comment that little section inside your xorg.conf and reboot your box. |
|
Back to top |
|
|
Tolstoi l33t
Joined: 20 May 2004 Posts: 678
|
Posted: Sun Jan 03, 2010 4:19 pm Post subject: |
|
|
Today I synce again and did an upgrade world, swtched to kernel linux-2.6.33-rc2 and the four or five boots
I did today brought up the desktop flawlessly. I hope everything stays like this and guess that one of the steps above led to solve the problem. |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sun Jan 03, 2010 4:30 pm Post subject: |
|
|
It often happens. A mismatch of kernel version
xorg-server version
video-driver version
So udgrading/downgrading one or more of those will fix the problem.
As long as it works as expected, all is well. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sun Jan 03, 2010 8:46 pm Post subject: |
|
|
Keep us inform on your progress |
|
Back to top |
|
|
|