Author Topic: How To Do Video Out On C3000?  (Read 13781 times)

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
How To Do Video Out On C3000?
« Reply #15 on: April 08, 2005, 04:50:50 pm »
It is going to be impossible to do VGA video at any reasonable speed on the Zaurus.

VGA is 640x480 resolution. That's 307200 pixels. If you only want 256 colours that's 300 kb/frame. If you want 16 bit color that's 600 kb/frame. Uncompressed video over USB would therefore give you ~2 frames per second. If you compress the video before hand you could get 5-8 frames per second, at the cost of using your entire processor for compression. CF is faster, theoretcially, but once again you're processor limited.

There are things that can be done to reduce the data requirements, but the worst case scenario - Full-screen video - becomes impossible.

This is assuming that these things have open source drivers that work under Linux, which they don't.

If we didn't care that performance would be no better than IOData's CF card, and if we had the documentation, or wanted to tie up a developer for a few years doing reverse engineering, we could write a driver.  But we dont', so we can't.

There is no support for external video built into the processor, and all the external databusses are too slow. VGA video out at usable rates is completely impossible.
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

rickh

  • Full Member
  • ***
  • Posts: 143
    • View Profile
How To Do Video Out On C3000?
« Reply #16 on: April 09, 2005, 10:03:51 pm »
Quote
If we didn't care that performance would be no better than IOData's CF card, and if we had the documentation, or wanted to tie up a developer for a few years doing reverse engineering, we could write a driver.  But we dont', so we can't.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
Would [a href=\"http://www.iodata.com/usa/products/CFXGA_SW.php]this link[/url] help?  I don't know what the licensing is - it may be restrictive - but they do offer source and API spec on that page.

Unfortunately, I'm not a programmer, so I wouldn't have the slightesst idea what to do with the code, but I would think that if there were enough interest, it would be a good starting point, provided the licensing allowed it.

R.
==
* SL-5600/Sharp 1.0 ROM w/1GB Lexar CF card, 1GB IBM Microdrive, 1GB PNY SD card, several Hitachi and MagicStor CF hard drives.
* Nokia N800 Internet tablet, 2GB Nokia MicroSD card, two 4GB Transcend SD cards.
* Nokia SU-8W Bluetooth keyboard.

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
How To Do Video Out On C3000?
« Reply #17 on: April 09, 2005, 10:53:32 pm »
Quote
Quote
If we didn't care that performance would be no better than IOData's CF card, and if we had the documentation, or wanted to tie up a developer for a few years doing reverse engineering, we could write a driver.  But we dont', so we can't.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
Would [a href=\"http://www.iodata.com/usa/products/CFXGA_SW.php]this link[/url] help?  I don't know what the licensing is - it may be restrictive - but they do offer source and API spec on that page.

Unfortunately, I'm not a programmer, so I wouldn't have the slightesst idea what to do with the code, but I would think that if there were enough interest, it would be a good starting point, provided the licensing allowed it.

R.
==
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74413\"][{POST_SNAPBACK}][/a][/div]

We already have working drivers for the IOData card. I was referring to the usb VGA adaptors that people keep bringing up as potential solutions.
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

rickh

  • Full Member
  • ***
  • Posts: 143
    • View Profile
How To Do Video Out On C3000?
« Reply #18 on: April 10, 2005, 03:08:04 pm »
Quote
We already have working drivers for the IOData card. I was referring to the usb VGA adaptors that people keep bringing up as potential solutions.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74417\"][{POST_SNAPBACK}][/a][/div]
Does it actually work with the C1000/3000?  I've been unsuccessful with my C3000, although it works fine with my 5600.  

R.
==
* SL-5600/Sharp 1.0 ROM w/1GB Lexar CF card, 1GB IBM Microdrive, 1GB PNY SD card, several Hitachi and MagicStor CF hard drives.
* Nokia N800 Internet tablet, 2GB Nokia MicroSD card, two 4GB Transcend SD cards.
* Nokia SU-8W Bluetooth keyboard.

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
How To Do Video Out On C3000?
« Reply #19 on: April 10, 2005, 05:00:51 pm »
Quote
Quote
We already have working drivers for the IOData card. I was referring to the usb VGA adaptors that people keep bringing up as potential solutions.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74417\"][{POST_SNAPBACK}][/a][/div]
Does it actually work with the C1000/3000?  I've been unsuccessful with my C3000, although it works fine with my 5600.  

R.
==
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74472\"][{POST_SNAPBACK}][/a][/div]

That I don't know about. I don't have one, and I'm not likely to ever end up with one. Someone was saying that the kernel module on the 3000 was still compiled for the old kernel, so it would work but not very well (lockups).

I don't know offhand whether the full driver source is available to re-compile. It might never have been redone for the new Z's due to the card itself being discontinued.

Sorry, but I can't be of more help than that
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

rickh

  • Full Member
  • ***
  • Posts: 143
    • View Profile
How To Do Video Out On C3000?
« Reply #20 on: April 10, 2005, 10:38:07 pm »
Quote
That I don't know about. I don't have one, and I'm not likely to ever end up with one. Someone was saying that the kernel module on the 3000 was still compiled for the old kernel, so it would work but not very well (lockups).
That would be me :-)

Quote
I don't know offhand whether the full driver source is available to re-compile. It might never have been redone for the new Z's due to the card itself being discontinued.

Sorry, but I can't be of more help than that
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74482\"][{POST_SNAPBACK}][/a][/div]
No problem.  Thought you might have had some first hand knowledge of recompiling it.

R.
==
* SL-5600/Sharp 1.0 ROM w/1GB Lexar CF card, 1GB IBM Microdrive, 1GB PNY SD card, several Hitachi and MagicStor CF hard drives.
* Nokia N800 Internet tablet, 2GB Nokia MicroSD card, two 4GB Transcend SD cards.
* Nokia SU-8W Bluetooth keyboard.

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
How To Do Video Out On C3000?
« Reply #21 on: April 10, 2005, 10:53:54 pm »
Quote
Quote
That I don't know about. I don't have one, and I'm not likely to ever end up with one. Someone was saying that the kernel module on the 3000 was still compiled for the old kernel, so it would work but not very well (lockups).
That would be me :-)

