Blogs

在用xrandr设置双屏幕扩展显示的时候,有可能会提示下面的错误:

xrandr: screen cannot be larger than 1680×1680 (desired size 3120×1050)

该错误说明Xorg的虚拟桌面不够大,可以通过使用Xorg.conf的Virtual指令更改虚拟桌面的大小。例如:

Section "ServerLayout"
    Identifier     "Xorg Configured"
    Screen      0  "Primary Screen" 0 0
EndSection

Section "Monitor"
    Identifier "Primary Monitor"
    Modeline "1400x900"  104.23  1400 1480 1632 1864  900 901 904 932  -HSync +Vsync
EndSection

Section "Screen"
    Identifier "Primary Screen"
    Monitor    "Primary Monitor"
    DefaultColorDepth 24
    SubSection "Display"
        Depth 24
        Modes "1400x900" "1024x768"
        Virtual 3120 1050
    EndSubSection
EndSection

Section "DRI"
    Mode 0666
EndSection
No votes yet
Tags:
  • 获取SMART信息: smartctl -a -d ata /dev/sda
  • 健康检查: smartctl -H /dev/sda
  • 查看错误: smartctl -l error /dev/sda
  • 打开SMART支持: smartctl -s on -d ata /dev/sda
No votes yet
Tags:

几天前,在一个没有X的机器上安装emacs23。操作系统应该是RHEL5。编译的时候会提示:找不到系统的alloca实现。出现类似下面的提示信息

configure: error: a system implementation of alloca is required

查看config.log发现出错原因是编译alloca测试程序时候加上了-lX11。事实上alloca是glibc提供的函数应该不需要-lX11。

configure:15318: checking for working alloca.h
configure:15345: gcc -o conftest   -O2  -D_BSD_SOURCE    -Wl,-znocombreloc  conftest.c -lX11   >&5

解决方法自然也很简单,就是编译的时候带上 --with-x=no :)

No votes yet
Tags:

I am doing ...

整理下载中…

1 week ago via web

Setup my microblog

1 week ago via web

Syndicate content