OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Personal Java/Jeode/J2ME Personal Profile => Topic started by: serviam on July 19, 2004, 09:32:43 am

Title: My java app doesn't work with screen rotation
Post by: serviam on July 19, 2004, 09:32:43 am
I have a GUI application for the Z (SL- 6000L), which runs perfectly fine when the screen is in normal view. However, after having rotated the screen, the application refuses to run, and I get the following message in the terminal:

QLinuxFbScreen::connect() disp spec Transformed:Rot0:Vga:0 != server disp spec
Transformed driver cannot connect
Aborted

I would be most grateful for any tips on how to fix this, I really need the GUI to run in landscape view.

By the way, even when the application runs fine, I get the following message:

SlSharedManager: can't get proc entry
could not open translation file /home/QtPalmtop//i18n/en/libsl.qmid

I guess it would spare me some annoyance if I could get rid of these lines also...
Title: My java app doesn't work with screen rotation
Post by: jamesannan on July 25, 2004, 06:36:17 am
I'm also looking for an answer to this - for my case on an 860, I have written a java application which I really want to run in portrait mode, I get a similar error as the above but with a Rot270. What's the trick? A simple "hello world" that works both ways would be handy...

Thanks,

James
Title: My java app doesn't work with screen rotation
Post by: henley_regatta on August 25, 2004, 11:43:09 am
I can help you with one of your problems. Unfortunately, not the main one!

The message:
Quote
could not open translation file /home/QtPalmtop//i18n/en/libsl.qmid

..comes about because you've installed the package in a different locale to your shell. I have the same problem in reverse - my system locale is "en" but my shell locale is "C" (in my case, to stop Perl complaining at me).

A simple fix is to create the directory /home/QtPalmtop/i18n/en and then link the libsl.qmid file into it. You'll have to find it first, but on my machine the actual file is in /usr/QtPalmtop.rom/i18n/en/libsl.qmid

Code: [Select]
su -
mkdir /home/QtPalmtop/i18n/en
ln -s /usr/QtPalmtop.rom/i18n/en/libsl.qmid /home/QtPalmtop/i18n/en/libsl.qmid

...Ought to do it!
Title: My java app doesn't work with screen rotation
Post by: iamasmith on August 25, 2004, 11:52:25 am
Actually 'henley_regatta' a better way of avoiding the locale issue is to export PERL_BADLANG=0
Title: My java app doesn't work with screen rotation
Post by: henley_regatta on August 25, 2004, 12:15:04 pm
Quote
Actually 'henley_regatta' a better way of avoiding the locale issue is to export PERL_BADLANG=0
I did not know that. Thanks for the tip!
Title: My java app doesn't work with screen rotation
Post by: Tehas on December 13, 2004, 09:05:40 pm
Did any of you get this working?  I just got my SL6k last week and noticed that the Java demo programs seem to go maximized when you rotate the screen.  

Anyone stumble upon a HelloWorld yet / or care to post a snipit of code?
Title: My java app doesn't work with screen rotation
Post by: xenophobe on December 14, 2004, 12:10:05 pm
What kind of JVM you use?.
My application written for Java PP and running with cvm works fine with screen rotation.
Title: My java app doesn't work with screen rotation
Post by: Tehas on December 15, 2004, 08:28:10 am
I want to target the JVM that came with the 6000.  Did you have to do something special to handle the resize & rotate?
Title: My java app doesn't work with screen rotation
Post by: xenophobe on December 15, 2004, 09:49:39 am
SL-6000 has two JVM - Jeode (evm) and Sun J2ME PP (cvm). I run my programs with Sun J2ME (cvm). I have not any special things for screen rotating.
Title: My java app doesn't work with screen rotation
Post by: Omicron on December 19, 2004, 03:11:09 am
I just got my 6000L, but I would be glad to take a crack at the problem.  Can anyone post a link to an IPK that contains source....Just being lazy here...I just mean the simple hello world source wrapped ina nice neat IPK that I can mess with and give back in working condition (I hope ;-)  

I have actually many ideas on this but probably most won't work, so I would rather do the work myself and see where it leads me, but an IPK would give me a leg up.  Also, my C860 had evm installled, so I need special install for Java on 6000L....If so, a link/instruction would be great.

Either way I am sure I will have to work on this for my own reasons, but a little of the above will get me there faster.,

Thanks,
O
Title: My java app doesn't work with screen rotation
Post by: speculatrix on November 23, 2005, 06:15:51 pm
not quite fully relevant but I was playing with my QT/E application and found that it ran fine on my SL-C6000 in portrait, fine on my SL-C860 in landscape, but the other way round gave me the QPEApplication error "Transformed driver cannot connect"

I was running my app from the command line in both cases.

When I created a proper .desktop entry in the /opt/QtPalmTop/apps/X directory, and an icon to match, with the .desktop specifying everything correctly, then it worked. Oddly, when I got the reference to the icon wrong, it ran in double-size lo-res portrait mode! Also, dynamic rotation also magically worked too.

So, don't underestimate the importance of a properly setup .desktop file! Just copy a simple one that works.

Paul
Title: My java app doesn't work with screen rotation
Post by: Big-fat_penguin on August 14, 2006, 12:39:08 pm
Quote
The message:
Quote
could not open translation file /home/QtPalmtop//i18n/en/libsl.qmid

..comes about because you've installed the package in a different locale to your shell. I have the same problem in reverse - my system locale is "en" but my shell locale is "C" (in my case, to stop Perl complaining at me).

A simple fix is to create the directory /home/QtPalmtop/i18n/en and then link the libsl.qmid file into it. You'll have to find it first, but on my machine the actual file is in /usr/QtPalmtop.rom/i18n/en/libsl.qmid

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

Unfortunately this doesn't work. For me the two "/" in ".../QtPalmtop//i18n.." seem to be the problem. As long as these stay in the path the system won't find the directory.

But I can't find the file or environment-variable where the first part of the path ends with "/" (most probably OPEDIR=/home/QtPalmtop/) and the second part begins with "/" (/in18n/...). Together this leads to the two "/" one after the other. Maybe it's a mistake in some program which adds the second "/" without need.

Somebody who knows the solution? The thread ist half a year old?