Android Simulator error: X error of failed request:badrequest (invalid request code or no such operation)

Source: Internet
Author: User
Tags amd radeon

Recently in the ubuntu12.04 study python,python2.7 python3.2 difference is quite big, just want to learn the newer
After upgrade
Results appear input method does not show Update-manager and add-apt-repository can not be used, Android emulator also can not open.
The culprit until Python
Because python3.2 is not compatible, it causes the 2.7 version of the feature to be unusable before upgrading from python2.7 to 3.2 many dependencies
How to solve the problem of Python upgrade please http://book.51cto.com/art/201405/439867.htm


to get to the bottom, how to solve the problem?

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



A preparatory work:

1. Download the latest graphics driver for you
Http://ati.amd.com/support/driver.html
Recommended Download Amd-catalyst-14-4-rev2-linux-x86-x86-64-may6.zip

2. Before installing, execute the following command to install dependencies.
sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libe Lfg0 dh-modaliases


Second, remove the previous ATI drive and Mesa Drive. You may not have installed it, but if you do not remove the existing graphics driver, it may cause the module to load and drive errors after installation, not normal drive

Remove previous ATI drivers and Mesa drivers. Perhaps you did not install, but if you do not remove the existing video card driver, may cause the installation after the module and driver errors, not normal driver.
If you have previously installed the driver manually, you need to perform the following two lines, if not, skip.
cd/usr/share/ati/
sudo./fglrx-uninstall.sh [Note there is a problem here, if the directory is not fglrx-uninstall.sh what to do, I have encountered this problem, tossing the will, later in the download of that file Fglrx-14.10.1006.1001/driver/found a shell]
sudo sh fglrx-uninstall.sh--force "Note add--force otherwise you will be prompted to delete"

sudo apt-get remove Xorg-driver-fglrx xserver-xorg-video-ati XSERVER-XGL

Third, install the driver, do not install before the delete step, or it will be uninstalled. There is nothing difficult, basically the next step is OK.
Unzip the first step of the ATI driver download
The directory after the CD decompression
sudo sh./amd-driver-installer-14.10.1006.1001-x86.x86_64.run
Follow the prompts next

Four, installation completed according to the prompt restart


Five, check the installation effect

1, first look at the driver information is correct, execute
Fglrxinfo

The following is my result

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


The key is to have ATI, can not be other, if not, the driver module does not load correctly, you need to according to the contents of the display, the corresponding driver deleted.


2. See if your video card works in XV mode and executes
Xvinfo

If it shows a lot of results, it's working in XV mode. If the display looks like this, then you need to set the

X-video Extension Version 2.2
Screen #0
No adaptors Present

Set XV mode manually
sudo aticonfig--overlay-type=xv

3. See other information
Glxinfo | grep Direct

And my result is
Direct Rendering:yes

4, test the speed and work is normal, the program will show the rotation of the gears and some values.
Glxgears
Fgl_glxgears

Reference:

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


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.