Scanner is detected just once











up vote
1
down vote

favorite












I installed SANE backend (hardware.sane.enable = true; on NixOS) and tested if my scanner is detected by running scanimage -L (as suggested here https://nixos.wiki/wiki/Scanners).



Interestingly, the first time I run this command, I can see my scanner (and my webcam):



$ scanimage -L
device `xerox_mfp:libusb:001:012' is a Samsung Samsung SCX-3200 Series multi-function peripheral
device `v4l:/dev/video0' is a Noname HP HD Camera virtual device


but the next time I run it, I only see my webcam:



$ scanimage -L
device `v4l:/dev/video0' is a Noname HP HD Camera virtual device


I only have to unplug and replug the USB connection to see it again (only once).



I have tried using simple-scan to scan a document but I get a similar experience (I can see the scanner only if I just plug it in without testing the connection with scanimage -L but in any case, the application doesn't manage to scan even just a page).



I thought it may be the same issue as in https://unix.stackexchange.com/a/191816/115070 so I disabled USB autosuspend using TLP, I can see that it has been taken into account:



$ tlp-stat -u
--- TLP 1.0 --------------------------------------------

+++ USB
Autosuspend = disabled


but this doesn't help actually.



Update: lsusb



The scanner is always visible with lsusb:



Bus 001 Device 006: ID 04e8:3441 Samsung Electronics Co., Ltd 


Update: sane-find-scanner



The scanner is always visible with sane-find-scanner (in normal mode or in sudo mode):



found USB scanner (vendor=0x04e8 [Samsung Electronics Co., Ltd.], product=0x3441 [SCX-3200 Series]) at libusb:001:005
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.


Update: permissions



scanimage -L behaves the same in normal and sudo mode. It detects the scanner only the first time after plugging / restarting, including across modes (normal then sudo or sudo then normal).



Update: searching the mailing list and commit history



It really looks like the issue is just that the scanner is unsupported (see https://www.mail-archive.com/sane-devel@lists.alioth.debian.org/msg34458.html in particular). I'm just a bit surprised with the behavior of scanimage -L in this case. It would have been less confusing if it was never detected.



Important update: works on another laptop



It looks like the problem doesn't come from a lack of support after all.
I have tested the SANE backend with the same scanner and an older laptop (Dell Latitude E6500). It works perfectly well with scanimage -L and simple-scan.



Given the lack of difference in the way I configured the two laptops, I can only assume that the problem I was having on my first laptop (HP EliteBook Folio 1040 G3 Notebook PC) is a hardware problem.










share|improve this question
























  • Is the scanner all the time visible in lsusb?
    – Tomáš Pospíšek
    Dec 21 '17 at 19:24










  • @TomášPospíšek Sorry for the delay in the answer. Yes, it is.
    – Zimm i48
    Dec 22 '17 at 22:26










  • and if you switch on/off the scanner, then the next scanimage -L will see it again? Have a look at the sane mailing list and change log, if maybe there were fixes for your scanner.
    – Tomáš Pospíšek
    Dec 22 '17 at 22:29










  • @TomášPospíšek switching on and off allows seeing the scanner again, exactly like unplugging / plugging the USB. I could not find the link to SANE change log or a way to search the mailing list archive.
    – Zimm i48
    Dec 22 '17 at 23:17








  • 1




    mailing list: sane-project.org/mailing-lists.html , git repository, where you can go through the changes: sane-project.org/cvs.html - also you might want to ask on the mailing list why sane-find-scanner is seeing the device but scanimage -L is not.
    – Tomáš Pospíšek
    Dec 23 '17 at 8:24















up vote
1
down vote

favorite












I installed SANE backend (hardware.sane.enable = true; on NixOS) and tested if my scanner is detected by running scanimage -L (as suggested here https://nixos.wiki/wiki/Scanners).



Interestingly, the first time I run this command, I can see my scanner (and my webcam):



$ scanimage -L
device `xerox_mfp:libusb:001:012' is a Samsung Samsung SCX-3200 Series multi-function peripheral
device `v4l:/dev/video0' is a Noname HP HD Camera virtual device


but the next time I run it, I only see my webcam:



$ scanimage -L
device `v4l:/dev/video0' is a Noname HP HD Camera virtual device


I only have to unplug and replug the USB connection to see it again (only once).



I have tried using simple-scan to scan a document but I get a similar experience (I can see the scanner only if I just plug it in without testing the connection with scanimage -L but in any case, the application doesn't manage to scan even just a page).



I thought it may be the same issue as in https://unix.stackexchange.com/a/191816/115070 so I disabled USB autosuspend using TLP, I can see that it has been taken into account:



$ tlp-stat -u
--- TLP 1.0 --------------------------------------------

+++ USB
Autosuspend = disabled


but this doesn't help actually.



Update: lsusb



The scanner is always visible with lsusb:



Bus 001 Device 006: ID 04e8:3441 Samsung Electronics Co., Ltd 


Update: sane-find-scanner



The scanner is always visible with sane-find-scanner (in normal mode or in sudo mode):



found USB scanner (vendor=0x04e8 [Samsung Electronics Co., Ltd.], product=0x3441 [SCX-3200 Series]) at libusb:001:005
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.


Update: permissions



scanimage -L behaves the same in normal and sudo mode. It detects the scanner only the first time after plugging / restarting, including across modes (normal then sudo or sudo then normal).



Update: searching the mailing list and commit history



It really looks like the issue is just that the scanner is unsupported (see https://www.mail-archive.com/sane-devel@lists.alioth.debian.org/msg34458.html in particular). I'm just a bit surprised with the behavior of scanimage -L in this case. It would have been less confusing if it was never detected.



Important update: works on another laptop



It looks like the problem doesn't come from a lack of support after all.
I have tested the SANE backend with the same scanner and an older laptop (Dell Latitude E6500). It works perfectly well with scanimage -L and simple-scan.



Given the lack of difference in the way I configured the two laptops, I can only assume that the problem I was having on my first laptop (HP EliteBook Folio 1040 G3 Notebook PC) is a hardware problem.










share|improve this question
























  • Is the scanner all the time visible in lsusb?
    – Tomáš Pospíšek
    Dec 21 '17 at 19:24










  • @TomášPospíšek Sorry for the delay in the answer. Yes, it is.
    – Zimm i48
    Dec 22 '17 at 22:26










  • and if you switch on/off the scanner, then the next scanimage -L will see it again? Have a look at the sane mailing list and change log, if maybe there were fixes for your scanner.
    – Tomáš Pospíšek
    Dec 22 '17 at 22:29










  • @TomášPospíšek switching on and off allows seeing the scanner again, exactly like unplugging / plugging the USB. I could not find the link to SANE change log or a way to search the mailing list archive.
    – Zimm i48
    Dec 22 '17 at 23:17








  • 1




    mailing list: sane-project.org/mailing-lists.html , git repository, where you can go through the changes: sane-project.org/cvs.html - also you might want to ask on the mailing list why sane-find-scanner is seeing the device but scanimage -L is not.
    – Tomáš Pospíšek
    Dec 23 '17 at 8:24













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I installed SANE backend (hardware.sane.enable = true; on NixOS) and tested if my scanner is detected by running scanimage -L (as suggested here https://nixos.wiki/wiki/Scanners).



Interestingly, the first time I run this command, I can see my scanner (and my webcam):



$ scanimage -L
device `xerox_mfp:libusb:001:012' is a Samsung Samsung SCX-3200 Series multi-function peripheral
device `v4l:/dev/video0' is a Noname HP HD Camera virtual device


but the next time I run it, I only see my webcam:



$ scanimage -L
device `v4l:/dev/video0' is a Noname HP HD Camera virtual device


I only have to unplug and replug the USB connection to see it again (only once).



I have tried using simple-scan to scan a document but I get a similar experience (I can see the scanner only if I just plug it in without testing the connection with scanimage -L but in any case, the application doesn't manage to scan even just a page).



I thought it may be the same issue as in https://unix.stackexchange.com/a/191816/115070 so I disabled USB autosuspend using TLP, I can see that it has been taken into account:



$ tlp-stat -u
--- TLP 1.0 --------------------------------------------

+++ USB
Autosuspend = disabled


but this doesn't help actually.



Update: lsusb



The scanner is always visible with lsusb:



Bus 001 Device 006: ID 04e8:3441 Samsung Electronics Co., Ltd 


Update: sane-find-scanner



The scanner is always visible with sane-find-scanner (in normal mode or in sudo mode):



found USB scanner (vendor=0x04e8 [Samsung Electronics Co., Ltd.], product=0x3441 [SCX-3200 Series]) at libusb:001:005
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.


Update: permissions



scanimage -L behaves the same in normal and sudo mode. It detects the scanner only the first time after plugging / restarting, including across modes (normal then sudo or sudo then normal).



Update: searching the mailing list and commit history



It really looks like the issue is just that the scanner is unsupported (see https://www.mail-archive.com/sane-devel@lists.alioth.debian.org/msg34458.html in particular). I'm just a bit surprised with the behavior of scanimage -L in this case. It would have been less confusing if it was never detected.



Important update: works on another laptop



It looks like the problem doesn't come from a lack of support after all.
I have tested the SANE backend with the same scanner and an older laptop (Dell Latitude E6500). It works perfectly well with scanimage -L and simple-scan.



Given the lack of difference in the way I configured the two laptops, I can only assume that the problem I was having on my first laptop (HP EliteBook Folio 1040 G3 Notebook PC) is a hardware problem.










share|improve this question















I installed SANE backend (hardware.sane.enable = true; on NixOS) and tested if my scanner is detected by running scanimage -L (as suggested here https://nixos.wiki/wiki/Scanners).



Interestingly, the first time I run this command, I can see my scanner (and my webcam):



$ scanimage -L
device `xerox_mfp:libusb:001:012' is a Samsung Samsung SCX-3200 Series multi-function peripheral
device `v4l:/dev/video0' is a Noname HP HD Camera virtual device


but the next time I run it, I only see my webcam:



$ scanimage -L
device `v4l:/dev/video0' is a Noname HP HD Camera virtual device


I only have to unplug and replug the USB connection to see it again (only once).



I have tried using simple-scan to scan a document but I get a similar experience (I can see the scanner only if I just plug it in without testing the connection with scanimage -L but in any case, the application doesn't manage to scan even just a page).



I thought it may be the same issue as in https://unix.stackexchange.com/a/191816/115070 so I disabled USB autosuspend using TLP, I can see that it has been taken into account:



$ tlp-stat -u
--- TLP 1.0 --------------------------------------------

+++ USB
Autosuspend = disabled


but this doesn't help actually.



Update: lsusb



The scanner is always visible with lsusb:



Bus 001 Device 006: ID 04e8:3441 Samsung Electronics Co., Ltd 


Update: sane-find-scanner



The scanner is always visible with sane-find-scanner (in normal mode or in sudo mode):



found USB scanner (vendor=0x04e8 [Samsung Electronics Co., Ltd.], product=0x3441 [SCX-3200 Series]) at libusb:001:005
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.


Update: permissions



scanimage -L behaves the same in normal and sudo mode. It detects the scanner only the first time after plugging / restarting, including across modes (normal then sudo or sudo then normal).



Update: searching the mailing list and commit history



It really looks like the issue is just that the scanner is unsupported (see https://www.mail-archive.com/sane-devel@lists.alioth.debian.org/msg34458.html in particular). I'm just a bit surprised with the behavior of scanimage -L in this case. It would have been less confusing if it was never detected.



Important update: works on another laptop



It looks like the problem doesn't come from a lack of support after all.
I have tested the SANE backend with the same scanner and an older laptop (Dell Latitude E6500). It works perfectly well with scanimage -L and simple-scan.



Given the lack of difference in the way I configured the two laptops, I can only assume that the problem I was having on my first laptop (HP EliteBook Folio 1040 G3 Notebook PC) is a hardware problem.







nixos scanner sane






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 24 '17 at 19:50

























asked Dec 21 '17 at 18:06









Zimm i48

36418




36418












  • Is the scanner all the time visible in lsusb?
    – Tomáš Pospíšek
    Dec 21 '17 at 19:24










  • @TomášPospíšek Sorry for the delay in the answer. Yes, it is.
    – Zimm i48
    Dec 22 '17 at 22:26










  • and if you switch on/off the scanner, then the next scanimage -L will see it again? Have a look at the sane mailing list and change log, if maybe there were fixes for your scanner.
    – Tomáš Pospíšek
    Dec 22 '17 at 22:29










  • @TomášPospíšek switching on and off allows seeing the scanner again, exactly like unplugging / plugging the USB. I could not find the link to SANE change log or a way to search the mailing list archive.
    – Zimm i48
    Dec 22 '17 at 23:17








  • 1




    mailing list: sane-project.org/mailing-lists.html , git repository, where you can go through the changes: sane-project.org/cvs.html - also you might want to ask on the mailing list why sane-find-scanner is seeing the device but scanimage -L is not.
    – Tomáš Pospíšek
    Dec 23 '17 at 8:24


















  • Is the scanner all the time visible in lsusb?
    – Tomáš Pospíšek
    Dec 21 '17 at 19:24










  • @TomášPospíšek Sorry for the delay in the answer. Yes, it is.
    – Zimm i48
    Dec 22 '17 at 22:26










  • and if you switch on/off the scanner, then the next scanimage -L will see it again? Have a look at the sane mailing list and change log, if maybe there were fixes for your scanner.
    – Tomáš Pospíšek
    Dec 22 '17 at 22:29










  • @TomášPospíšek switching on and off allows seeing the scanner again, exactly like unplugging / plugging the USB. I could not find the link to SANE change log or a way to search the mailing list archive.
    – Zimm i48
    Dec 22 '17 at 23:17








  • 1




    mailing list: sane-project.org/mailing-lists.html , git repository, where you can go through the changes: sane-project.org/cvs.html - also you might want to ask on the mailing list why sane-find-scanner is seeing the device but scanimage -L is not.
    – Tomáš Pospíšek
    Dec 23 '17 at 8:24
















Is the scanner all the time visible in lsusb?
– Tomáš Pospíšek
Dec 21 '17 at 19:24




Is the scanner all the time visible in lsusb?
– Tomáš Pospíšek
Dec 21 '17 at 19:24












@TomášPospíšek Sorry for the delay in the answer. Yes, it is.
– Zimm i48
Dec 22 '17 at 22:26




@TomášPospíšek Sorry for the delay in the answer. Yes, it is.
– Zimm i48
Dec 22 '17 at 22:26












and if you switch on/off the scanner, then the next scanimage -L will see it again? Have a look at the sane mailing list and change log, if maybe there were fixes for your scanner.
– Tomáš Pospíšek
Dec 22 '17 at 22:29




and if you switch on/off the scanner, then the next scanimage -L will see it again? Have a look at the sane mailing list and change log, if maybe there were fixes for your scanner.
– Tomáš Pospíšek
Dec 22 '17 at 22:29












@TomášPospíšek switching on and off allows seeing the scanner again, exactly like unplugging / plugging the USB. I could not find the link to SANE change log or a way to search the mailing list archive.
– Zimm i48
Dec 22 '17 at 23:17






@TomášPospíšek switching on and off allows seeing the scanner again, exactly like unplugging / plugging the USB. I could not find the link to SANE change log or a way to search the mailing list archive.
– Zimm i48
Dec 22 '17 at 23:17






1




1




mailing list: sane-project.org/mailing-lists.html , git repository, where you can go through the changes: sane-project.org/cvs.html - also you might want to ask on the mailing list why sane-find-scanner is seeing the device but scanimage -L is not.
– Tomáš Pospíšek
Dec 23 '17 at 8:24




mailing list: sane-project.org/mailing-lists.html , git repository, where you can go through the changes: sane-project.org/cvs.html - also you might want to ask on the mailing list why sane-find-scanner is seeing the device but scanimage -L is not.
– Tomáš Pospíšek
Dec 23 '17 at 8:24










1 Answer
1






active

oldest

votes

















up vote
1
down vote













I just had the same problem on Scientific-Linux 6.5 with a Fujitsu Scansnap and sane-backends 1.0.24. I compiled 1.0.25 (i.e. not the most recent one, but I just had that one around) and it solved the problem. No special environment variables needed.



All other tricks recommended here and elsewhere (exchanging the scanner for another specimen of the same type, using another USB cable, using another USB socket on the computer) failed.






share|improve this answer








New contributor




Ralf Muschall is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • Thanks, I'll try to test this when I get the opportunity.
    – Zimm i48
    yesterday











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f412331%2fscanner-is-detected-just-once%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













I just had the same problem on Scientific-Linux 6.5 with a Fujitsu Scansnap and sane-backends 1.0.24. I compiled 1.0.25 (i.e. not the most recent one, but I just had that one around) and it solved the problem. No special environment variables needed.



All other tricks recommended here and elsewhere (exchanging the scanner for another specimen of the same type, using another USB cable, using another USB socket on the computer) failed.






share|improve this answer








New contributor




Ralf Muschall is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • Thanks, I'll try to test this when I get the opportunity.
    – Zimm i48
    yesterday















up vote
1
down vote













I just had the same problem on Scientific-Linux 6.5 with a Fujitsu Scansnap and sane-backends 1.0.24. I compiled 1.0.25 (i.e. not the most recent one, but I just had that one around) and it solved the problem. No special environment variables needed.



All other tricks recommended here and elsewhere (exchanging the scanner for another specimen of the same type, using another USB cable, using another USB socket on the computer) failed.






share|improve this answer








New contributor




Ralf Muschall is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • Thanks, I'll try to test this when I get the opportunity.
    – Zimm i48
    yesterday













up vote
1
down vote










up vote
1
down vote









I just had the same problem on Scientific-Linux 6.5 with a Fujitsu Scansnap and sane-backends 1.0.24. I compiled 1.0.25 (i.e. not the most recent one, but I just had that one around) and it solved the problem. No special environment variables needed.



All other tricks recommended here and elsewhere (exchanging the scanner for another specimen of the same type, using another USB cable, using another USB socket on the computer) failed.






share|improve this answer








New contributor




Ralf Muschall is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









I just had the same problem on Scientific-Linux 6.5 with a Fujitsu Scansnap and sane-backends 1.0.24. I compiled 1.0.25 (i.e. not the most recent one, but I just had that one around) and it solved the problem. No special environment variables needed.



All other tricks recommended here and elsewhere (exchanging the scanner for another specimen of the same type, using another USB cable, using another USB socket on the computer) failed.







share|improve this answer








New contributor




Ralf Muschall is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer






New contributor




Ralf Muschall is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered 2 days ago









Ralf Muschall

112




112




New contributor




Ralf Muschall is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Ralf Muschall is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Ralf Muschall is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Thanks, I'll try to test this when I get the opportunity.
    – Zimm i48
    yesterday


















  • Thanks, I'll try to test this when I get the opportunity.
    – Zimm i48
    yesterday
















Thanks, I'll try to test this when I get the opportunity.
– Zimm i48
yesterday




Thanks, I'll try to test this when I get the opportunity.
– Zimm i48
yesterday


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f412331%2fscanner-is-detected-just-once%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

サソリ

広島県道265号伴広島線

Accessing regular linux commands in Huawei's Dopra Linux