Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jul 2014 16:03:19 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Da Rock <freebsd-x11@herveybayaustralia.com.au>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: Xorg, Radeon and KMS problems
Message-ID:  <20140727140319.GA2754@slackbox.erewhon.home>
In-Reply-To: <53D4F46A.7010206@herveybayaustralia.com.au>
References:  <53D39B39.9010407@herveybayaustralia.com.au> <20140726141107.GA1382@slackbox.erewhon.home> <53D4D549.2040505@herveybayaustralia.com.au> <20140727120918.GA74913@slackbox.erewhon.home> <53D4F46A.7010206@herveybayaustralia.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

--Qxx1br4bt0+wmkIi
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jul 27, 2014 at 10:45:30PM +1000, Da Rock wrote:
> >>   Ok, haven't quite got it all in place yet - haven't had time to reco=
mpile
> >>   Xorg yet without hal.
> > Setting "AutoAddDevices" to "off" is probably sufficient. And you only
> > need to rebuild xorg-server AFAIK.
> I'll give the conf option a shot. Takes a little while on my system to=20
> build, and its building some big stuff atm like thunderbird and=20
> libreoffice, so next day is latest I'd get it going.

BTW, if you're updating ports, you might want to give the update to pkg-1.3=
=2E1
a miss for now if you're running on amd64. It segfaults on that platform.

> > Check if it is possible to disable one of the graphics chips in the BIO=
S.
> > That could be a last resort fix. AFAIK Xorg doen not have proper suppor=
t for
> > using two graphics cards or switching beteen them.
> Not that I'm aware of - HP take away a lot of fine tweaking options in=20
> bios for some stupid reason, and I went looking last time I was playing=
=20
> with the dual card setup and HD. I'll have another peek though.

You should be able to disable one of the cards using device.hints(5).

=46rom your pciconf output;

    vgapci0@pci0:1:5:0:    class=3D0x030000 card=3D0x1445103c chip=3D0x9712=
1002 rev=3D0x00
    hdr=3D0x00
        vendor     =3D 'Advanced Micro Devices [AMD] nee ATI'
        device     =3D 'RS880M [Mobility Radeon HD 4200 Series]'
        class      =3D display
        subclass   =3D VGA
        ...

    vgapci1@pci0:2:0:0:    class=3D0x030000 card=3D0x1445103c chip=3D0x68e4=
1002 rev=3D0x00
    hdr=3D0x00
        vendor     =3D 'Advanced Micro Devices [AMD] nee ATI'
        device     =3D 'Robson CE [AMD Radeon HD 6300 Series]'
        class      =3D display
        subclass   =3D VGA
        ...

So you have two =E2=80=9Cvgapci=E2=80=9D devices. E.g. to disable the HD 63=
00, put

    hint.vgapci.1.disabled=3D"1"

in /boot/device.hints and reboot. That should get rid of it.

Additionally (but unrelated), on a laptop you might want to set

    hw.pci.do_power_nodriver=3D3

in /boot/loader.conf to power-down all hardware that's not attached to a
driver. That might make your battery last longer.

> Who's looking at the support for multiple cards in Xorg then? Is there a=
=20
> wiki/blog or such I can follow, help out with?

Not sure if anybody is. This is something only found on some laptops as a
power-saving thing.

And since most Xorg development is done on Linux, a solution might very well
be Linux specific.


<snip xorg.conf manual>
> > But I guess you'll have to remove one of the cards from your xorg.conf.
> > to force Xorg to use the other one.
> This could be clearer. I think I tried playing with this to get it to do=
=20
> what I want, but I got muddled following this. Perhaps you might=20
> understand better - is this what it means?:
>=20
> Section "Device"
>      Identifier  "Card1"
>      Driver      "radeon"
>      BoardName   "Radeon HD 6300"
>      BusID       "PCI:2:0:0"
>      Option    "LVDS" "built-in"
Use this instead:
       Option    "Monitor-LVDS" "Monitor0"

But if you disable one of the chips, it might not be necessary.


Good luck!

Roland
--=20
R.F.Smith                                   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 5753 3324 1661 B0FE 8D93  FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0)

--Qxx1br4bt0+wmkIi
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJT1QanAAoJEED21dyjijPgP3oQAIjxWQ2LLZC1JveZEkyE+/XD
C09u6nycVjVBzkT7moDb+6sondV189yaQg3z5Xr5Xy0tTm1ARC7tpuP7yngqL+Io
pt6Nl5YZkmgHLclOYIi2VuS7FPYJ/46xnVUlS2VCyL/0rWZATXu2Y3zfgMa0By9T
wSQO6Ei5ElytYQYbyHa49llTB0+DDidIleVCZiGaOl0a+Mz85CRzR81H+qAh9nai
1crxIBy7sQXBhEGcySoVMY3eI+wnHwNjphVDEmGHmDAnfdtdhhpr4cfAoGaq3NzR
EHD591QeBTzrNPVIzHE1CwZhLeDVbHmmxlQVnhYJpU51+MdmymsGeJYypSdNbFM6
4GIXdqXzQUfVcEcS/kTRscDBR1YJ7otLumc/mnEWm10Rp+VtBTrE42JvCKWh3MC2
o8NlHJ9Xu/mPyG7UkuY59kfW/JMAlUrgamYQg4RjKtMNbXP+aRkw1ZotbBGP8Ouf
h0Ow6RWdj9QQDBcbtkCZ6fWB48liMNazzaMC5K3nknJcbqfjKh7KukcklKjPcV1Y
YzLx/kkEhZAbKV3J+DldR44A1OvMYHawBpoROlI5v5TRWlNsQgCdCCSNhGUCgIHL
gGA49m+pRJhsRSBuxhOLV0UNosPE/wUPEN8TcHwnhrT4HEGxLU6Moxj0j+GNkneP
iK6zuHaDB/ERhRrjezvz
=kY1i
-----END PGP SIGNATURE-----

--Qxx1br4bt0+wmkIi--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140727140319.GA2754>