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
版权声明:本文博客原创文章,博客,未经同意,不得转载。
android模拟器 一个错误:X Error of failed request: BadRequest (invalid request code or no such operation)的更多相关文章
- ATL项目编译注册dll的时候报权限错误:error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions.
atl工程在vs2013编译的时候会在编译成功之后去使用 regsvr32 去注册 生成的 .dll 偶尔在编译的时候会遇到下面的错误: error MSB8011: Failed to regist ...
- Android Studio2.1 Run APP:Error: Execution failed for task
Android Studio2.1 Run APP时,遇到错误 Error: Execution failed for task ':app:clean'. Unable to delete file ...
- JMeter一个错误the target server failed to respond--JMeter坑
问题:1.在测试一个http景象,特别是集波动TPS时刻,出现了一个错误.它现在是一个必须错误(压力顺利时却零星的错误,甚至很少见): 每次必现错误(開始一直怀疑是网络或程序的问题) 2.失败事务 ...
- Android 编译错误——布局 Error parsing XML: not well-formed (invalid token)
在修改了Android布局文件后,编译出现Error parsing XML: not well-formed (invalid token). 首先先排查xml文件的编码格式是否为UTF-8, &l ...
- Hive错误:Error: FUNCTION 'NUCLEUS_ASCII' already exists. (state=X0Y68,code=30000)
问题 初始化derby失败: [root@bigdata111 apache-hive-2.3.0-bin]# schematool -dbType derby -initSchemaSLF4J: C ...
- AS错误:Error:Execution failed for task ':gM99SDK:processReleaseResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'F:\BaiduYunDown
原因,buildToolsVersion 版本太低. 在build.gradle文件设置 buildToolsVersion 设置高一点,但必须是SDK里面有的.
- Git错误:error:failed to push some refs to 'git@gitee.com:name/project.git'
大家在通过本地仓库上传文件到远程仓库时,会报出 error:failed to push some refs to 'git@gitee.com:name/project.git' 的错误. 解决方法 ...
- Android studio的错误:radle sync failed: Cause: failed to find target android-21 :
这个错误在Android studio中经常出现,特别是你在编译不同的app的时候,到底是什么原因会导致该错误产生呢? 首先看错误信息,是找不到目标android版本-21导致的,这就很明显了,你的目 ...
- 又一个错误" Fatal error: Call to undefined function myabp_print_screenshot_all() "
xxx ( ! ) Fatal error: Call to undefined function myabp_print_screenshot_all() in D:\wamp\www\wp-con ...
随机推荐
- A + B Problem II 大数加法
题目描述: Input The first line of the input contains an integer T(1<=T<=20) which means the number ...
- linux禁ping和允许ping的方法
一.系统禁止ping [root@linuxzgf ~]# echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all 二.系统允许ping [root@li ...
- 地精排序(Gnome Sort) 算法
gnome应该是最简单排序的排序算法吧!Gnome Sort,这是该算法的作者命名的,O(n*n)时间复杂度,O(1)空间复杂度,属于稳定的排序算法.算法的思想是每趟循环找到第一个逆序的元素,把它和在 ...
- shell一些笔记
1.getopts可以编写脚本,使控制多个命令行参数更加容易 如:文件get.sh #! /bin/sh NAME=false AGE=false ODD=false SEX=false while ...
- 怎样在VirtualBox 虚拟机中挂载共享目录
啊.好长时间没写博客了.近期有点忙~~ 不得不说 VirtualBox 对于一些不想装非常多个系统又非常想实验新系统的人来说确实是神器: 哈哈.个人还是比較爱玩这些个各种各样的Linux 发型版的,可 ...
- SPI通信
SPI是由Motorola公司提出的一种同步串行外围接口:它在速度要求不高,低功耗,需要保存少量参数的智能化传感系统中得到了广泛应用: SPI是一个全双工的同步串行接口,在数据传输过程中,总线上只能是 ...
- UITabbar的常用属性
// //设置tabbar的背景颜色 // [self.tabBar setBarTintColor:[UIColor redColor]]; // //设置选中时图片和文字的颜色 // [self. ...
- 【linux】 linux gpio操作
欢迎转载,转载时需保留作者信息,谢谢. 邮箱:tangzhongp@163.com 博客园地址:http://www.cnblogs.com/embedded-tzp Csdn博客地址:http:// ...
- C++,对象的 =赋值 以及 复制构造函数赋值
1. C++默认实现了 = 号赋值:operator=只要将一个对象的内容的内容逐位复制给另外一个对象即可. 2. C++默认实现了复制构造函数:同样,只要将一个对象的内容的内容逐位复制给另外一个对象 ...
- 4.5 HOOK分发函数
4.5 HOOK分发函数 本节开始深入的探讨键盘的过滤与反过滤.有趣的是,无论是过滤还是反过 滤,其原理都是进行过滤.取胜的关键在于:谁将第一个得到信息. 黑客可能会通过修改一个已经存在的驱动对象(比 ...