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

Pages: 1 ... 10 11 [12] 13 14 ... 73
166
Programming / Re: OS2AHCI interface?
« on: April 20, 2020, 09:03:42 pm »
Hi Dariusz

I knew I had bumped into the X-it problem somewhere before but had to dig up a copy of USBcfg readme to check. When I first released USBcfg someone reported a problem starting USBcfg which turned out to be X-it related.

Not knowing X-it myself I wonder why there is a problem with USBcfg and PMsmartcl. What the 2 apps have in common is that they are both developed using WDSibyl and, probably more to the point, both use a non-resizeable window with only Minimise and Close icons. I suspect X-it is not able to add it's icon to this type of window.

Out of Interest: Why is your SATA DVD connected to a SATA Adapter but using the IDE driver rather than AHCI?

Thanks for pointing out the smartctl '--identify' option, not sure how I missed it before, now added to PMsmartcl options also added code for choosing a Text Editor, should be releasing an update soon - just need to work out a bit more code.

Not sure about developing "a storage device quasi-sysinfo type of a thing" though...


Regards

Pete

167
Hi ivan

Do you mean the below?

Regards

Pete



2.2 Device Driver Load Options
--------------------------------

The following options are supported in CONFIG.SYS:

DEVICE=x:\MMOS2\UNIAUD32.SYS /V /C:CARDNAME
  - /A:n - Use audio adapter n where the first adapter is 0. (Really skip n adapters).
  - /V - Verbose
  - /C:DRIVER - Force audio hardware to *only* use the specified driver.
        Where DRIVER is:
      - SBLIVE      : Sound Blaster Live!
      - CS4281      : Cirrus Logic CS4281
      - ALS4000     : Avance Logic ALS4000
      - CMEDIA      : C-Media CMI8738, CMI8338
      - ICH         : Intel ICHx, NFORCE1/2/3
      - CS46XX      : Cirrus Logic CS4280, CS46XX
      - VIA82XX     : VIA VT82C686A/B/C, VT8233A/C, VT8235
      - ESS1938     : ESS Solo-1 (ESS 1938)
      - MAESTRO     : ESS Maestro1/2/2E, TerraTec DMX
      - MAESTRO3    : ESS Maestro3/Allegro/Canyon3D-2
      - YAMAHA      : Yamaha YMF 724/724F/740/740C/744/754
      - ENSONIQ     : Ensoniq AudioPCI ES1371/73, Creative Labs SB PCI64/128
      - ALI5451     : ALI 5451
      - TRIDENT     : Trident 4D Wave, SI7018
Default: Fully automatic operation. Use of switch is not recommended.

DEVICE=x:\MMOS2\UNIAUD16.SYS /V /C /M /L
  - /V - Verbose
  - /C - Enable CD output
  - /M - Enable Microphone output
  - /L - Enable Line-In output
Default: /C ((verbose messages; CD output enabled)

168
Hi Neil

If the code posted above is correct, no typo, you may want to turn on the other speaker - unless the current statement works which would be interesting to know.

   unimix -id1 =cnt0 -val87   should be  unimix -id1 -cnt0 -val87


What is it about laptops? - they always seem to need speakers turned on during startup. I guess it could be the manufacturers way of saving battery power...


Regards

Pete

169
Programming / Re: OS2AHCI interface?
« on: April 16, 2020, 06:14:51 pm »
Hi Dave

Bit of a naff decision by Dell - cannot have saved them more than a penny or 2.

As I understand it CD/DVD devices do not have SMART support so I would expect them to successfully *fail* to perform a SMART command. Guess it could be used to identify CD/DVD drives but could falsely identify a failing hard disk as CD/DVD - and we would still have Dariusz problem of a PATA detected SATA DVD drive...

Had a busy day so far, not even looked at any coding. Had to clamber up a ladder and replace a broken gutter bracket before gutter fell off. Should have been a quick job but I am still recovering from double hernia repair surgery so had to take it slow and easy.

Just finished the gutter and was having coffee when my replacement monitor power supply board turned up so had a go at fixing my ancient Dell 1707FPf monitor. That went really well, took about 20 minutes and I am currently using it - not sure where the 4 screws left over after reassembly belong but monitor displays DVI or VGA successfully and the USB hub works :-)


Now to try out a few ideas with PMsmartctl - could be a couple of days before all the coding comes together though...


Regards

Pete



170
Programming / Re: OS2AHCI interface?
« on: April 16, 2020, 02:39:37 pm »
Hi Dave

No mention of SATA in your cd/dvd info output certainly stops 1 idea in it's tracks...

Guess I could add a "Drives" button which when clicked would query danis506$ and os2ahci$ to see what physical drives are attached to what controllers and display that info.

I am a bit confused by part of your post. It seems you are saying that your mainboard has a number of SATA ports but only Port 0 is SATA3 capable? Seems strange - all SATA3 controllers on several mainboards here have all ports SATA3 capable but will work with earlier SATA spec drives, obviously at the lower spec speed eg SATA2.


