Re: mplayer screws up colormap as cursor moved into the video window

From: Polytropon <freebsd_at_edvax.de>
Date: Wed, 29 May 2024 11:20:54 UTC
On Tue, 28 May 2024 22:21:09 -0700, Jin Guojun[VFF] wrote:
> When upgraded to 13.3-R, I have experienced a problem that Mplayer can
> cause system colormap distorted when the cursor moved into the video window.
>
> [...]
>
> On this 13.3 machine, one thing have been changed -- the video device.
> X.org is no longer supporting older video cards, such as Radeon 370,
> NV210, etc., so I used AMD APU video (Radeon HD 8570D). xf86-video-ati
> driver does not support it, therefore no /etc/X11/xorg.conf is created,
> and X is started with default configuration (VESA?), not sure if mplayer
> does not like it.

The mplayer program uses the specified output, and it is
preferring direct rendering if your graphics card and driver
supports it, which in case of a Radeo HD should absolutely
be no problem. However, it seems that your X currently uses
VESA, and that's why you're seeing this problem.

Sadly, graphics configuration has become quite complicated
on FreeBSD, and you need to check several things:

1. Is the correct KMS kernel module loaded?

2. Is the correct X driver loaded?

3. What output is mplayer configured to use?

You can check "kldstat" and "dmesg" output for question 1,
/var/log/Xorg.0.log for question 2, and the mplayer configuration
directory, whererever it might be today, for question 3. You
can also manually check:

	$ mplayer -vo x11 test.avi

for VESA (should always work), and

	$ mplayer -vo gl test.avi

for direct rendering (works if question 1 and 2 have been
answered with "yes").

I have a reference system (HP mini-laptop) with AMD graphics
that I can check a working configuration for.





--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...