Via chrome9 hc igp linux

Ubuntu Documentation

Revised: 7 May 2010

openChrome is a free and Open Source video driver for the VIA/S3G UniChrome, UniChrome Pro and Chrome9 graphics chipsets: CLE266, KM400/KN400/KM400A/P4M800, CN400/PM800/PN800/PM880, K8M800, CN700/VM800/P4M800Pro, CX700, K8M890, P4M890, P4M900/VN896/CN896, VX800, VX855, VX900.

Ubuntu 8.04 , Debian 5.0 and newer releases

Since Ubuntu 8.04 (Hardy Heron) and Debian 5.0 the openchrome driver is installed by default, provided by the xserver-xorg-video-openchrome package. If this driver works correctly for your needs, there is no need to compile the driver yourself.

The openchrome manual page indicates which options can be used to configure the driver by editing /etc/X11/xorg.conf. The xorg.conf manual page explains the structure of this file.

Manual Installation

These instructions will help you compile and install the openChrome driver in Ubuntu 6.06 (Dapper) and up. It should also work on Debian and other Debian-based distributions.

Before you start

    Compiling drivers is for experienced users. If you feel unsure, best is to stick to the drivers in the repositories.

Use sudo to obtain administrative privileges, in order to edit, move or install system files.

Commands for checking out source code, patching files, or compiling don’t need sudo.

openChrome 2D driver compilation

Install needed dependencies

  • Get necessary tools to compile source code:
  • Get all the dependency packages needed to build the driver. Run: Recent openChrome versions may require additional packages:

Compile and install the 2D driver

  • Get the openChrome source code from the subversion repository:
  • Change into the newly created directory:

