Xubuntu 14.04:屏幕分辨率1440×900,没有xorg.conf或lightdm.conf

所以我现在很困惑,因为我为屏幕分辨率问题阅读了很多不同的解决方案,但它们都不适用于我的情况(我认为)。

所以我正在运行Xubuntu 14.04 x64并且无法让我的LG Flatron W1934S适合该系统。

cvt输出:

linuxdev@linux-dev-pc:~$ cvt 1440 900 # 1440x900 59.89 Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz Modeline "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync 

至于现在屏幕使用以下几行完美地工作

 $: xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync $: xrandr --addmode VGA1 1440x900_60.00 $: xrandr --output VGA1 --mode 1440x900_60.00 

在目前的情况下:

 linuxdev@linux-dev-pc:~$ xrandr -q Screen 0: minimum 320 x 200, current 1440 x 900, maximum 32767 x 32767 VGA1 connected 1440x900+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1440x900 59.9 1024x768 60.0 800x600 60.3 56.2 848x480 60.0 640x480 59.9 1440x900_60.00 59.9* VIRTUAL1 disconnected (normal left inverted right x axis y axis) 

LSHW显示输出:

 *-display description: VGA compatible controller product: 82945G/GZ Integrated Graphics Controller vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 version: 02 width: 32 bits clock: 33MHz capabilities: msi pm vga_controller bus_master cap_list rom configuration: driver=i915 latency=0 resources: irq:16 memory:fe980000-fe9fffff ioport:dc00(size=8) memory:d0000000-dfffffff memory:fe940000-fe97ffff 

现在是个大问题; 如何为它创建永久记录?

我到现在为止尝试的是查看“xorg.conf”,升级后不再存在。 当我手动创建’xorg.conf’时,系统会崩溃并且不再启动到GUI中。 通过终端,我需要删除’xorg.conf’以使其再次以低分辨率启动到正常状态。

另外’lightdm.conf’找到或调整起来非常麻烦,所以我的选项目前运行得非常低。 (我找到的唯一的lightdm.conf位于/ etc / init,但是从文件的输出我没有线索在哪里或者编辑什么)

/etc/init/lightdm.conf输出:

 linuxdev@linux-dev-pc:~$ cat /etc/init/lightdm.conf # LightDM - light Display Manager # # The display manager service manages the X servers running on the # system, providing login and auto-login services # # based on gdm upstart script description "LightDM Display Manager" author "Robert Ancell " start on ((filesystem and runlevel [!06] and started dbus and plymouth-ready) or runlevel PREVLEVEL=S) stop on runlevel [016] emits login-session-start emits desktop-session-start emits desktop-shutdown script if [ -n "$UPSTART_EVENTS" ] then # Check kernel command-line for inhibitors, unless we are being called # manually for ARG in $(cat /proc/cmdline); do if [ "$ARG" = "text" ]; then plymouth quit || : stop exit 0 fi done [ ! -f /etc/X11/default-display-manager -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/bin/lightdm" -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/lightdm" ] || { stop; exit 0; } if [ "$RUNLEVEL" = S -o "$RUNLEVEL" = 1 ] then # Single-user mode plymouth quit || : exit 0 fi fi exec lightdm end script post-start script sleep 5 clear > /dev/tty7 end script post-stop script clear > /dev/tty7 sleep 1 if [ "$UPSTART_STOP_EVENTS" = runlevel ]; then initctl emit desktop-shutdown fi end script 

感谢阅读和最终回复!

很好的东西。

我有一些问题让我的第二台显示器保持在正确位置。 在启动时,即使我将它们保存在特定位置,系统也会自动尝试镜像我的屏幕。 我认为这与加载到上次使用的不同分辨率有关(因为它尚未通过xrandr添加)。

我能够通过额外的步骤解决我的问题。 在我的桌面设置了我想要的(即添加新模式并初始化它)之后,我安装了“arandr”并将我当前的桌面设置保存到单行shell命令中。 然后最后的脚本确保我的桌面每次都出现在正确的位置。 我的完整脚本现在在自动启动时运行,并完美地在我的Kubuntu设置中运行。

 xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync xrandr --addmode VGA1 1280x1024_60.00 xrandr --output VIRTUAL1 --off --output DP3 --off --output DP2 --off --output DP1 --off --output HDMI3 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI2 --off --output HDMI1 --off --output VGA1 --mode 1280x1024_60.00 --pos 1920x104 --rotate normal 

我希望在这种情况下这有助于任何人。