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 ...
随机推荐
- 关于PagedDataSource分页属性与DataSet和DataTable详解
Asp.net提供了三个功能强大的列表控件:DataGrid.DataList和Repeater控件,但其中只有DataGrid控件提供分页功能.相对DataGrid,DataList和Repeate ...
- ACE6.2.0下载HTTP服务器文件
#include "ace/Log_Msg.h" // ACE_DEBUG的宏定义在这里.#include "ace/OS.h"#include "a ...
- php随笔8-thinkphp OA系统 客户管理
Action: CustomerinfosAction.class.php <?php /* * 客户信息 控制器 * @author lifu <504861378@qq.com> ...
- python中的异常如何处理
一.异常基础 在编程程序出现bug时一般不会将错误信息显示给用户,而是现实一个提示的页面. try: #正常逻辑代码 input = raw_input("输入数字:") data ...
- [LeetCode]题解(python):008-String to Integer (atoi)
题目来源: https://leetcode.com/problems/string-to-integer-atoi/ 题意分析: 这道题也是简单题,题目意思是要将字符串转化成int.比如‘123’转 ...
- tf–idf算法解释及其python代码实现(上)
tf–idf算法解释 tf–idf, 是term frequency–inverse document frequency的缩写,它通常用来衡量一个词对在一个语料库中对它所在的文档有多重要,常用在信息 ...
- 我的Python成长之路---第八天---Python基础(23)---2016年3月5日(晴)
socketserver 之前讲道德socket模块是单进程的,只能接受一个客户端的连接和请求,只有当该客户端断开的之后才能再接受来自其他客户端的连接和请求.当然我们也可以通过python的多线程等模 ...
- django 基础入门(一)
1. django 基本命令 新建project django-admin.py startproject project-name 新建app python manage.py startapp a ...
- python优秀库 - 使用envelopes发送邮件
这里有一个使用python自带lib发送邮件的例子(http://my.oschina.net/leejun2005/blog/74416),这里面讲解的很全面,可以供大家参考. 今天将的是使用env ...
- Codeforces Round #198 (Div. 2) B. Maximal Area Quadrilateral
B. Maximal Area Quadrilateral time limit per test 1 second memory limit per test 256 megabytes input ...