Regards

Pete

171
Programming / Re: OS2AHCI interface?
« on: April 16, 2020, 06:14:26 am »
Hi Dariusz

Glad you got PMsmartctl running although why it should need to be on an exception list of some sort I have no idea...

PMsmartctl simply shows whatever "smartctl --scan" finds. If the DVD shows as PATA then it is being reported as PATA by the smartctl output. My guess is a SATA DVD connected to a SATA controller port but using the PATA (danis506) driver could be the cause of that. In which case, for the purposes of both smartctl and the OS, it is considered a PATA drive.

The output you posted contains more lines than I would expect for a SATA connected SATA DVD using the AHCI driver:-

=== START OF INFORMATION SECTION ===
Device Model:     HL-DT-ST DVDRAM GH24NSC0
Serial Number:    K1RE93A5355
LU WWN Device Id: 5 001480 000000000
Firmware Version: LK00
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS (unknown minor revision code: 0x0210)
SATA Version is:  SATA 3.0, 1.5 Gb/s
Local Time is:    Thu Apr 16 04:43:33 2020 BST
SMART support is: Unavailable - Packet Interface Devices [this device: CD/DVD] don't support ATA SMART


Yes, I use LG DVD drives as well  :-)

Here is a simple way to check the smartctl output is reported "correctly" by PMsmartctl:
After starting PMsmartctl a file will exist in your TEMP directory called SCAN.TXT Open the file with an editor and I think it will show the 3 SATA drives as ahci0 to ahci2 and the DVD as hd0 (presuming it is the only "PATA" drive connected).

Probably should add a note about this to the PMsmartctl readme.


Regards

Pete


172
Programming / Re: MeShell and PAUSE in a cmd file
« on: April 15, 2020, 10:37:52 pm »
Hi Martin

Could you not recompile your pause.exe as a DLL file to be imported/called by your app?


Regards

Pete

173
Programming / Re: OS2AHCI interface?
« on: April 15, 2020, 10:31:38 pm »
Hi All

Dave and ivans point about choice of editor noted.

I selected to use the Text Editor - either of the e.exe versions - simply because it is likely to exist on most systems. However, as the app develops I see no reason to not offer the user a choice of editor. As the output of smartctl was intended for a command window whatever editor is chosen will have to be set to System VIO font to maintain the output format.

Yes, the IBM e.exe original version can be set to use that font and the smartctl output format is then maintained.


@Dariusz
Sorry PMsmartctl_Test1 has not worked for you, not sure where to look for the problem... Can you post a screenshot of the app suffering a "softlock".
Yes, written using WDSibyl so a sort of Delphi-like version of (Object) Pascal - a fairly easy language/development system to get to grips with.


Regards

Pete

174
Programming / Re: OS2AHCI interface?
« on: April 15, 2020, 04:17:15 am »
Hi ivan

Doubt I'll get into the colour side of things - unless I get really bored and decide to write code to display the output rather than using e.exe... OTOH as with Darriusz you are welcome to the source code - just in case you get bored  :-)

Of possible interest is the output I get for Attributes is a bit neater, organised nicely in columns without me coding a thing, see attached Petes_Output.jpg

I currently have no idea why the output on your system is not as neatly organised... Text Editor (e.exe) in use here is AE v1.9.8


Regards

Pete

175
Programming / Re: OS2AHCI interface?
« on: April 15, 2020, 01:33:06 am »
Hi Darriusz

Given that I have seen other posts about you having to switch cores off on your Phenom X6 to get things working at times I suspect there may be a problem somewhere with hardware/acpi interaction(s) on that system - at least it is not just my app :-)

Glad to hear PMsmartcl does not take out the system but Not sure what I can do to help resolve the issues with the Phenom X6...

As regards where the "softlock" occurs with PMsmartctl:

When the path to smartctl.exe has been entered PMsmartctl calls "smartctl --scan > SCAN.TXT" to create a file containing the list of available disks. SCAN.TXT is then read and disk radio buttons  are Enabled for those disks found.

Do the PATA/SATA Radio Buttons corresponding to the installed disks get Enabled? Looking at your previous post it looks like they do... Which could indicate some simple code fails, possibly:-

   // Close text file
      CloseFile(F);

I do not know  a "workaround" if using CloseFile on the SCAN.TXT file is where the "softlock" occurs...

Does the following text get displayed in the top left area of the app?

   1] Locate smartctl.exe
   2] Select Disk
   3] Select Information
   4] Click Show

If "No" then my guess is something goes wrong with CloseFile(F) or thereabouts.

If "Yes" - quite simply, no ideas... The app should be sitting waiting for a user to select disk and information required before clicking the "Show" button.

PMsmartctl uses the following command to get the list of drives:-

   smartctl --scan > SCAN.TXT

Copy'n'Paste the above in a command window opened in your smartctl directory.