Quote
I don't know offhand whether the full driver source is available to re-compile. It might never have been redone for the new Z's due to the card itself being discontinued.

Sorry, but I can't be of more help than that
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74482\"][{POST_SNAPBACK}][/a][/div]
No problem.  Thought you might have had some first hand knowledge of recompiling it.

R.
==
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74509\"][{POST_SNAPBACK}][/a][/div]

Well, the source is there. Shouldn't be all that painful to recompile it against the newer kernel. I'm not going to have time to try any time soon, though, and I don' t have a card to test with anyway. =(
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

sven

  • Newbie
  • *
  • Posts: 6
    • View Profile
How To Do Video Out On C3000?
« Reply #22 on: April 11, 2005, 05:40:53 am »
just for comleteness. This is the link to the(one?) usb-vga Solution:

Data Display AG - USB-VGA controller

There is also a preliminary documentation which seems to be enough for programming a linux driver.
Even if (and they do, i think) the usage and bandwidth restrictions above apply, it will be a very nice toy.

Sven

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
How To Do Video Out On C3000?
« Reply #23 on: April 15, 2005, 06:07:46 am »
nice card, but no linux drivers    so zaurus support is even more unlikely
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
How To Do Video Out On C3000?
« Reply #24 on: April 17, 2005, 04:51:03 pm »
Quote
just for comleteness. This is the link to the(one?) usb-vga Solution:

Data Display AG - USB-VGA controller

There is also a preliminary documentation which seems to be enough for programming a linux driver.
Even if (and they do, i think) the usage and bandwidth restrictions above apply, it will be a very nice toy.

Sven
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74560\"][{POST_SNAPBACK}][/a][/div]

Wow. A device that may actually be usable. It is, however, utterly impractical, for the same reason that it is doable - It is for the embedded market.

The reason that this could be implemented is because it isn't a video card. (Ie a box with a USB connection on one end and a VGA connection on the other). This is a frame-buffer for driving raw TFTs and is intended for the embedded market. That means, by definition, people have to know how to program them because they are buying them for inclusion in their own product. Thus, one way or another, the required specs have to be there.

