Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36207 - ati-driver X crashes / exits when switching to console
Summary: ati-driver X crashes / exits when switching to console
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-20 15:47 UTC by Hans-Christian Armingeon
Modified: 2004-03-23 02:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
This is the logfile what happens when switching to a console (xcrash.log,2.88 KB, text/plain)
2003-12-20 15:52 UTC, Hans-Christian Armingeon
Details
my xf86config (XF86Config-4-onescreen,24.30 KB, text/plain)
2003-12-20 15:53 UTC, Hans-Christian Armingeon
Details
A logfile, after an x crash (XFree86.0.log,32.11 KB, text/plain)
2003-12-24 07:51 UTC, Hans-Christian Armingeon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans-Christian Armingeon 2003-12-20 15:47:25 UTC
Hi,

I'm having some trouble with the ati-drivers (the binary ones from ati). I am using the fglrx driver.
The problem is, taht after starting X, and switching back to the console, an then returning to X, X ist there any longer.

Is this behaviour known?

Has anyone the same problem/solution?


Johnny

Reproducible: Always
Steps to Reproduce:
1. startx
2. switch to textmode console
3. X will exit
Actual Results:  
X exited 

Expected Results:  
X shouldn't exit. 

Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031212-r0, 
2.4.23) 
================================================================= 
System uname: 2.4.23 i686 mobile AMD Athlon(tm) XP 2500+ 
Gentoo Base System version 1.4.3.12 
distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled] 
ccache version 2.3 [enabled] 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /lib/modules /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" 
CXXFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache distcc sandbox" 
GENTOO_MIRRORS="http://builda http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X Xaw3d aalib acl acpi afs alsa apache2 apm arts avi berkdb bonobo cdr 
crypt cscope cups curl dga directfb doc dvb dvd emacs encode esd ethereal evo 
fbcon firebird flash foomaticdb freetds gb gd gdbm ggi gif gnome gphoto2 gpm 
gps gstreamer gtk gtk2 gtkhtml guile imap imlib informix innodb ipv6 jack java 
jikes joystick jpeg kde kerberos krb4 ladcca lcm ldap leim libg++ libgda 
libwww lirc mad maildir mbox mcal memlimit mikmod mmx motif mozilla mpeg mpi 
mule mysql nas ncurses nhc98 nls oci8 odbc oggvorbis opengl oss pam pcmcia pda 
pdflib perl plotutils png pnp postgres ppds prelude python qt quicktime 
readline ruby18 samba sasl scanner sdl slang slp snmp socks5 spell ssl svga 
tcltk tcpd tetex tiff truetype usb wmf wxwindows x86 xface xinerama xml2 xmms 
xosd xv zeo zlib"
Comment 1 Hans-Christian Armingeon 2003-12-20 15:52:38 UTC
Created attachment 22506 [details]
This is the logfile what happens when switching to a console
Comment 2 Hans-Christian Armingeon 2003-12-20 15:53:37 UTC
Created attachment 22507 [details]
my xf86config
Comment 3 Luca Barbato gentoo-dev 2003-12-21 16:52:44 UTC
try to turn off dga, which is your ati chip?
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2003-12-21 22:20:26 UTC
The true logfile is /var/log/XFree*, please attach that instead of just console output.
Comment 5 Hans-Christian Armingeon 2003-12-22 14:04:06 UTC
@Donnie
> The true logfile is /var/log/XFree*, please attach that instead of just console output.

Well, there is no other file:
ls -la /var/log/XFree86*
-rw-r--r--    1 root     root        32526 Dec 22 23:47 /var/log/XFree86.0.log
-rw-r--r--    1 root     root        32747 Dec 22 23:46 /var/log/XFree86.0.log.old

@Luca
> try to turn off dga, which is your ati chip?

I have got a Radeon 9600:
01:00.0 VGA compatible controller: ATI Technologies Inc: Unknown device 4e50

@all
I realized, that this happens only with kde. When I don't set an xsession in /etc/rc.conf, I can switch to a console, and switch back, without problems.

Johnny

PS: I'll try to switch dga off, thou I want to leave it enabled.
Comment 6 Hans-Christian Armingeon 2003-12-22 14:28:12 UTC
Adding a line like
    Load        "dga"

in xfre-config had the effect, that when kde is running, I can switch to a console, but when I switch to a console, while kde starts up, I have the same bahaviour (crash).

Uncommenting or commenting out this line din't change anything, I currently have it commented out.
#      Option    "omit xfree86-dga"   # don't initialise the DGA extension

Johnny
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2003-12-23 12:18:29 UTC
-rw-r--r--    1 root     root        32526 Dec 22 23:47 /var/log/XFree86.0.log

That is the file I was referring to; I couldn't give an absolute filename because the number (0 in this case) corresponds to the display X was started on. Anyway, attach it as text/plain or plain/text, whatever that type is.
Comment 8 Hans-Christian Armingeon 2003-12-24 07:51:13 UTC
Created attachment 22621 [details]
A logfile, after an x crash

X recently crashed, even thou kde has finished the startup sequence. X crashed
after kde has been running for a while. I switched to the console, and I
couldn't switch back again.

Johnny
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2003-12-24 07:57:52 UTC
Does /dev/usbmouse exist? You do have a USB mouse connected, correct? Also please try /dev/input/mice.
Comment 10 Hans-Christian Armingeon 2003-12-28 04:26:04 UTC
Sometimes I have a mouse connected, but sometimes not.
When I connect the mouse after x has started, I need to switch to a console, and back, to activate the mouse.
I changed the inputdevice, but I don't think, that this might change anything.

Perhaps this problem is kde dependent, because when I start without the XSESSION variable in rc.conf set, then the 3bash-x-session satrts. When I switch to a textmode console, and back, X never had crashed after switching back.
I noticed that when I succesfully switched back to X then the screen is usually scrambled. After clicking unclutter desktop in the context menu, the desktop looks ok.

Johnny
Comment 11 Hans-Christian Armingeon 2003-12-28 07:14:56 UTC
Well, I think, I found the bug.
In /usr/X11R6/bin/startx I have set
defaultserverargs="-nolisten tcp"
because I don't like open ports, because I'm not always in trusted networks.
I disabled it, an I am having no problems with kde.

Does anybody have a descent soluten for leaving port 6000 at localhost open, but closing it anywhere else?

Johnny
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2003-12-28 14:56:37 UTC
X cannot properly initialize mice plugged in after X is started. If you have any problems associated with that, they are to be expected.

To block port 6000 everywhere but localhost, you'll want to block it globally w/ an iptables rule, then have a rule AFTER that opening it specifically to localhost.
Comment 13 Luca Barbato gentoo-dev 2004-03-22 13:41:32 UTC
Could we close that bug?
Is the problem solved with the new drivers?
Comment 14 Hans-Christian Armingeon 2004-03-23 02:48:59 UTC
Yes, I think so.

I had this bug still in mind.

Johnny