The above does not tell you which disk is on what controller though, for that you need to ask the driver what it found at boot ie:-

Copy OS2AHCI$ K:\TEMP\SATA.TRC


Below is the output of both OS2AHC$ (using older 1.32 release as it shows unused ports as well) and smartctl --scan which shows that the disk reported by OS2AHCI$ on Adapter 1 Port 1 is seen as ahci4 by smartctl.exe


OS2AHCI$ output:-

BldLevel: @#Arca Noae LLC:1.32#@##1## 16 Nov 2014 08:16:06     DAZAR1    ::::::@@AHCI Driver (c) 2014 Arca Noae LLC
CmdLine: OS2AHCI.ADD
Adapter 0: PCI=0:17:0 ID=1002:4391 AMD SB700/800 irq=19 addr=0xfeb0b000 version=10200
  Port 0:
    Drive 0: 14593 cylinders, 255 heads, 63 sectors per track (114470MB) (LVM)
  Port 1:
    Drive 0: 60321 cylinders, 255 heads, 127 sectors per track (953855MB) (LVM)
  Port 2:
    Drive 0: atapi removable Drive present but no information available. Not queried by OS.
  Port 3:
    Drive 0: atapi removable Drive present but no information available. Not queried by OS.
  Port 4:
    No drive present
  Port 5:
    No drive present
Adapter 1: PCI=3:0:0 ID=1b4b:9172 Generic Generic irq=47 addr=0xfe810000 version=10000
  Port 0:
    No drive present
  Port 1:
    Drive 0: 30042 cylinders, 255 heads, 255 sectors per track (953848MB) (LVM)


smartctl --scan output:-

ahci0 -d ata # ahci0, ATA device
ahci1 -d ata # ahci1, ATA device
ahci2 -d ata # ahci2, ATA device
ahci3 -d ata # ahci3, ATA device
ahci4 -d ata # ahci4, ATA device


As regards sharing my code: No Problem - was thinking about writing an article on creating a relatively simple WDSibyl application using this app and asking Martin if he wants to "publish" it on os2world so was planning to "open source" PMsmartctl. I suspect your main interest would be the "smartctl --scan" and "copy OS2AHCI$" bits above though.

Incidentially, have you checked whether BS_Info "exposes all the pertinent details a storage device has"  - https://www.wdsibyl.org/index.php?module=Downloads&func=sublevel&cid=24&lang=en


Regards

Pete


176
Programming / Re: OS2AHCI interface?
« on: April 15, 2020, 12:48:13 am »
Hi ivan

The output shown is "as it comes" from smartctl.exe

What "table items" would you like in columns? - a lot of the output is already in columns.


Regards

Pete

177
Programming / Re: OS2AHCI interface?
« on: April 14, 2020, 08:55:03 pm »
Hi Darriusz

PMsmartctl_Test1.zip attached - Simply unzip over previous release and Delete existing PMsmartctl.INI file.


Regards

Pete

178
Hi Neil

Try "upping" the volume on Control ID 9 - 16 is probably too low a value. I presume you have already "upped" the volume on Control ID 1?


Regards

Pete


Control ID: 9
Interface: virtual mixer device
Device(client): 0, subdevice (substream) 0
Name: [Master Playback Volume]
Index: 0
Element type: integer type
Count of values: 1
Value:
 Bounds: min: 0, max: 87, step: 0
  value 0: 16

179
Programming / Re: OS2AHCI interface?
« on: April 14, 2020, 06:44:53 pm »
Hi Darriusz

Seems to be SMP safe here - developed on a system with an AMD FX 4300, all 4 cores active, not had that sort of problem - so far.

If I understand you correctly this happened the first time you started PMsmartctl - you had not previously run PMsmartctl and set the location of smartctl.exe ?

I do not think there is anything that is SMP unsafe in the startup code but will have a rummage through to see if I can find possible cause(s). At first glance the only thing that stands out is that I have not explicitly initialised a couple of variables...

That could make a difference if there is some "garbage" in the location used for the variable smartctlPath as that would mean the check for smartctlPath having a value would return True which would then set the smartctlFlag indicating smartctl.exe was available triggering a call to "smartctl --scan" which could cause the startup problem.

I'll have to do a little bit of re-coding and post a new build a little later for you to try. Will also have a rummage through underlying OS/2 API calls made during startup to see if there is anything known to be SMP unsafe but I do not think there is.

Out of interest will PMsmartctl run with 4 cores enabled on your system?


Regards

Pete


180
Programming / Re: OS2AHCI interface?
« on: April 14, 2020, 11:06:07 am »
Hi All

I have just quickly tested the smartmontools-7_0-1 package (from http://rpm.netlabs.org/experimental/00/zip/smartmontools-7_0-1_oc00.zip) and, so far, it seems that PMsmartctl is happy to use that release.


Regards

Pete

Pages: 1 ... 10 11 [12] 13 14 ... 73