web-dev-qa-db-ja.com

再起動後にリセットされたモニター解像度(1つのモニター)

モニターが1つしかないコンピューターがあります-仕様は次のとおりです。

Ubuntu 15.04-32ビット
 ProcessorIntel®Pentium(R)Dual CPU E2180 @ 2.00GHz×2 
 GraphicsIntel®G33 x86/MMX/SSE2
$ lspci -v | grep -i vga 
 00:02.0 VGA互換コントローラー:Intel Corporation 82G33/G31 Express Integrated Graphics Controller(rev 10)(prog-if 00 [VGA controller])
# lshw -class display
PCI(sysfs)
 * -display 
説明:VGA互換コントローラー
 producto:82G33/G31 Express Integrated Graphics Controller 
 fabricante:Intel Corporation 
 idfísico:2 
informacióndel bus:pci @ 0000:00:02.0 
versión:10 
 anchura:32ビット
 reloj:33MHz 
 capacidades:msi pm vga_controller bus_master cap_list rom 
configuración:driver = i915 latency = 0 
 recursos:irq:28 memoria:feb00000-feb7ffff ioport:e140(size = 8)memoria:d0000000-dfffffff memoria :fe900000-fe9fffff
$ xrandr 
画面0:最小8 x 8、現在1024 x 768、最大32767 x 32767 
 VGA1接続プライマリ1024x768 + 0 + 0(通常の左反転右x軸y軸)0mm x 0mm 
 1024x768 60.0 * 
 800x600 60.3 56.2 
 848x480 60.0 
 640x480 59.9 
 VIRTUAL1の切断(通常の左反転右x軸y軸)
$ Sudo xrandr --newmode "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync + vsync 
 $ Sudo xrandr --addmode VGA1 1680x1050_60.00 
 $ xrandr 
 
スクリーン0:最小8 x 8、現在1680 x 1050、最大32767 x 32767 
 VGA1接続プライマリ1680x1050 + 0 + 0(通常の左反転右x軸y軸)0mm x 0mm 
 
 1680x1050 60.0 * + 
 1024x768 60.0 
 800x600 60.3 56.2 
 848x480 60.0 
 640x480 59.9 
 1680x1050_60.00 60.0 
 
 VIRTUAL1切断(通常の左反転右x軸y軸)

これは動作します(解像度を変更します)、そして私はします

$ Sudo reboot

開始時に以前の解像度と次のメッセージが表示されます

No se pudo aplicar la configuración almacenada para los monitores
none of the selected modes were compatible with the possible modes:
Trying modes for CRTC 63 CRTC 63:
trying mode 1024x768@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 63: trying mode 800x600@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 63: trying mode 800x600@56Hz with output at 1680x1050@60Hz (pass 0)
CRTC 63: trying mode 848x480@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 63: trying mode 640x480@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 63: trying mode 1024x768@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 63: trying mode 800x600@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 63: trying mode 800x600@56Hz with output at 1680x1050@60Hz (pass 1)
CRTC 63: trying mode 848x480@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 63: trying mode 640x480@60Hz with output at 1680x1050@60Hz (pass 1)
Trying modes for CRTC 64
CRTC 64: trying mode 1024x768@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 64: trying mode 800x600@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 64: trying mode 800x600@56Hz with output at 1680x1050@60Hz (pass 0)
CRTC 64: trying mode 848x480@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 64: trying mode 640x480@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 64: trying mode 1024x768@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 64: trying mode 800x600@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 64: trying mode 800x600@56Hz with output at 1680x1050@60Hz (pass 1)
CRTC 64: trying mode 848x480@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 64: trying mode 640x480@60Hz with output at 1680x1050@60Hz (pass 1)
Trying modes for CRTC 65
CRTC 65: trying mode 1024x768@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 65: trying mode 800x600@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 65: trying mode 800x600@56Hz with output at 1680x1050@60Hz (pass 0)
CRTC 65: trying mode 848x480@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 65: trying mode 640x480@60Hz with output at 1680x1050@60Hz (pass 0)
CRTC 65: trying mode 1024x768@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 65: trying mode 800x600@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 65: trying mode 800x600@56Hz with output at 1680x1050@60Hz (pass 1)
CRTC 65: trying mode 848x480@60Hz with output at 1680x1050@60Hz (pass 1)
CRTC 65: trying mode 640x480@60Hz with output at 1680x1050@60Hz (pass 1)
3
Tabula Rasa

xrandr構成をスタートアップファイルに追加して、再起動/起動時に目的の解像度を取得する必要があります。

  • xrandr.shなどのbashスクリプトを作成し、xrandrコマンドをその中に配置します。
#!/ bin/bash 
 xrandr --newmode "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync + vsync 
 xrandr --addmode VGA1 1680x1050_60.00 
 xrandr --output VGA1 --mode 1680x1050_60.00
  • chmod +x xrandr.shでスクリプトを実行可能にします

  • ダッシュで「スタートアップアプリケーション」を検索して実行し、スクリプトをスタートアップアプリケーションとして追加します。

これで、アカウントにログインするたびにコマンドが実行されます。

3
TellMeWhy