From owner-freebsd-questions@freebsd.org Sat Nov 30 20:02:45 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 770471B59CE for ; Sat, 30 Nov 2019 20:02:45 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47QMjw1GB1z4QC1 for ; Sat, 30 Nov 2019 20:02:43 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([94.222.2.248]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPA (Nemesis) id 1MGQWr-1iaMnc0buP-00GnFT for ; Sat, 30 Nov 2019 21:02:41 +0100 Date: Sat, 30 Nov 2019 21:02:39 +0100 From: Polytropon To: FreeBSD Questions Subject: How to force X to use a specific GPU / output Message-Id: <20191130210239.ff69c8a2.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:6+V+ec7Cq+xVLHBnIQrqmaUE3SjJw6vOlXTXOEW5gyn5KdW0MH2 mIgdZa80RFR/tbzq5PtWoLvdjrCHZ+WrjWR0I+F6ZWPUKi5OTWfGoyuWBRf+MS8FibVQwBE EqB3SkPZSISqydYNkgSQ7QQUlJk9BYg9zsvNtouNPOyy4pdNwh5xafPtUz7eJ4O6vcXB9ww tfahPjnK0QFI+R3kx+7jQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:dCPTA7WCalQ=:ymdjqIE9E/Pyv8pKDp0PzG cka6Uj5/hA2pRxp6FKD34ciQBruvXHTarUa8LOYduvW/79a5MF00nGGXvcsj/3I3IJtiHCQ7V HLprVKS+eIXCRZUlDlbJAhl7TFcHfVt7k4NC1iXxRK2KsUPJOqdQM6jl+YgNbAjJODhvUAo6k wtYFj4sx9T7V2iTz+t57j4MjUeXCDS64i3feQb+F70Bk25QwNE/x5hyvbbDGvQH1dov9CZ3Ss iz8XWwAgZiHDGOqNM1ftKXkd+SBE8AOJjF839dmVVE8xmtVWECvKVpctWJV5nWCnpg8nLqPSC WBqR2guNwXEjPn8m06g4QpjePiY5+YHfXP6GKpx2hQWDrhNhabVwjC768MrbYbQE84+xfqM1w VwX71CqINtwZ8c/poG51oW9cFGWKnLhap2zkpwgfPGerxwg8elsSnfyTytc8/GF2hd45sGwbX LDysUioVrHs7p1fycNKGnsvgjv8gkIajhjaV6IwEOL15O5KhrjvfnxCWOJnebRwP2NNzxnNh8 bIYHxlPqGcubkaNAx8nwviv6AG/OX/8DDuefpTEYVz7wOJCbM88qCH3TQo1rZ9YDYqpO7fK/k 9AlXPsdYlOef/Yip9VeR3WioAuI9VW/ip4uiRwVDwFbGETu1cvMiqMm8OOJjw8AAo78XFKX82 RVJ2En6TazcXClqJqiesMA6Dlk5DTxLmibb8Tcruey+ZttkAPKqdsAYz5jgOaKCqdrxYAJ4JQ W60MDt+vliITLqtyJTT4K5miAL0Ajcuj7fj+ZO0Semi/PSphW2MFhDJ3AiooYDQA+KuEH1IQs JjePNYnAq2unSb/AqVr43XWCIrTyS+FKx3hr10wh4C2QM79+P2WPcJWzVyHyWdcV15Zj9VHOh 15E9I11z9BPMAmQNdZig== X-Rspamd-Queue-Id: 47QMjw1GB1z4QC1 X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.130) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [5.01 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[248.2.222.94.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.93)[0.929,0]; IP_SCORE(0.69)[ip: (2.33), ipnet: 212.227.0.0/16(-1.18), asn: 8560(2.29), country: DE(-0.01)]; NEURAL_SPAM_LONG(1.00)[0.995,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[130.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Nov 2019 20:02:45 -0000 With a HP Pavilion dm-1 "netbook" laptop I got, I have a problem since I connected a HDMI display: There are now several green pixels on the screen, in areas where the color is nearly black. They also appear in videos and make the "compression squares" visible. Note: Those are _not_ defective pixels on the display. When the system boots up, everything is fine. As soon as the system enters X, color isn't displayed properly as before. The video output on both HDMI and VGA, even at the same time, shows the colors correctly. During searches related to that problem, I once found an image that looked like what I'm seeing, and I read an article, even though regarding a Macbook, that this problem occurs due to internal switching between graphics hardware depending on if the internal screen should be driven or an external one. Sadly, I cannot find any of those again... However, I found this: http://cdn.avsforum.com/3/3e/3e8d725c_vbattach231475.png You can see "green clouds" around the curves, and the colors look slightly distorted. Everything that is "nearly black" now looks green - the _same_ green. The image above shows that problem on something that looks like "Windows 7". In the laptop here, there is an AMD CPU with graphics APU, if my information regarding the device is correct. From "pciconf -lv": vgapci0@pci0:0:1:0: class=0x030000 card=0x1611103c chip=0x98021002 rev=0x00 hdr=0x00 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'Wrestler [Radeon HD 6310]' class = display subclass = VGA For X, xf86-video-ati and xf86-video-radeon packages are installed. X automatically loads a working driver; from /var/log/Xorg.0.log: [ 25.256] (II) LoadModule: "ati" [ 25.256] (II) Loading /usr/local/lib/xorg/modules/drivers/ati_drv.so [ 25.257] (II) Module ati: vendor="X.Org Foundation" [ 25.257] compiled for 1.18.4, module version = 19.0.1 [ 25.257] Module class: X.Org Video Driver [ 25.257] ABI class: X.Org Video Driver, version 20.0 [ 25.259] (II) LoadModule: "radeon" [ 25.259] (II) Loading /usr/local/lib/xorg/modules/drivers/radeon_drv.so [ 25.276] (II) Module radeon: vendor="X.Org Foundation" [ 25.276] compiled for 1.18.4, module version = 19.0.1 [ 25.276] Module class: X.Org Video Driver [ 25.276] ABI class: X.Org Video Driver, version 20.0 [...] [ 25.282] (II) RADEON: Driver for ATI/AMD Radeon chipsets: [...] AMD Radeon HD 6310 Graphics, AMD Radeon HD 6250 Graphics, [...] [ 25.293] (==) RADEON(0): Depth 24, (--) framebuffer bpp 32 [ 25.293] (II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps) [ 25.293] (==) RADEON(0): Default visual is TrueColor [ 25.293] (==) RADEON(0): RGB weight 888 [ 25.293] (II) RADEON(0): Using 8 bits per RGB (8 bit DAC) [ 25.293] (--) RADEON(0): Chipset: "AMD Radeon HD 6310 Graphics" (ChipID = 0x9802) [...] [ 26.364] (II) RADEON(0): Output LVDS has no monitor section [ 26.364] (II) RADEON(0): Output HDMI-0 has no monitor section [ 26.370] (II) RADEON(0): Output VGA-0 has no monitor section [ 26.370] (WW) RADEON(0): 3 ZaphodHeads crtcs unavailable. Some outputs will stay off. [...] [ 26.381] (II) RADEON(0): Output LVDS connected [ 26.381] (II) RADEON(0): Output HDMI-0 disconnected [ 26.381] (II) RADEON(0): Output VGA-0 disconnected [...] When I copied those messages, only the laptop's display was active with a size of 1366x768, which is its exact physical size. When connecting a HDMI or VGA display (I'm using a TV which offers all those inputs), the output is colorful and exact, as it should be. I assume LVDS refers to the laptop's own screen. I also had X create a configuration file. The relevant section is this one: Section "Device" Identifier "Card0" Driver "radeon" BusID "PCI:0:1:0" EndSection So there seems to be only _one_ "graphics card", even though there are three outputs (internal, VGA analog, HDMI). What worries me most: The display was _fine_ before connecting a HDMI TV as external monitor! Combing back to what I once read (sorry, no source available, I cannot find it anymore): A suggestion was to use a specific tool (on the Mac) to force one of the two graphic "cards" to make the problem go away. Is this possible with X? If yes, what specific settings need to be applied? Any suggestions what to try? What to search for - maybe this kind of problem has a specific name? I have no idea what I should do, other than abusing this laptop as a poor desktop (external display, keyboard, mouse)... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...