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?

WhiteWolf 2010-09-27 10:01

Re: HP48GX emulation
 
I downloaded several hp48 rom and 49 hp

I put one in "/ home/user/.hp48" and renamed it and put my "rom."

All hp48 give boot error.

Can you tell me how to install the rom?

kureyon 2010-09-27 11:23

Re: HP48GX emulation
 
Ok, this is what worked for me:

Code:

mkdir /home/user/.hp48
and place your rom file into there (name it rom.dump)

Code:

cd /home/user/.hp48
x48

This will initialise x48 for the first time, it will also ask whether to "Try To Recover Memory" - answer yes or no (doesn't matter). Close app. Now it will work when you click icon.

Anunakin 2010-09-29 13:02

Re: HP48GX emulation
 
1 Attachment(s)
I made a .deb file for HP48GX rev. R, ROM

I emailed hpcalc.org maintainer, about public this .deb on hpcalc.org

kureyon 2010-09-29 13:38

Re: HP48GX emulation
 
After the splitting of the packages landscape and portrait, I had updated x48 and hence only got the landscape version. Then later I installed the portrait version, both packages give a message during installation on how to get and install the ROM. IMHO it isn't necessary for the portrait package to repeat the message.

Anunakin 2010-10-04 14:30

Re: HP48GX emulation
 
I told with Eric from HPCalc.org, and now x48-0.6.3-r3 have rom.dump file...
just upgrade your package.

scmp 2010-10-14 10:54

Re: HP48GX emulation
 
Hi,
Nokia N900
Maemo 5
Versão: 10.2010.19-1

Congratulations on the availability of x48 for the nokia n900. I'm having the following problem when running "x48 0.6.3-r3" and "x48-0.6.3-r3 portrait":
I run "x48-portrait" or "x48" and nothing happens, or does not open the program.
Thank you, Samuel

Anunakin 2010-10-14 11:55

Re: HP48GX emulation
 
Go to X-Terminal and try run x48 command:
Code:

x48
And post results here!

rfa 2010-10-15 00:12

Re: HP48GX emulation
 
I haven't run X48 from termainal.

The version on page 5 of this thread (with 2 images) works for me.

I did get an update notice, updated & it stopped working (wouldn't load). So I uninstalled the updated version & re-installed the version on page 5 (that I've thanked) & now is working fine.

Anunakin 2010-10-15 12:48

Re: HP48GX emulation
 
I found the error, uploading x48-0.6.3-r4 to extras-devel...

cocegas 2010-10-15 18:20

Re: HP48GX emulation
 
What about the 50g, is there a way to emulate?

Anunakin 2010-10-18 11:27

Re: HP48GX emulation
 
Quote:

Originally Posted by cocegas (Post 842111)
What about the 50g, is there a way to emulate?

I got a native Linux emulator for HP50, but it is very slow on PC, and dont think it cold be better on Nxx0! :(

HP50 Emulator for others phones emulate only HP48 part (saturn code), and it is better on a real HP48 emulator... :rolleyes:

milos621 2010-10-18 12:04

Re: HP48GX emulation
 
Are there any emulators of HP business calculators?

Anunakin 2010-10-18 12:35

Re: HP48GX emulation
 
You mean HP12C? HP48 has all finance function, look at manuals at hpcalc.org

rfa 2011-01-16 19:55

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...

x48_0.6.3_armel.deb

I have (yet again) gone back to this version, as it is better than any of the updates.

Could whoever keeps changing the pkg from this version not and leave it at this version.

rfa 2011-01-25 09:46

Re: HP48GX emulation
 
I've "ignored" the last 5 or 6 update notifications, but now the shortcut has disappeared from my desktop.

How can I either i) make a shortcut or ii) turn off updates for this particular package?

I wouldn't need to do this if the "update" wasn't a downgrade in usability, functionality & performance.

jkq 2011-01-25 19:38

Re: HP48GX emulation
 
Where is the "update" coming from? It should say which repo in the details.

-jkq

rfa 2011-01-25 21:21

Re: HP48GX emulation
 
Thnks for reply.

Its in Extras-Devel. Am installing it to see if it still has the same issues.

If it does I'll uninstall it, re-install my prefered version & turn off Extras-Devel...

jkq 2011-01-26 00:16

Re: HP48GX emulation
 
Quote:

Originally Posted by rfa (Post 928494)
Thnks for reply.

Its in Extras-Devel. Am installing it to see if it still has the same issues.

If it does I'll uninstall it, re-install my prefered version & turn off Extras-Devel...

It's probably best to leave extras-devel off normally, and only enable briefly it when you want to get something specific. :)

I don't recall ever seeing an update to x48 with just extras/extras-testing enabled.

-jkq

rfa 2011-01-29 01:14

Re: HP48GX emulation
 
Now my shortcut has disappeared.

This usually happened after I ignored update requests, but now (re: jkq's suggestion) I no longer receive them.

How do I either i) make a shortcut (x48 doesn't appear anymore in add shortcut) or ii) make it so the shortcut doesn't disappear?

jkq 2011-01-31 20:35

Re: HP48GX emulation
 
Quote:

Originally Posted by rfa (Post 931020)
Now my shortcut has disappeared.

This usually happened after I ignored update requests, but now (re: jkq's suggestion) I no longer receive them.

How do I either i) make a shortcut (x48 doesn't appear anymore in add shortcut) or ii) make it so the shortcut doesn't disappear?

That sounds rather odd.

Have you tried 1) reinstalling the package and/or 2) rebooting (yay, windows fix! :D)?

Also, do you have any menu-modifying programs installed (catorise, mymenu, etc)?

-jkq

rfa 2011-02-01 05:32

Re: HP48GX emulation
 
Thank you again for the reply!

I don't have any menu-modifying programmes installed (I uninstalled catorise with PR1.2)

2) Rebooting has had no effect & 1) yes I have re-installed it & it does appear in "add shortcut" BUT this happened with or without the update requests... It (x48) still appears in the "applications screen" just not as a shortcut.

Which sort of defeats the purpose...

At least I have the .deb stored in my phone so I don't need to re-download all often as it disappears.

What else would you suggest? and is there a way I can make a shortcut?

jkq 2011-02-01 06:52

Re: HP48GX emulation
 
Quote:

Originally Posted by rfa (Post 933112)
2) Rebooting has had no effect & 1) yes I have re-installed it & it does appear in "add shortcut" BUT this happened with or without the update requests... It (x48) still appears in the "applications screen" just not as a shortcut.

Oh, oops. When you say 'shortcut', you're referring to the launchers on the desktop. For some reason, I (incorrectly) thought you were talking about menu items.

I'm not currently using the desktop shortcuts, so I don't have any other ideas. Sorry...

-jkq

rfa 2011-02-01 11:20

Re: HP48GX emulation
 
I think I've fixed it? By selecting the .armel (I have stored in my phone) it opens Application Manager, says "updating" & the shortcut reappears...

Thank you for your assistance!


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

vBulletin® Version 3.8.8