maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   HP48GX emulation (https://talk.maemo.org/showthread.php?t=27888)

Electric Lungfish 2010-03-07 22:56

Re: HP48GX emulation
 
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?

jkq 2010-03-08 06:45

Re: HP48GX emulation
 
Quote:

Originally Posted by Electric Lungfish (Post 559212)
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

Anunakin 2010-09-20 12:28

Re: HP48GX emulation
 
I compiled a version for N900, I need do some work on vertical mode...
http://maemo.vivaphp.net/fremantle/x...3_cortexA8.deb

jkq 2010-09-20 16:55

Re: HP48GX emulation
 
Quote:

Originally Posted by Anunakin (Post 821404)
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

Anunakin 2010-09-20 19:54

Re: HP48GX emulation
 
Quote:

Originally Posted by jkq (Post 821612)
So what makes it "for N900"?

-jkq

Horizontal mode (default on N900 for all applications) is OK! :p

Some patchs on emulate.c for best usage under N900.
Trying rotate it using code from Electric Lungfish, but not working for lcd.c :rolleyes:

jkq 2010-09-20 21:42

Re: HP48GX emulation
 
Quote:

Originally Posted by Anunakin (Post 821767)
Horizontal mode (default on N900 for all applications) is OK! :p

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?

Quote:

Originally Posted by Anunakin (Post 821767)
Trying rotate it using code from Electric Lungfish, but not working for lcd.c :rolleyes:

Have you looked at the N900 docs for rotation at http://wiki.maemo.org/Qt4_Hildon#Por...tation_changes?

-jkq

Anunakin 2010-09-21 00:55

Re: HP48GX emulation
 
2 Attachment(s)
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

jkq 2010-09-21 16:59

Re: HP48GX emulation
 
Quote:

Originally Posted by Anunakin (Post 821926)
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

Anunakin 2010-09-23 16:56

Re: HP48GX emulation
 
Quote:

Originally Posted by jkq (Post 822521)
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.

kureyon 2010-09-26 15:45

Re: HP48GX emulation
 
Quote:

Originally Posted by Anunakin (Post 824543)
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?


All times are GMT. The time now is 01:13.

vBulletin® Version 3.8.8