Difference between revisions of "Via"

From ArchWiki
Jump to: navigation, search
m (typos)
(48 intermediate revisions by 16 users not shown)
Line 1: Line 1:
[[Category:X Server (English)]]
+
[[Category:X Server]]
[[Category:HOWTOs (English)]]
+
[[ru:Via Unichrome]]
 +
==Different Unichrome family display drivers==
  
===Different Unichrome family display drivers===
+
===The VIA proprietary drivers===
  
====The VIA proprietary drivers====
+
These are considered unstable and insecure. They are however the only way to get any form of 3D acceleration or even reliable modesetting on certain chipsets, and can be installed using the [https://aur.archlinux.org/packages/via-chrome9-dkms/ via-chrome9-dkms], [https://aur.archlinux.org/packages/xf86-video-via-chrome9/ xf86-video-via-chrome9] & [https://aur.archlinux.org/packages/via-chrome9-dri/ via-chrome9-dri] packages from the AUR.
  
These are considered unstable and unsecure.
+
===The Xorg-driver===
 
+
====The Xorg-driver====
+
  
 
The driver that comes with Xorg. Supports VIA CLE266, KM400/KN400, K8M/N800, PM/N800 and CN400 chipsets. Accelerates 2D, 3D, Xvideo and mpeg2 decoding using XvMC. Nowadays the Xorg-driver is mostly unmaintained as the development focus is on OpenChrome-driver.
 
The driver that comes with Xorg. Supports VIA CLE266, KM400/KN400, K8M/N800, PM/N800 and CN400 chipsets. Accelerates 2D, 3D, Xvideo and mpeg2 decoding using XvMC. Nowadays the Xorg-driver is mostly unmaintained as the development focus is on OpenChrome-driver.
Line 16: Line 15:
 
  pacman -S xf86-video-via
 
  pacman -S xf86-video-via
  
====The Unichrome-driver====
+
The {{ic|xorg.conf}} driver name is {{ic|via.}}
  
Another driver with the development focus on stability and clean code. Unichrome driver only supports CLE266, KM400, P4M800 and K8M800 chipsets. Doesn't support accelerated mpeg2-decoding.
+
''Update: currently (June 2013) this driver isn't available in pacman and AUR repos''
  
You can install the unichrome driver with command:
+
===The OpenChrome driver===
 
+
pacman -S xf86-video-unichrome
+
 
+
====The OpenChrome driver====
+
  
 
The most advanced and developed driver for Unichromes. Supports CLE266, KM400/KN400/KM400A/P4M800, CN400/PM800/PN800/PM880, K8M800, CN700/VM800/P4M800Pro, CX700, P4M890, K8M890 and P4M900/VN896 chipsets. Accelerates 2D, 3D, Xvideo and mpeg2 decoding using XvMC. This driver is the way to go if you want to be on the bleeding edge.
 
The most advanced and developed driver for Unichromes. Supports CLE266, KM400/KN400/KM400A/P4M800, CN400/PM800/PN800/PM880, K8M800, CN700/VM800/P4M800Pro, CX700, P4M890, K8M890 and P4M900/VN896 chipsets. Accelerates 2D, 3D, Xvideo and mpeg2 decoding using XvMC. This driver is the way to go if you want to be on the bleeding edge.
Line 30: Line 25:
 
You can install the OpenChrome driver with command:
 
You can install the OpenChrome driver with command:
  
  pacman -S openchrome
+
  pacman -S xf86-video-openchrome
  
===Unichrome and OpenGL===
+
The {{ic|xorg.conf}} driver name is {{ic|openchrome.}}
  
OpenGL support for Via's graphic chipsets is seriously outdated. At the moment you will not be able to run more fancy applications, games or compositing desktops like Compiz Fusion that rely on OpenGL as a backend, because the more recent OpenGL extensions are not yet supported in Unichrome 3D driver. You will be able to run simple OpenGL-applications though.
+
====Troubleshooting====
  
At the time of the writing of this wiki Arch-repo has libgl, unichrome-dri and mesa packages built from the Mesa 7.0.1 -branch.
+
'''Black screen when booting from LiveCD'''
  
wiki.openchrome.org states: "The 3D driver that complements the openchrome driver can be obtained from the DRI project. For now you should use the Mesa-6.4 branch; the last version known to work sort of reliably is Mesa-6.4.1."
+
If you experience a black screen when booting from Live-CD, place the following paramenter to the end of the kernel load options (please note that  {{ic|nomodeset}} option probably won't work here)
  
If you experience X freezes or weird behaviour when trying to run OpenGL-applications and you absolutely must have somewhat stable OpenGL-support you should consider rebuilding libgl, unichrome-dri and mesa -packages from the Mesa 6.4.1 -branch.
+
modprobe.blacklist=viafb
  
If you want to disable OpenGL altogether add:
+
After installing the system you'll need to blacklist {{ic|viafb}} module. Just create a file /etc/modprobe.d/blacklist.conf with the following line:
  
  disable "dri"
+
  blacklist viafb
disable "glx"
+
  
to the module section of <code>xorg.conf.</code>
+
To enable any of the following options to fix issues, first create a new file 10-openchrome.conf in /etc/X11/xorg.conf.d/:
 +
Section "Device"
 +
    Identifier "''My Device Name''"
 +
    Driver "openchrome"
 +
EndSection
  
===DPMS problems===
+
If your X-Server shows artifacts and fails to redraw some windows, try disabling the "EnableAGPDMA" option:
 +
Option    "EnableAGPDMA"              "false"
 +
 
 +
If your machine freeze at startup (GDM) or after login (slim), try adding the XAA option "XaaNoImageWriteRect".  Note that this only applies if you are using the XAA acceleration method (configured by the "AccelMethod" option).  As of 0.2.906, the default acceleration method is EXA.
 +
Option "XaaNoImageWriteRect"
 +
 
 +
If you experience significant CPU usage and low UI framerate, try adding:
 +
Option "AccelMethod" "XAA"
 +
 
 +
====Hardware Specific====
 +
=====VIA Technologies, Inc. CN896/VN896/P4M900 [Chrome 9 HC]=====
 +
The EXA acceleration method may cause significant CPU usage and low UI framerate.  Refer to the "AccelMethod" option in the [[#Troubleshooting]] section.
 +
 
 +
==Unichrome and OpenGL==
 +
 
 +
OpenGL support for Via's graphic chipsets is seriously outdated. At the moment you will not be able to run more fancy applications, games or compositing desktops like Compiz Fusion that rely on OpenGL as a backend, because the more recent OpenGL extensions are not yet supported in Unichrome 3D driver. You will be able to run simple OpenGL-applications though. The 3D driver for Unichrome is provided by the the DRI project.
 +
 
 +
Install unichrome-dri, libgl and mesa -packages to get OpenGL to work.
 +
 
 +
==DPMS problems==
  
 
If you experience problems with DPMS not turning off laptop's backlight, try adding:
 
If you experience problems with DPMS not turning off laptop's backlight, try adding:
Line 55: Line 72:
 
  Option "VBEModes" "true"
 
  Option "VBEModes" "true"
  
to the device section of <code>xorg.conf.</code>
+
to the device section of {{ic|xorg.conf.}}
 +
 
 +
==Hangup on exit==
 +
 
 +
If your computer crashes when closing X, you may try not using vesa driver for kernel console. Just delete the vga stuff from kernel line on grub or append line on lilo.
  
 
== External Resources==
 
== External Resources==
* [http://www.openchrome.org/ OpenChrome-project]
+
* [http://www.freedesktop.org/wiki/Openchrome/ OpenChrome-project]
 
* [http://unichrome.sourceforge.net/ Unichrome-project]
 
* [http://unichrome.sourceforge.net/ Unichrome-project]

Revision as of 22:01, 11 June 2013

Different Unichrome family display drivers

The VIA proprietary drivers

These are considered unstable and insecure. They are however the only way to get any form of 3D acceleration or even reliable modesetting on certain chipsets, and can be installed using the via-chrome9-dkms, xf86-video-via-chrome9 & via-chrome9-dri packages from the AUR.

The Xorg-driver

The driver that comes with Xorg. Supports VIA CLE266, KM400/KN400, K8M/N800, PM/N800 and CN400 chipsets. Accelerates 2D, 3D, Xvideo and mpeg2 decoding using XvMC. Nowadays the Xorg-driver is mostly unmaintained as the development focus is on OpenChrome-driver.

You can install the Xorg driver with command:

pacman -S xf86-video-via

The xorg.conf driver name is via.

Update: currently (June 2013) this driver isn't available in pacman and AUR repos

The OpenChrome driver

The most advanced and developed driver for Unichromes. Supports CLE266, KM400/KN400/KM400A/P4M800, CN400/PM800/PN800/PM880, K8M800, CN700/VM800/P4M800Pro, CX700, P4M890, K8M890 and P4M900/VN896 chipsets. Accelerates 2D, 3D, Xvideo and mpeg2 decoding using XvMC. This driver is the way to go if you want to be on the bleeding edge.

You can install the OpenChrome driver with command:

pacman -S xf86-video-openchrome

The xorg.conf driver name is openchrome.

Troubleshooting

Black screen when booting from LiveCD

If you experience a black screen when booting from Live-CD, place the following paramenter to the end of the kernel load options (please note that nomodeset option probably won't work here)

modprobe.blacklist=viafb

After installing the system you'll need to blacklist viafb module. Just create a file /etc/modprobe.d/blacklist.conf with the following line:

blacklist viafb

To enable any of the following options to fix issues, first create a new file 10-openchrome.conf in /etc/X11/xorg.conf.d/:

Section "Device"
    Identifier "My Device Name"
    Driver "openchrome"
EndSection

If your X-Server shows artifacts and fails to redraw some windows, try disabling the "EnableAGPDMA" option:

Option     "EnableAGPDMA"               "false"

If your machine freeze at startup (GDM) or after login (slim), try adding the XAA option "XaaNoImageWriteRect". Note that this only applies if you are using the XAA acceleration method (configured by the "AccelMethod" option). As of 0.2.906, the default acceleration method is EXA.

Option "XaaNoImageWriteRect"

If you experience significant CPU usage and low UI framerate, try adding:

Option "AccelMethod" "XAA"

Hardware Specific

VIA Technologies, Inc. CN896/VN896/P4M900 [Chrome 9 HC]

The EXA acceleration method may cause significant CPU usage and low UI framerate. Refer to the "AccelMethod" option in the #Troubleshooting section.

Unichrome and OpenGL

OpenGL support for Via's graphic chipsets is seriously outdated. At the moment you will not be able to run more fancy applications, games or compositing desktops like Compiz Fusion that rely on OpenGL as a backend, because the more recent OpenGL extensions are not yet supported in Unichrome 3D driver. You will be able to run simple OpenGL-applications though. The 3D driver for Unichrome is provided by the the DRI project.

Install unichrome-dri, libgl and mesa -packages to get OpenGL to work.

DPMS problems

If you experience problems with DPMS not turning off laptop's backlight, try adding:

Option "VBEModes" "true"

to the device section of xorg.conf.

Hangup on exit

If your computer crashes when closing X, you may try not using vesa driver for kernel console. Just delete the vga stuff from kernel line on grub or append line on lilo.

External Resources