2023-06-04

Usando o ChatGPT

 

Conforme referi em post recente sobre problema com impressora, na sequência de tantas informações sobre as actuais capacidades extraordinárias da Inteligência Artificial decidi experimentar o ChatGPT como auxiliar na resolução do problema referido.

Previamente tinha elaborado alguns textos em inglês, porque há mais informação na net nesta língua do que em qualquer outra, para questionar grupos de discussão da Microsoft e da HP (Hewlett-Packard) ou "feedback hubs" e aproveitei-os para descrever o problema.

Antigamente os problemas resolviam-se lendo os Manuais de Utilização e/ou tentando localizar no universo dos conhecidos alguém com uma sugestão válida. Actualmente fazem-se  várias pequisas na net usando o Google, que me deram algumas sugestões para resolver o problema.Os grupos de discussão têm algumas boas sugestões mas estas não são a maioria, gastando-se bastante tempo nestas pesquisas.

A resposta do ChatGPT à minha pergunta continha as mesmas propostas de solução que eu identificara através das pesquisas na net, talvez num inglês de melhor qualidade, e ainda referia uma possível "Disabling driver signature enforcement" que me pareceu prometedora mas que se revelou, além de difícil execução, ser inútil.

Mesmo assim apreciei a capacidade de reacção aos meus reparos às soluções propostas. Resumindo, pareceu-me que o ChatGPT poderia poupar algum tempo em relação a pesquisas usando o Google, fazendo um bom resumo das sugestões existentes na net.

Porém, o ChatGPT não detectou na net uma solução para o problema nem igualou a sabedoria de um colega que me disse que provavelmente se tratava de um problema introduzido num dos numerosos upgrades do Windows e que também provavelmente seria resolvido num upgrade futuro, o que veio a acontecer cerca de 7 meses depois da detecção, conforme disse no post seguinte ao que referi acima.

Para eventual consulta passo a descrever o diálogo com o ChatGPT. O meu texto está a verde, o do ChatGPT a laranja:

2023-02-12
Me:
My HP Laserjet Pro CP1025 Color Printer, Product Number: CF346A was installed in Nov/2015 and functioned well (I do not print every day) till June/2022. I was absent during 11 weeks starting in 1st of July and, after I installed all the pending Windows updates in 17/Sep/2022 (KB5017308, KB5017500 and KB5012170) the PC no longer recognizes the printer presence. The printer performs well the self-test initiated by printer button. I Installed HP Smart Install program and now, each time I power on the printer the HP Smart Install tries to install the HP Laser jet Professional CP1020 series driver, thus showing it was informed of the printer existence. However if has always failed to complete the driver installation. I installed the printer in an old PC not connected to the internet, running Windows XP and it printed well, so the printer is OK, the problem is in Windows 10. How can I resume normal use of this printer in the PC running Windows 10?

ChatGPT:
There are a few things you can try to resolve the issue and get your HP Laserjet Pro CP1025 printer working with your Windows 10 computer:

    Uninstall the HP Smart Install program and reinstall the latest printer driver: Go to the Control Panel and uninstall the HP Smart Install program. Then, download the latest driver for your printer from the HP website and install it on your Windows 10 computer.

    Update your printer firmware: HP occasionally releases firmware updates for its printers. You can check if there are any firmware updates available for your printer by visiting the HP website and entering your printer's product number.

    Disable the Windows 10 driver signature enforcement: On your Windows 10 computer, go to Start, then Settings, then click on "Update & Security". Then click on "Recovery", and then click on the "Restart now" button under "Advanced startup". Select "Troubleshoot", then "Advanced options", then "Startup Settings", then "Restart". Press F7 on your keyboard to disable the driver signature enforcement. Then reinstall the latest driver for your printer.

    Use compatibility mode: If the above steps do not work, you can try installing the printer driver in compatibility mode. Right-click on the downloaded driver file and select "Properties". Click on the "Compatibility" tab and select "Windows 7" or "Windows 8" as the operating system. Then click on "Apply" and "OK". Install the printer driver using the compatibility mode.

I hope these steps help you get your HP Laserjet Pro CP1025 printer working with your Windows 10 computer. If you still have issues, you can contact HP support for further assistance.


Me:
How do I check that the Windows 10 driver signature enforcement is disabled?

ChatGPT:
You can check the status of driver signature enforcement in Windows 10 by following these steps:

    Press the Windows key + X to open the Quick Link menu and click on "Command Prompt (Admin)" to open the Command Prompt with administrative privileges.

    Type the following command in the Command Prompt and press Enter: bcdedit.exe /get {current}

    Look for the "DriverSignaturePolicy" line in the output. If it's set to "0", driver signature enforcement is disabled. If it's set to "3", it's enabled.

