|
|
编译内核:
将以下选项编译进内核。
在“Device Drivers —>Graphics support —>Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) —>”下选中相应显卡的“Enable modesetting*”项,例如我的Intel i915就是“Enable modesetting on intel by default”;
取消“Device Drivers —>Graphics support —>Support for frame buffer devices —>”下的frame buffer驱动,例如“VESA VGA graphics support”。
编译xorg-server:
添加“x11” overlay,然后升级。
中间可能会遇到以下错误:- grep: /usr/lib64/libxcb-xlib.la: No such file or directory
- /bin/sed: can’t read /usr/lib64/libxcb-xlib.la: No such file or directory
- libtool: link: `/usr/lib64/libxcb-xlib.la’ is not a valid libtool archive
- make[2]: *** [libXrandr.la] Error 1
- make[2]: Leaving directory `/var/tmp/portage/x11-libs/libXrandr-1.2.99.4/work/libXrandr-1.2.99.4/src’
- make[1]: *** [all-recursive] Error 1
- make[1]: Leaving directory `/var/tmp/portage/x11-libs/libXrandr-1.2.99.4/work/libXrandr-1.2.99.4′
- make: *** [all] Error 2
- *
- * ERROR: x11-libs/libXrandr-1.2.99.4 failed.
- * Call stack:
- * ebuild.sh, line 48: Called src_compile
- * environment, line 3079: Called x-modular_src_compile
- * environment, line 3859: Called x-modular_src_make
- * environment, line 3898: Called die
- * The specific snippet of code:
- * emake || die “emake failed”
- * The die message:
- * emake failed
复制代码 这是因为>=libxcb-1.2已经没有了/usr/lib64/libxcb-xlib.la,运行xcb-rebuilder.sh重新编译受影响的包然后继续。
运行“emerge -1 `qlist -I -C x11-drivers`”编译xorg驱动。
使用:
内核命令行中去掉“vga=*”;
xorg.conf中,去掉“Option “AccelMethod” *”项,或者将其修改为“Option “AccelMethod” “uxa””。
[color="Blue"]原文地址 |
|