Yuan Yijun (bbbush) wrote,
Yuan Yijun

笔记本电脑包含了显示屏,键盘和鼠标,通常还包含一个 VGA 输出接口; 人们通常都会买外接的键盘、鼠标,有时还会买外接的显示器。要是在需要时能让两个人同时用机器就好了。

Winxp 下有这样的软件,搜索到的是 BeTwin。这种作法被称为“一拖二”。

Linux 下面怎么搞呢,依稀记得 ConsoleKit 与此有关。

在 fp.o 看 fedora 7 新特性中,ConsoleKit 用于 FastUserSwitching。在 http://fedoraproject.org/wiki/Desktop/FastUserSwitching 页面最后,这样写道:
Another feature that can benefit from ?ConsoleKit is Multi Seat, e.g. the process of having multiple monitors / keyboards attached
* http://en.wikipedia.org/wiki/Multiterminal
and, indeed, ?ConsoleKit have been designed with this in mind. Multi seat is not something that is currently targeted for Fedora 7.

然后才知道,搜索条件应该是 multiseat/multiterminal, 并且几乎所有方法都是 C3SL, Center for Scientific Computing and Free Software http://www.c3sl.ufpr.br/en/ 搞出来的。太猛了!

有一篇 step by step 的文章很合适,也是用的目前推荐的 Xephyr 方法。它应用了双头输出的显卡,分别是 DVI 和 VGA 输出,和笔记本电脑的情形很象。http://netpatia.blogspot.com/2006/09/multiseat-computer-with-ubuntu.html

等到有了新的显示器时要试一下。还不确定笔记本的 VGA 输出真的可以这样用。不过,既然上次 Xrandr 扩展屏幕成功了,说明 VGA 是可以独立控制的(我本来以为这个 VGA 端口的信号总是和 LCD 屏幕的完全一样,所以只能用来连接投影仪,没想到真的可以用来扩展屏幕大小。扩展屏幕时的设置是 1 display, 1 screen,如果配置为 2 screens 就可以用 Xephyr 实现 multi seat 了,但是 Xrandr 与此没有概念上的冲突吗?)

如果新的显示器可以用 Xrandr 自动配置,然后 fast user switching 又可以在需要时运行一个 GDM,那么就会比在 xorg.conf 中记录所有的设备和组合,在 gdm.conf 中写固定的配置要简单灵活多了。
Tags: fedora

  • BP 1st year

    Basic Program is a reading program from UChicago. The information can be found here [1] and currently it is open for signing up for the next year…

  • 2020

    Last time I wrote a review was in 2018, about 2017. Or maybe I wrote something elsewhere, maybe on Twitter? It was hard to write something freely…

  • Crime and Punishment

    As a step to improve the illiterate situation I joined the Basic Program this year. It had been in my mind for a couple years, but glad this time I…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment