helloSystem / Utilities

Utilities written in PyQt5, meant for use with helloSystem
BSD 2-Clause "Simplified" License
28 stars 29 forks source link

Hardware Probe not working #152

Open OspreyJr opened 1 year ago

OspreyJr commented 1 year ago

In helloSystem 0.8.1 Build 290 13.1 release, live booting from usb drive, Lenovo T520

Button "show hardware probe" has no reaction on clicking (screenshot). Pressing button "continue" two times brings warning (screenshot 2).

screenshot screenshot2

probonopd commented 1 year ago

Please open QTerminal, run the command, and paste the output of

env | grep LANG

Mine is:

LANG=de_DE.UTF-8
LANGUAGE=
OspreyJr commented 1 year ago

Mine is unchanged from the live iso: ` LANG=en

LANGUAGE= `

probonopd commented 1 year ago

This seems to be dependent on the language, as I don't have this issue on my system which is set to German using https://github.com/helloSystem/hello/wiki/EFI-NVRAM:

VirtualBox_helloSystem_18_02_2023_20_04_04

probonopd commented 1 year ago

I can confirm that uploading fails if LANG=en.

probonopd commented 1 year ago

Workaround: Open QTerminal, run:

LANG=en_US.UTF-8
launch "Hardware Probe"
OspreyJr commented 1 year ago

Yes, that helped regarding uploading. When pressing the Show Hardware Probe button there is still no reaction besides that output in Terminal:

showHardwareProbeButtonClicked self.local_probe_path: /root/HW_PROBE/LATEST/hw.info Starting launch ['Filer', '/root/HW_PROBE/LATEST/hw.info']

probonopd commented 1 year ago

What happens if you open Hardware Probe, and then instead of clicking on the button enter in QTerminal:

launch Filer '/root/HW_PROBE/LATEST/hw.info'
OspreyJr commented 1 year ago

Then a second instance of Hardware Probe opens, also not reacting Show Hardware Probe button.

probonopd commented 1 year ago

What, launch Filer ... opens Hardware Probe? Something must be seriously wrong.

OspreyJr commented 1 year ago

Sorry, maybe my mistake! Copy and paste is a bit messy with Falkon... it opens a window of Filer (hw.info) showing three icons: devices, host and logs folder.

probonopd commented 1 year ago

And when you click the button it doesn't do that? Even though it wants to execute that exact same command?

OspreyJr commented 1 year ago

Today I played around with the Hardware Probe a little bit. It seems (I didn't look at the code) that it collects the info upon starting, not when pressing any button. Pressing the Show Hardware Probe button didn't have any effect on the button nor on the files in hw.info. When I close Hardware Probe and start it again, the hw.info folder doesn't seem to exist anymore, because no Filer window opens when entering the above command to show that folder. Clicking the Show Hardware Probe button also won't create those files.

After clicking Continue in Hardware Probe two times with the wrong locale that leads to the perl warning (see above), trying to open a Filer window of the hw.info folder finally opens an error box "/root/HW_PROBE/LATEST/hw.info: No such file or directory". There was no error box before. And after closing the error box another launch Filer command to show that folder won't open an error box again.

After starting Hardware Probe with corrected locale there's still no hw.info Filer window opening with the launch command. Then after uploading the Hardware Probe the launch command opens an error box again. After closing the box and entering the launch command in Terminal the error box appears and this is happening repeatedly. And even after "Show uploaded Hardware Probe", which was successful, launching Filer with hw.info results in the error box only. Which is strange, because one time the contents were shown in Filer.