Ubuntu 20.04 simple-scan brightness and contrast controls have no effect

Bug #1888238 reported by tkbuntu
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Simple Scan
Fix Released
Unknown
simple-scan (Ubuntu)
Incomplete
Undecided
Bartosz Kosiorek

Bug Description

Ubuntu 20.04 simple-scan. The Brightness and Contrast controls have no effect. No matter how I position the sliders the scan image remains the same, ie, a dark background. It is as if the controls are not 'connected'.

Ubuntu 20.04 is up to date. The scanner is a Cannon LiDE60.

I have 19.10 in another partition. Simple-scan works as expected. Ditto for 18.04.

Regards.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: simple-scan 3.36.0-0ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44
Uname: Linux 5.4.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Mon Jul 20 09:47:52 2020
InstallationDate: Installed on 2020-05-12 (68 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
MachineType: Hewlett-Packard HP EliteBook 8570p
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-40-generic root=UUID=dc547d11-1deb-404b-988a-a88d4772e66d ro quiet splash vt.handoff=7
SimpleScanLog:

SourcePackage: simple-scan
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/05/2012
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 68ICF Ver. F.32
dmi.board.name: 17A7
dmi.board.vendor: Hewlett-Packard
dmi.board.version: KBC Version 42.32
dmi.chassis.asset.tag: 8022456
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-Packard:bvr68ICFVer.F.32:bd12/05/2012:svnHewlett-Packard:pnHPEliteBook8570p:pvrA1029D1102:rvnHewlett-Packard:rn17A7:rvrKBCVersion42.32:cvnHewlett-Packard:ct10:cvr:
dmi.product.family: 103C_5336AN G=N L=BUS B=HP S=ELI
dmi.product.name: HP EliteBook 8570p
dmi.product.sku: D2C13UP#ABA
dmi.product.version: A1029D1102
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
tkbuntu (kingaw1) wrote :
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Please run application with command:

`simple-scan -d`

and attach the output.

It seems that it is duplication of the upstream issue:
https://gitlab.gnome.org/GNOME/simple-scan/-/issues/185

Changed in simple-scan (Ubuntu):
status: New → Incomplete
Changed in simple-scan (Ubuntu):
assignee: nobody → Bartosz Kosiorek (gang65)
Revision history for this message
tkbuntu (kingaw1) wrote : Re: [Bug 1888238] Re: Ubuntu 20.04 simple-scan brightness and contrast controls have no effect

 Greetings,
thank you for your quick response ti my bug report.
Please find attached the output from running "simple-scan -d"
Regards,Tony

    On Sunday, July 26, 2020, 9:55:41 AM CDT, Bartosz Kosiorek <email address hidden> wrote:

 Please run application with command:

`simple-scan -d`

and attach the output.

It seems that it is duplication of the upstream issue:
https://gitlab.gnome.org/GNOME/simple-scan/-/issues/185

** Bug watch added: gitlab.gnome.org/GNOME/simple-scan/-/issues #185
  https://gitlab.gnome.org/GNOME/simple-scan/-/issues/185

** Changed in: simple-scan (Ubuntu)
      Status: New => Incomplete

** Also affects: simple-scan via
  https://gitlab.gnome.org/GNOME/simple-scan/-/issues/185
  Importance: Unknown
      Status: Unknown

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1888238

Title:
  Ubuntu 20.04 simple-scan brightness and contrast controls have no
  effect

Status in Simple Scan:
  Unknown
Status in simple-scan package in Ubuntu:
  Incomplete

Bug description:
  Ubuntu 20.04 simple-scan.  The Brightness and Contrast controls have
  no effect.  No matter how I position the sliders the scan image
  remains the same, ie, a dark background.  It is as if the controls are
  not 'connected'.

  Ubuntu 20.04 is up to date.  The scanner is a Cannon LiDE60.

  I have 19.10 in another partition. Simple-scan works as expected.
  Ditto for 18.04.

  Regards.

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: simple-scan 3.36.0-0ubuntu1
  ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44
  Uname: Linux 5.4.0-40-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.3
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Jul 20 09:47:52 2020
  InstallationDate: Installed on 2020-05-12 (68 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  MachineType: Hewlett-Packard HP EliteBook 8570p
  ProcEnviron:
  PATH=(custom, no user)
  XDG_RUNTIME_DIR=<set>
  LANG=en_US.UTF-8
  SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-40-generic root=UUID=dc547d11-1deb-404b-988a-a88d4772e66d ro quiet splash vt.handoff=7
  SimpleScanLog:

  SourcePackage: simple-scan
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 12/05/2012
  dmi.bios.vendor: Hewlett-Packard
  dmi.bios.version: 68ICF Ver. F.32
  dmi.board.name: 17A7
  dmi.board.vendor: Hewlett-Packard
  dmi.board.version: KBC Version 42.32
  dmi.chassis.asset.tag: 8022456
  dmi.chassis.type: 10
  dmi.chassis.vendor: Hewlett-Packard
  dmi.modalias: dmi:bvnHewlett-Packard:bvr68ICFVer.F.32:bd12/05/2012:svnHewlett-Packard:pnHPEliteBook8570p:pvrA1029D1102:rvnHewlett-Packard:rn17A7:rvrKBCVersion42.32:cvnHewlett-Packard:ct10:cvr:
  dmi.product.family: 103C_5336AN G=N L=BUS B=HP S=ELI
  dmi.product.name: HP EliteBook 8570p
  dmi.product.sku: D2C13UP#ABA
  dmi.product.version: A1029D1102
  dmi.sys.vendor: Hewlett-Packard

To manage notifications about this bug go to:
https://bugs.launchpad.net/simple-scan/+bug/1888238/+subscriptions

Revision history for this message
tkbuntu (kingaw1) wrote :
Download full text (3.4 KiB)

 Hello,

me again.
the first file I sent you had perhaps more activity than you need, or want, it is verbose.  I actually scanned a document, deleted the scan, changed the brightness and contrast controls and did a scan again, at least two times.
The v2 file I am attaching now contains only - run simple-scan  -d, did no scan a document, changed the brightness and contrast controls, closed simple-scan.
Regards,Tony

    On Sunday, July 26, 2020, 9:55:41 AM CDT, Bartosz Kosiorek <email address hidden> wrote:

 Please run application with command:

`simple-scan -d`

and attach the output.

It seems that it is duplication of the upstream issue:
https://gitlab.gnome.org/GNOME/simple-scan/-/issues/185

** Bug watch added: gitlab.gnome.org/GNOME/simple-scan/-/issues #185
  https://gitlab.gnome.org/GNOME/simple-scan/-/issues/185

** Changed in: simple-scan (Ubuntu)
      Status: New => Incomplete

** Also affects: simple-scan via
  https://gitlab.gnome.org/GNOME/simple-scan/-/issues/185
  Importance: Unknown
      Status: Unknown

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1888238

Title:
  Ubuntu 20.04 simple-scan brightness and contrast controls have no
  effect

Status in Simple Scan:
  Unknown
Status in simple-scan package in Ubuntu:
  Incomplete

Bug description:
  Ubuntu 20.04 simple-scan.  The Brightness and Contrast controls have
  no effect.  No matter how I position the sliders the scan image
  remains the same, ie, a dark background.  It is as if the controls are
  not 'connected'.

  Ubuntu 20.04 is up to date.  The scanner is a Cannon LiDE60.

  I have 19.10 in another partition. Simple-scan works as expected.
  Ditto for 18.04.

  Regards.

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: simple-scan 3.36.0-0ubuntu1
  ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44
  Uname: Linux 5.4.0-40-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.3
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Jul 20 09:47:52 2020
  InstallationDate: Installed on 2020-05-12 (68 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  MachineType: Hewlett-Packard HP EliteBook 8570p
  ProcEnviron:
  PATH=(custom, no user)
  XDG_RUNTIME_DIR=<set>
  LANG=en_US.UTF-8
  SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-40-generic root=UUID=dc547d11-1deb-404b-988a-a88d4772e66d ro quiet splash vt.handoff=7
  SimpleScanLog:

  SourcePackage: simple-scan
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 12/05/2012
  dmi.bios.vendor: Hewlett-Packard
  dmi.bios.version: 68ICF Ver. F.32
  dmi.board.name: 17A7
  dmi.board.vendor: Hewlett-Packard
  dmi.board.version: KBC Version 42.32
  dmi.chassis.asset.tag: 8022456
  dmi.chassis.type: 10
  dmi.chassis.vendor: Hewlett-Packard
  dmi.modalias: dmi:bvnHewlett-Packard:bvr68ICFVer.F.32:bd12/05/2012:svnHewlett-Packard:pnHPEliteBook8570p:pvrA1029D1102:rvnHewlett-Packard:rn17A7:rvrKBCVersion42.32:cvnHewlett-Packard:ct10:cvr:
  dmi.product.family: 103C_5336AN G=N L=BUS B=HP S=ELI
  dmi.product.name: H...

Read more...

Revision history for this message
swissz (zsarosi) wrote :

I have found a workaround that kind of works ... The problem is with the sane library, so it has to be downgraded. I restored /usr/lib/x86_64-linux-gnu/sane/libsane-genesys.so.1.0.27 from my previous Ubuntu 18.04 installation and linked it instead of the current version, and that's all, it works for me in Ubuntu 21.10.

# ls -l /usr/lib/x86_64-linux-gnu/sane/libsane-genesys.so.1
lrwxrwxrwx 1 root root 25 Dez 10 22:52 /usr/lib/x86_64-linux-gnu/sane/libsane-genesys.so.1 -> libsane-genesys.so.1.0.32

# cd /usr/lib/x86_64-linux-gnu/sane
# ln -fs libsane-genesys.so.1.0.27 libsane-genesys.so.1
# ls -l libsane-genesys.so*
lrwxrwxrwx 1 root root 25 Jan 4 16:56 libsane-genesys.so.1 -> libsane-genesys.so.1.0.27

You can try to download the libsane-genesys.so.1.0.27 from here https://ubuntu.pkgs.org/18.04/ubuntu-main-amd64/libsane1_1.0.27-1~experimental3ubuntu2_amd64.deb.html

Revision history for this message
Martin Sorgatz (martin-sorgatz) wrote :

I have an old computer with Ubuntu 18.04 LTS where simple scan works fine with an HP Envy printer/scanner.
Now I got a new computer and installed 20.04 LTS where the simple scan shows this issue with the same scanner.

The downgrade of libsane-genesys.so from 1.0.29 to 1.0.27 (I took it from the old computer) does not help on 20.04.
Maybe there are some more bugs in libsane that are already fixed in Ubuntu 21.04?
So I copied the complete /usr/lib/x86_64-linux-gnu/sane/ directory from 18.04. to the 20.04 installation as "sane-old", including the libsane.so.1.0.27 from the directory level above.
I created a shell script that starts simple-scan with LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/sane-old.
But it did not work. I checked the process which libs are loaded (using sudo pldd <pid>).
It loaded mostly the libs from sane-old, but there were still two of the original libs:
.../sane/libsane-ricoh2.so.1
.../sane/libsane-escl.so.1

Then (in /usr/lib/x86_64-linux-gnu) I renamed the "sane" directory to "sane-hidden".
Now (without LD_LIBRARY_PATH) no more original lib from the original subdirectory is used any more (except the top level libsane.so.1 from 1.0.29).
=> Now brightness and contrast can be applied as expected!

Revision history for this message
tkbuntu (kingaw1) wrote :
Download full text (3.3 KiB)

Thank you for the information!
I will try this.
Kind Regards

   On Tuesday, January 4, 2022, 10:15:47 AM CST, swissz <email address hidden> wrote:

 I have found a workaround that kind of works ... The problem is with the
sane library, so it has to be downgraded. I restored
/usr/lib/x86_64-linux-gnu/sane/libsane-genesys.so.1.0.27 from my
previous Ubuntu 18.04 installation and linked it instead of the current
version, and that's all, it works for me in Ubuntu 21.10.

# ls -l /usr/lib/x86_64-linux-gnu/sane/libsane-genesys.so.1
lrwxrwxrwx 1 root root 25 Dez 10 22:52 /usr/lib/x86_64-linux-gnu/sane/libsane-genesys.so.1 -> libsane-genesys.so.1.0.32

# cd /usr/lib/x86_64-linux-gnu/sane
# ln -fs libsane-genesys.so.1.0.27 libsane-genesys.so.1
# ls -l libsane-genesys.so*
lrwxrwxrwx 1 root root      25 Jan  4 16:56 libsane-genesys.so.1 -> libsane-genesys.so.1.0.27

You can try to download the libsane-genesys.so.1.0.27 from here
https://ubuntu.pkgs.org/18.04/ubuntu-main-
amd64/libsane1_1.0.27-1~experimental3ubuntu2_amd64.deb.html

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1888238

Title:
  Ubuntu 20.04 simple-scan brightness and contrast controls have no
  effect

Status in Simple Scan:
  Unknown
Status in simple-scan package in Ubuntu:
  Incomplete

Bug description:
  Ubuntu 20.04 simple-scan.  The Brightness and Contrast controls have
  no effect.  No matter how I position the sliders the scan image
  remains the same, ie, a dark background.  It is as if the controls are
  not 'connected'.

  Ubuntu 20.04 is up to date.  The scanner is a Cannon LiDE60.

  I have 19.10 in another partition. Simple-scan works as expected.
  Ditto for 18.04.

  Regards.

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: simple-scan 3.36.0-0ubuntu1
  ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44
  Uname: Linux 5.4.0-40-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.3
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Jul 20 09:47:52 2020
  InstallationDate: Installed on 2020-05-12 (68 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  MachineType: Hewlett-Packard HP EliteBook 8570p
  ProcEnviron:
  PATH=(custom, no user)
  XDG_RUNTIME_DIR=<set>
  LANG=en_US.UTF-8
  SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-40-generic root=UUID=dc547d11-1deb-404b-988a-a88d4772e66d ro quiet splash vt.handoff=7
  SimpleScanLog:

  SourcePackage: simple-scan
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 12/05/2012
  dmi.bios.vendor: Hewlett-Packard
  dmi.bios.version: 68ICF Ver. F.32
  dmi.board.name: 17A7
  dmi.board.vendor: Hewlett-Packard
  dmi.board.version: KBC Version 42.32
  dmi.chassis.asset.tag: 8022456
  dmi.chassis.type: 10
  dmi.chassis.vendor: Hewlett-Packard
  dmi.modalias: dmi:bvnHewlett-Packard:bvr68ICFVer.F.32:bd12/05/2012:svnHewlett-Packard:pnHPEliteBook8570p:pvrA1029D1102:rvnHewlett-Packard:rn17A7:rvrKBCVersion42.32:cvnHewlett-Packard:ct10:cvr:
  dmi.product.family: 103C_5336AN G=N L=BUS B=HP S=ELI
  dmi.product.name: HP El...

Read more...

Revision history for this message
tkbuntu (kingaw1) wrote :
Download full text (3.8 KiB)

 Hi Martin,
thank you for sharing your exxperience.  Seems you had a more difficult time than Swissz, but found a solution.
I will test on a non prodduction 20.04 and see how it goes.
Regards

    On Thursday, January 6, 2022, 08:16:01 AM CST, Martin Sorgatz <email address hidden> wrote:

 I have an old computer with Ubuntu 18.04 LTS where simple scan works fine with an HP Envy printer/scanner.
Now I got a new computer and installed 20.04 LTS where the simple scan shows this issue with the same scanner.

The downgrade of libsane-genesys.so from 1.0.29 to 1.0.27 (I took it from the old computer) does not help on 20.04.
Maybe there are some more bugs in libsane that are already fixed in Ubuntu 21.04?
So I copied the complete /usr/lib/x86_64-linux-gnu/sane/ directory from 18.04. to the 20.04 installation as "sane-old", including the libsane.so.1.0.27 from the directory level above.
I created a shell script that starts simple-scan with LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/sane-old.
But it did not work. I checked the process which libs are loaded (using sudo pldd <pid>).
It loaded mostly the libs from sane-old, but there were still two of the original libs:
.../sane/libsane-ricoh2.so.1
.../sane/libsane-escl.so.1

Then (in /usr/lib/x86_64-linux-gnu) I renamed the "sane" directory to "sane-hidden".
Now (without LD_LIBRARY_PATH) no more original lib from the original subdirectory is used any more (except the top level libsane.so.1 from 1.0.29).
=> Now brightness and contrast can be applied as expected!

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1888238

Title:
  Ubuntu 20.04 simple-scan brightness and contrast controls have no
  effect

Status in Simple Scan:
  Unknown
Status in simple-scan package in Ubuntu:
  Incomplete

Bug description:
  Ubuntu 20.04 simple-scan.  The Brightness and Contrast controls have
  no effect.  No matter how I position the sliders the scan image
  remains the same, ie, a dark background.  It is as if the controls are
  not 'connected'.

  Ubuntu 20.04 is up to date.  The scanner is a Cannon LiDE60.

  I have 19.10 in another partition. Simple-scan works as expected.
  Ditto for 18.04.

  Regards.

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: simple-scan 3.36.0-0ubuntu1
  ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44
  Uname: Linux 5.4.0-40-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.3
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Jul 20 09:47:52 2020
  InstallationDate: Installed on 2020-05-12 (68 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  MachineType: Hewlett-Packard HP EliteBook 8570p
  ProcEnviron:
  PATH=(custom, no user)
  XDG_RUNTIME_DIR=<set>
  LANG=en_US.UTF-8
  SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-40-generic root=UUID=dc547d11-1deb-404b-988a-a88d4772e66d ro quiet splash vt.handoff=7
  SimpleScanLog:

  SourcePackage: simple-scan
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 12/05/2012
  dmi.bios.vendor: Hewlett-Packard
  dmi.bios.ver...

Read more...

Changed in simple-scan:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.