mathoudebine / mathoudebine/turing-smart-screen-python

Screens relying on LibUSB don't function without root by default

Open
#1,007 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rich Text Format
Stars
2.3k
Forks
412
Avg merge
21h 10m
Merged PRs (30d)
7

Description

Describe the bug
Root is required in order to start the script on a Linux host when you're targeting a LibUSB device due to libusb's udev rules

To Reproduce
Install the library and attempt to run the program with TUR_USB as the display source
The script will spit out a permissions error related to being unable to open the device

Expected behavior
The device opens without issues.

Logs
https://pastebin.com/fa0tfwSi

Screenshots / photos of the Turing screen
Irrelevant

Environment:

  • Debian 13 Stable, NO DESKTOP ENVIRONMENT
  • Turzx 5.2 inch smartscreen connected over USB

Additional context
Running a script to initialize and start the program that I could prefix with sudo allowed the screen to start up properly but it's entirely unable to start without that full stop.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the TUR_USB display-source initialization and the project's installation or setup instructions for LibUSB devices. Reproduce the permissions error as a non-root user on Linux, then inspect how device access rules are installed. Done means the display starts through the normal script without sudo and existing behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
embedded-iot, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.