users of drm-legacy-kmod or drm drivers from base

M&S - Krasznai András Krasznai.Andras at
Tue Mar 10 08:34:47 UTC 2020


I am experiencing the following: Firefox, Chrome, LibreOffice freezes my FreeBSD-CURRENT after a few seconds (the disk is used intensivey but nor keyboard nor mouse is working, I can move the mouse pointer but nothing happens when I click with any of the buttons), nothing is written on the screen. As the mouse seems to not work I am not able to start any other application after starting the above programs. before starting those programs xterm, clang, etc is running correctly.

Ctrl-Alt-Del kills the xorg server, and the laptop returns to the character based screen. I can start X again with startx, and  it behaves in the same manner. 

A week ago when the above first happened then (as it was recommended in pkg-message) recompiling xorg-server with the FIXDRM option corrected the problem, but as FIXDRM is now removed I am not able to use those applications.

I tried to force the usage of dri3 as recommended, but did not help.

The system is a Lenovo T510 laptop, Intel I5-M520 CPU, integrated Intel Graphics , FreeBSD-CURRENT #358833, ports installed from pkg repository. 

best regards

Andras Krasznai

-----Eredeti üzenet-----
Feladó: owner-freebsd-current at [mailto:owner-freebsd-current at] Meghatalmazó Niclas Zeising
Küldve: 2020. március 8. 20:34
Címzett: x11 at; current at; stable at; ports at
Tárgy: users of drm-legacy-kmod or drm drivers from base

[ This is cross-posted across several mailing lists for maximum 
visibility.  Please respect reply-to and keep replies to x11 at 
. Thank you! ]

In order to improve support for the new lkpi based graphics drivers 
(drm-kmod) and to improve the graphics stack we have switched mesa to 
prefer DRI3 over DRI2.  This was done in r528071.  For those using 
drm-kmod, this should improve performance somewhat, and more importantly 
alleviate the use of the FIXDRM option (now removed) in xorg-server.

However, for those of you using graphics/drm-legacy-kmod or the drm 
drivers in base, this change can cause issues.  If you are experiencing 
problems when running OpenGL applications, you can force the use of the 
DRI2 backend.

To force mesa to use DRI2, set the environment variable 
LIBGL_DRI3_DISABLE to 1 before starting any OpenGL application.  The 
easiest way to accomplish this is by adding it to either your shell 
startup file or ~/.xinitrc.

As an example, for users of [t]csh, put
in ~/.cshrc.

For users of bourne type shells (sh, bash, ksh, zsh, ...) instead put
in ~/.profile

If you are using these legacy drivers, I'm also very interested in 
hearing what issues you are facing that prevents you from using the new 
lkpi based drivers.

Niclas Zeising
FreeBSD Graphics Team
freebsd-current at mailing list
To unsubscribe, send any mail to "freebsd-current-unsubscribe at"

More information about the freebsd-current mailing list