Updated iMON (Soundgraph) LCD Driver (1 Viewer)

Status
Not open for further replies.

ralphy

Portal Pro
June 15, 2007
52
6
Home Country
Hi,

I cannot test the display with Windows and the linux driver is just catching up to the "Win-driver-status". I'd like to know what exactly this shutoff-mode is. Is it only clearing the display or is the backlight turned off then?! I just don't want to let the LEDs to be turned on 16 hours a day, they losing their brightness in times when no one sees the display. I'm used to turning off the backlight of my Matrix Orbital display and would like to keep on doing so with the imon lcd.

Thanks for any hints!
Chrissi


Code 0x5000000000000008 turns the display completely off. Nothing displayed and backlight off.

See here and here for more details on the 0x50 and 0x51 control words
 

cybrmage

Portal Pro
May 30, 2007
498
86
Home Country
Canada Canada
I actually think that the turn off function of the display at standby/hibernation is broken in newer versions of the driver. I have not paid much attention to this lately but now I was trying it and it is only working in iMONLCDg_09_02_2007 version. In later version it is not working (at least not for me).

Please run the debug version of the newest plugin.. put your machine into sleep/standby/hibernate and see what happens... if it doesn't work, post the log so I can see what's going on...

have you had any luck with the IR to date? - I'd love to see this functioning as using the ir "dongle" that comes with my DTV1000T card really ruins the look of the antec case (and I'm not quite ready to go drilling holes and modding a brand new case just yet ;) )

I've been working on it (and direct USB communications with the display... but nothing working yet (you can see the USB class functions in the new source code if you want to play with it).

The strange thing is that the Antec VFD software opens the SG_RC.dll file, sets up the IR hardware and then never calls the library again... it seems to communicate directly with the display driver... so getting things working is time-consuming and difficult.

one thing I've been thinking about is possibly manipulating the text display a bit further - (I'll try to have a look at this over the next week or so) - some ideas follow:

- scrolling the text by pixels rather than complete characters would produce a more "fluid" display (how many pixels to shift it at a time might be an option perhaps?)

Possibly... but the driver does not control the data to be displayed... the externaldisplay thread sends the data to the driver... The driver does not know what data is comming next... it could be a scrolled line, or a completely different line.. so the code to handle every possible situation would be complex and would slow the display down more than it already is...

- adding icons to the display - e.g. if you're in tv mode, rather than just highlighting the little tv icon on the lcd (which is a great feature - just not visible at all from 2.5metres) perhaps using the first 16x16 pixels on the left to display a tv icon - admittedly this reduces the available real estate for text, but imho would be a worthy trade-off

Interesting idea... If you create the icons... (my graphics ability sucks)... I'll add the code to the driver...

- allowing fontsets to be included as an additional file for the bitmap text - rather than hard coding this, why not have a variety of available "fonts" so people can further customize the display without having to compile/recompile (as I'm sure there's plenty of users out there who just don't want to do this)

This would be an extension of custom character sets (as used in the LCDsmartie driver).... should be trivial to add... but the data for the fonts (a multi-dimentional array) would need to be stored in the XML file... I haven't had the chance to experiment with it yet

[/QUOTE]



And... without further delay... the newest version of the driver.

FIXED: code that checks the VFD or iMON process was throwing exceptions in some instances... (I needed to do a complete uninstall to duplicate this one...)

FIXED: The display detection routine threw exceptions under certain conditions.

FIXED: critical process mutex was not functioning correctly, causing intermittent display corruption.

CHANGED: updated the icon thread to sleep less and send less duplicate data to the display, hopefully speeding the display slightly.
 

iSP

Portal Pro
January 2, 2007
90
11
Home Country
Netherlands Netherlands
Wah, this one works flawlessly for me :)
You've even be so kind to add an option for the disc icon, thank you for that :)

That problem with the cd happens to me with a dvd, and yes that's a rc2 issue as rc1 doesn't have this problem icw this plugin.
I think the plugin is quite ready now, I'm not sure if any of the icons are not mapped yet? seen most of them work now.
 

darkaz

Portal Member
December 26, 2006
26
0
Melbourne
Home Country
have you had any luck with the IR to date? - I'd love to see this functioning as using the ir "dongle" that comes with my DTV1000T card really ruins the look of the antec case (and I'm not quite ready to go drilling holes and modding a brand new case just yet ;) )

I've been working on it (and direct USB communications with the display... but nothing working yet (you can see the USB class functions in the new source code if you want to play with it).

The strange thing is that the Antec VFD software opens the SG_RC.dll file, sets up the IR hardware and then never calls the library again... it seems to communicate directly with the display driver... so getting things working is time-consuming and difficult.

Sounds particularly painful... and a bit out of my league where c# is concerned :(

one thing I've been thinking about is possibly manipulating the text display a bit further - (I'll try to have a look at this over the next week or so) - some ideas follow:

- scrolling the text by pixels rather than complete characters would produce a more "fluid" display (how many pixels to shift it at a time might be an option perhaps?)

Possibly... but the driver does not control the data to be displayed... the externaldisplay thread sends the data to the driver... The driver does not know what data is comming next... it could be a scrolled line, or a completely different line.. so the code to handle every possible situation would be complex and would slow the display down more than it already is...

hmmm... will have a think about this - I wrote some basic drivers a while back for HD44780 LCDs and included some scrolling text functions which were quite independent and could be easily adapted to be pixel based, combine this with what's in there now and we should be able to get a result

