laamaa / m8c

Cross-platform M8 tracker headless client
Other
419 stars 87 forks source link

Pop!_OS serial ioctl #23

Closed JeffAlyanak closed 3 years ago

JeffAlyanak commented 3 years ago

I've seen a couple people have this issue with Pop_OS, which must be doing something a bit differently than Debian in its serial setup.

I can confirm that the device is readable and writeable by the user, since screen and minicom work fine.

Debug is as follows:

INFO: Opening port.
sp: sp_open(0x55bf311d1b30, 0x3) called.
sp: Opening port /dev/ttyACM0.
sp: get_config(0x55bf311d1b30, 0x7fff7e9c83e0, 0x7fff7e9c83b0) called.
sp: Getting configuration for port /dev/ttyACM0.
sp: get_flow(3, 0x7fff7e9c83e0) called.
sp: Getting advanced flow control.
sp: sp_last_error_message() called.
sp: sp_last_error_message returning Inappropriate ioctl for device.
sp: get_flow returning SP_ERR_FAIL: Getting termiox failed: Inappropriate ioctl for device.
sp: sp_free_error_message(Inappropriate ioctl for device) called.
sp: sp_free_error_message returning.
sp: get_config returning SP_ERR_FAIL.
sp: sp_close(0x55bf311d1b30) called.
sp: Closing port /dev/ttyACM0.
sp: sp_close returning SP_OK.
sp: sp_open returning SP_ERR_FAIL.
sp: sp_last_error_message() called.
sp: sp_last_error_message returning Inappropriate ioctl for device.
sp: sp_free_error_message(Inappropriate ioctl for device) called.
sp: sp_free_error_message returning.
Aborted (core dumped)

I'll investigate and look towards implementing a fix.

JeffAlyanak commented 3 years ago

Btw, I suspect this issue will affect all systems using systemd-boot.

laamaa commented 3 years ago

Sounds like a duplicate of https://github.com/laamaa/m8c/issues/20

JeffAlyanak commented 3 years ago

Ah, it is. Sorry.

laamaa commented 3 years ago

No worries :) it might be a good idea to add a FAQ section to readme at some point and have the issue mentioned there, since most distros don't seem to have updated packages...