Portál AbcLinuxu, 11. května 2025 10:42

Dotaz: Po upgradu kernelu přestane fungovat Google Earth

25.3.2007 17:03 diverman | skóre: 32 | blog: život s tučňáčkem
Po upgradu kernelu přestane fungovat Google Earth
Přečteno: 222×
Odpovědět | Admin
Ahoj, původně jsem chtěl položit dotaz, ale vyřešil jsem to nakonec sám.

Po upgradu z kernelu 2.6.19 na 2.6.20 googleearth mi vypisuje:
libGL warning: 3D driver claims to not support visual 0x5b
do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.
Spustí se, ale renderování je nepoužitelně pomalé.

Vlezte do adresáře s googleearth:
$ cd /opt/google-earth
Vytvořtě nový soubor:
/opt/google-earth$ vi drm_nowaitVblank.c
#include <sys/time.h>
#include <unistd.h>
#include <string.h>

#define DELAY   33333

int drmWaitVBlank(void)
{
        static struct timeval last = { 0, 0 };
                static struct timeval now  = { 0, 0 };
                int udiff;

                gettimeofday(&now, NULL);
                udiff = (int)now.tv_usec - (int)last.tv_usec;
                if (udiff < 0)
                        udiff += 1000000;
                udiff -= DELAY;
                if (udiff < 0)
                        usleep(-udiff);
                memcpy(&last, &now, sizeof(struct timeval));


        return 0;

}
Zkompilujte:
/opt/google-earth$ gcc -o drm_nowaitVblank.so -shared -fPIC -ldl drm_nowaitVblank.c
Otevřete si soubor ./googleearth a úplně dole změňte:
/opt/google-earth$ vi ./googleearth
# Let's boogie!
if [ -x "${GOOGLEEARTH_DATA_PATH}/googleearth-bin" ]
then
        cd "${GOOGLEEARTH_DATA_PATH}/"
        LD_PRELOAD="./drm_nowaitVblank.so" exec "./googleearth-bin" $*
fi
Tohle tomu pomohlo. thanks
deb http://ftp.cz.debian.org/debian jessie main contrib non-free
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Na otázku zatím nikdo bohužel neodpověděl.

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.