Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL and smart screen support #550

Open
wwdaher opened this issue Aug 7, 2024 · 2 comments
Open

WSL and smart screen support #550

wwdaher opened this issue Aug 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@wwdaher
Copy link

wwdaher commented Aug 7, 2024

Describe the bug
Running the system monitor under WSL results in [ERROR] Cannot open COM port /dev/ttyACM0

When running main.py under WSL:
line 189 of main.py calls: display.initialize_display()
The first thing this routine does is call self.lcd.Reset().
This shouldn't be a problem, but under WSL this disconnects the screen device from the subsystem. Unfortunately, it must then be manually reconnected from outside the subsystem via the "usbipd attach --wsl --busid x-x" command before continuing.

Commenting out the self.lcd.Reset() allows it to work as expected.

To Reproduce
Steps to reproduce the behavior:

  1. Install the package into a WSL
  2. Connect the Turing screen
  3. Attach the screen to the WSL USB subsystem with "usbipd attach --wsl --busid x-x" command under powershell
  4. Run "python3 configure.py" to configure the screen
  5. Run "python3 main.py"

Expected behavior
The screen becomes active and displays system activity.

Screenshots / photos of the Turing screen

Environment:

  • Turing 3.5"
  • Revision of this project [3.5.0, main branch]
  • OS with version (Ubuntu 22.04.4 LTS installed under Windows 11 WSL)
  • Python version [Python 3.10.12]

Additional context
As an aside, if debugging with VSCode under WSL the res directory in configure.py is not properly resolved and has to be coded to be fully qualified (i.e. themes_dir = '/home/thesuser/git/turing-smart-screen-python/res/themes').

@wwdaher wwdaher added the bug Something isn't working label Aug 7, 2024
@mathoudebine
Copy link
Owner

Hi, thanks for the feedback. You may be the first person to run this project on WSL
Out of curiosity, does it run well? Do you have access to all hardware sensors?

@wwdaher
Copy link
Author

wwdaher commented Sep 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants