Created attachment 171287 [details] Screenshot which depicts the cameras and scanner enumerated alongside. STEPS TO REPRODUCE 1. Connected a Logitech BRIO webcam. 2. Disconnected my EPSON Expression Home XP-247 scanner. 3. Invoked Skanlite (without any scanners connected). 4. Refreshed the device list: This should solely display the cameras. 5. Connected my scanner. 6. Refreshed the device list: This should display the cameras and scanner together. EXPECTED RESULT The camera shouldn't be enumerated amongst the scanners in the device list. SOFTWARE/OS VERSIONS Operating System: Fedora Linux 40 KDE Plasma Version: 6.1.1 KDE Frameworks Version: 6.3.0 Qt Version: 6.7.1 Kernel Version: 6.9.7-200.fc40.x86_64 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor Memory: 30.5 GiB of RAM Graphics Processor: AMD Radeon RX 5700 Manufacturer: ASRock Product Name: X670E Taichi
Created attachment 171288 [details] Screenshot which depicts solely the cameras enumerated when the scanner is disconnected.
Thanks for the report! You can disable the camera from showing up in the list by commenting out "v4l" in the file /etc/sane.d/dll.conf. It is commented out by prepending the line with # I too think it is not the best default setting to enable webcams by default, but that is the setting that is selected by either the sane project or possibly the distro. That setting is not set by Skanlite. Hope this helps, Kåre
(In reply to Kåre Särs from comment #2) Thanks. What scope does that disable them for - would that prevent OBS seeing them, for instance? I solely want to prevent them being displayed in relevant *scanner* dialogues, like this one. If it would disable it in other contexts, it might be worth noting that https://github.com/simon-knuth/scanner/releases/download/3.2.7.0/9390SimonKnuth.ScannerforWindows10_3.2.7.0_neutral_._69n05hp4v3s90.Msixbundle appears to be able to accurately distinguish between them, so Windows might do something different. I suppose that would be an issue for SANE, though?
Commenting out that line will only disable the camera for applications like Skanlite, Skanpage, XSane, Simplescan, gscan2pdf, .... That is, only applications that are meant for scanning documents or images, not OBS nor any video meeting application or Chrommium/Chrome/Firefox. /Kåre
(In reply to Kåre Särs from comment #4) Many thanks. I'd like to suggest that that default be changed on Fedora's end so that others don't need to ask questions like this – you seem to agree, but, as someone knowledgeable about this, there aren't any glaring reasons that such a request would be considered problematic, right?
I think the reason the the default is to enable it, is that there actually are some scanners that use the same protocols as webcams and this enables them by default. So we do have a bit of a dilemma, if we make the life less confusing for (most?) users, we make the life harder for those that have the webcam-scanners.
Created attachment 171327 [details] An idea. (In reply to Kåre Särs from comment #6) That's what I presumed. In that case, I think I'll leave it as it is - better to have them all visible by default. However, would it be feasible to separate devices which use v4l as "Cameras" in the dialog, and all others as "Scanners"? Considering we can disable them, surely they're categorised separately already. I've attached a screenshot of a Dolphin KPart displaying something similar to what I mean, if it's not evident.