Run autogen.sh with the prefix option so that the driver is installed to the correct directory. You may enable debug options to troubleshoot the driver in case it doesn’t work:

  • Compile openChrome:
  • Install openChrome:
  • Test the driver Restart your desktop manager by logging out and back in, or restarting your computer.

    If it doesn’t work

    If the X Server does not start any more, that is, you have a black screen. Login into safe mode by choosing option during boot. After run and login create/edit xorg.conf file located at /etc/X11/xorg.conf. Then you could use generic vesa driver in order to boot and find another solution for your problem.

    Log into textual console (Ctrl+Alt+F1), open xorg.conf

    3D doesn’t always work

    The openchrome driver (and previously the via driver) only supports 2D acceleration, and most of the time it will work.

    3D acceleration (Direct Rendering Infrastructure or DRI) is provided by a companion driver by the Mesa project and it is normally already installed on your system.

    To avoid immediate crash of the X Server, from openChrome revision 749, DRI was disabled by default for Chrome9, thus making 3D applications run in Software Rasterizer mode. This solution helps to prevent system freezing, specially with OpenGL applications, games, screensavers, and Wine (see Launchpad bug #274340). With this solution you won’t have 3D acceleration (3D applications will be slow), but your system won’t freeze.

    Keep in mind that:

    • There is no good 3D driver because VIA has not released enough chipset specifications to free software developers.
    • For desktop PC users a definitive solution to the lack of 3D features is to use another graphics card, either PCI, AGP, PCI-Express, etc. Laptop users may have to avoid 3D applications altogether.

    VIA proprietary graphics driver for Chrome9

    Note from the editor: Help clean up this section. It is not evident what exactly is being installed, or why the instructions ask to use some files for Ubuntu 8.10, and other files for Ubuntu 9.04.

    There is a VIA proprietary driver for Chrome9 chipsets that should support most of the features missing with the openChrome driver, like video decoding acceleration and 3D hardware acceleration.

    These installing instructions are for Ubuntu 9.04 and Chrome9 graphic series chipsets: CX700M/VX700/CN700/CN896/VN896/VX800/VX855.

    1. Install some packages in order to be able to compile a kernel module

    The driver can be found at the following website:

    Choose «OS: Ubuntu 8.10» and «Platform: VX800» and download the «Unified GFX driver Ver 85a-44597 for Ubuntu 8.10».

    Install the libGL.so.1.2.via_chrome9 library:

    The previous step installs the libGL library for Ubuntu 8.10, and not Ubuntu 9.04; this seems to work to some extent. The other option would be to not install it, but then GL would not be available.

    Choose «OS: Ubuntu 9.04» and «Platform: VX800» and download the «Unified 2D/DRM driver source version 86a-50283».

    Install the via_chrome9 kernel module and the via xorg driver:

    At this point, edit /etc/X11/xorg.conf to include the "via" driver in the "Device" section:

    Mixing the latest 2D VIA open source driver (v86a) with the previous GFX driver (v85a) will crash your system when starting an OpenGL program that uses textures. So refrain from doing so until VIA comes with an updated version of the GFX driver.

    Beta Drivers for Ubuntu 10.04

    Supported Chipsets

      Target system must contain one of the following VIA Chipsets:
        VIA VX800/VX855/VX900 Chipset

      Warning: This is a BETA driver!

    Installation instructions

    Since i had no 3D support with the current kernel, following instructions will install a newer kernel as the source directory in the driver package suggests («VIA_Chrome9_2.6.33»).

    You may try installing the driver with the current kernel first.

      New kernel 2.6.33
        Download and install

        linux-headers-2.6.33-02063305_2.6.33-02063305_all.deb

      Download and install the appropriate kernel headers for your architecture

        amd64linux-headers-2.6.33-02063305-generic_2.6.33-02063305_amd64.deb

      Download and install the appropriate kernel image for your architecture

        amd64linux-image-2.6.33-02063305-generic_2.6.33-02063305_amd64.deb

    • Update grub: sudo update-grub
    • Reboot and select the new kernel
  • Install Via Chrome Driver
    • We need a few more packages since we are going to compile the driver from source:

      only with current kernel 2.6.32 : sudo apt-get install linux-headers-generic
      Download driver package

      Beta Unified GFX driver Ver 87a-55689 for Ubuntu 10.04(04Aug10) (2.1M)

    • Unpack and install the driver package
    • Compile and install DRM driver
    • edit the device section in /etc/X11/xorg.conf
    • restart your display manager
  • Problems and solutions

    General

    After compiling and upgrading to the latest openChrome revision, a bug appeared. What should I do? First find in which revision the bug was introduced. You should get intermediate revisions of the openChrome driver between the last working revision, and the current one. Then, you should compile and install some revisions to determine in which revision the bug appeared. For example, to get revision 713, check out from the subversion tree: Then, enter the created directory and type: Then, compile, install, and test this revision as described above. If you can confirm that a bug was introduced in this revision, submit a bug report at:

    For the developers’ convenience, attach the X Server log /var/log/Xorg.0.log, and the X Server configuration file /etc/X11/xorg.conf.

    I found a bug in openChrome. How do I enable debug mode?

    After obtaining the source code, run autogen.sh with debug options: Then you may compile, install, and test the driver as was described above.

    When running autogen.sh for the openchrome 2D driver, I get errors like:

    This is due to having multiple versions of the automake tool installed, with the wrong version as the default. Make sure you use automake-1.9: If you have different versions installed, you can choose the default one with:

    How do I apply a patch to the openChrome driver Go into openChrome source code directory and type:

    I installed a kernel update, now 3D does not work any more. If you manually compiled and installed the VIA kernel module, you will have to recompile it with the new kernel headers, as described above.

    Disabling 3D

    My system sometimes freezes with OpenGL applications, games, screensavers, or Wine. How do I disable DRI?

    Edit /etc/X11/xorg.conf and disable DRI in the "Module" section.

    In Ubuntu 8.04 (Hardy) and newer, the X Server configures itself and the xorg.conf file no longer lists all the sections described in the manual page. In this case you can add the "Module" section to the beginning of the file, and your options will override the X Server’s defaults. Add: Without DRI, 3D effects will be software-rendered, which will be slow. This is a sensible solution for those that don’t care about desktop effects or games.

    Ubuntu 8.10

    My system sometimes freezes after loading the Gnome Desktop Manager.

    Try adding the "XaaNoImageWriteRect" option to the "Device" section of /etc/X11/xorg.conf:

    My login prompt is not centered on the screen.

    In the "Screen" section of /etc/X11/xorg.conf, try adding a "Display" subsection to include the Virtual resolution matching your screen size:

    My mouse cursor sometimes disappears or is invisible.

    This is known to happen on VIA’s K8M800, VN800 and VM800 chipsets, e.g. Axioo Neon TVR 856C / TVR 016C laptops. As a solution, try using a software-rendered cursor. For this, add the "SWCursor" option to the "Device" section of /etc/X11/xorg.conf:

    I have redrawing errors on the desktop and in various applications. Lines, icons, and sliders disappear.

    The redrawing issues can be worked around by trying "True" or "False" as values for the "EnableAGPDMA" option of the "Device" section of /etc/X11/xorg.conf:

    Ubuntu 10.04 LTS

    My Monitor does not display anything with the PM800 chip

    Revision 818 of openChrome introduced new mode switching code for the PM800 chip, which may cause problems on some setups. You can try to use the "legacy" mode-switching method in the "Device" section of /etc/xorg.conf:

    VIA 2D/DRM driver does not compile

    Currently (2010-09-21) there are only beta drivers for Ubuntu 10.04 at VIA site. The most recent stable integrated graphics drivers correspond to Ubuntu 9.04:

    Use this patch to make `H5DRM_Independent_2.6.27_28′ directory (2D/DRM driver source archive) buildable against vanilla 2.6.32-23 kernel.

    New VIA DRM Beta driver for Ubuntu 10.04: 3D does not work

    unified GFX Driver (dated 2010-08-04)

    Try compiling the DRM Driver with the new Ubuntu kernel 2.6.33 (as the source directory suggests «VIA_Chrome9_2.6.33»), its kernel headers and the following build packages installed: «sudo apt-get install build-essential autoconf automake1.9 libtool xorg-dev».

    OpenChrome (последним исправлял пользователь gang65 2014-11-18 02:00:26)

    The material on this wiki is available under a free license, see Copyright / License for details
    You can contribute to this wiki, see Wiki Guide for details

    Источник

    Пользователям VIA VX посвящается

    Здравствуй, ЛОР. После двухдневной переписки с разработчиком из Via мне удалось заполучить новую версию видеодрайвера для чипсетов VX800/VX820/VX855 от Via. Посему этот тред будет интересен, в первую очередь, владельцам ноутбуков Samsung NC20, Lenovo S12, HP 2133 и некоторых других. На оф. сайте этой версии драйверов нет. К сожалению, мне удалось заполучить драйверы только в бинарном виде, впрочем, этого достаточно. Для тех, кому это нужно/интересно.
    1. Забираете с http://linux.via.com.tw в секции 9.04 / VX800 сырцы 2D/DRM драйвера, компиляете их под свое ведро (В 2.6.30 мне потребовалось сделать небольшой патч для успешной компиляции)
    2. Устанавливаете и загружаете DRM модуль ведра «via», устанавливаете дрова X-сервера и настраиваете xorg.conf:

    Section «Device»
    Identifier «Card0»
    Driver «via»
    Option «ActiveDevice» «LCD,CRT»
    Option «PanelSize» «1280×800»
    Option «LCDPort» «LVDS0»
    VendorName «VIA Technologies, Inc.»
    BoardName «VIA Chrome9 HC3 IGP»
    EndSection

    Section «Screen»
    Identifier «Screen0»
    Device «Card0»
    Monitor «Monitor0»
    DefaultDepth 24
    SubSection «Display»
    Modes «1280×800»
    Depth 24
    EndSubSection
    EndSection

    Section «DRI»
    Mode 0666
    EndSection

    Section «ServerFlags»
    Option «AIGLX» «on»
    EndSection

    3. Забираете архив с экспериментальными дровами, о котором сабж.
    4. Достаете оттуда все что касается 3D: libGL, via_chrome9_dri и.т.д. Модуль ведра и via_drv вы уже собрали на шаге 2, они Вам не понадобятся.
    5. Все распихиваете в нужные места, depmod -a, ldconfig.
    6. Наслаждаетесь аппаратным ускорением mplayer -vo xv, а также openGL 1.2

    В glxgears при вышеописанном допиливании имею 430fps стабильно.
    Драйвер может быть немного глючным. 2D/DRM часть имеет открытый код и можно копаться.

    Собственно экспериментальные дрова:
    http://rghost.ru/493699

    Re: Пользователям VIA VX посвящается

    Re: Пользователям VIA VX посвящается

    Апдейт. Помимо того, что уже публиковалось, теперь есть и заточенный под Suse 11 драйвер, тоже бинарный. Согласно свежей информации от разработчика, в перспективе планируется включение DRM модуля в mainline kernel, прицел на 32 / 33, сейчас над этим идет работа.

    На всякий случай залью экспериментальный драйвер на новый хост.

    Re: Пользователям VIA VX посвящается

    Re: Пользователям VIA VX посвящается

    Еще несколько важных моментов.

    1.
    У некоторых возникают проблемы с XRandr на этих драйверах.
    Можно его просто выключить из xorg.conf:

    Section «ServerLayout»
    Identifier «ConfiguredLayout»
    Option «RandR» «false»
    EndSection

    2.
    Скрипт ./vinstall из 86a-50937 запишет вам свой xorg.conf, совершенно неправильный. Но имевшийся будет забекаплен в /etc/X11/xorg.conf.viabak

    3.
    В нульпосте возможна ошибка в пункте 2. Из-за неразберихи в Via модуль DRM называется кое-где via, а кое-где via_chrome9. По моим данным, первый — огрызок от модуля для карт поколения UniChrome. Поэтому у меня модуль via занесен в блеклист, а загружается via_chrome9.

    4.
    В июле-августе стало известно о несвободном статусе части 3D драйвера. По словам Via, откывать его не будут. Сообществу были предложены книжки со спецификациями и дан намек делать.

    5.
    У некоторых пользователей libGL.so.2.via_chrome9 не «заводится» на X сервере начиная с версии 7.5. На 7.4 работает точно. А у некоторых все живет и на 7.6-devel. Почему — я так и не смог понять.

    6.
    Для тех, кому не хочется заниматься этим онанизмом, есть openchrome, благо с неделю назад вышла новая версия 0.2.904. В ней поддерживается это железо, все работает сразу и берется это счастье из SVN или даже пакетом (Я собрал .deb со свежего чекаута, могу выслать).
    Но про вкусности вроде аппаратного ускорения забудьте.

    7.
    Это, хммм, how-to, поток сознания я здесь оставляю не как мусор, а как именно how-to. Я сам после очередной переустановки уже приходил сюда за своими же инструкциями и файлами. Так что, если все это вам кажется ненужным мусором, проходите мимо, пожалуйста.

    Re: Пользователям VIA VX посвящается

    Не поделитесь тогда до кучи — how to патчить под ядро драйвер DRI? в сырцах толи 27 толи 28, откатывать с 2.6.31 не очень хочется, с wifi проблемы решать придется ( Arch x86_64 kernel 2.6.31 . выполнил ./vinstall ldconfig ругается ldconfig: libraries libGL.so.1 and libGL.so.1.2 in directory /usr/lib have same soname but different type. .

    find /usr/lib | grep libGL /usr/lib/libGL.so.1 /usr/lib/libGLU.so.1.3.070501 /usr/lib/libGLw.so.1 /usr/lib/libGL.so.1.2 /usr/lib/libGLw.so.1.0.0 /usr/lib/libGLU.so /usr/lib/libGLw.so /usr/lib/libGLU.so.1 /usr/lib/libGL.so /usr/lib/libGL.so.1.2.via_chrome9

    в какую сторону гуглить чтобы обратно фарш раскрутить?

    Re: Пользователям VIA VX посвящается

    Что касается DRM модуля, я использовал H5DRM, под ядро 28. Я по разному с ним упражнялся, но самым важным для меня было убрать все упомниания о dri_library_name.

    Что касается libGL.so, к нему ведет несколько символических ссылок, причина мне, честно говоря неизвестна. Важно то, что пере использованием ./vinstall следует удалить все имевшиеся драйверы, такие как openchrome или более старые версии драйвера via. Могу предложить взглянуть в ldconfig на то, как и что залинковано с libGL.so и опубликовать сюда.

    Ядро откатывать, размеется, не надо. Все работает и с 30, и с 31.

    Re: Пользователям VIA VX посвящается

    Лень репостить сюда, скину ссылку специально для убунтоводов.
    Там находится мой пост, подробно описывающий процесс инсталляции.
    Кроме того, по этой ссылке архив отличается, там изменен xorg.conf
    в поставке и скрипт установки. Чтобы практически не надо было думать.

    Re: Пользователям VIA VX посвящается

    не осилил скомпилить DRM под 2.6.31 убрал и dri_library_name из 220 строки и почистил так и этак — не заводится . не поделитесь пропатченным via_chrome9_drm.c ? ) ldconfig заборол, да, гуглить полезно )

    Re: Пользователям VIA VX посвящается

    К сожалению я сейчас не имею доступа к компьютеру с железом Via, а там же лежат драйверы. А может дадите вывод ошибки? Я более-менее помню что к чему. И какая версия libdrm2 у Вас, кстати.

    Re: Пользователям VIA VX посвящается

    Пропатчил ведро ( пришлось повозится, в основном из-за исчезновения drm_free и прочего, что заменил на kfree и еще всякую шушеру, заняло от силы минут 20. Работает на ура, обрадовался, когда 600 фпс смог получить, но потом обновил иксы и какая-то лажа пошла ( glxgears не запускались и прочее ), перешел на опенхром, работает хорошо ( 120-160 фпс ). Я доволен. Сижу на самсунге нс20. Патч к ядру: http://mirror.ls-home.org/distfiles/genpatches-2.6.31-4.lastrix.tar.bz2

    Если хочется 3д, то сидеть придется на старом ксорге ( 1.5.3-r6 ).

    Re: Пользователям VIA VX посвящается

    Re: Пользователям VIA VX посвящается

    Спасибо за внимание уделенное моей проблеме ) К сожалению, вынужден тратить все имеющееся время на текущие проекты, и самообразование, эксперименты придется отложить. Скорее всего закончу как раз к выходу 2.6.33 ))

    Re: Пользователям VIA VX посвящается

    Да. на Убунте работает. Я собственно любимую Генту убил ради запуска этого драйвера на Убунте.

    А на генту буде работать или нет? Я начинающий линуксовод. Не сильно осведемлен о бинарной совместимости.

    Пользователям VIA VX посвящается

    На генте ( проверено 100% работает ) дрова от виа ( топикстарт смотри ссылку на файлы ) работают шикарно, качаешь патч ( ищи выше в моем же посте), если не знаешь как ебилд сделать, то вот он: http://ls-home.org/gentoo-sources-2.6.31_p20091015.ebuild ( это фактически ядро gentoo-sources-2.6.31-r3 ). Потом делаешь тоже что описано в начале. Стабильно glxgears выдает 500-600 фпс, даже hdtv-видео смотрел через nfs, и без лагов ))))

    Да и кстати, дрм для опенхрома не работает, если не пропатчить include/drm/drm_pciids.h . Без добавление VX800 в этот файл дрм не работает, с ним же фпс в 2 раза подскакивают ( с 80 до 160 ). Кстати патч включен в тот патч наверху.

    А генту убил зря кстати ))) Нужно немного уметь гуглить и читать маны. Думаю на неделе посмотреть почему на ксорге 1.6 не работают эти дрова. может найду как исправить ). ЗЫ 2д-ускоритель и дрм работают везде )

    Re: Пользователям VIA VX посвящается

    Вах. пасиба. С генту проста разметка была кривая. Лень перемещать. чистить. Решил координально. Ну если на 31-ом ядре всё отлично работает. Это супер. Буду пилить. Ибо гента куда шустрее.

    Пользователям VIA VX посвящается

    Протестировал еще раз на 1.6, дрова работают, чистый гном когда, то фпс 400 ( можно даже в мплеере смотреть hdtv 720р ), но запустил оперу начались лаги, причем нипадецки, в том числе и при вводе, как например сейчас, когда я пишу, так что перейду обратно на openchrome, там хоть стабильно 130-160 фпс, и ничего не глючит. Правда hdtv уже не посмотришь )))

    Источник

    Читайте также:  Windows forms console window
    Оцените статью