Solved Resolution lost after upgrade

After a recent pkg upgrade I seem to have lost my usual video resolution.

I'm using an Intel HD 4000 with a Dell monitor with a native resolution of 2560x1440. Previously I had to modify the ServerFlags Blanktime to 10 and OffTime to 10 and I got the maximum resolution, albeit at a slower refresh rate.

After the upgrade the maximum I get is 1920x1200, but it defaults to 1920x1080.

I'm using Xorg 1.20.8 (built on 12.1-RELEASE-p7) running on 12.1-RELEASE-p8.

Looking at the Xorg.0.log I see that it first probes the display and gets all the resolutions, without the native resolution. Later on it does this again, seven more times, and does get the native resolution, but this seems to be ignored and is not shown in the output of xrandr.

If anyone has any insights into this I would be very grateful as my windows are now huge.
 
After a recent pkg upgrade I seem to have lost my usual video resolution.

I'm using an Intel HD 4000 with a Dell monitor with a native resolution of 2560x1440. Previously I had to modify the ServerFlags Blanktime to 10 and OffTime to 10 and I got the maximum resolution, albeit at a slower refresh rate.

After the upgrade the maximum I get is 1920x1200, but it defaults to 1920x1080.

I'm using Xorg 1.20.8 (built on 12.1-RELEASE-p7) running on 12.1-RELEASE-p8.

Looking at the Xorg.0.log I see that it first probes the display and gets all the resolutions, without the native resolution. Later on it does this again, seven more times, and does get the native resolution, but this seems to be ignored and is not shown in the output of xrandr.

If anyone has any insights into this I would be very grateful as my windows are now huge.
Could this has something to do with drm-kmod or drm-kmod-legacy?
 
  1. You have x11-drivers/xf86-video-intel &
  2. graphics/drm-kmod installed?
  3. you have sysrc -v kld_list | grep /boot/modules/i915kms.ko (i.e. drm-kmod from ports)
  4. pkg update && pkg upgrade
  5. You can try to set Option "ReprobeOutputs" "true" in your /usr/local/etc/X11/xorg.conf.d/intel-hd.conf. The man page intel(4) says: this is a workaround, if you ever need this, please file in a bug report.
  6. If this does not help, you can set the resolution manually in your /usr/local/etc/X11/xorg.conf.d/monitors.conf:
    Code:
    Section "Monitor"
    Identifier "<external TFT [Dell]>"
    # If you coment out the next two lines, this will match any monitor...
    VendorName "DELL" # Dell
    ModelName "81d" # You can grep(1) these values from /var/log/Xorg.0.log
    Option "PreferedMode" "2560x1440"
    EndSection
 
Thanks for the suggestions. Unfortunately none of it makes any difference. This setup has been working for some years now without issue, so this has come as a bit of a surprise after just a pkg upgrade.

It seems that X does talk to the monitor, but the results seem a bit strange. Here's the output from xrandr:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
VGA-1 disconnected primary (normal left inverted right x axis y axis)
HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
1920x1200 59.95
1920x1080 60.00*
1600x1200 60.00
1680x1050 59.88
1280x1024 75.02 60.02
1280x800 59.91
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
720x400 70.08
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
2560x1440 (0x11e) 146.270MHz -HSync +VSync
h: width 2560 start 2680 end 2944 total 3328 skew 0 clock 43.95KHz
v: height 1440 start 1441 end 1444 total 1465 clock 30.00Hz

The required resolution seems to have been attached to some strange fictitious output. The motherboard only has one HDMI.
 
The answer was actually very simple: I had calls to xrandr in .xinitrc that added a modeline, then added the mode to my output, then set the mode. For some reason the name of the output got changed from HDMI1 to HDMI-1. This was enough to stop it all working and meant that I had to go and re-learn how to configure X before I could find the issue.
 
Usually Xorg's automagic is fine & does not need any manual configuration (for simple standard setups). Try without any manual configuration in /usr/local/etc/X11/xorg.conf.d or your $HOME & if that does not succeed, consider to file a bug report.
 
  • Like
Reactions: a6h
Back
Top