Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Linux: selecting tty device fails | auto open does work

未关闭 适合新手
#896 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
64/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python

调研方向

从 configure.py 开始,重现选择 ttyACM0 与自动检测之间的差异,后者返回 /dev/ttyACM0。跟踪所选值直到打开串行端口,并验证保存所选设备后能够保留正确的路径且可以启动 screen。

由索引模型根据 Issue 内容生成。

描述

bug

Describe the bug
Selecting a specific tty device fails to open. Auto-open does work

To Reproduce
Steps to reproduce the behavior:

  1. run python3 configure.py
  2. selct the tty device
  3. save and run

Expected behavior
Open the tty device with the correct path.

Logs

(.venv)user@host turing-smart-screen-python][(HEAD 3.9.6)]$ 08.11.2025 19:48:06 [INFO] Loading theme Digital_CPU_0.96Inch from res/themes/Digital_CPU_0.96Inch/theme.yaml
08.11.2025 19:48:06 [DEBUG] Static COM port: ttyACM0
08.11.2025 19:48:06 [ERROR] Cannot open COM port ttyACM0: [Errno 2] could not open port ttyACM0
^C
(.venv)user@host turing-smart-screen-python][(HEAD  3.9.6)]$ python3 configure.py
(.venv)user@host turing-smart-screen-python][(HEAD 3.9.6)]$ 08.11.2025 19:48:26 [INFO] Loading theme Digital_CPU_0.96Inch from res/themes/Digital_CPU_0.96Inch/theme.yaml
08.11.2025 19:48:26 [DEBUG] Auto detected COM port: /dev/ttyACM0

Environment:

  • Smart screen model [e.g. Turing 5", XuanFang 3.5”]
  • Revision of this project: 3.9.6
  • OS with version: Archlinux
  • Python version [e.g. Python 3.10]
  • Hardware: x86

Additional context
The path handling is not correct. The drop down menu misses the /dev/ path in front.

主要语言
Rich Text Format
星标
2.3k
派生
422
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mathoudebine/turing-smart-screen-python 的其他 Issue

查看 mathoudebine/turing-smart-screen-python 的全部 Issue

相似的 Issue

更多 Operating Systems Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。