Via Chrome9 HC, Ubuntu 9.04 - 3D Hardware Rendering
UPDATE (12/25/2009): Did some searching recently, and found this: http://blog.lingquest.org/2009/11/ubuntu910-hpmini2133-chrome9-driver/
While I can't say for sure that the above will work under 9.04, I have tested it under 9.10 and can verify that it does work (at least for me anyway).
Warning: At the moment this does not work, there's a problem with via_drv.so and Xorg 7.2. While I'm still looking for a solution to this (one that doesn't involve downgrading Xorg), I figure someone else might be able to solve the problem while I take a break from it. As such, I'm posting what I've got so far.
I've been debating over the past week whether or not I should attempt to get 3D working before Via posts their new drivers for 9.04. However, despite the nagging feeling that they'll give them out as soon as I do so, I'm writing down my attempts to get hardware acceleration working. A few people have reported getting things working using the kernel packaged with 8.10, but none have told exactly how to do so if you haven't upgraded from 8.10 to 9.04. Unfortunately, that's where I come in.
Some things here might be specific to the HP Mini 2133 (1280x768 display size), or the Via CN896/VN896/P4M900 GPU. While I'll do my best to make it clear, I might miss some, so watch out.
Keep in mind, all of this is done using the terminal, if you don't know where to find it, you can always use xterm. To start it, press alt+f2, this will bring up the 'Run Application' dialog (or something similar, depending on your desktop environment), then type 'xterm' (without the quotes) into the dialog box and click 'Run'. If you've mapped 'Run Application' to something else, I can't help you, you're on your own.
Downloading the Kernel and Drivers
First things first, we need the Linux kernel that came in 8.10:
We'll also be needing the Via drivers:
WiFi Drivers
Note: I you have a Broadcom card that isn't supported by the b43xx driver, or if you're using the STA driver, you might want to switch to using the Windows driver for it.
To install the Windows version of the wireless driver, at least if you have a Broadcom BCM4312 WiFi card, follow the instructions under Wireless Driver at (at the time of writing, it was number 8 on the list):
https://wiki.ubuntu.com/LaptopTestingTeam/HP2133#Drivers and Fixes
After that, you'll probably have to blacklist the STA driver:
Should something go wrong, and you need the STA driver back, just use:
Installing
Next we'll move on to installing the new (old) kernel, and the Via drivers.
Install the kernel and headers:
Before proceeding, you'll need to reboot, be sure to hit escape when you see grub, then select the 2.6.27-7-generic kernel from the list.
Next we'll install the via drivers.
First, unpack the drivers:
Next, cd to the directory, and run the installer:
After that we need to revert to the via_chrome9.ko that came with the kernel:
Add via and via_chrome9 to the list of modules to load:
Configuring X
Lastly, we need a working xorg.conf, I used the one described here, though it needs modification to work at 1280x768 (the resolution that this particular laptop uses):
https://wiki.ubuntu.com/LaptopTestingTeam/HP2133/DisplayConfig810#xorg.conf for 3D
And now the problems
Reboot, don't forget to hit esc when you get to grub, and select the correct kernel. If all goes well, it should work. If your setup is anything like mine though, it won't, you'll end up with a blank screen, and a non-working X. This is because via_drv.so is somewhat incompatible with Xorg 7.2.
The interesting bits from my :0.log.1:
And a link to the Xorg.0.log:
http://www.rummik.com/f/log/Xorg.0.log
Some googling seems to point to the need to downgrade Xorg in order to get it to work, not something I really want to do, as it could potentially break OpenChrome in the process. I'll have to keep looking.
Should anyone stumble on to this post who has another idea, feel free to let me know.
Reverting
To go back to using the OpenChrome driver from 9.04, we need to remove the /etc/X11/xorg.conf that we put in:
Then reboot once more, be sure to let grub do its thing, and you'll be back to using OpenChrome.
While I can't say for sure that the above will work under 9.04, I have tested it under 9.10 and can verify that it does work (at least for me anyway).
Warning: At the moment this does not work, there's a problem with via_drv.so and Xorg 7.2. While I'm still looking for a solution to this (one that doesn't involve downgrading Xorg), I figure someone else might be able to solve the problem while I take a break from it. As such, I'm posting what I've got so far.
I've been debating over the past week whether or not I should attempt to get 3D working before Via posts their new drivers for 9.04. However, despite the nagging feeling that they'll give them out as soon as I do so, I'm writing down my attempts to get hardware acceleration working. A few people have reported getting things working using the kernel packaged with 8.10, but none have told exactly how to do so if you haven't upgraded from 8.10 to 9.04. Unfortunately, that's where I come in.
Some things here might be specific to the HP Mini 2133 (1280x768 display size), or the Via CN896/VN896/P4M900 GPU. While I'll do my best to make it clear, I might miss some, so watch out.
Keep in mind, all of this is done using the terminal, if you don't know where to find it, you can always use xterm. To start it, press alt+f2, this will bring up the 'Run Application' dialog (or something similar, depending on your desktop environment), then type 'xterm' (without the quotes) into the dialog box and click 'Run'. If you've mapped 'Run Application' to something else, I can't help you, you're on your own.
Downloading the Kernel and Drivers
First things first, we need the Linux kernel that came in 8.10:
wget http://launchpadlibrarian.net/19356984/linux-image-2.6.27-7-generic_2.6.27-7.16_i386.deb
wget http://launchpadlibrarian.net/19356986/linux-headers-2.6.27-7-generic_2.6.27-7.16_i386.deb
wget http://launchpadlibrarian.net/19356987/linux-headers-2.6.27-7_2.6.27-7.16_all.debWe'll also be needing the Via drivers:
wget http://www.viaarena.com/Driver/5.74.33.85a-44597.tar.gzWiFi Drivers
Note: I you have a Broadcom card that isn't supported by the b43xx driver, or if you're using the STA driver, you might want to switch to using the Windows driver for it.
To install the Windows version of the wireless driver, at least if you have a Broadcom BCM4312 WiFi card, follow the instructions under Wireless Driver at (at the time of writing, it was number 8 on the list):
https://wiki.ubuntu.com/LaptopTestingTeam/HP2133#Drivers and Fixes
After that, you'll probably have to blacklist the STA driver:
sudo sh -c 'echo "blacklist wl" >> /etc/modprobe.d/blacklist.conf'Should something go wrong, and you need the STA driver back, just use:
sudo sh -c 'grep -v "blacklist wl" /etc/modprobe.d/blacklist.conf > /etc/modprobe.d/blacklist.conf'Installing
Next we'll move on to installing the new (old) kernel, and the Via drivers.
Install the kernel and headers:
sudo dpkg -i *linux*2.6.27-7*.debBefore proceeding, you'll need to reboot, be sure to hit escape when you see grub, then select the 2.6.27-7-generic kernel from the list.
Next we'll install the via drivers.
First, unpack the drivers:
tar -xzf 5.74.33.85a-44597.tar.gzNext, cd to the directory, and run the installer:
cd 5.74.33.85a-44597/
sudo ./vinstallAfter that we need to revert to the via_chrome9.ko that came with the kernel:
mv /lib/modules/2.6.27-7-generic/kernel/ubuntu/via_chrome9/via_chrome9.ko /lib/modules/2.6.27-7-generic/kernel/ubuntu/via_chrome9/via_chrome9.ko.brk
mv /lib/modules/2.6.27-7-generic/kernel/ubuntu/via_chrome9/via_chrome9.ko.viabak /lib/modules/2.6.27-7-generic/kernel/ubuntu/via_chrome9/via_chrome9.koAdd via and via_chrome9 to the list of modules to load:
sudo sh -c 'echo "via" >> /etc/modules; echo "via_chrome9" >> /etc/modules'Configuring X
Lastly, we need a working xorg.conf, I used the one described here, though it needs modification to work at 1280x768 (the resolution that this particular laptop uses):
https://wiki.ubuntu.com/LaptopTestingTeam/HP2133/DisplayConfig810#xorg.conf for 3D
And now the problems
Reboot, don't forget to hit esc when you get to grub, and select the correct kernel. If all goes well, it should work. If your setup is anything like mine though, it won't, you'll end up with a blank screen, and a non-working X. This is because via_drv.so is somewhat incompatible with Xorg 7.2.
The interesting bits from my :0.log.1:
/usr/X11R6/bin/X: symbol lookup error: /usr/lib/xorg/modules/drivers//via_drv.so: undefined symbol: xf86GetVersionAnd a link to the Xorg.0.log:
http://www.rummik.com/f/log/Xorg.0.log
Some googling seems to point to the need to downgrade Xorg in order to get it to work, not something I really want to do, as it could potentially break OpenChrome in the process. I'll have to keep looking.
Should anyone stumble on to this post who has another idea, feel free to let me know.
Reverting
To go back to using the OpenChrome driver from 9.04, we need to remove the /etc/X11/xorg.conf that we put in:
sudo rm /etc/X11/xorg.confThen reboot once more, be sure to let grub do its thing, and you'll be back to using OpenChrome.
Labels: 2133, 3d, 9.04, chrome9, drivers, hp, mini, mini-note, ubuntu, via
9 Comments:
At June 24, 2009 11:00 AM ,
delirus42 said...
I have the chrome9 drivers from 8.10 working well in a gentoo install that has 7.2. I actually have no idea how I got it all working though. Dumb luck on my part.
Check the permissions of some of the binary driver files maybe?
At July 14, 2009 10:30 AM ,
goten said...
i have a hp mini 2133 with chrome9 drive
and the specs of the mechine says 256 mb grafics sheared
so how can i work it up in ubundu 9
olzz helpppppp
At July 14, 2009 10:32 AM ,
goten said...
plz help
the method of urs got me a black screen
so on offense
i wan to work graphics in my hp 2133
256 mb shared
At July 14, 2009 4:46 PM ,
goten said...
plz help..i an desperate i dont wana use windows
i want to teach all to use ubundu
so plz help
At July 30, 2009 12:42 PM ,
rummik said...
So far I still haven't gotten the drivers working without downgrading, which seems to cause more problems than it's worth.
Right now I plan on waiting for OpenChrome to get up to speed (though I'd also recommend bugging Via for the rest of the information required for working 3D).
@delirus42:
Hm, I don't think permissions are the issue here, but I'll have to poke around sometime to see.
On another note, it looks as though I should check up on my blog a bit more often, hadn't realized people started visiting.
At August 24, 2009 3:44 PM ,
Ashwyn said...
Thought you might be interested, as of 3 days ago (aug 21) there is a 2D + DRM proprietary via driver available for ubuntu 9.04! Havent tried it yet though.
http://linux.via.com.tw/support/downloadFiles.action
At August 25, 2009 2:17 PM ,
Ashwyn said...
Having trouble compiling it. It seems to require packages not in the ubunut repos. If anyone has more success, let me know!
At August 27, 2009 11:11 AM ,
Ashwyn said...
Compiled okay, I just needed to get x11proto-xinerama-dev installed. After I compiled, I changed the line in xorg.conf:
Section "Device"
Driver "openchrome"
to
Section "Device"
Driver "via"
But now it says cannot load module because it does not exist.
Someone with what seems to be the same problem here. I don't know much about xorg, I'm gonna see if I need to add something like
Section "Module"
Load "via"
I'll let you know how it goes.
At August 27, 2009 4:31 PM ,
Ashwyn said...
After much futile searching, and modifying my xorg.conf, I tried the one that you linked to in this article, and it worked!!! I am very happy, but I have no idea what I was doing wrong. All I can think of is that I was using the default 'board name' option from xorg -configure that worked with openchrome. It was quite elaborate, and specified that it was CN896/VN896/P4M400. In the copy/pasted version, it just says 'via'. Maybe that was it!
Got to go.
Post a Comment
Links to this post:
Create a Link
<< Home