LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1489|回复: 8

1024x600该怎么写虚拟桌面 ?

[复制链接]
发表于 2009-1-24 08:09:18 | 显示全部楼层 |阅读模式
我用的是1024x600的上网本,头痛的问题是一些程序总是超过屏幕的而看不到下面几个键是什么,  弄得我只能嗐猜下面几个键是什么用Tab键按过去,这显然不是办法. 想从/etc/X11/xorg.con里面改, 但总不成功。1024x600该怎样做虚拟桌面? 或者能实现象Ubuntu那样分开几个工作区,这样从另一个工作区能看到目前窗口不能看到的部分。

我用的是xfce4的桌面.

/etc/X11/xorg.conf 里面是这样写的, 里面写的virtual 好象根本不起作用.

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        HorizSync    31.5 - 31.5
        VertRefresh  50.0 - 70.0
EndSection

Section "Device"

Identifier  "Card0"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName   "Mobile 945GME Express Integrated Graphics Controller"
        Option            "Monitor0"
        BusID       "CI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth     24

        SubSection "Display"
                Modes "1024x768" "1024x600" "800x600" "640x480"
                Virtual  1024 768
                Depth     16
        EndSubSection
        SubSection "Display"
                Modes "1024x768" "1024x600" "800x600" "640x480"
                Viewport   0 0
                Virtual  1024 768
                Depth     24
        EndSubSection

EndSection
发表于 2009-1-24 08:32:10 | 显示全部楼层
请参见http://www.oceanboo.cn/read.php?227
设置正确的DPI一部分
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-24 10:57:49 | 显示全部楼层
谢谢回复。但我不是很明白, 这篇文章是让我设正确的dpi, 不是虚拟的. 加上去重启xwindows没什么变化.

我在/etc/X11/xorg.conf里面加上了

Section "Monitor"
   ......
         DisplaySize   220 133  
   ......
EndSection


现在输出是:
~ $ xdpyinfo | grep resolution
resolution:    117x117 dots per inch
~ $ xdpyinfo | grep dimensions
dimensions:    1024x600 pixels (220x133 millimeters)

有没有办法弄成Ubuntu那样的把一个窗口分在不同工作区?
回复 支持 反对

使用道具 举报

发表于 2009-1-24 11:12:04 | 显示全部楼层

不好意思,我没看清楚
虚拟桌面设置xfce就可以了
好像xfdesktop可以,我没用过xfce,不太清楚
你可以查查手册
回复 支持 反对

使用道具 举报

发表于 2009-1-24 18:58:10 | 显示全部楼层
  1. Modes "1024x768" "1024x600" "800x600" "640x480"
复制代码


Modes 行的先后有区别的,把 "1024x768" 移到 "1024x600" 后面或者删掉试试

另外,提供一个曲线救国的方法,大部分 WM 都支持按住 Alt 然后用鼠标左键抓住窗体任何地方拖动的功能。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-25 07:19:01 | 显示全部楼层
谢谢楼上,虚拟桌面还是不行。开始“曲线救国”了。

不知哪位大侠能讲解一下Ubuntu里把一个程序的窗口分开到不同的工作区间是怎么实现的。
回复 支持 反对

使用道具 举报

发表于 2009-1-25 07:44:30 | 显示全部楼层
Post by cliffordli;1941298
谢谢楼上,虚拟桌面还是不行。开始“曲线救国”了。

不知哪位大侠能讲解一下Ubuntu里把一个程序的窗口分开到不同的工作区间是怎么实现的。


抱歉,是我理解错你的意思,原来你是想要虚拟桌面的效果
man xorg.conf 里有这么一句,不知道是不是原因,或者会不会因为能用的显存不够大(不知道 X 的具体实现是否有这个要求)

  1.        Virtual  xdim ydim
  2.               This  optional  entry specifies the virtual screen resolution to
  3.               be used.  xdim must be a multiple of either 8  or  16  for  most
  4.               drivers,  and  a multiple of 32 when running in monochrome mode.
  5.               The given value will be rounded down if this is  not  the  case.
  6.               Video  modes  which are too large for the specified virtual size
  7.               will be rejected.  If this entry is  not  present,  the  virtual
  8.               screen resolution will be set to accommodate all the valid video
  9.               modes given in the Modes entry.  [color=red]Some drivers/hardware  combina‐
  10.               tions  do not support virtual screens.  Refer to the appropriate
  11.               driver-specific documentation for details.[/color]
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-1-25 10:20:28 | 显示全部楼层
我觉得这个应该是WM的活吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-25 11:41:23 | 显示全部楼层
/var/log/Xorg.0.log里面最后几句是:
...
(II) intel(0): Printing DDC gathered Modelines:
(II) intel(0): Modeline "1024x600"x0.0   45.00  1024 1072 1104 1200  600 603 609 625 -hsync -vsync (37.5 kHz)
(II) intel(0): EDID vendor "CPT", prod id 1220
(EE) intel(0): Mode 1280x1024 does not fit virtual size 1024x768 - internal error
exaCopyDirty: Pending damage region empty!

我也没设成1280x1024, 但它自己自动就跑到这个分辨率。但真要设成1024x768, 它还是不认帐.

我现在感兴趣的是怎么实现把一个程序的窗口分在不同的工作区。我用 Ubuntu启动盘启动电脑可以实现这个, 但也看不出其/etc/X11/xorg.conf有什么特别.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表