Comment 49 for bug 118605

Revision history for this message
Konrad Materka (kmaterka) wrote :

I can confirm that patch works.
I have ATI Radeon Xpress 200 (integrated with motherboard), Kubuntu Hardy, fglrx drivers from repository.
Open source driver works, but without 3D acceleration.

I think it is good idea to release an update. Many people have this issue, more will come when Hardy will gain popularity.

I have no idea if it works with GDM, should not affect, because in /etc/ati/authatieventsd.sh function GetServerAuthFile() is checking for GDM files too. I cannot check it, I haven't access to ati card - only for few days now.

/var/run/xauth/A$1* is used with KDM - that 100% sure. What if someone is using XDM or just startx?

We could add another "if" section, for example:

    # Check xdm

    XDM_AUTH_MASK=/var/lib/xdm/authdir/authfiles/A$1*
    XDM_AUTH_FILE=`ls -t $XDM_AUTH_MASK 2>/dev/null | head -n 1` # Choose the newest file
    if [ -n "$XDM_AUTH_FILE" ]; then
        SERVER_AUTH_FILE=$XDM_AUTH_FILE
        DISP_SEARCH_STRING="#ffff#"
        return 0
    fi

    # Check xdm

    KDM_AUTH_MASK=/var/run/xauth/A$1*
    KDM_AUTH_FILE=`ls -t $KDM_AUTH_MASK 2>/dev/null | head -n 1` # Choose the newest file
    if [ -n "$KDM_AUTH_FILE" ]; then
        SERVER_AUTH_FILE=$KDM_AUTH_FILE
        DISP_SEARCH_STRING="#ffff#"
        return 0
    fi

that will 100% safe :)