unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* attempt to scan in Guix
@ 2023-02-23 14:09 Gottfried
  2023-02-23 14:51 ` Felix Lechner via
  2023-02-25  3:40 ` Maxim Cournoyer
  0 siblings, 2 replies; 7+ messages in thread
From: Gottfried @ 2023-02-23 14:09 UTC (permalink / raw)
  To: help-guix


[-- Attachment #1.1.1: Type: text/plain, Size: 730 bytes --]

Hi,

I can’t scan with my HP OfficeJet printer all-in-one in Guix.

When opening the "Enlightenment Desktop"
it gives me this message after trying to scan:

/gnu/store/sw1j2kavizxwj7sc51p83nwrfdvm6xj4-hplip-3.33.10/bin/hp-toolbox 
was broken due to a segmentation error.

in German:
/gnu/store/sw1j2kavizxwj7sc51p83nwrfdvm6xj4-hplip-3.33.10/bin/hp-toolbox 
wurde durch einen Segmentierungsfehler unterbrochen.

When I want to open the program "HP Device Manager" through klicking in 
my Start Menu
it flashes for a quarter of a second (it wants to open) and shows 
something (but too short to see what), but than it dissapears.

Could it be a hplip problem?

Any thoughts?


Kind regards

Gottfried


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: attempt to scan in Guix
  2023-02-23 14:09 attempt to scan in Guix Gottfried
@ 2023-02-23 14:51 ` Felix Lechner via
  2023-02-25  9:41   ` Gottfried
  2023-02-25  3:40 ` Maxim Cournoyer
  1 sibling, 1 reply; 7+ messages in thread
From: Felix Lechner via @ 2023-02-23 14:51 UTC (permalink / raw)
  To: Gottfried; +Cc: help-guix

Hi Gottfried,

On Thu, Feb 23, 2023 at 6:09 AM Gottfried <gottfried@posteo.de> wrote:
>
> /gnu/store/sw1j2kavizxwj7sc51p83nwrfdvm6xj4-hplip-3.33.10/bin/hp-toolbox
> was broken due to a segmentation error.

I recommend against using hplip, if that's where that's from. I would
instead search the SANE database [1] for your device and use libsane
directly.

Kind regards
Felix Lechner

[1] http://www.sane-project.org/sane-supported-devices.html


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: attempt to scan in Guix
  2023-02-23 14:09 attempt to scan in Guix Gottfried
  2023-02-23 14:51 ` Felix Lechner via
@ 2023-02-25  3:40 ` Maxim Cournoyer
  1 sibling, 0 replies; 7+ messages in thread
From: Maxim Cournoyer @ 2023-02-25  3:40 UTC (permalink / raw)
  To: Gottfried; +Cc: help-guix

Hello,

Gottfried <gottfried@posteo.de> writes:

> Hi,
>
> I can’t scan with my HP OfficeJet printer all-in-one in Guix.
>
> When opening the "Enlightenment Desktop"
> it gives me this message after trying to scan:
>
> /gnu/store/sw1j2kavizxwj7sc51p83nwrfdvm6xj4-hplip-3.33.10/bin/hp-toolbox
> was broken due to a segmentation error.
>
> in German:
> /gnu/store/sw1j2kavizxwj7sc51p83nwrfdvm6xj4-hplip-3.33.10/bin/hp-toolbox
> wurde durch einen Segmentierungsfehler unterbrochen.
>
> When I want to open the program "HP Device Manager" through klicking
> in my Start Menu
> it flashes for a quarter of a second (it wants to open) and shows
> something (but too short to see what), but than it dissapears.
>
> Could it be a hplip problem?

Not sure where you got that 3.33.10 version; the current one in Guix is
3.22.10.

I used it recently, had to patch wheer it looked its hp.conf, but it
seemed to mostly work (I needed to install cups for 'lp').

-- 
Thanks,
Maxim


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: attempt to scan in Guix
  2023-02-23 14:51 ` Felix Lechner via
@ 2023-02-25  9:41   ` Gottfried
  2023-02-25 11:43     ` nils
  2023-02-26 14:16     ` Felix Lechner via
  0 siblings, 2 replies; 7+ messages in thread
From: Gottfried @ 2023-02-25  9:41 UTC (permalink / raw)
  To: Felix Lechner, help-guix


[-- Attachment #1.1.1: Type: text/plain, Size: 1254 bytes --]

Hi,

thanks for helping me.

I have installed SANE in my config.scm

>  (modify-services %desktop-services
> 	(guix-service-type
>                config => (guix-configuration
>                  (inherit config)
>                  (extra-options (list "--gc-keep-derivations=yes" "--gc-keep-outputs=yes"))))
> 	(sane-service-type _ => sane-backends))))


and also I installed some packages like
xsane, sane-backends, sane-airscan, scanbd


I checked the SANE database and it seems that my printer is not 
supported, because of the older version of SANE in Guix.

May be this is the problem.

How would be the command to use libsane directly in the terminal?

Kind regards

Gottfried



Am 23.02.23 um 15:51 schrieb Felix Lechner:
> Hi Gottfried,
> 
> On Thu, Feb 23, 2023 at 6:09 AM Gottfried <gottfried@posteo.de> wrote:
>>
>> /gnu/store/sw1j2kavizxwj7sc51p83nwrfdvm6xj4-hplip-3.33.10/bin/hp-toolbox
>> was broken due to a segmentation error.
> 
> I recommend against using hplip, if that's where that's from. I would
> instead search the SANE database [1] for your device and use libsane
> directly.
> 
> Kind regards
> Felix Lechner
> 
> [1] http://www.sane-project.org/sane-supported-devices.html




[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: attempt to scan in Guix
  2023-02-25  9:41   ` Gottfried
@ 2023-02-25 11:43     ` nils
  2023-02-26 14:16     ` Felix Lechner via
  1 sibling, 0 replies; 7+ messages in thread
From: nils @ 2023-02-25 11:43 UTC (permalink / raw)
  To: Gottfried, help-guix

> Gottfried <gottfried@posteo.de> hat am 25.02.2023 10:41 CET geschrieben:
> 

> I checked the SANE database and it seems that my printer is not 
> supported, because of the older version of SANE in Guix.

Some HP printers *require* a proprietary plugin to scan. In my case (LaserJet Pro MFP M127fw), I can print without hplip, but not scan.
But I'm using guix on a foreign (Debian) system, and haven't managed to set up hplip-plugin (from nonguix) yet.

There is a list of which printers require the plugin at 
https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html

My guess (and it is only a guess) would be that you will not have any luck with libsane if your printer shows up on that list.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: attempt to scan in Guix
  2023-02-25  9:41   ` Gottfried
  2023-02-25 11:43     ` nils
@ 2023-02-26 14:16     ` Felix Lechner via
  2023-02-26 17:03       ` Gottfried
  1 sibling, 1 reply; 7+ messages in thread
From: Felix Lechner via @ 2023-02-26 14:16 UTC (permalink / raw)
  To: Gottfried; +Cc: help-guix

Hi Gottfried,

On Sat, Feb 25, 2023 at 1:41 AM Gottfried <gottfried@posteo.de> wrote:
>
> How would be the command to use libsane directly in the terminal?

I think the command to list the detected scanners is 'scanimage -L'
but my memory isn't perfect. It would be best to consult the
documentation.

Kind regards
Felix Lechner


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: attempt to scan in Guix
  2023-02-26 14:16     ` Felix Lechner via
@ 2023-02-26 17:03       ` Gottfried
  0 siblings, 0 replies; 7+ messages in thread
From: Gottfried @ 2023-02-26 17:03 UTC (permalink / raw)
  To: Felix Lechner; +Cc: help-guix


[-- Attachment #1.1.1: Type: text/plain, Size: 2103 bytes --]

Hi,

thank you very much. It was the right command.

> scanimage -L

but it didn’t find a scanner:

No scanners were identified

-------------------------------------------------------

with sudo it found my printer/scanner

>> sudo scanimage -L
>> Passwort: 
>> device `hpaio:/usb/Officejet_J4500_series?serial=CN92G561F4052T' is a Hewlett-Packard Officejet_J4500_series all-in-one
> 

--------------------------------------------------------
"sudo sane-find-scanner"

>  # No SCSI scanners found. If you expected something different, make sure that
>   # you have loaded a kernel SCSI driver for your SCSI adapter.

> found USB scanner (vendor=0x03f0 [HP], product=0x2a12 [Officejet J4500 series]) at libusb:003:006
> could not fetch string descriptor: Pipe error
> could not fetch string descriptor: Pipe error
>   # Your USB scanner was (probably) detected. It may or may not be supported by
>   # SANE. Try scanimage -L and read the backend's manpage.
>   # Not checking for parallel port scanners.
> 
>   # Most Scanners connected to the parallel port or other proprietary ports
>   # can't be detected by this program.


it found a usb scanner, but could not fetch string descriptor.

1.
does this message say that proprietary software is the problem?

-------------------------------------------------------------------
> Please read the documentation
> which came with this software (README, FAQ, manpages).

2.
Can I read documentation with the terminal, having no documentation on 
paper? Which commands I have to use?


-----------------------------------------------------------------
Kind regards

Gottfried



Am 26.02.23 um 15:16 schrieb Felix Lechner:
> Hi Gottfried,
> 
> On Sat, Feb 25, 2023 at 1:41 AM Gottfried <gottfried@posteo.de> wrote:
>>
>> How would be the command to use libsane directly in the terminal?
> 
> I think the command to list the detected scanners is 'scanimage -L'
> but my memory isn't perfect. It would be best to consult the
> documentation.
> 
> Kind regards
> Felix Lechner

-- 



[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-02-26 17:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-23 14:09 attempt to scan in Guix Gottfried
2023-02-23 14:51 ` Felix Lechner via
2023-02-25  9:41   ` Gottfried
2023-02-25 11:43     ` nils
2023-02-26 14:16     ` Felix Lechner via
2023-02-26 17:03       ` Gottfried
2023-02-25  3:40 ` Maxim Cournoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).