Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > LCD/Display


Reply
 
Share Thread Tools Display Modes
Old 04-24-2005, 09:04 PM   #1
Maximum Bitrate
 
Change's Avatar
 
Join Date: Aug 2004
Location: California
Posts: 482
Change is on a distinguished road
Thumbs up 800x480 SUCCESS in Linux with VIA onboard video!

IT WORKS!!!!

First off, I want to thank Ivor (orv on these forums) of the Unichrome open-source driver project (http://unichrome.sf.net) for his work on the project and his pointers in the right direction.

Now, here's how I got this working under Debian Sarge:

From this site I got the basic info on how to get the X source package downloaded and building (which you must do to get this working).
Make sure you've run apt-get update and apt-get dist-upgrade recently to get everything up-to-date. Then (I did this in /usr/local/src) run "apt-get source xfree86" followed by "apt-get build-dep xfree86". Change into the xfree86 directory that was created by the source package download, and run "dpkg-buildpackage". This doesn't need to complete, but it has to get pretty far along. Grab a sandwich and a nice glass of water, and a cookie. I reccomend oatmeal with chocolate chips, but this isn't critical to the build process.

In another shell, changedir to /usr/local/src/xfree86-blahblah/build-tree/xc/programs/Xserver/hw/xfree86/drivers/via
When you can successfully run "make" in this directory with no errors, the X build process is far enough along, and you can terminate it.

Next, I followed the directions on this page to get the latest CVS source.
Back up one directory level to /usr/local/src/xfree86-blablah/build-tree/xc/programs/Xserver/hw/xfree86/drivers
Run "cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/unichrome co xfree86"
Then "rm -rf via" and "mv xfree86 via" (or "ln -s xfree86 via" as is listed in the directions...up to you).
Go into the via directory, edit "via_mode.h" and search for the ViaDotClocks section. Add the following line (not sure if it has to be in order, I inserted it into the appropriate place just in case): "{ 31746, 0x1733, 0 },". This sets up the correct dot clock register for the modeline Xenarc reccomends in their FAQ.
Now save and exit the editor, and "make". Should build successfully. "cp via_drv.o /usr/X11R6/lib/modules/drivers".
Now make sure you're using the modeline listed in the Xenarc FAQ, "Modeline "800x480" 31.746 800 860 940 1000 480 508 511 525 -hsync -vsync".

Oh, and also make sure X is now set up to use the via driver instead of VESA or whatever you may have been using before.

Hmm, suppose I should set up a web page with example files and such. I'll probably do that in a week or so when I'm less busy.

If you have problems I'm not sure how many questions I can answer, I got all this figured out after a few days' worth of stumbling through Google.

And no, I still have no idea how you'd get this working in Windows, and I don't know what steps would be different for Red Hat, Mandrake, SUSE, Slackware, Gentoo, or any of the other distros out there, or how to get it working with Lilliput monitors.

Last edited by Change; 04-24-2005 at 09:08 PM. Reason: fix a problem with a smiley popping up in the cvs command
Change is offline   Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 04-25-2005, 02:16 AM   #2
orv
Newbie
 
orv's Avatar
 
Join Date: Apr 2005
Location: Surrey, UK.
Posts: 11
orv is on a distinguished road
Cool.
Now do all those who questioned my assertion that this was simple to do... get to wear T-Shirts printed with "Linux rocks, VIA sucks" ?
orv is offline   Reply With Quote
Old 04-25-2005, 03:38 AM   #3
Newbie
 
Join Date: Apr 2005
Posts: 30
darkciti is on a distinguished road
Via can't suck that bad, they're hackable!

Anyone tried this with x.org? It should work considering it's just a Modeline adjustment to the driver...
__________________
http://carputers.org/
darkciti is offline   Reply With Quote
Old 04-25-2005, 03:43 AM   #4
Raw Wave
 
Join Date: Jun 2004
Location: On the beach
Posts: 2,225
Gobby is on a distinguished road
I s'ppose it proves one thing, its just a driver that needs sorting not the BIOS.
Gobby is offline   Reply With Quote
Old 04-25-2005, 04:06 AM   #5
Maximum Bitrate
 
Change's Avatar
 
Join Date: Aug 2004
Location: California
Posts: 482
Change is on a distinguished road
Quote: Originally Posted by darkciti
Via can't suck that bad, they're hackable!

Anyone tried this with x.org? It should work considering it's just a Modeline adjustment to the driver...

The Unichrome drivers were derived by reverse-engineering the old VIA binary drivers, if I remember right.

And yeah, should work with X.org. Not quite a modeline adjustment, involves adding another entry to the dotclock lookup table, but yeah.
Change is offline   Reply With Quote
Old 04-25-2005, 04:39 AM   #6
orv
Newbie
 
orv's Avatar
 
Join Date: Apr 2005
Location: Surrey, UK.
Posts: 11
orv is on a distinguished road
Quote:
Anyone tried this with x.org?

The unichrome driver works fine on x.org, that's what I do all my development on. In fact as long as you're not using a unichrome-pro board then the current xorg cvs contains an up to date driver already.

Quote:
Via can't suck that bad, they're hackable!

You have got to be kidding! They don't suck because its possible for amateur developers to achieve what they claim is impossible and have been "researching" for months?! ROFL.

Change - FYI you don't need to fiddle about building the driver inside the X tree, you can build it in its own directory, which makes keeping things updated simpler.

....and finally when you have found the best clock settings, please report them to the unichrome list.


Cheers,

PS
Quote:
The Unichrome drivers were derived by reverse-engineering the old VIA binary drivers, if I remember right.

It's a bit more complicated than that. But in brief, the drivers are based on the original 'lite' via driver source they released a few years ago, the mpeg code had to be reverse engineered because VIA refuses to release the details because they are a "commercial secret", details of the video registers were also not released and had to be deduced, and the free modes code was written by trial and error by Luc Verhaegen.

Last edited by orv; 04-25-2005 at 05:01 AM.
orv is offline   Reply With Quote
Old 04-25-2005, 05:12 AM   #7
Maximum Bitrate
 
Change's Avatar
 
Join Date: Aug 2004
Location: California
Posts: 482
Change is on a distinguished road
Quote: Originally Posted by orv
Change - FYI you don't need to fiddle about building the driver inside the X tree, you can build it in its own directory, which makes keeping things updated simpler.

Hmm. I couldn't get it to build on its own, I had to get X building, then replace the VIA driver source with the Unichrome source, then re-make the makefile for the driver, and then finally make it. Otherwise it wouldn't build.
Change is offline   Reply With Quote
Old 04-26-2005, 12:51 AM   #8
xga
Newbie
 
Join Date: Oct 2004
Posts: 8
xga is on a distinguished road
Wow! Well done Change. I can't wait until the day when I check the 'LCD/Display' thread and see the post '800x480 SUCCESS in Windows with VIA onboard video!'.

You'd think that if you can get 800x480 working on linux by only playing around with the driver config files, that you should be able to get 800x480 in Windows using PowerStrip as you've proved that it's not a BIOS issue. Doesn't make sense to me....
xga is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 04-26-2005, 01:30 AM   #9
orv
Newbie
 
orv's Avatar
 
Join Date: Apr 2005
Location: Surrey, UK.
Posts: 11
orv is on a distinguished road
You'd need an updated windows driver too....
orv is offline   Reply With Quote
Old 04-28-2005, 08:33 AM   #10
Newbie
 
Join Date: Dec 2003
Posts: 16
damageboy is on a distinguished road
Anyone tried new via open source driver?

I've taken a look at the newly released via open source driver for Linux 2.6
and it seems to have partial support ofr 800x480 built-in to it (i.e.:
no patching via_mode.h).
apart from that, it also looks while 800x480 support exists there, some 800x480 is commented out as well in viamode.h (as opposed to via_mode.h).

Anyway, has anyone tried to mess around with that driver? It seems to have full support for MPEG2/AGP/3D/DRI etc.

I'll try to work with both drivers + X.org on ubuntu this weekend, just wondering if someone can save me the time & effort
damageboy is offline   Reply With Quote
Old 04-28-2005, 09:04 AM   #11
orv
Newbie
 
orv's Avatar
 
Join Date: Apr 2005
Location: Surrey, UK.
Posts: 11
orv is on a distinguished road
Quote:
It seems to have full support for MPEG2/AGP/3D/DRI etc.

It doesn't include the source code for mpeg2 support - it contains a binary only library, and the only S/W that can use it are the special Via versions of xine (VeXP) and mplayer (VeMP). It also still retains all of the bugs that the unichrome developers have fixed over the past two years.

I have no idea if it works or how well since I don't know anyone who's bothered using it.... or actually managed to build it on a recent 2.6 kernel.
however, I believe the VIA driver is STILL limited to supporting modes that are provided by the BIOS.

Quote:
(i.e. no patching via_mode.h)

The only "patching" that is required is to add a clock number. Once valid clock values are reported to the unichrome list (so far non have been reported by anyone) then they can be included in the driver.
When we have enough information, we might then be able to completely autogenerate them... or if that's not possible we could just provide an ability to soft code them in a config file.

Quote:
I'll try to work with both drivers

Why bother? But go for it if you like. It would be interesting if you reported back details of your experience.
orv is offline   Reply With Quote
Old 04-28-2005, 10:19 AM   #12
Newbie
 
Join Date: Dec 2003
Posts: 16
damageboy is on a distinguished road
Hmm... Motivation?!?

Hey Ivor, thanks for the detailed reply!
I wasn't suggesting that the big bad patch is a scary one... sorry if it came off that way.

I've already done the DotClock change suggested above for the basic source deb files for xorg which come with ubuntu "hoary" 5.04, and it seems to be working well...

I was/am mostly wanting to compare both drivers in terms of performance to see which one does a better job...
I'm mostly interested in plain 2D performance for media frontend + visualizations.
If I find anything exciting I'll let you know.
damageboy is offline   Reply With Quote
Old 04-28-2005, 04:18 PM   #13
Constant Bitrate
 
Join Date: Apr 2005
Location: MN
Posts: 161
zots is on a distinguished road
windows ce 50.0 driver supports 800x480 on MII

IF BSP_DISPLAY_VIA

; @CESYSGEN IF CE_MODULES_PCI

; Added by Yapi,2002-06-25 , For SetMode by Registry Function

[HKEY_LOCAL_MACHINE\System\GDI\Drivers]
"Display"="ddi_via.dll"
;
; VIA driver settings
;
[HKEY_LOCAL_MACHINE\Drivers\Display\VIA]
;; Support DisplayDevice
;1 : CRT
;2 : LCD
;4 : TV
;8 : DVI
;10: HDTV
;; If set CRT + LCD, DisplayDevice = 3
;; If set CRT + TV , DisplayDevice = 5
;; If set CRT + DVI, DisplayDevice = 9
;; If set CRT + HDTV, DisplayDevice = 11
"DisplayDevice"=dword:1

;; Panel Size Index Setting for LCD, include PanelSize, Dual/Single, Dithering
;0: 640x480, single, dithering
;1: 800x600, single, dithering
;2: 1024x768, single, dithering
;3: 1280x768, single, dithering
;4: 1280x1024, dual, dithering
;5: 1400x1050, dual, dithering
;6: 1600x1200, dual, dithering
;7: 1280x800, single, dithering
;8: 800x480, single, dithering
;9: 1024x768, dual, dithering
;A: 1024x768, single, nodithering
;B: 1024x768, dual, nodithering
;C: 1280x768, single, nodithering
;D: 1280x1024, dual, nodithering
;E: 1400x1050, dual, nodithering
;F: 1600x1200, dual, nodithering
;; When CRT + LCD , must set Panel Type here.
;; If Panel Type setting is not the actual correct size , it will not set LCD on.
"LCDPanelSizeIndex"=dword:2

;; Panel Centering or Expanding setting
;0: Center
;1: Expand
"PanelCenter"=dword:0

;; Mobile or DeskTop
;0: DeskTop
;1: Mobile
"IsMobile"=dword:1

;; For Atrium Customer. Support LVDS 12DDR
;0: None
;1: Yes
"Atrium"=dword:0


If wince5.0 has support, why not xp?

via should work on providing the support for 800x480 support in xp drivers.
zots is offline   Reply With Quote
Old 04-30-2005, 02:18 PM   #14
Newbie
 
Join Date: Dec 2003
Posts: 16
damageboy is on a distinguished road
Default Windows XP driver DOES support 800x480

As people HAVE mentioned before, the Windows XP driver does support 800x480 only with no acceleration of graphics.
I suspect the same it tru for windows ce.
damageboy is offline   Reply With Quote
Old 05-19-2005, 04:52 AM   #15
Newbie
 
Join Date: Mar 2005
Location: Denmark
Posts: 25
keanpedersen is on a distinguished road
I got this working, and can verify the 800x480 outout with a normal monitor, but my lilliput doesn't show anything with this modeline. So I guess the mode only works for xenarc screens? Does anyone have a working modeline for lilliput?
keanpedersen is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mscomm32 help. hcker2000 Software & Software Development 25 01-14-2005 11:55 PM
installing video card w/ onboard video hannibal Newbie 9 12-18-2004 01:18 AM
The LOW Risk Linux Adventure... grepzen Software & Software Development 13 11-08-2004 10:12 PM
Dumb question, getting 800x480 from onboard video RoyN LCD/Display 2 10-20-2004 08:09 PM
VIA onboard video overlay settings Nanozic General Hardware Discussion 2 07-23-2004 01:55 PM



All times are GMT -5. The time now is 11:08 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics