From owner-freebsd-questions@freebsd.org Sat Nov 30 20:38:34 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 5AF141B74B2 for ; Sat, 30 Nov 2019 20:38:34 +0000 (UTC) (envelope-from dvoich@aim.com) Received: from sonic314-14.consmr.mail.bf2.yahoo.com (sonic314-14.consmr.mail.bf2.yahoo.com [74.6.132.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47QNWD4d33z4TZD for ; Sat, 30 Nov 2019 20:38:32 +0000 (UTC) (envelope-from dvoich@aim.com) X-YMail-OSG: Fgpm6TUVM1lelDcG9vl1EUzTZZgD6pHtalPGqOWAnSbN4pfOoM4DzCImK5TxHow 90KyPLE7acrkNcc1ui.aABVJw2WgpfxdAb.kjlRaaDxkwLSPTx3QmbtuKe1zKzjnqzGndcFVQIlp esopCQvy6M.bVmmjSjuvte_5keJ3_Wgk0yoYymrkjMdSmGNOzwp41ykYtzfqp8R9EIqOdCh4wJmP LBtfbPIhZqpUckCtZbZp72xtvVKxsV_wpCJdKX9ZX4SNMXgHl.ED6jmaGuWqLJDlynhtHcdhmteA cGecW7t.rwuCQQiEWWgBd.FjJCtYYvDcBfFPHv_NnXDP0jwY5PUG9aHgBRYZ7kfJmX69uPVl9qJT Y_Iuo6tIQfuqsWQGV24ETPDAgDQf7eaFMIFPA9ZkTsblgn2dWsAHRe0smMH73dWo0Ayp0YcYSmzv Uz0K6231Oq4P2PL49LfeAxTvsA3F.LLm8n9IF.DO6UaRoSQ0lxp89rdUicfHM_ZhuPSP4Ac92S7Z 3XYxKeqbIh8tlkKsetartiFUPCOzcT7K8r2zDrGP9ZhC4YQMGFcLJCBKskIdrvR3w28OX4zkZC_f cR2_VI8NyFcI_GL3bdLo1_g18W76Ga_oiMxjpulKxZV_wGENvbxy2w42PqciAjzKMgyB82ui1w4L ZMxdrUxZnyiUdTMpy9oeAYXNDX49YgyDxS5C_1OKgRToMs3i3yBbTlLQ6lc37uO2gkq74MQtyaXY rv1Q6tSchvlJGysWwRPf5I0jnCwAVasFRVzUDHEqrUeFp8m8dAkMHzEevn2ERCq.sgZtI5i6VsjV QJW8u0TXqnCZQSMuOipBJbAMq1h7_lf9BhUR4eky3CZEabSpjibSt2MEjo8Y.rC.MbZEHus960ke 6nGtiwBF2lNQ_aQElMktM8QGwTFSu1Um_Zw9Bce3rf5IKYbIkZFGrv12J00WTFEkxuGXlrrQo_k3 Fkvwajbbtj9QsuAHYEte.n_yWLx.VvBxE8o686gGbi7vwLnh0kL.49m5f4N1wiEdgKCUWOnUrVOI Mi6ai5GJIDzrDZDM6tBkhGpARDaztzIrADcnkoAD3BeI1L3XYhDt0G213nZr6TAQicBH.FtNRRq5 jZo249AgdxovkD55fA.X1aBLLpisvMQHUCQC4.151xNMpqAweG6SjV4ozMxUOsC5.NJW9anG3RIl HeEUqWwx6mtqVzT1VTUsRsU7MPI_lh2UUV2ZReUC1t6QxyxQn3gTbab5wO678A7e5H46OrTI6XMf _xnI9JyRSIwPywvxHbYnElvjA6fH0.IYu9EmvCbE8oCnBwr_g0NzoOjS1WM3DlAyhSUkR8X32blL fRY8fP8GbhKafyCxvboX4X2qaLNVW5sKSm9Z5jsFo8xhEargmDuTFwEI92FCSbA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.bf2.yahoo.com with HTTP; Sat, 30 Nov 2019 20:38:31 +0000 Received: by smtp408.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID bbffdf7a70eb445f41b2252e72e80d3d; Sat, 30 Nov 2019 20:38:25 +0000 (UTC) Date: Sat, 30 Nov 2019 15:38:24 -0500 From: "Vlad D. Markov" To: Polytropon Cc: FreeBSD Questions Subject: Re: How to force X to use a specific GPU / output Message-Id: <20191130153824.3221ff6da9449dc34727e7c7@aim.com> In-Reply-To: <20191130210239.ff69c8a2.freebsd@edvax.de> References: <20191130210239.ff69c8a2.freebsd@edvax.de> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47QNWD4d33z4TZD X-Spamd-Bar: / X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[aim.com:s=a2048]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:74.6.128.0/21]; FREEMAIL_FROM(0.00)[aim.com]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; NEURAL_SPAM_MEDIUM(0.11)[0.106,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[aim.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[124.132.6.74.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[aim.com,reject]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(0.29)[0.293,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[aim.com]; ASN(0.00)[asn:26101, ipnet:74.6.128.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[ip: (3.96), ipnet: 74.6.128.0/21(1.35), asn: 26101(1.08), country: US(-0.05)]; 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:38:34 -0000 On Sat, 30 Nov 2019 21:02:39 +0100 Polytropon wrote: > 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, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" I use a little script to select which monitor to use. Is that what you are looking for? #set -x intern=LVDS1 extern=VGA1 if xrandr | grep -q "$extern connected"; then xrandr --output "$intern" --off --output "$extern" --auto # echo "turning on external" else xrandr --output "$extern" --off --output "$intern" --auto # echo "turning on internal" fi -- Every gun that is made, every warship launched, every rocket fired signifies in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. This is not a way of life at all in any true sense. Under the clouds of war, it is humanity hanging on a cross of iron. -- Dwight D. Eisenhower, April 16, 1953