Election-Tech-Initiative / electionguard-ballot-box

Smart Ballot Box software that scans ballots to generate lists of cast and spoiled ballots in an election; used in tallying to finalize ballot operations (cast or spoil, etc.) for publishing results
MIT License
7 stars 7 forks source link

QR Scanner Idling Issue #5

Open keithrfung opened 4 years ago

keithrfung commented 4 years ago

Bug Report

Current Behavior Sometimes the barcode scanner goes idle, then when it wakes back up, it gets a new device ID from the operating system. This appears as if the scanner scans (beeps), but the cast/spoil count doesn't increment. You can reboot the device, which will fix it, but will also reset the count; or you can hop back out to the operating system and restart the background service, which will keep the count.

Expected behavior/code The scanner should either (1) stay active and therefore keep the same device ID or (2) the id should be updated without requiring the reboot.

Environment

Possible Solution Currently Unknown

Additional context/Screenshots

keithrfung commented 4 years ago

We're still working on confirming on this is a consistent bug. It has been difficult to replicate. Here are notes on the bug for future research.

There seem to be many answers:

Using TLP , a package, seems to be a common one. TLP: https://linrunner.de/en/tlp/docs/tlp-configuration.html#usb

Here is another possibility. https://askubuntu.com/questions/1140925/how-can-i-disable-usb-autosuspend-on-ubuntu-18-04