Chase Down My Dream

Life, Dream

  • Home
  • About
  • Sample Page
Twitter Facebook Sina RSS
Tag Archives: Seamless Mode

VirtualBox Mouse Integration && Seamless Mode

Posted on March 1, 2009 by stingrey
No Comments
见archlinux-2009.2 release了,于是在VirtualBox里就把arch重新装了一遍。然后安装X Window。又见xfce新版也发布了,恰好好久没有玩过xfce,于是在4m显存分配的情况了跟风装了个xfce。

Mouse Integration
用startx进入xfce,这下囧了,发现鼠标虽然被VB识别了,当时不能在xfce里使用……看了下状态栏,发现mouse integration木有启用,据说只要装了guest addition就可以了,问题在于我在装完X的时候已经装过guest addition了,并且模块也加载过了。必须wiki了……
幸好在archlinux wiki上就找到了相关的solution,据说是xorg 1.5中的默认设置问题。
Solution如下,找到识别鼠标设备的那段(如果没有,可以自己添加),修改如下,让系统能够识别VB的鼠标设备:

===============================================Section "ServerLayout"

Identifier     "X.org Configured"   Screen      0  "Screen0" 0 0   InputDevice    "Mouse0" "CorePointer"   InputDevice    "Keyboard0" "CoreKeyboard"EndSection================================================Section InputDevice

Identifier "Mouse0"   Driver "vboxmouse"   Option "Protocol" "auto"   Option "Device" "/dev/input/mice"   Option "ZAxisMapping" "4 5 6 7"EndSection================================================

顺便提供进入桌面session鼠标键盘被系统冻结的solution:

================================================Section "ServerLayout"       . . .       Option "AutoAddDevices" "False"  <--------这里如果是"true"就会使得鼠标键盘没有响应       . . .EndSection================================================

Seamless Mode
重新配置系统后发现无缝模式也不能使用了。无缝模式可是好东西啊,据说1.5版出来
的时候只支持windows的guest,现在应该支持各个平台了,这种模式来回切换host和guest
系统灰常方便,感觉就是在一个平台下工作。
于是重新安装guest addition,在安装过程中终于出现惊喜的提示,说是由于xorg设置了
固定的最大分辨率,所以不能启用n多功能……那么拿xorg开刀吧,直接把xorg.conf中的
Screen段和Monitor段删除,反正虚拟机下这些设置没有太大的用处。
重启X Server,Seamless Mode came back!
发现给xfce分配4m显存果然吃不消……

Categories: Linux and Windows | Tags: Mouse Integration, Seamless Mode, VirtualBox
  • Recent Posts

    • 一年了,我回来了
    • Un Senso Di Te
    • 好雨时节
    • 虎年来在追昔时
    • 无题
  • Recent Comments

    • hzqtc on 一年了,我回来了
    • aaahexing on Un Senso Di Te
    • RainFlying on 好雨时节
    • Stingrey on 秦时明月,侠骨柔情
    • hzqtc on 被拒了~
  • Archives

    • November 2011
    • June 2010
    • April 2010
    • February 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • July 2008
  • Categories

    • C#
    • Google App Engine
    • Hello Program
    • Linux
    • Linux and Windows
    • Micolog
    • Misc
    • Mojo
    • Music and Movie
    • Windows
    • 另一个自己
    • 玩意儿
    • 生活
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
© Chase Down My Dream. Proudly Powered by WordPress | Nest Theme by YChong