Notices


Reply
Thread Tools
Posts: 12 | Thanked: 8 times | Joined on Jan 2010
#41
Thanks, anunakin; it looks as though I did manage to get all of your changes merged.

I assume you used XRandR for the rotation? That is probably the right way to go. How did you do it?

EDIT: Hang on, I found instructions on patching the kernel for screen rotation here: http://wiki.maemo.org/Rotation. I'm not sure I want to patch my kernel just yet, but it's good to know the N900 is supposed to have screen rotation. Could somebody with an N900 try out the "portrait" mode x48 and see if they can rotate it using the OS?

Last edited by Electric Lungfish; 2010-03-07 at 23:01. Reason: Found rotation instructions.
 
jkq's Avatar
Posts: 251 | Thanked: 131 times | Joined on Oct 2009 @ USA
#42
Originally Posted by Electric Lungfish View Post
Could somebody with an N900 try out the "portrait" mode x48 and see if they can rotate it using the OS?
In order for the N900 to rotate the app, you have to make some X11 calls as described here.

-jkq
__________________
Class .. : Quiet One
Humor .. : [*********-] Alignment: Chaotic Good
Patience : [******----] Weapon(s): Python scripts
Agro ... : [***-------] Relic(s) : N900
 
Anunakin's Avatar
Posts: 100 | Thanked: 102 times | Joined on Apr 2008 @ Amazon-Belém
#43
I compiled a version for N900, I need do some work on vertical mode...
http://maemo.vivaphp.net/fremantle/x...3_cortexA8.deb
 

The Following 4 Users Say Thank You to Anunakin For This Useful Post:
jkq's Avatar
Posts: 251 | Thanked: 131 times | Joined on Oct 2009 @ USA
#44
Originally Posted by Anunakin View Post
I compiled a version for N900, I need do some work on vertical mode...
http://maemo.vivaphp.net/fremantle/x...3_cortexA8.deb
So what makes it "for N900"?

-jkq
__________________
Class .. : Quiet One
Humor .. : [*********-] Alignment: Chaotic Good
Patience : [******----] Weapon(s): Python scripts
Agro ... : [***-------] Relic(s) : N900
 
Anunakin's Avatar
Posts: 100 | Thanked: 102 times | Joined on Apr 2008 @ Amazon-Belém
#45
Originally Posted by jkq View Post
So what makes it "for N900"?

-jkq
Horizontal mode (default on N900 for all applications) is OK!

Some patchs on emulate.c for best usage under N900.
Trying rotate it using code from Electric Lungfish, but not working for lcd.c
__________________
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 8GB
Nokia N810 c/ microSD 8GB
HP48GX->Psion Siena->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

Blog -> http://www.vivaphp.net

Last edited by Anunakin; 2010-09-20 at 19:58.
 
jkq's Avatar
Posts: 251 | Thanked: 131 times | Joined on Oct 2009 @ USA
#46
Originally Posted by Anunakin View Post
Horizontal mode (default on N900 for all applications) is OK!

Some patchs on emulate.c for best usage under N900.
I was playing with it briefly, and I noticed that the input cursor blinks strangely. Push a number button (3 for example) and the little left-arrow cursor appears. If you push another number, the cursor starts blinking fast about 4 times, then goes back to a slower speed. Sometimes it does this without touching the buttons.

Do you see that too?

Originally Posted by Anunakin View Post
Trying rotate it using code from Electric Lungfish, but not working for lcd.c
Have you looked at the N900 docs for rotation at http://wiki.maemo.org/Qt4_Hildon#Por...tation_changes?

-jkq
__________________
Class .. : Quiet One
Humor .. : [*********-] Alignment: Chaotic Good
Patience : [******----] Weapon(s): Python scripts
Agro ... : [***-------] Relic(s) : N900
 
Anunakin's Avatar
Posts: 100 | Thanked: 102 times | Joined on Apr 2008 @ Amazon-Belém
#47
I tring solve that strange blinks and unresponsive/hyper responsive keys...