- adding icons to the display - e.g. if you're in tv mode, rather than just highlighting the little tv icon on the lcd (which is a great feature - just not visible at all from 2.5metres) perhaps using the first 16x16 pixels on the left to display a tv icon - admittedly this reduces the available real estate for text, but imho would be a worthy trade-off

Interesting idea... If you create the icons... (my graphics ability sucks)... I'll add the code to the driver...

I'll make a start on these - was hoping to get them done this evening, but not sure I'll be able to keep my eyes open long enough.

- allowing fontsets to be included as an additional file for the bitmap text - rather than hard coding this, why not have a variety of available "fonts" so people can further customize the display without having to compile/recompile (as I'm sure there's plenty of users out there who just don't want to do this)

This would be an extension of custom character sets (as used in the LCDsmartie driver).... should be trivial to add... but the data for the fonts (a multi-dimentional array) would need to be stored in the XML file... I haven't had the chance to experiment with it yet

I've written a little browser based "gui" for editing characters and returning the relevant hex codes for use within the iMonLCDG.cs code - or as you say for linking to an external xml file containing these - you can have a play with it at http://blogs.igeek.com.au/DarkAz/blogpost/Font_creation_tool_for_iMonLCDg_from_MediaPortal

any chance you could add in the ability to do these via an external file (if specified under advanced settings, otherwise default to the standard)? I'd be more than happy to create some fontsets for people to have a play with [see below for further font development]

ok here's a start on a basic fontset.... thus far only a-z, A-Z, 0-9 and some punctuation has been done (apologies to those who require a full set - I'll try to finish it up asap) - let me know your thoughts and I'll finish it up - if nothing else this was a simple proof of concept, if anyone's interested in a specific type of font (e.g. bold slab serif) then let me know and I'll see what I can do - keeping in mind that it's quite limiting at this pixel size

http://blogs.igeek.com.au/DarkAz/code/iMONLCDg_09_12_2007_NewFont.zip
 

iSP

Portal Pro
January 2, 2007
90
11
Home Country
Netherlands Netherlands
Nice font, looks way better this way!
I got some time and tried to make some icons for weather/settings/my tv/my dvd/my movies/my pictures/etc.
I'll add them as attachement, each one 16x16, comments welcome :p
 

Attachments

  • icons.png
    icons.png
    849 bytes

darkaz

Portal Member
December 26, 2006
26
0
Melbourne
Home Country
Nice font, looks way better this way!

Thanks ;) - guess that means I'd better finish it off?

Think we need to incorporate a way to choose a font to load rather than having to recompile varsions just to change the font <nudge><nudge>

I got some time and tried to make some icons for weather/settings/my tv/my dvd/my movies/my pictures/etc.
I'll add them as attachement, each one 16x16, comments welcome :p

Great start - I'll have a play with them tonight and add in some that I've already started - next question (for CybrMage) is how do you want to store the icons? as four 8x8 icons in a similar format to the font characters? or differently?
 

cybrmage

Portal Pro
May 30, 2007
498
86
Home Country
Canada Canada
Here is todays version of the plugin:

Added: Ability to use a custom font an XML file (option on Advanced Settings page)
Added: Ability to use "Large Icons" and customized "Large Icons" (option on Advanced Settings Page)

The Custom Font is stored in an XML file (ExternalDisplay_imonlcdg_font.xml) in the main MediaPortal directory. If you select the "Use Custom Font" option, and a font file does NOT exist, one will be created with the data from the internal font.

The font data is configured as 6 columns of data, drawn left to right with the LSB of each column being the top row of pixels (a holdover from RaplhY's original font data.)

The font file that is included in the archive contains the font created by Darkaz.


The Custom "Large Icons" (16 x 16 - placed to the left of the display) are stored in an XML file (ExternalDisplay_imonlcdg_icons.xml) in the main MediaPortal directory. If you select the "Use Custom Large Icons" option and an icon file does NOT exist, one will be created that contains the internal "Large Icon" data.

If you want to use the "Large Icons", set the text width to 13 instead of 16... so that the text alignment performed by the ExternalDisplay core does not force data off the screen.

Currently, there are no internal icons defined, just two icons (solid box and outlined box) for testing purposes.

There is support for up to 10 icons, but only the first 6 are currently used. They are defined as follows:
0 = IDLE
1 = TV
2 = MOVIE (DVD actually)
3 = MUSIC
4 = VIDEO
5 = RECORDING (only displays when MediaPortal is otherwise idle)

The Icon Data is configured as two rows of 16 columns ( Line 1 is IData0 thorough IData15, line 2 is IData16 through IData31, for pixel data - LSB is the bottom row of pixels [the displays native format].) drawn left to right, top to bottom.


The data is stored in the XML file as decimal values.
 

iSP

Portal Pro
January 2, 2007
90
11
Home Country
Netherlands Netherlands
"Large icon" option works, haven't tried to add any icons yet, but so far it looks good.
 

Mangavin

Portal Member
August 1, 2006
26
0
Quebec
Home Country
Canada Canada
good news

I will receive a HTPC in few days. It will be my first one and want to try Mediaportal... I read for days this forum. I've seen this thread and I'm happy to note than the GDO1 MXR interest so many people. Thanks to you (and you are rapid besides all)
 
Status
Not open for further replies.

Users who are viewing this thread

Top Bottom