特殊:Badtitle/NS100:OpenChrome:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第123行: | 第123行: | ||
so, download the .deb for your Ubuntu version an then | so, download the .deb for your Ubuntu version an then | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo dpkg -i [package_name.deb] | sudo dpkg -i [package_name.deb] | ||
</nowiki></pre> | </nowiki></pre> | ||
this will install the driver for you, after that edit your xorg configuration. | this will install the driver for you, after that edit your xorg configuration. | ||
第131行: | 第131行: | ||
This is being caused by a bug in drm. To solve this, you have to uncomment | This is being caused by a bug in drm. To solve this, you have to uncomment | ||
<pre><nowiki> | <pre><nowiki> | ||
Load "dri" | Load "dri" | ||
</nowiki></pre> | </nowiki></pre> | ||
in your xorg.conf. As a result, you won't have 3D acceleration anymore, but your system won't freeze. | in your xorg.conf. As a result, you won't have 3D acceleration anymore, but your system won't freeze. | ||
第139行: | 第139行: | ||
This is known to happen on VN800 and VM800 chipsets. As a solution, you can try to add | This is known to happen on VN800 and VM800 chipsets. As a solution, you can try to add | ||
<pre><nowiki> | <pre><nowiki> | ||
Option "SWCursor" "true" | Option "SWCursor" "true" | ||
</nowiki></pre> | </nowiki></pre> | ||
To the device section in your xorg.conf. | To the device section in your xorg.conf. | ||
第146行: | 第146行: | ||
* '''When running autogen.sh for the openchrome 2D driver, I get errors like | * '''When running autogen.sh for the openchrome 2D driver, I get errors like | ||
<pre><nowiki> | <pre><nowiki> | ||
configure.ac: 30: required file `./[config.h].in' not found | configure.ac: 30: required file `./[config.h].in' not found | ||
unichrome/Makefile.am:33: via_drv_la_SOURCES defined both conditionally and unconditionally | unichrome/Makefile.am:33: via_drv_la_SOURCES defined both conditionally and unconditionally | ||
</nowiki></pre> | </nowiki></pre> | ||
This is due to having multiple versions of automake installed with the wrong version as the default. Run | This is due to having multiple versions of automake installed with the wrong version as the default. Run | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo update-alternatives --config automake | sudo update-alternatives --config automake | ||
</nowiki></pre> | </nowiki></pre> | ||
and choose automake-1.9. | and choose automake-1.9. | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年12月6日 (四) 10:49的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/OpenChrome }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/af | • {{#if: UbuntuHelp:OpenChrome|Afrikaans| [[::OpenChrome/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/ar | • {{#if: UbuntuHelp:OpenChrome|العربية| [[::OpenChrome/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/az | • {{#if: UbuntuHelp:OpenChrome|azərbaycanca| [[::OpenChrome/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/bcc | • {{#if: UbuntuHelp:OpenChrome|جهلسری بلوچی| [[::OpenChrome/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/bg | • {{#if: UbuntuHelp:OpenChrome|български| [[::OpenChrome/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/br | • {{#if: UbuntuHelp:OpenChrome|brezhoneg| [[::OpenChrome/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/ca | • {{#if: UbuntuHelp:OpenChrome|català| [[::OpenChrome/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/cs | • {{#if: UbuntuHelp:OpenChrome|čeština| [[::OpenChrome/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/de | • {{#if: UbuntuHelp:OpenChrome|Deutsch| [[::OpenChrome/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/el | • {{#if: UbuntuHelp:OpenChrome|Ελληνικά| [[::OpenChrome/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/es | • {{#if: UbuntuHelp:OpenChrome|español| [[::OpenChrome/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/fa | • {{#if: UbuntuHelp:OpenChrome|فارسی| [[::OpenChrome/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/fi | • {{#if: UbuntuHelp:OpenChrome|suomi| [[::OpenChrome/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/fr | • {{#if: UbuntuHelp:OpenChrome|français| [[::OpenChrome/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/gu | • {{#if: UbuntuHelp:OpenChrome|ગુજરાતી| [[::OpenChrome/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/he | • {{#if: UbuntuHelp:OpenChrome|עברית| [[::OpenChrome/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/hu | • {{#if: UbuntuHelp:OpenChrome|magyar| [[::OpenChrome/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/id | • {{#if: UbuntuHelp:OpenChrome|Bahasa Indonesia| [[::OpenChrome/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/it | • {{#if: UbuntuHelp:OpenChrome|italiano| [[::OpenChrome/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/ja | • {{#if: UbuntuHelp:OpenChrome|日本語| [[::OpenChrome/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/ko | • {{#if: UbuntuHelp:OpenChrome|한국어| [[::OpenChrome/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/ksh | • {{#if: UbuntuHelp:OpenChrome|Ripoarisch| [[::OpenChrome/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/mr | • {{#if: UbuntuHelp:OpenChrome|मराठी| [[::OpenChrome/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/ms | • {{#if: UbuntuHelp:OpenChrome|Bahasa Melayu| [[::OpenChrome/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/nl | • {{#if: UbuntuHelp:OpenChrome|Nederlands| [[::OpenChrome/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/no | • {{#if: UbuntuHelp:OpenChrome|norsk| [[::OpenChrome/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/oc | • {{#if: UbuntuHelp:OpenChrome|occitan| [[::OpenChrome/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/pl | • {{#if: UbuntuHelp:OpenChrome|polski| [[::OpenChrome/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/pt | • {{#if: UbuntuHelp:OpenChrome|português| [[::OpenChrome/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/ro | • {{#if: UbuntuHelp:OpenChrome|română| [[::OpenChrome/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/ru | • {{#if: UbuntuHelp:OpenChrome|русский| [[::OpenChrome/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/si | • {{#if: UbuntuHelp:OpenChrome|සිංහල| [[::OpenChrome/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/sq | • {{#if: UbuntuHelp:OpenChrome|shqip| [[::OpenChrome/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/sr | • {{#if: UbuntuHelp:OpenChrome|српски / srpski| [[::OpenChrome/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/sv | • {{#if: UbuntuHelp:OpenChrome|svenska| [[::OpenChrome/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/th | • {{#if: UbuntuHelp:OpenChrome|ไทย| [[::OpenChrome/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/tr | • {{#if: UbuntuHelp:OpenChrome|Türkçe| [[::OpenChrome/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/vi | • {{#if: UbuntuHelp:OpenChrome|Tiếng Việt| [[::OpenChrome/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/yue | • {{#if: UbuntuHelp:OpenChrome|粵語| [[::OpenChrome/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/zh | • {{#if: UbuntuHelp:OpenChrome|中文| [[::OpenChrome/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/zh-hans | • {{#if: UbuntuHelp:OpenChrome|中文(简体)| [[::OpenChrome/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenChrome | UbuntuHelp:OpenChrome | {{#if: | :}}OpenChrome}}/zh-hant | • {{#if: UbuntuHelp:OpenChrome|中文(繁體)| [[::OpenChrome/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:OpenChrome|:OpenChrome|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :OpenChrome/zh | | {{#ifexist: OpenChrome/zh | | {{#ifeq: {{#titleparts:OpenChrome|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:OpenChrome|1|-1|}} | zh | | }}
openChrome' is a free and open source video driver for the ASROCK/VIA/S3G UniChrome and UniChrome Pro graphics chipsets. (CLE266, KN400, KM400, K8M800, PM800, CN400, CN700, VN800, K8M890, P4VM800)
For more information, please visit [1].
The openchrome driver can be installed by the command
sudo apt-get install xserver-xorg-video-openchrome
This replaces your current via driver with the openchrome one. That driver module is still called via, so via is what you need to select or write into your /etc/X11/xorg.conf file (for details see below).
Read on if this doesn't work for you.
Manual Installation
This howto will help you compile and install the openChrome driver in Ubuntu 6.06 LTS and up. It should also work on Debian and other Debian based distributions like Kanotix and Knoppix.
Before You Start
- You must have administrative privileges.
- Make sure you have enabled the Universe and Multiverse repositories.
See Managing Repositories in Ubuntu or Kubuntu for help with this.
openChrome 2D driver compilation
- Install needed packages
In Ubuntu 6.10 (Edgy) and 7.04 (Feisty), run:
sudo apt-get build-dep xserver-xorg-video-via
In Ubuntu 6.06.1 (Dapper), Debian and other Debian based distributions, run:
sudo apt-get build-dep xserver-xorg-driver-via
In both versions you should also run:
sudo apt-get install subversion autoconf automake1.9 libtool
- Start the real fun
We will now compile the openChrome 2D driver
- For chipsets different from K8M890 get the openChrome sourcecode like this:
svn checkout http://svn.openchrome.org/svn/trunk openchrome
- For K8M890 chipset, alternatively run :
svn co http://svn.openchrome.org/svn/branches/experimental_branch openchrome-vt3336
- Change into the newly created directory
cd openchrome*
- Run autogen.sh with the prefix option so that the driver is being installed in the correct directory
./autogen.sh --prefix=/usr
- Compile openChrome
make
- Install openChrome
sudo make install
Now we have to edit /etc/X11/xorg.conf and change the Device Driver to via
gksudo gedit /etc/X11/xorg.conf
Or in Kubuntu
kdesu kate /etx/X11/xorg.conf
Go to
Section "Device"
and change
Driver "vesa"
to
Driver "via"
Save the file.
Finally, we have to restart our X server. You can do this by logging out and pressing Ctrl-Alt-Backspace from the login screen.
If Xorg does not start anymore, log in in a console and change the Driver in the Device section back with an editor like nano. (Write the following on a piece of paper.)
sudo nano /etc/X11/xorg.conf
openChrome and 3D
3D should work out of the box in Edgy. If it does not do the following:
- Install required packages
Get the kernel headers package and the client tool for retreiving source code from a git source code repository. In a terminal, type:
sudo apt-get install git-core linux-headers-generic
- Obtain the sourcecode
git clone git://anongit.freedesktop.org/git/mesa/drm
- Compile libdrm and drm kernel modules
- libdrm
- libdrm
Change to the directory where the drm sourcecode is stored
cd drm
Run the autogen script
./autogen.sh --prefix=/usr
Compile the source code
make
Install the compiled source code
sudo make install
- drm kernel modules
Change to the correct directory (you have to already be in the directory drm)
cd linux-core
Compile the kernel modules
make LINUXDIR=/lib/modules/`uname -r`/build DRM_MODULES=via
If you get errors like that in Ubuntu 7.04 (Feisty)...
/home/shad/stuff/drm/linux-core/drm_compat.c:190: error: static declaration of ‘vm_insert_pfn’ follows non-static declaration include/linux/mm.h:1126: error: previous declaration of ‘vm_insert_pfn’ was here make[2]: *** [/home/shad/stuff/drm/linux-core/drm_compat.o] Error 1 make[1]: *** [_module_/home/shad/stuff/drm/linux-core] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic' make: *** [modules] Error 2
...this topic: http://ubuntuforums.org/showthread.php?t=419094 could be helpful. Copy the kernel modules to the correct location
sudo cp *.ko /lib/modules/`uname -r`/kernel/drivers/char/drm/
Run depmod
sudo depmod -ae
Launch the modules
sudo modprobe drm sudo modprobe via
Test with the following command
glxinfo | grep render
You should obtain a line saying "direct rendering: Yes" If it works, add the modules so that they are launched at start up
echo "drm" | sudo tee -a /etc/modules echo "via" | sudo tee -a /etc/modules
That should be it. Reboot and see how it goes.
Deb packages repository
SVN will have the lastest fixes on the openchrome, but if you prefer a .deb binary package you will find it at: http://wiki.openchrome.org/tikiwiki/tiki-index.php?page=Collection+of+contributed+binary+packages so, download the .deb for your Ubuntu version an then
sudo dpkg -i [package_name.deb]
this will install the driver for you, after that edit your xorg configuration. (see Change the Xorg driver to via)
Problems and solutions
- My system sometimes freezes
This is being caused by a bug in drm. To solve this, you have to uncomment
Load "dri"
in your xorg.conf. As a result, you won't have 3D acceleration anymore, but your system won't freeze.
- I do not have any picture when playing videos
This mostly happens when using a laptop and is caused by openChrome not supporting Xv correctly on some models. You can try to change the video driver in Xine to "gl" or "x11" and see if that helps. This problem does not appear when not using the integrated LCD and using an external monitor instead. The OpenChrome ticket for that is located here: [2]
- My mouse cursor sometimes disappears
This is known to happen on VN800 and VM800 chipsets. As a solution, you can try to add
Option "SWCursor" "true"
To the device section in your xorg.conf.
- I installed a kernel update. Now 3D does not work anymore
You have to recompile the drm kernel module. The procedure is described above.
- When running autogen.sh for the openchrome 2D driver, I get errors like
configure.ac: 30: required file `./[config.h].in' not found unichrome/Makefile.am:33: via_drv_la_SOURCES defined both conditionally and unconditionally
This is due to having multiple versions of automake installed with the wrong version as the default. Run
sudo update-alternatives --config automake
and choose automake-1.9.