Ubuntu12.04双显卡笔记本安装驱动【汇总】
安装的全过程如下:
1 我安装的是12.04 LTS ubuntu 系统,为了能够运行 OpenCL,必须把独立显卡驱动起来。
2 刚安装好系统,我进行了更新,更新之后,在系统设置 -〉 附加驱动有开源的备选驱动,但是安装的时候,提示错误,无法安装。
3 于是我按照 "Ubuntu 12.04 ATIIntel双显卡 驱动安装" 的内容开始安装驱动。但是,安装完驱动后,重新启动电脑,在登陆界面之前就黑屏了,无法继续进行。
4 这时候即使是恢复模式(按住shift)也没有起什么作用,期间我参考了“Ubuntu内核升级后无法进入系统的解决办法_Linux教程_Linux公社-Linux系统门户网站”卸载驱动,没有起作用。但是这个文档里面提到的安装卸载后的设置,我觉得是有一定作用的。BTW:这之后我之前安装的显卡驱动都已经卸载了。
5 于是我参考了“ubuntu 12_04 更新后黑屏 - moon_cat - 博客园”更新了内核,之后就可以往后走了。但是卡到了一个提示:“ubuntu启动错误saned disabled edit /etc/default/saned checking battery state ”,之后系统无反映了。
6 解决上一个问题,我参照了“ubuntu启动错误saned disabled edit -etc-default-saned checking battery state - 用平常的心,做不平常的事 - ITeye技术网站”这个文档,于是可以进入登陆界面了。
7 登陆时遇到的问题是,登陆进取就会一闪黑屏,返回登陆界面。当然我输入的密码是没有问题的。但是用 Guest 帐户确可以登陆进去。
8 解决上个问题我参考了“Ubuntu 登陆异常-输入正确的密码后还会返回到登陆界面的问题-mydawaa-ChinaUnix博客” 和 “12_04 - Login screen loops unless you login as Guest - Ask Ubuntu”。其中前者我觉得有道理但是不是我出的这个问题。而后者彻底解决了我无法登陆的问题。而在前两个文档之前,“drivers - ATI-AMD proprietary FGLRX graphics install fails, how can I resolve the problem - Ask Ubuntu”可能帮助我卸载了一些不必要的东西。
9 进入系统后,在从系统菜单,附加驱动,直接安装显卡驱动,竟然顺利安装了。
总结起来,附加驱动是可用的,但是要提前装好相关的东西。如果黑屏,卸载驱动正常应该就可以。我在整个过程中,alt + ctrl + F1 始终是可以用的。另外,Vi还是需要学好,无图形界面时,想改写配置文件,真心不容易。
———————————————————————————————————————————————————————————————————————————————
问题一:
Login screen loops unless you login as Guest up vote1down votefavorite 1
I am running a VMWare Player with a Ubuntu 12.04 LTS Precise Pangloin as Guest on my Windows 7. Sometimes I get the shutdown blue screen error in Windows, this time it happened when I was running the Player. When I restarted everything Ubuntu gave the not so unfamiliar in this forum Login Loop in adminstrator login. I login and there\'s this black screen where I can only read: "piix4...smbus:0.0.0.07.3 Host Smbus controller not enabled" . When I go to the Prompt in root mode it fails to update and only upgraded, specially some plugins ( I think graphic plugins) which also appear in one an error message after quitting the prompt, but they´are successfully installed. They are not the error message. After that I have been working with the Fail/safe Mode recovery panel.
When I try to update via Root I get errors like this:
W:failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/release.gpg could not resolve \'extras/ubuntu.com
There are 8 more like this referring to areas like:
-archive/canonical.com -ppa.Launchpad.net -security.Ubuntu.com -Us.archive.ubuntu.com - release.gpg precise-updates/release.gpg precise_backport/release.gpg
Final Message: some index files failed to download.....they have been ignored or old files are used.
The black screens most of the time pass by too fast for me to pick up any information. But in general I think I have done everything I was able to in the recovery panel including updating network and graphic packages and recovering filesystem packages and the basic stuff ( I am a beginner regarding Linux ) in the root prompt.
Now I am stuck in this screen with graphic options:
- Run in low-graphics mode just for one session - Reconfigure Graphics - Troubleshoot the error - Exit to console login
I am trying to choose to reconfigure graphics but the mouse disappears in the virtual machine screen and sometimes when options change ity´s only the first and last option. ut this happens from the blue without messages. This particular option menu is in the regular GUI style against a black screen in Terminal style. Really strange.
Thanx in advance, all is welcome and appreciated.
12.04 login login-screen lts shareimprove this question edited Jul 3 \'12 at 2:14
Jorge Castro
20.9k52233455 asked Jun 4 \'12 at 0:54
Mário Silva
6112 When you have multiple users, do the other users work? I have two users, the main user loops, the other works perfectly fine. Unfortunately I cannot access my data via the user but I could login as a main user via ctrl+alt+F1. Message for startx: Server is already active for display 0 Delete the locked file "filename" mentioned, then sudo reboot – user74866 Jul 3 \'12 at 22:43 8 Answers ACTIVEOLDESTVOTES up vote6down vote
I am not sure if what I was experiencing is the same but maybe this will work for you.
I have Ubuntu 12.04 Server LTS updated 6-7-2012 and Desktop installed. I am also running this as a VM in vmware player, not sure if that matters or not.
I had done a ctrl+alt+F1 from desktop to get a shell. When I tried to to start the gui again (sudo startx), I got errors, then after a reboot I got the log-in and when I put in my password it would just loop no error for bad PW! But when I switched to the Guest log-in it would boot normally! What a pain, huh!
So what I did wa
witch to shell (Ctrl+Alt+F1) logged in as the user cd /home/user (I think that cd ~ will get you to the same place) sudo mv .Xauthority .XauthorityBak sudo reboot
This worked it booted normal and all is good!
There are specifics of my installation which may not apply to yours but maybe it will work.
Hope this helps, K
P.S. I got this info from http://ubuntuforums.org/showthread.php?t=1890457 Thanks carranty
EDIT: I started to get a System Problem Detected when I would log in from a locked desktop so I sudo chown 777 .Xauthority and that seemed to have cleared up the problem. I am not sure if this causes a security issue.
EDIT: Not sure if this did clear up the problem, things are getting funky!
hareimprove this answer edited Jul 3 \'12 at 0:52
Eliah Kaga
26.4k861144 answered Jun 7 \'12 at 0:52
UbuntuNooBkj
612 anyone think that this might be an issue with the updates? – UbuntuNooBkjp Jun 7 \'12 at 5:05 up vote1down vote
tartx doesn\'t work
Seems like you lost write-rights... Check whether the solution described here will work for you. This happened to me.
I found a solution for me:
I changed my password, reinstalled xserver-xorg by typing: sudo apt-get install --reinstall xorg
After a reboot it worked for me. Notice: I removed the .XAuthority files in /home/username by: sudo rm /home/username/.XAuthority*
to get a shell try Strg-Alt-F1 when you turn on your computer. I actually got my write-rights back by usingclear in recovery mode.
hareimprove this answer answered Jun 16 \'12 at 10:56
Matthia
103129 up vote0down vote
Logging in as root at the command shell level and renaming the user\'s /home/user/.Xauthority and then rebooting seemed to cure the issue. Not sure why it occurred in first place though
hareimprove this answer answered Jul 2 \'12 at 15:46
JohnM
1 up vote0down vote
These suggested instructions apply to my case only and should be considered as a non-professional comment and therefore to be tried AT YOUR OWN RISK.
I am using ACER Aspire 4755g with Ubuntu 12.04.1 LTS.
I have also encountered this problem, and in my case, I had a problem with lightdm. As a temporary measure, when you get to the login screen, press the keyboard sequence Ctrl+Alt+F1. This will get you to a terminal-like screen. It will show you something like this:
[COMPUTER NAME] login:
for example,
Aspire-4755g login:
type in your username and press Enter. This will result into something like this,
Aspire-4755g login: shiela
Password:
Enter your password, and, if correct, would show something like this:
Aspire-4755g login: shiela
Password:
Last login: Tue Jan 1 06:45:02 JPT 2013 on tty1
Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-35-generic-pae i686)
* Documentation: https://help.ubuntu.com/
2 packages can be updated.
0 update are security updates.
hiela@Aspire-4755g:~
Then, press the keyboard sequence Ctrl+Alt+F7 to get you back to the login screen. This procedure logs you into the system using the terminal-like window. You can now try to login to your account using the login screen. In my experience, I was able to reach the desktop. It seems that there is something wrong with the lightdm configuration that it was not able to log you in to the system.
Should you not make it to the desktop (as it was called in Windows), you may try adding an additional command by pressing the Ctrl+Alt+F1:
hiela@Aspire-4755g:~s ecryptfs-mount-private
ress Enter, and it will ask you your password. Enter your password, then press the keyboard sequence Ctrl+Alt+F7 to get you back to the login screen (or to where you last left).
This command loads your Home folder, together with its contents, should you have chosen to encrypt the home folder upon installation of Ubuntu.
Once successful, you may try to review your lightdm configuration located on /etc/lightdm/lightdm.conf.
hareimprove this answer edited Jan 1 at 23:45 answered Jan 1 at 23:36
Kurt Louis A. Montemor
11 up vote0down vote
I had same issue, I uninstalled 12.04 version and installed 12.10 Version and the problem is gone.
hareimprove this answer edited Feb 28 at 15:08
Aditya
2,86751643 answered Feb 28 at 14:39
NewUbuntuUser
1 up vote0down vote
Yes I caused a Login Loop on my main Ubuntu 12.10 user and the fix was simple.
Background: Ubuntu 12.10 is installed in VirtualBox running on Windows 7 and uses Unity.
Cause: From the Desktop I Ctrl+Alt+T into terminal mode and then tried to run \'startx\' (I was trying to help a friend over the phone late at night...but this was a stupid thing to do). A new blank Unity desktop appeared and everything hung...
Problem: Forcing VirtualBox to close and then rebooting Ubuntu I got to the login screen but kept looping back to this same screen everytime after entering the password. No errors were displayed. I could login as Guest but I had no Sudo rights and thus no control... However once logged in as Guest I Ctrl+Alt+F3 and got to a terminal login. I entered my main user name and password and logged in with command mode. Logout took me back to CLI login and Ctrl+Alt+F7 took me back to Guest desktop. So my account still worked. I then added a test user and gave them sudo rights. From the Unity login I could login and logout Test user with no problem. So Unity still worked.
Fix: So my main account was still accessable via CLI and Unity was working for all other accounts. This indicated a configuation problem on my main account. I followed the advice of Ubuntu 12.10 gets stuck in a Login Loop and did chown username:username .Xauthority. This fixed my problem.
hareimprove this answer answered Mar 10 at 22:53
Dig
235 ——————————————————————————————————————————————————————————————————————————————— 问题2: 查看ubuntu是32位还是64位的方法及其版本号 [复制链接] jink2005
电梯直达 1# 发表于 2011-4-27 11:30:43 | 只看该作者 |倒序浏览 |阅读模式 查看ubuntu是64还是32的命令如下:
uname -m 复制代码
如果是i386到i686,那就是32位系统;如果是x86_64 ,那就是64系统。
查看Ubuntu版本的方法有两种。
方法一:在终端中执行下列指令:
cat /etc/issue 复制代码
可以查看当前正在运行的 Ubuntu 的版本号。其输出结果类似下面的内容:
Ubuntu 7.04 \n \l
方法二:使用 lsb_release命令也可以查看 Ubuntu 的版本号,与方法一相比,内容更为详细。执行指令如下:
udo lsb_release -a 复制代码
将输出结果:
Distributor ID: Ubuntu
Description: Ubuntu 7.04
Release: 7.04
Codename: feisty
方法三:有的精简系统,将上面命令都去除了,这是如何查看版本信息呢?可以通过查看如下命令查看:
cat /proc/version 复制代码
作用: 查看目录“/proc”下version的信息,也可以得到当前系统的内核版本号及系统名称
补充说明:/proc文件系统,它不是普通的文件系统,而是系统内核的映像,也就是说,该目录中的文件是存放在系统内存之中的,它以文件系统的方式为访问系统内核数据的操作提供接口。而我们使用命令“uname -a“的信息就是从该文件获取的,加上参数”a“是获得详细信息,如果不加参数为查看系统名称。
Refered to:
如何查看ubuntu是32位的还是64位的?
http://tieba.baidu.com/f?kz=820576856
教你如何查看Ubuntu版本
http://www.linuxidc.com/Linux/2007-07/6178.htm
Linux命令:linux内核和版本查询命令
http://www.ylmf.net/linux/tips/2010112611699.html linux, ubuntu, 版本号 ——————————————————————————————————————————————————————————————————————————————— 问题3: ATI/AMD proprietary FGLRX graphics install fails, how can I resolve the problem? up vote18down votefavorite 16
I want to activate ATI/AMD proprietary FGLRX graphics driver (post-release update), but there is a problem during installation. It says:
Sorry, installation of this driver failed.
Please have a look at the log file for details: /var/log/jockey.log
How can I install this driver?
drivers ati fglrx jockey shareimprove this question edited Nov 13 \'11 at 19:19
Jorge Castro
20.9k52233455 asked Nov 13 \'11 at 18:58
taha
91113 Could you edit your question please to add your graphic card reference and your Ubuntu version – Boris Apr 22 at 9:48 3 Answers ACTIVEOLDESTVOTES up vote13down vote
Remove and purge the current version, then install the updates:
udo apt-get --purge remove fglrx* sudo apt-get install fglrx-updates fglrx-amdcccle-updates Reboot
Making sure fglrx is fully removed is an important step. It didn\'t work for me the first time I tried to install the updates and in the end I removed each fglrx package individually, purged each one individually, removed no longer dependencies sudo apt-get autoremove, rebooted, then installed the updates sudo apt-get install fglrx-updates fglrx-amdcccle-updates, rebooted, and (as of writing) I got catalyst version 11.11 (which still doesn\'t work with gnome3).
12.10 21 Oct 2012 - fglrx is not working in 12.10, see bug report. 4 Jan 2013 - no fix yet, bug reports are on fire, 27 July 2013 - Still no fix sigh 12.10 Troubleshooting
If you have problems with graphics after installing or updating to 12.10, you will need to remove fglrxand use open source drivers:
$ sudo apt-get remove fglrx*
If you get stuck on a warning about "low graphics":
Open the terminal Ctrl+Alt+F1 Remove fglrx: sudo apt-get remove fglrx* Reboot: sudo reboot
For more see the SO question Can\'t install ATI proprietary drivers in 12.10.
13.04 27 July 2013 - fglrx does not work. sigh Note
What packages are currently installed? dpkg -l fglrx*
$ dpkg -l fglrx* un fglrx <none> (no description available) un fglrx-amdcccle <none> (no description available) ii fglrx-amdcccle 2:8.911-0ubunt Catalyst Control Center for the AMD graphics un fglrx-control <none> (no description available) un fglrx-control- <none> (no description available) un fglrx-driver <none> (no description available) un fglrx-kernel-s <none> (no description available) un fglrx-modalias <none> (no description available) ii fglrx-updates 2:8.911-0ubunt Video driver for the AMD graphics accelerato
What do the various dpkg flags like \'ii\' \'rc\' mean?
Confirm the drivers are working fglrxinfo
$ fglrxinfo display: :0 screen: 0 OpenGL vendor string: Advanced Micro Devices, Inc. OpenGL renderer string: AMD Radeon HD 6300M Series OpenGL version string: 4.2.11733 Compatibility Profile Context
For Catalyst <=11.11 with gnome <=3.2 Expect screen flickering and system hangs.
AMD Catalyst Proprietary Display Driver - Linux x86 & Linux x86_64
Get device information: lspci or verbose lspci -vv
hareimprove this answer edited Aug 9 at 8:33 community wiki
12 rev
BullfrogBlues up vote7down vote
All Jockey does is install fglrx and fglrx-amdcccle in the case of normal drivers, and fglrx-updates and fglrx-amdcccle-updates when you select the post-release updates option, though it fails somehow for I don\'t know what reason.
You can simply install/activate ATI/AMD proprietary FGLRX graphics driver (post-release update) option by typing the following line into the terminal:
sudo apt-get install fglrx-updates fglrx-amdcccle-updates
or search for these packages within the Ubuntu Software Center and install them from there.
hareimprove this answer edited Nov 16 \'11 at 17:12
Octavian Damiea
7,41142849 answered Nov 16 \'11 at 10:36
Ravish Malik
1035 up vote3down vote
An excellent resource for installing the latest driver from ATI and easy to follow. Installing Catalyst latest driver from ATI in Ubuntu 11.10
Bob Bowles (ed.): I found the ATI download site very user-friendly, with good self-documentation on the download/build/deploy process. ATI Download site.
hareimprove this answer edited Jun 6 \'12 at 13:07
Community♦
1 answered Jan 7 \'12 at 22:12
duffydack
2,740410 —————————————————————————————————————————————————————————————————————————————— 问题 4: ubuntu 12.04 更新后黑屏
在grub界面, 按e 在 splash 后加 text ,按 ctrl + x 进入 终端模式
然后更新到 3.5 内核即可
$ sudo apt-get install linux-generic-lts-quantal xserver-xorg-lts-quantal
$ sudo dpkg-reconfigure xserver-xorg-lts-quantal
$ sudo reboot
——————————————————————————————————————————————————————————————————————————————
问题 5:
驱动安装
分类:Linux 2013-01-23 20:44927人阅读评论ᄃ(0)收藏
linuxLinuxLINUX系统
目录(?)[+]
一卸载和删除原有驱动
二安装最新的AMD catalyst 驱动
三启用集成显卡的direct渲染并调试Bug
四玩转你的双显卡吧
本文只针对含有AMD双显卡的部分机型,已经测试过的包括DELL Vostro 3550/DELL Inspiron 14R (AMD 6630 和Intel HD 3000)。整个安装过程需要使用命令行,但是对于一个初学者来说依然很简单,你只需要将命令粘贴进命令行,并记得按<回车>。Linux版本为Ubuntu12.04,同时本人也尝试过12.10,不过由于驱动和X的兼容性有问题,最终放弃了12.10。详细方式参见http://wiki.cchtml.com/i...Catalyst
一、卸载和删除原有驱动
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
udo sh /usr/share/ati/fglrx-uninstall.sh
udo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*
udo sh /usr/share/ati/fglrx-uninstall.sh
udo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*
二、安装最新的AMD catalyst 驱动
下载必备的一些软件库
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
udo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6
udo apt-get install dkms libqtgui4 wget execstack libelfg0 dh-modaliase
udo apt-get install linux-headers-generic xserver-xorg-core libgcc1
udo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6
udo apt-get install dkms libqtgui4 wget execstack libelfg0 dh-modaliase
udo apt-get install linux-headers-generic xserver-xorg-core libgcc1
如果是64位则需要运行下面两段命令(32位则不需要)。
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
udo apt-get install ia32-libs lib32gcc1 libc6-i386
cd /usr ; sudo ln -svT lib /usr/lib64
udo apt-get install ia32-libs lib32gcc1 libc6-i386
cd /usr ; sudo ln -svT lib /usr/lib64
64位驱动内核模块
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
udo apt-get install dkm
udo apt-get install dkm
本人使用的是64位操作系统,推荐硬件允许的最好还是用64位。
下载AMD catalyst for Ubuntu 12.4 驱动
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
cd ~/; mkdir catalyst12.4; cd catalyst12.4/
wget http://www2.ati.com/drivers/linux/amd-driver-installer-12-4-x86.x86_64.ru
chmod +x amd-driver-installer-12-4-x86.x86_64.ru
cd ~/; mkdir catalyst12.4; cd catalyst12.4/
wget http://www2.ati.com/drivers/linux/amd-driver-installer-12-4-x86.x86_64.ru
chmod +x amd-driver-installer-12-4-x86.x86_64.ru
添加补丁(非常重要,之前试过不打补丁,会出现无法启动X或者Compiz等问题)
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
./amd-driver-installer-12-4-x86.x86_64.run --extract driver
cd driver/plain/lib/modules/fglrx/build_mod/
wget -O fglrx.patch http://ubuntuone.com/5gNgEmVfzs3ytD5QZ2YGCi
atch -p1 < fglrx.patch
./amd-driver-installer-12-4-x86.x86_64.run --extract driver
cd driver/plain/lib/modules/fglrx/build_mod/
wget -O fglrx.patch http://ubuntuone.com/5gNgEmVfzs3ytD5QZ2YGCi
atch -p1 < fglrx.patch
创建安装包
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
cd ~/catalyst12.4/driver/
./ati-installer.sh 8.961 --buildpkg Ubuntu/precise
cd ../
cd ~/catalyst12.4/driver/
./ati-installer.sh 8.961 --buildpkg Ubuntu/precise
cd ../
安装驱动
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
udo dpkg -i fglrx*.de
udo dpkg -i fglrx*.de
第一时间配置Xserver(xorg.conf)
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
udo aticonfig --initial -f
udo aticonfig --initial -f
重启电脑
测试切换集成显卡
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
udo aticonfig --px-dgpu
udo aticonfig --px-dgpu
有些显卡需要再次重启电脑才能完成切换。
三、启用集成显卡的direct渲染并调试Bug
如果你一旦更新fglrx,或者你的系统自动更新,那么你必须重复步骤二,否则集成GPU将不会做direct渲染。
以root权限打开/etc/X11/Xsession.d/10fglrx
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
udo gedit /etc/X11/Xsession.d/10fglrx
udo gedit /etc/X11/Xsession.d/10fglrx
对于32位系统,在第4行末尾加入/usr/lib32/dri/,使文档变成:
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
LIBGL_DRIVERS_PATH=/usr/lib/fglrx/dri
if [ `uname -m` = \'x86_64\' ]; the
if [ -d /usr/lib32/fglrx/dri ]; the
LIBGL_DRIVERS_PATH=${LIBGL_DRIVERS_PATH}<span style="color: rgb(255, 0, 0); background-color: yellow;">:/usr/lib32/fglrx/dri:/usr/lib32/dri</span>
if [ ! -z $LD_LIBRARY_PATH ]; the
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:
fi
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}/usr/lib32
export LD_LIBRARY_PATH
fi
fi
export LIBGL_DRIVERS_PATH
LIBGL_DRIVERS_PATH=/usr/lib/fglrx/dri
if [ `uname -m` = \'x86_64\' ]; the
if [ -d /usr/lib32/fglrx/dri ]; the
LIBGL_DRIVERS_PATH=${LIBGL_DRIVERS_PATH}:/usr/lib32/fglrx/dri:/usr/lib32/dri
if [ ! -z $LD_LIBRARY_PATH ]; the
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:
fi
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}/usr/lib32
export LD_LIBRARY_PATH
fi
fi
export LIBGL_DRIVERS_PATH
对于64位系统,在第4行末尾加入/usr/lib/x86_64-linux-gnu/dri/, 文件变成
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
LIBGL_DRIVERS_PATH=/usr/lib/fglrx/dri
if [ `uname -m` = \'x86_64\' ]; the
if [ -d /usr/lib32/fglrx/dri ]; the
LIBGL_DRIVERS_PATH=${LIBGL_DRIVERS_PATH}<span style="color: rgb(255, 0, 0); background-color: yellow;">:/usr/lib32/fglrx/dri:/usr/lib/x86_64-linux-gnu/dri</span>
if [ ! -z $LD_LIBRARY_PATH ]; the
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:
fi
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}/usr/lib32
export LD_LIBRARY_PATH
fi
fi
export LIBGL_DRIVERS_PATH
LIBGL_DRIVERS_PATH=/usr/lib/fglrx/dri
if [ `uname -m` = \'x86_64\' ]; the
if [ -d /usr/lib32/fglrx/dri ]; the
LIBGL_DRIVERS_PATH=${LIBGL_DRIVERS_PATH}:/usr/lib32/fglrx/dri:/usr/lib/x86_64-linux-gnu/dri
if [ ! -z $LD_LIBRARY_PATH ]; the
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:
fi
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}/usr/lib32
export LD_LIBRARY_PATH
fi
fi
export LIBGL_DRIVERS_PATH
保存文件并退出
四、玩转你的双显卡吧!
如果你切换的的显卡未生效,请重启电脑。
显示当前使用的显卡
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
aticonfig --pxl
aticonfig --pxl
如果使用的是独立显卡,则显示为
PowerXpress: Discrete GPU is active (High-Performance mode).
如果是集成显卡:
PowerXpress: Integrated GPU is active (Power-Saving mode).
切换集成显卡
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
udo aticonfig --px-dgpu
udo aticonfig --px-dgpu
切换独立显卡
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
udo aticonfig --px-igpu
udo aticonfig --px-igpu
查看Open GL 库使用情况
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
fglrxinfo
fglrxinfo
查看direct 渲染状态
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
glxinfo | egrep render
glxinfo | egrep render
安装mesa-utils,测试3D性能(每5秒计算并输出一次fps)
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
udo apt-get install mesa-util
glxgear
udo apt-get install mesa-util
glxgear
独立显卡(ATI 6630)状态下
1793 frames in 5.0 seconds = 358.581 FPS
1781 frames in 5.0 seconds = 355.736 FPS
集成显卡状态下
301 frames in 5.0 seconds = 60.115 FPS
298 frames in 5.0 seconds = 59.585 FPS
明显可以看到区别了吧!
如果重启后黑屏或者无桌面显示,则需要切换到其他命令行界面Ctrl+Alt+F2,删除X配置并重启X
[plain]view plainᄃcopyᄃprintᄃ?ᄃ
udo rm /etc/X11/xorg.conf
udo startx
———————————————————————————————————————————————————————————————————————————————
问题 6:
ubuntu启动错误saned disabled edit /etc/default/saned checking battery state 博客分类: linux
昨天Ubuntu 12.04LTS 64位版本升级内核后,发现图形界面启动不了。
然后重启,按上下键查看启动信息,发现卡在了saned disabled edit /etc/default/saned。。
Goole了一把,发现是没有gnome-shell.于是就使用CTRL+ALT+F1进入tty1,通过
udo apt-get install gnome-shell安装,然后sudo reboot重启。
发现还是进入不了图形界面,再次查看日志,发现卡在了 checking battery state
这个原因是因为gdm的问题,安装gdm
udo apt-get install gdm
在安装过程中会有配置选择,我们选择LightDM,
然后sudo reboot即可。。
然后就如愿的进入了图形界面。。。
——————————————————————————————————————————————————————————————————————————————— 问题 7: Ubuntu内核升级后无法进入系统的解决办法 [日期:2010-05-06] 来源:www.walleve.com 作者:walleve [字体:大 中 小]
昨天半夜在写代码的时候没怎么注意,Ubuntu系统提醒有可用升级,随手就给升级了,结果起床后开机,发现grub提示两个内核,然后选择最新的内核,直接黑屏很长时间进不去系统。
解决办法是:删除显卡驱动,否则重启后还是白屏
删除显卡驱动的命令是:sudo /usr/share/ati/fglrx-uninstall.sh
重启后进入桌面,over,然后要在终端运行 update-grub2
接着要做的两个事情,1、是否要更新内核。2、必须要重装显卡驱动
1、更新内核的方法如下:
安装新内核,然后update-grub,update-grub2,应该就可以了,然后按照下面删除旧内核文件即可。
apt-get remove 对应的内核版本号,将旧版本的内核删除掉(-image-和-header-两个文件都要删除的,一定要小心执行命令)。
apt-get autoremove 对应的内核版本号, 再清理下就应该可以
修改/boot/grub/grub.cfg(从9.10版本后,menu.list文件就被替换成了grub.cfg),将其中旧内核的文字删除即可,然后重启系统
2、重装显卡驱动
重启后要重装显卡驱动(如果重启出错请参照文章开始讲到的启动出错处理办法)。
重装显卡驱动的办法:
1、删除旧的和错误的驱动程序
cd /usr/share/ati/
udo ./fglrx-uninstall.sh
udo apt-get remove xorg-driver-fglrx xserver-xorg-video-ati xserver-xgl
2、安装新的驱动 (需要去ATI官方网站下载)
udo sh ./ati-driver-installer-8-11-x86.x86_64.ru
安装完毕后,把配置文件初始化一下,执行
udo aticonfig –initial -f
生成 modules.dep 和 map 文件,保证模块和驱动的正常加载。
udo depmod -a
3、重启
4、检查安装效果
在终端中运行 fglrxinfo,显示结果应该是:
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 2600 XT
OpenGL version string: 2.1.8201 Release
5、看看自己的显卡是否工作在Xv模式下,执行
xvinfo
如果显示的结果很多很多,那就是工作在xv模式下了。如果像下面这样的显示,那还需要再设置
X-Video Extension version 2.2
creen #0
o adaptors present
手工设置xv模式
udo aticonfig –overlay-type=xv
6、看看其它信息
glxinfo | grep direct
我的结果是
direct rendering: Ye
7、测试一下速度和工作是否正常,程序会显示转动的齿轮和一些数值。
glxgear
fgl_glxgear
——————————————————————————————————————————————————————————————————————————————
问题 8:
Ubuntu 登陆异常-输入正确的密码后还会返回到登陆界面的问题
问题表现:
启动到了登陆界面,输入对应的密码,发现一闪黑屏有返回到登陆界面,如此往复