mathoudebine / mathoudebine/turing-smart-screen-python
Screens relying on LibUSB don't function without root by default
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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