Note: Disabling driver signature enforcement is not recommended and should only be done if necessary, as it can make your system less secure. Always make sure to download drivers from trusted sources to reduce the risk of installing malicious or poorly functioning drivers.


My Note: bcdedit.exe /get {current} did not produce any result

Regenerate response:
To check if driver signature enforcement is disabled on your Windows 10 device, follow these steps:
1.    Press the Windows key + X to open the power user menu.
2.    Select "Command Prompt (Admin)" or "Windows PowerShell (Admin)" from the list.
3.    In the command prompt or PowerShell window, type the following command:
bcdedit /enum
4.    Press Enter to run the command. This will display the Windows Boot Manager configuration data.
5.    Look for the "boot manager" entry in the output and check if the "integrity checks" value is set to "No". If it is, driver signature enforcement is disabled on your system.
If the integrity checks value is set to "Yes", driver signature enforcement is enabled. To disable driver signature enforcement, you can follow the steps below:
1.    Open the power user menu by pressing the Windows key + X.
2.    Select "Device Manager" from the list.
3.    In the Device Manager window, find the device for which you want to install an unsigned driver.
4.    Right-click on the device and select "Update driver".
5.    Select "Browse my computer for driver software".
6.    Click "Let me pick from a list of available drivers on my computer".
7.    Check the "Show compatible hardware" box.
8.    Select the driver you want to install and click "Next".
9.    When prompted with a warning about the driver being unsigned, click "Install this driver software anyway".

Me: This was the result concerning  Boot Manager of the command “bcdedit /enum”:
«
Windows Boot Manager
--------------------
identifier              {bootmgr}
device                  partition=\Device\HarddiskVolume2
path                    \EFI\Microsoft\Boot\bootmgfw.efi
description             Windows Boot Manager
locale                  pt-PT
inherit                 {globalsettings}
default                 {current}
resumeobject            {42198679-f419-11ea-baa2-814c14aa27c9}
displayorder            {current}
toolsdisplayorder       {memdiag}
timeout                 30
»
“integrity checks” are absent of the bcdedit output
What do you suugest then?


ChatGPT:
If the "integrity checks" value is absent in the output of the bcdedit /enum command, it means that the driver signature enforcement is not configured in the boot configuration data. In this case, it is likely that driver signature enforcement is currently disabled on your Windows 10 device.
To verify this, you can try to install a driver that is not digitally signed by Microsoft. If the installation is successful, then it is very likely that driver signature enforcement is disabled. However, please note that installing unsigned drivers can be risky and may lead to system instability or security issues.
If you want to enable driver signature enforcement again, you can follow these steps:
1.    Open the power user menu by pressing the Windows key + X.
2.    Select "Device Manager" from the list.
3.    In the Device Manager window, find the device for which you want to install a signed driver.
4.    Right-click on the device and select "Update driver".
5.    Select "Search automatically for updated driver software". Windows will then search for a signed driver and install it if available.
Alternatively, you can also enable driver signature enforcement by modifying the boot configuration data using the bcdedit command. To do this, you can open an elevated command prompt or PowerShell window and enter the following command:
csharp
bcdedit /set nointegritychecks on
This will enable driver signature enforcement on your system. However, please note that enabling driver signature enforcement may prevent the installation of some drivers that are not digitally signed by Microsoft or other trusted vendors.



4 comentários:

Anónimo disse...

Teste de Turing.
No FTimes este fim de semana há uma entrevista com o Ted Chiang, o Asimov actual.
Ele sugere que a AI se chame ‘estatística aplicada’ , referindo o substrato do trabalho que efectivamente faz.
Moreno

jj.amarante disse...

Olá Moreno,
Sou grande fã do Ted Chiang, li vários ensaios dele muito interessantes sobre Inteligência Artificial. e vou a meio dum livro dele o "Exhalation" que se tivesse começado a ler quando não havia internet já teria acabado. Assim vou a pouco mais de meio, os 3 primeiros contos, pequenos, são excepcionais, o mais longo com o mesmo título do livro também é interessante, sobre a educação de robots. As pessoas da alegada Inteligência Artificial têm enorme atracção pelos sound-bytes, por exemplo chamar "Rede Neuronal" a algoritmos simulando meia-dúzia de neurónios é quase inacreditável. Agora pedem ajuda para parar o desenvolvimento da IA, fazem-me lembrar a frase "agarrem-me senão mato-o"! O "Large Language Model" poderia melhorar substituindo o "Large" por "Statistical", ficaria "Modelo de Linguagem Estatístico".

Anónimo disse...

Ok. Envio entrevista por mail

jj.amarante disse...

Errata: no meu comentário das 14:44, onde está "o mais longo com o mesmo título do livro" devia estar "o mais longo, intitulado The "Lifecycle of Software Objects""