android模擬器 一個錯誤:X Error of failed request: BadRequest (invalid request code or no such operation)...

weixin_33901926發表於2015-08-22
最近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

版權宣告:本文部落格原創文章,部落格,未經同意,不得轉載。

相關文章