Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Rich Walsh

Pages: 1 ... 6 7 [8] 9 10 ... 23
106
Setup & Installation / Re: ArcaOS Sluggishness
« on: October 19, 2023, 11:42:05 pm »
Initdisk gave me the "broken header 2" error that I got from my first attempt (I selected GPT)

If you'd like I can PM you my 'mkgpt' utility that was supposed to go into 5.1 but got replaced by 'initdisk'. I _know_ that this one works (for me at least), so if bombs out then you have a disk issue.

107
Programming / Re: shared memory value - Odin win32k or DosQuerySysInfo???
« on: October 18, 2023, 07:10:41 pm »
running your monitor and comparing it's output to the likes of 'Free Shared Mem' util, or Alex's 'mem', I am not quite seeing the same numbers.

First off, my apologies. A dumb arithmetic error gave you 512mb more high memory than you actually have. The attached 'memry07.zip' fixes the error.

Quote
This is pretty neat stuff. I have been dreaming of building a GUI "browser" that basically visually maps the current memory utilization, goal being: make it human digestable!!!

That's been my goal as well which is why I've spent the last few days working on my "memap" XCenter widget. Below are some screenshots: the widget at its default size (nice and small), the widget expanded for greater visibility, and the widget showing its details window. Since you may want to monitor the details as you open and close stuff, I've made the details window movable so you move it elsewhere to keep it from getting covered. Note that this is a work-in-progress and subject to change (in particular, the details window).

BTW... the scaling for high and low memory differs. For low memory (bottom line) each box represents 64k. For high mem (top line) each box is total_high_mem / 8. Because I have 2gb of high mem, each box is 256mb; if you have 1gb, each box would be 128k.

Edit: added a screenshot of an alternate layout for the Details window. Which one is better?

108
Utilities / Re: How to change several files "Class Type" in one shot
« on: October 15, 2023, 05:49:38 am »
Rich, [...] will it be ok to package (add some readme info, etc) your releases and upload them to hobbes?

Thanks for the offer, but "No, please don't". The same goes for 'csm2uefi' and other things I may post here.

Most of this stuff was created either in response to a particular user's needs (in this case, yours) or to some short-term need (e.g. csm2uefi), and isn't ready and/or suitable for widespread distribution. When it is (if ever), I will handle the details.

109
Utilities / Re: How to change several files "Class Type" in one shot
« on: October 13, 2023, 09:48:11 pm »
It works, but only for single files, it does not support wildcards.

BMP2DATA.CMD
------------------
oo /+
for %%1 in (*.bmp) do oo /B %%1 WPDataFile
oo /-
------------------

110
Utilities / Re: How to change several files "Class Type" in one shot
« on: October 13, 2023, 05:30:26 am »
Attached is 'oo' v1.15 which now offers a "Become" command.

If you are running AOS, you already have 'oo' v1.10 in x:\sys\bin. Backup that copy (just in case), then replace it with this version. If not, download RWS v0.80 from hobbes, install it, then replace its copy of 'oo' with this one.

The syntax for the new command is:  oo  /B  <file>  <className | file2>

Supply the name of the file or folder to be changed, then specify either the name of the new class _or_ the name of a file or folder that is already the class you want. If successful, 'oo' will change the class, update the '.TYPE' EA as needed, and reset the object to the class' default view.

Run 'oo' with no arguments to get its help screen. Refer to 'oo.txt' for more details (on AOS, it's in 'x:\sys\doc\oo').

111
Hardware / Re: Lenovo IdeaPad 120S-141AP and ArcaOS 5.0.7?
« on: October 10, 2023, 10:28:20 am »
I tried the USB optical drive again

ArcaOS can NOT be installed using a USB DVD drive. You must create a USB boot stick using ".\dfsanwin.exe -q run aosboot.dfs" from Win if you don't have an existing OS/2 installation. However...

All this effort may be for naught. I looked at the BIOS simulator that Martin linked to. It suggests that the machine has an EMMC drive (typical for tablets) and not a conventional hard drive. If so, this machine is not supported. AOS has drivers for PATA, SATA, and NVME drives but not EMMC.

112
Programming / Re: shared memory value - Odin win32k or DosQuerySysInfo???
« on: September 30, 2023, 10:35:34 am »
Attached is an update to 'memry' that now displays both high and low memory usage. Start it before opening your browser, then watch its numbers change when you open it. Here's my before and after with Dooble.


113
Programming / Re: WPS dragged object handle
« on: September 29, 2023, 10:51:36 pm »
I am trying to identify the object that is being dragged over my window [...]

There is a value in ulItemID, put there either by the WPS or xWorkplaceShell when a WPProgram type object is being dragged. Anyone know what that value is?

For items that identify themselves as "<DRM_OBJECT,DRF_OBJECT>" ulItemID is a pointer to the object's container record. This is very useful within the WPS process but useless outside it. Indeed, there's nothing in a DRAGITEM that gives any hint as to the type of object being dragged other than to identify whether it's a file (e.g. "<DRM_OS2FILE,DRF_TEXT>"),

The only way I know of to get info about a WPS object from outside the WPS process is to use RWS. It allows you to call into the WPS using that ulItemID to query the object's attributes, execute its methods, and generally do whatever you want to inside the WPS. My only concern in this case is that it may have too much overhead to use it "live" during a drag.

FYI... RWS's runtime DLLs are included in all releases of AOS. For development, you will need the full package: https://hobbes.nmsu.edu/download/pub/os2/dev/libraries/SOM/RWS_0-80.zip

114
Programming / Re: shared memory value - Odin win32k or DosQuerySysInfo???
« on: September 28, 2023, 10:58:03 pm »
Dariusz, thanks for starting this thread. It motivated me to resurrect a long-stalled project: a memory meter that shows linear address usage the way OS/2 sees it.

All the mem monitors I've seen divide memory into Private and Shared. However, that "Shared" memory is actually two separate pieces: actual Shared memory, and the *Unassigned* memory that lies between private and shared. This address space can be assigned to either as needed. Because existing monitors lump the two together,  they will claim that your *shared* memory just decreased if any of that Unassigned memory gets reassigned for use as Private. This scenario happens constantly with the browsers and gives a mistaken impression of how they use all that memory.

Attached is 'memry.exe', a text-mode memory monitor that addresses the issue. It's a proof-of-concept that I'll eventually reimplement as an XCenter widget. Here's what it's output looks like:
Code: [Select]
| Private | Unassigned | Shared  [Used Free] |
|   150    |      207         |   155      [ 155      0  ] |

There are two display modes:
* static - enter the 'memry' command on the top line of an OS/2 window. The data line will update silently every 2.5 seconds.
* scrolling - enter the 'memry' command on the last line of an OS/2 window. The data line will update every 2.5 seconds and scroll down one line, giving you a listing of recent memory usage.

Edit: see the next posting for a newer version

115
Programming / Re: shared memory value - Odin win32k or DosQuerySysInfo???
« on: September 28, 2023, 09:24:00 pm »
Wouldn't using win2k.h introduce a dependency in win2k.sys, which is now depreciated IIRC.

Somehow this must not be the case: I've had PUMonitor running on my machine for quite a few years now. [...] and I do NOT run the win32k.sys driver on my machine.

XCenter's "Sentinel Memory Watcher" also attempts to use win32k. If it fails to open the driver, then it falls back to conventional means to generate it numbers. This 'PUMonitor' (which I'd never heard of before) almost certainly does the same. Without a device driver (or access to a backdoor into the kernel), the kernel data the util wants to use is simply not accessible to a Ring-3 app.

