Bug 489618 - Camera appears amongst scanners in device list in Skanlite.
Summary: Camera appears amongst scanners in device list in Skanlite.
Status: RESOLVED NOT A BUG
Alias: None
Product: Skanlite
Classification: Applications
Component: general (show other bugs)
Version: 24.05.0
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Kåre Särs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-02 15:08 UTC by Roke Julian Lockhart Beedell
Modified: 2024-07-03 11:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot which depicts the cameras and scanner enumerated alongside. (38.22 KB, image/png)
2024-07-02 15:08 UTC, Roke Julian Lockhart Beedell
Details
Screenshot which depicts solely the cameras enumerated when the scanner is disconnected. (32.55 KB, image/png)
2024-07-02 15:09 UTC, Roke Julian Lockhart Beedell
Details
An idea. (5.79 KB, image/png)
2024-07-03 11:52 UTC, Roke Julian Lockhart Beedell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2024-07-02 15:08:39 UTC
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
Comment 1 Roke Julian Lockhart Beedell 2024-07-02 15:09:10 UTC
Created attachment 171288 [details]
Screenshot which depicts solely the cameras enumerated when the scanner is disconnected.
Comment 2 Kåre Särs 2024-07-02 16:57:02 UTC
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
Comment 3 Roke Julian Lockhart Beedell 2024-07-02 17:00:59 UTC
(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?
Comment 4 Kåre Särs 2024-07-02 19:52:38 UTC
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
Comment 5 Roke Julian Lockhart Beedell 2024-07-02 20:08:10 UTC
(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?
Comment 6 Kåre Särs 2024-07-03 07:22:50 UTC
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.
Comment 7 Roke Julian Lockhart Beedell 2024-07-03 11:52:39 UTC
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.