Open Eeems opened 9 months ago
Instead of requiring the user to pass the --rm1 flag, it would be preferable to auto-detect the device where possible.
https://github.com/Jayy001/codexctl/blob/d80064059d637d51374189ca69010a34a6f125ee/codexctl/__init__.py#L239-L244
This is most of the way to detecting which device. /sys/devices/soc0/machine will contain reMarkable 2.0 on a rM2, and either reMarkable 1.0 or reMarkable Prototype 1, depending on how old the OS version is.
/sys/devices/soc0/machine
reMarkable 2.0
reMarkable 1.0
reMarkable Prototype 1
Instead of requiring the user to pass the --rm1 flag, it would be preferable to auto-detect the device where possible.