Author Topic: My java app doesn't work with screen rotation  (Read 12986 times)

serviam

  • Newbie
  • *
  • Posts: 1
    • View Profile
My java app doesn't work with screen rotation
« 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...

jamesannan

  • Full Member
  • ***
  • Posts: 119
    • View Profile
My java app doesn't work with screen rotation
« Reply #1 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

henley_regatta

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://www.guided-naafi.org
My java app doesn't work with screen rotation
« Reply #2 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!
C860 / Cacko 1.21b.
512MB PNY SD, 512MB Lexar CF, Symbol Spectrum 24 802.11b CF

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
My java app doesn't work with screen rotation
« Reply #3 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
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

henley_regatta

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://www.guided-naafi.org
My java app doesn't work with screen rotation
« Reply #4 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!
C860 / Cacko 1.21b.
512MB PNY SD, 512MB Lexar CF, Symbol Spectrum 24 802.11b CF

Tehas

  • Full Member
  • ***
  • Posts: 157
    • View Profile
    • http://users.adelphia.net/~stonerrl/rick/
My java app doesn't work with screen rotation
« Reply #5 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?
+SL-5600 v1.32 ROM (Special pre-emptive kernel with overclock)  +Viking 256CF  +SimpleTech 256CF  +Viking 128SD (as ext2)  +AmbiCom WL1100C +Micro Innovations KB  +Hawking Ethernet CF  
+SL6000L +Lexar 1GB SD (as ext2)  +Windows 98/Me/Nt/XP  +Mandrake 8.1 My Zaurus Page[img]http://users.adelphia.net/~stonerrl/rick/rls_userbar.gif\" border=\"0\" class=\"linked-sig-image\" /]

xenophobe

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://
My java app doesn't work with screen rotation
« Reply #6 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.

Tehas

  • Full Member
  • ***
  • Posts: 157
    • View Profile
    • http://users.adelphia.net/~stonerrl/rick/
My java app doesn't work with screen rotation
« Reply #7 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?
+SL-5600 v1.32 ROM (Special pre-emptive kernel with overclock)  +Viking 256CF  +SimpleTech 256CF  +Viking 128SD (as ext2)  +AmbiCom WL1100C +Micro Innovations KB  +Hawking Ethernet CF  
+SL6000L +Lexar 1GB SD (as ext2)  +Windows 98/Me/Nt/XP  +Mandrake 8.1 My Zaurus Page[img]http://users.adelphia.net/~stonerrl/rick/rls_userbar.gif\" border=\"0\" class=\"linked-sig-image\" /]

xenophobe

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://
My java app doesn't work with screen rotation
« Reply #8 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.

Omicron

  • Hero Member
  • *****
  • Posts: 608
    • View Profile
    • http://
My java app doesn't work with screen rotation
« Reply #9 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
"You Shall Not Pass"    
....Gandalf, Lord Of The Rings
--------------------------------------------------------------
C-860 (Cacko), 3x4gb MD  
DLINK 660W, 1GB SD,  
Upgraded Archos AV320 w/80GB HDD
Pocketop and Targus IR keyboards
Favorite Deal Site: SaveCity.net (pretty cool, good deals daily on one page)

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
My java app doesn't work with screen rotation
« Reply #10 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
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Big-fat_penguin

  • Newbie
  • *
  • Posts: 2
    • View Profile
My java app doesn't work with screen rotation
« Reply #11 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?