“锁定屏幕”上的屏幕分辨率更改

“锁定屏幕”上的屏幕分辨率更改

我遇到了一个奇怪的问题,已经困扰了我一两个星期了。

  • 我在 Xubuntu 18.04(最近更新)上有两个帐户
  • 当我登录其中任何一个帐户时,屏幕分辨率都可以正常工作(在登录屏幕上也是如此)
  • 如果我“锁定屏幕”(即,直接返回登录状态而不注销),屏幕将无法被识别,并且使用非常小的分辨率。此错误会影响登录屏幕和其他帐户。
  • 如果我回到第一个连接的帐户,屏幕仍然可以正常工作。
  • 如果我从第一个帐户注销(而不是使用“锁定屏幕”),则没有任何错误

知道是什么原因造成的吗?我在 Google 上搜索过,但至今无果。

谢谢 !

编辑:当出现错误时,屏幕似乎完全停止被识别。

漏洞出现之前:

~ xrandr             
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     60.00*+  59.99    59.94    50.00    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x1200     60.00  
   1440x900      59.89  
   1366x768      59.79  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)

修复漏洞后:

~ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 640 x 480, maximum 640 x 480
default connected 640x480+0+0 0mm x 0mm
   640x480       73.00* 

答案1

我在 Ubuntu 18.04 上使用 GNOME 时遇到了同样的问题。检查监视器.xml文件中是否存在不一致。我两次看到“相同”的显示器,但设置不同。删除除一个之外的所有内容。

纳米.config/监视器.xml

我的文件现在看起来像这样:

<monitors version="2">
  <configuration>
    <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>1</scale>
      <primary>yes</primary>
      <monitor>
        <monitorspec>
          <connector>DP-2</connector>
          <vendor>DEL</vendor>
          <product>DELL U2515H</product>
          <serial>9X2VY5B40UHL</serial>
        </monitorspec>
        <mode>
          <width>2560</width>
          <height>1440</height>
          <rate>59.9510498046875</rate>
        </mode>
      </monitor>
    </logicalmonitor>
  </configuration>
 </monitors>

我希望这有帮助。

答案2

我遇到了完全相同的问题,并且能够按照中的解决方法步骤解决该问题Launchpad Bug #1757202:“nvidia-driver-390 一次只能由一个用户使用”

在我的情况下,它是一块 Nvidia 显卡,默认情况下似乎只有一个用户可以使用 Nvidia 驱动程序。由于锁屏以非用户身份运行,因此它默认使用不同的驱动程序和分辨率。

解决方法是创建一个好的旧的 /etc/X11/xorg.conf,以便所有用户现在能够使用相同的驱动程序/设置。

适用于 Xubuntu 18.04.4 (Nvidia GF119/GeForce GT 520)。

附言:我知道这个帖子很旧,但是问题仍然存在,也许有人认为这个答案有用:)

相关内容