I got portrait mode working... but not at automatic mode, now I need remove full screen mode...where we can do it?

Ok removed full screen, and build a new .deb, now with portrait mode full working, and using original throttle, at emulate.c, that give us a emulator with about same speed as a real HP48GX, and less flickers...

x48_0.6.3_armel.deb
Attached Images
  
__________________
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 8GB
Nokia N810 c/ microSD 8GB
HP48GX->Psion Siena->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

Blog -> http://www.vivaphp.net

Last edited by Anunakin; 2010-09-21 at 14:22.
 

The Following 3 Users Say Thank You to Anunakin For This Useful Post:
jkq's Avatar
Posts: 251 | Thanked: 131 times | Joined on Oct 2009 @ USA
#48
Originally Posted by Anunakin View Post
I tring solve that strange blinks and unresponsive/hyper responsive keys...

I got portrait mode working... but not at automatic mode, now I need remove full screen mode...where we can do it?

Ok removed full screen, and build a new .deb, now with portrait mode full working, and using original throttle, at emulate.c, that give us a emulator with about same speed as a real HP48GX, and less flickers...
Cool, it looks like the blinking is more uniform now.

Thanks for providing both shortcuts. I think I prefer portrait mode, it feels more like the actual calculator.

A few suggestions:

1. Don't include /home/user/.hp48/ram, you're overwriting user config on install.
2. What is /home/user/.hp48/hp48 used for? If it is some sort of user preferences, you probably should not include it in the deb.
3. It would probably be good to check the terms for distribution on the ROM. If it is okay to distribute it in the deb, remove the line in the control file that says "You will need a ROM dump to use it." since you're providing the ROM already. Maybe replace it with a line with the URL where the ROM was downloaded from (I know it is available legally at http://www.hpcalc.org/hp48/pc/emulators/).

Any chance of pushing this to extras-devel?

-jkq
__________________
Class .. : Quiet One
Humor .. : [*********-] Alignment: Chaotic Good
Patience : [******----] Weapon(s): Python scripts
Agro ... : [***-------] Relic(s) : N900
 
Anunakin's Avatar
Posts: 100 | Thanked: 102 times | Joined on Apr 2008 @ Amazon-Belém
#49
Originally Posted by jkq View Post
Cool, it looks like the blinking is more uniform now.

Thanks for providing both shortcuts. I think I prefer portrait mode, it feels more like the actual calculator.

A few suggestions:

1. Don't include /home/user/.hp48/ram, you're overwriting user config on install.
2. What is /home/user/.hp48/hp48 used for? If it is some sort of user preferences, you probably should not include it in the deb.
3. It would probably be good to check the terms for distribution on the ROM. If it is okay to distribute it in the deb, remove the line in the control file that says "You will need a ROM dump to use it." since you're providing the ROM already. Maybe replace it with a line with the URL where the ROM was downloaded from (I know it is available legally at http://www.hpcalc.org/hp48/pc/emulators/).

Any chance of pushing this to extras-devel?

-jkq
Thanks I going remove ROM from .deb and provide a link where get it...
I just made this .deb "optify" compliant...
I going put it to extras-devel ...

########### EDIT #############
Jkq, Electric Lungfish, all

I created two packages and sended to extras-devel
Putz! I spent more time in debian/rules that to make changes to the emulator

x48 package installs landscape mode
x48-portrait package installs portrait mode, which depends of x48 package.
__________________
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 8GB
Nokia N810 c/ microSD 8GB
HP48GX->Psion Siena->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

Blog -> http://www.vivaphp.net

Last edited by Anunakin; 2010-09-24 at 12:57. Reason: more info!
 

The Following 4 Users Say Thank You to Anunakin For This Useful Post:
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#50
Originally Posted by Anunakin View Post
Thanks I going remove ROM from .deb and provide a link where get it...
Where should the rom file be placed so that x48 can find it?
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:50.