116
Programming / Re: Using AI to Code for OS/2
« on: September 17, 2023, 08:09:54 pm »
Spoiler Note: https://www.osbc.org/ Sent me to the Ocean State Baptist Church.

https://www.osbc.com gets you the page for the 'Open Source Business Conference' to be held in San Francisco on May 16-17, 2011. I wonder if the bot knows how we can get tickets for this event...

117
Applications / Re: ArcaOS 5.1.0 and cups
« on: September 17, 2023, 05:42:18 am »
At least I know now that it was not an "Operator Error"  :-)

Actually, I think it was "Media Error". After Win set up your NVME drive, installing AOS 5.1 should have been a non-event. Instead you still had to use all sorts of workarounds and are still having problems. Personally, I'd just start from scratch.

If you create another partition, you can reassign the letter of your current boot partition to the new one, then reinstall using a fresh download of the ISO. If it works, great - if not, you can restore the drive letter to the previous partition and be none the worse off.

BTW... did you disable HyperThreading in the BIOS?  Also, contrary to AN, I'd recommend having CSM *off* until you can demonstrate a need for it to be on.

118
Applications / Re: Drag and drop printing
« on: September 14, 2023, 08:38:23 pm »
The objects are enumerated in the order they appear in the folder _except_ that whichever icon you pointed at and dragged is placed at the top of the list. If objects A B C D are highlighted and you drag C, then the list will be C A B D.

You can test this by opening 'e.exe' then dropping the objects in its window. The f/q path of each will be listed in the order just described.

119
Applications / Re: ArcaOS 5.1 - First Impressions
« on: September 12, 2023, 11:19:59 pm »
"If no partition table exists, the ArcaOS installer will automatically create the
table as selected in the Installation Volume Manager during installation [...]"

So, good to know.

Perhaps they're using the DFSee runtime to handle the GPT layout (pure speculation).

FWIW...  'x:\sys\install\EspUtil.exe' is the pgm that formats and populates the ESP. It has plenty of options for DIY'ers but nothing I saw to do repartitioning.

Quote
Checking the BIOS boot order I found AN Launcher and selected the install partition, boot started and stopped fairly quickly showing os2lvm.dmd on screen and the "OS/2 cannot operate your hard disk..." message.

Not sure where to go from there... all partitions look good in miniLVM, chkdsk does not report any problems.

If the system can't match the boot drive to a letter, you'll get that error. So, just to confirm,,, when booted into the installer and running MiniLVM, does the target (install) drive have the expected letter? Does that match the boot drive referenced in the target's 'config.sys'?

Next, is everything (ESP and boot partition) on the same drive? When split across drives there's a chance that the disk numbering is changing during bootup. Ensure that the machine considers the disk with the ESP to be Drive 1 (i.e. the first in its list of hard drives).

BTW... having the bootup hang after the first reboot, just as it's about to go graphical, has happened to me many times. This could just be voodoo, but in at least some cases the target drive's 'os2.ini' was still marked read-only. Resetting that flag then rebooting seemed to get the install going again. Take this with a grain of salt...

120
Applications / Re: ArcaOS 5.1 - First Impressions
« on: September 11, 2023, 06:47:11 am »
After the Windows install I retried installing ArcaOS 5.1 which failed as previously however I did notice that the GPT driver got installed this time. Could that be because Windows 11 had created some partitions on the drive?

Yes. Your drive was probably blank without any partitioning scheme in place. Since there weren't any GPT disks to be found, gpt.flt unloaded itself. OTOH, Windows recognized the situation and created the GPT infrastructure and ESP that AOS used subsequently.

While I was with AN, I wrote a util to create a GPT disk from a blank or MBR disk but it wasn't included in 5.1. I don't see an alternative in the distro, so people may have to use Windows or Linux for that task.

Pages: 1 ... 6 7 [8] 9 10 ... 23