Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522500 - x11-drivers/xf86-video-intel-2.99.916 ignores DisplaySize in Monitor section in xorg.conf.d
Summary: x11-drivers/xf86-video-intel-2.99.916 ignores DisplaySize in Monitor section ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-10 10:21 UTC by headcrabextra
Modified: 2015-02-23 01:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Xorg.0.log with 2.99.916 (2.99.916.Xorg.log,17.85 KB, text/plain)
2014-09-11 01:42 UTC, headcrabextra
Details
Xorg.0.log with 2.99.911-r1 (2.99.911-r1.Xorg.log,17.36 KB, text/plain)
2014-09-11 01:43 UTC, headcrabextra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description headcrabextra 2014-09-10 10:21:40 UTC
I have this file in xorg.conf.d:

# cat /etc/X11/xorg.conf.d/90-monitor-custom-dpi.conf 
Section "Monitor"
        Identifier      "<default monitor>"
        DisplaySize     294 165   # set manually by me
EndSection


On xf86-video-intel-2.99.914 and all previous versions I tried it works fine - dpi is set to this value.
2.99.916 ignores ignores this and starts X with 96 dpi, however I can still set it manually (with "startx -- -dpi 166" or "xrandr --dpi 166").

Reproducible: Always
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2014-09-10 19:23:15 UTC
Could you attach _both_ full Xorg.<N>.log for .914 and .916?

Thanks
Comment 2 headcrabextra 2014-09-11 01:42:49 UTC
Created attachment 384542 [details]
Xorg.0.log with 2.99.916
Comment 3 headcrabextra 2014-09-11 01:43:13 UTC
Created attachment 384544 [details]
Xorg.0.log with 2.99.911-r1
Comment 4 headcrabextra 2014-09-11 01:43:55 UTC
I added xorg logs, except I use 2.99.911-r1 instead of 2.99.914 because later versions have other problems. I hope that's okay.
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2014-09-11 17:59:16 UTC
.911:

[    20.299] (II) intel(0): Output eDP1 using monitor section <default monitor>
[    20.299] (--) intel(0): Found backlight control interface acpi_video0 (type 'firmware') for output eDP1
[    20.299] (II) intel(0): Output VGA1 has no monitor section

.916:

[    20.295] (II) intel(0): Output eDP1 has no monitor section
[    20.295] (--) intel(0): Found backlight control interface acpi_video0 (type 'firmware') for output eDP1
[    20.295] (II) intel(0): Enabled output eDP1
[    20.295] (II) intel(0): Output VGA1 using monitor section <default monitor>

Basically, something in the driver probably decided that VGA1 was now the default output, and so your monitor section applies to it.

From xorg.conf(5):

       With  RandR  1.2-enabled  drivers, monitor sections may be tied to
       specific outputs of the video card.  Using the name of the output
       defined by the video driver plus the  identifier of  a monitor section,
       one associates a monitor section with an output by adding an option to
       the Device section in the following format:

       Option "Monitor-outputname" "monitorsection"

       (for example, Option "Monitor-VGA" "VGA monitor" for a VGA output)

So try using this in your xorg.conf in your Device section :

        Option          "Monitor-eDP1" "<default monitor>"
Comment 6 headcrabextra 2014-09-12 04:34:33 UTC
(In reply to Rémi Cardona from comment #5)
> So try using this in your xorg.conf in your Device section :
> 
>         Option          "Monitor-eDP1" "<default monitor>"

It helped, .916 chooses dpi correctly now.
So the question is:
Is .916 choosing VGA1 as default considered a bug or is it undefined what is default so I just got lucky that previous versions chose my actual monitor as default?
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2014-09-12 07:15:54 UTC
(In reply to headcrabextra from comment #6)
> (In reply to Rémi Cardona from comment #5)
> > So try using this in your xorg.conf in your Device section :
> > 
> >         Option          "Monitor-eDP1" "<default monitor>"
> 
> It helped, .916 chooses dpi correctly now.
> So the question is:
> Is .916 choosing VGA1 as default considered a bug or is it undefined what is
> default so I just got lucky that previous versions chose my actual monitor
> as default?

08:36 < remi`> ickle: is the behavior seen by this user intended? 
               https://bugs.gentoo.org/show_bug.cgi?id=522500#c6
08:36 < remi`> hi btw :)
08:36 < remi`> (in a nutshell, the default output seems to have changed)
08:38 < ickle> yes, it is intentional. we try to put panels first
08:39 < ickle> for monitor specific overrides, it is better to use the monitor specific sections or 
               Primary
08:39 < ickle> (i.e. it was an oversight that we hadn't done that in the past :)
08:42 < ickle> hmm, odd.
08:42 < ickle> eDP1 should be still first though
08:43 < ickle> hmm, no that sorting comes after that
08:48 < ickle> remi`: 1aefd16964c30264c05d136cef3e1e7de5eb9c53

So no, you weren't lucky. It was intended, and there was a regression. One that is now fixed in master by the mentioned sha1.

So it'll be fixed in the next upstream release.
Comment 8 Matt Turner gentoo-dev 2015-02-23 01:04:16 UTC
I expect this was fixed in 917.