android模拟器 一个错误:X Error of failed request: BadRequest (invalid request code or no such operation)

最近ubuntu12.04学习python,python2.7 python3.2所不同的是还是蛮大的。学习思考的新
升级后
结果显示 输入方法不显示   update-manager 和  add-apt-repository不能用,android的模拟器也打不开。
罪魁祸首直至python
由于python3.2没有往上兼容,导致从python2.7升级到3.2 非常多依赖之前2.7版本号的功能无法使用
怎样解决python升级的问题 请 http://book.51cto.com/art/201405/439867.htm


言归正传,出现以下问题怎样解决?

fglrxinfo    

X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  136 (GLX)
  Minor opcode of failed request:  19 (X_GLXQueryServerString)
  Serial number of failed request:  12
  Current serial number in output stream:  12



一 准备工作:

1.下载适合你的最新的显卡驱动
http://ati.amd.com/support/driver.html
 建议下载amd-catalyst-14-4-rev2-linux-x86-x86-64-may6.zip

2. 在安装之前,运行以下命令,安装依赖。


sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases


二、删除曾经的 ATI 驱动和 Mesa 驱动。或许你没有安装。但假设不删除现有的显卡驱动。可能造成安装后载入模块和驱动错误。不能正常驱动

删除曾经的 ATI 驱动和 Mesa 驱动。或许你没有安装,但假设不删除现有的显卡驱动,可能造成安装后载入模块和驱动错误,不能正常驱动。
假设曾经手工安装过驱动须要运行以下两行,假设没有,跳过。


cd /usr/share/ati/
sudo ./fglrx-uninstall.sh   [注意这里存在一个问题,假设该文件夹下没有fglrx-uninstall.sh 该怎么办。我就遇到了这样的问题,折腾了会。后来在 下载的那个文件 fglrx-14.10.1006.1001/driver/ 找到有个shell   ]
sudo sh fglrx-uninstall.sh --force 【注意加--force 否则会有提示删除不掉】

sudo apt-get remove xorg-driver-fglrx xserver-xorg-video-ati xserver-xgl

三、安装驱动,不要在删除步骤前安装,不然会被卸载掉的。没有什么难的,基本上下一步即可了。
解压第一步下载的ati驱动
cd 解压后的文件夹
sudo sh ./amd-driver-installer-14.10.1006.1001-x86.x86_64.run
依据提示 下一步

四、安装完成 依据提示重新启动


五、检查安装效果

1、首先看看驱动信息是否正确,运行
fglrxinfo

以下的是我结果

display: :0.0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 7400M Series
OpenGL version string: 4.4.12874 Compatibility Profile Context 14.10.1006.1001


关键是要有 ATI,不能是其他的,假设不是的话。说明驱动模块没有正确载入,须要依据显示的内容,把相应的驱动删除。




2、看看自己的显卡是否工作在Xv模式下,运行
xvinfo

假设显示的结果非常多非常多。那就是工作在xv模式下了。

假设像以下这种显示。那还须要再设置

X-Video Extension version 2.2
screen #0
no adaptors present

手工设置xv模式
sudo aticonfig --overlay-type=xv

3、看看其他信息
glxinfo | grep direct

我的结果是
direct rendering: Yes

4、測试一下速度和工作是否正常,程序会显示转动的齿轮和一些数值。


glxgears
fgl_glxgears

參考:

http://zhidao.baidu.com/link?url=Fol6ZFsHFudbw9ZyqaUyhdOV63nDWQ6qahirsHXWCYCjSxYdJ4rh7ciSDv1toI2RfSHDbj3tt4Uj-B6N-Qp5Mq


http://askubuntu.com/questions/74171/is-my-ati-graphics-card-supported-in-ubuntu

版权声明:本文博客原创文章,博客,未经同意,不得转载。

原文地址:https://www.cnblogs.com/hrhguanli/p/4749820.html