Secondly it is just a dumb framebuffer. (Or very nearly so). That means that we can feed it an arbitrary stream of pixels, and it remembers them and throws them up on the display - quite similar to what I presume the Iodata card does in practice. Performance  would be lousy, but it is really only intended for nearly static images anyway. (Note the inclusion of touch screen cababilities - perfect for cash registers or displays for small embedded devices like controllers.)

Now the problems: Because it is an embedded style part it will be 1) Expensive, 2) mostly likely a bare board, and 3) hard to get hold of in small quantities.
The kicker is the display, though. It doesn't drive a monitor. It only drives raw LCD displays. You'll have to find a 640x480 LCD with a TFT TTL connector. ( A standard connector is a step up from the last time I looked into these things - it used to be that every LCD had a manufacturer proprietary connector. They may still do - it's been a while since I checked) This means that the LCD will probably be 1) Small (6-8"), 2) Bare, perhaps even to the extent of you having to track down power supply and inverter, and 3) most likely expensive and hard to track down in small quantities.

Then you have to write the driver.

So...While this would be the most likely course of action to try, and far easier to accomplish than trying to use a USB->VGA adapter (which, AFAIK, are unavailable in USB1.x flavours anyway), it is also highly unlikely that anyone would go to the trouble.
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

sven

  • Newbie
  • *
  • Posts: 6
    • View Profile
How To Do Video Out On C3000?
« Reply #25 on: April 19, 2005, 12:12:56 pm »
After going deeper in to the specs of this usb-vga adpter i see:

- every transfered frame must really be complete frame at 640x480x16 pixel (600k)
  (which means about 2 frames per second, see above)

- even moving the cursor need a complete frame

I hoped it is possible only to transfer changed picture blocks.

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
How To Do Video Out On C3000?
« Reply #26 on: April 19, 2005, 12:49:21 pm »
Quote
After going deeper in to the specs of this usb-vga adpter i see:

- every transfered frame must really be complete frame at 640x480x16 pixel (600k)
  (which means about 2 frames per second, see above)

- even moving the cursor need a complete frame

I hoped it is possible only to transfer changed picture blocks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75948\"][{POST_SNAPBACK}][/a][/div]

Nuts. I didn't bother to read the documentation quite that far in. Complete frames only? What a waste. It's a dumber framebuffer than I gave it credit for. There should be no reason that it can't let you arbitrarily twiddle memory locations.  If that's the case I'm going to bet that it doesn't support any sort of compression, either.

That limits the usefulness of this thing in most circumstances.
« Last Edit: April 20, 2005, 10:00:32 am by kahm »
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

sven

  • Newbie
  • *
  • Posts: 6
    • View Profile
How To Do Video Out On C3000?
« Reply #27 on: April 20, 2005, 04:34:29 am »
Quote
There should be no reason that it can't let you arbitrarily twiddle memory locations.
They even let the fields in the commands for that, but the framebuffer only accepts hard coded values for full screen at 16bit.

Quote
If that's the case I'm going to bed that it doesn't support any sort of compression, either.
No compression at all.

Sven

Da_Blitz

  • Hero Member
  • *****
  • Posts: 1579
    • View Profile
    • http://www.pocketnix.org
How To Do Video Out On C3000?
« Reply #28 on: April 25, 2005, 03:00:23 am »
with the io vga out card does that allow you to use the output like a normal vag adaptor or will it only work for applications written for it?

its a shame it the c3000 doesnt have the 2700 video card from intel as that had vga out built in (all it needed was a driver chip) (see the x50 from dell for refrence)
« Last Edit: April 25, 2005, 03:03:35 am by Da_Blitz »
Personal Blog
Code
Twitter

Gemini Order: #95 (roughly)
Current Device: Samsung Chromebook Gen 3
Current Arm Devices Count: ~30
Looking to acquire: Cavium Thunder X2 Hardware

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
How To Do Video Out On C3000?
« Reply #29 on: April 25, 2005, 09:11:43 am »
Quote
with the io vga out card does that allow you to use the output like a normal vag adaptor or will it only work for applications written for it?

its a shame it the c3000 doesnt have the 2700 video card from intel as that had vga out built in (all it needed was a driver chip) (see the x50 from dell for refrence)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=76697\"][{POST_SNAPBACK}][/a][/div]

AFAIK, you could either use the "Mirror" applet, which mirrored the output of the Z's screen (slowly), or a specialised application such as Hancom Presenter.
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive