[simple-scan] Add help message for Samsung MFP rebranded to HP
- From: Bartosz <bkosiorek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [simple-scan] Add help message for Samsung MFP rebranded to HP
- Date: Wed, 8 Apr 2020 16:57:56 +0000 (UTC)
commit d8205266f6aef423ea49a3e38cf5cc5398da9037
Author: Bartosz Kosiorek <gang65 poczta onet pl>
Date: Wed Apr 8 18:31:31 2020 +0200
Add help message for Samsung MFP rebranded to HP
src/app-window.vala | 10 +++++++++-
src/simple-scan.vala | 5 +++++
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index 04f526d..91758bc 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -1636,9 +1636,17 @@ public class AppWindow : Gtk.ApplicationWindow
instructions = _("Drivers for this are available on the <a href=\"https://support.hp.com\">HP
website</a> (HP acquired Samsung's printing business).");
break;
case "hpaio":
+ case "smfp":
/* Message to indicate a HP scanner has been detected */
message = _("You appear to have an HP scanner.");
- packages_to_install = { "libsane-hpaio" };
+ if (missing_driver == "hpaio")
+ packages_to_install = { "libsane-hpaio" };
+ else
+ /* Instructions on how to install HP scanner drivers.
+ smfp is rebranded and slightly modified Samsung devices,
+ for example: HP Laser MFP 135a is rebranded Samsung Xpress SL-M2070.
+ It require custom drivers, not available in hpaio package */
+ instructions = _("Drivers for this are available on the <a
href=\"https://support.hp.com\">HP website</a>.");
break;
case "epkowa":
/* Message to indicate an Epson scanner has been detected */
diff --git a/src/simple-scan.vala b/src/simple-scan.vala
index d4ec5ff..b1e35c7 100644
--- a/src/simple-scan.vala
+++ b/src/simple-scan.vala
@@ -549,6 +549,10 @@ public class SimpleScan : Gtk.Application
0x04e8347c, 0x04e8347e, 0x04e83481, 0x04e83482, 0x04e83331,
0x04e83332, 0x04e83483, 0x04e83484, 0x04e83485, 0x04e83478, 0x04e83325, 0x04e83327, 0x04e8346f, 0x04e83477,
0x04e83324, 0x04e83326, 0x04e83486, 0x04e83487, 0x04e83489
};
+ /* Taken from uld/noarch/oem.conf in the HP/Samsung SANE driver
+ These devices are rebranded Samsung Multifunction Printers. */
+ private const uint32 smfp_devices[] = { 0x03F0AA2A, 0x03F0CE2A, 0x03F0C02A, 0x03F0EB2A, 0x03F0F22A };
+
/* Taken from /usr/share/hplip/data/models/models.dat in the HPAIO driver */
private const uint32 hpaio_devices[] = {
0x04f92311, /* HP Officejet d125xi All-in-One Printer */
@@ -1336,6 +1340,7 @@ public class SimpleScan : Gtk.Application
add_devices (driver_map, brscan3_devices, "brscan3");
add_devices (driver_map, brscan4_devices, "brscan4");
add_devices (driver_map, samsung_devices, "samsung");
+ add_devices (driver_map, smfp_devices, "smfp");
add_devices (driver_map, hpaio_devices, "hpaio");
add_devices (driver_map, epkowa_devices, "epkowa");
add_devices (driver_map, lexmark_nscan_devices, "lexmark_nscan");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]