Jayy001 / codexctl

Automated update managment for the ReMarkable tablet
GNU General Public License v3.0
107 stars 13 forks source link

Auto-detect device #59

Open Eeems opened 9 months ago

Eeems commented 9 months ago

Instead of requiring the user to pass the --rm1 flag, it would be preferable to auto-detect the device where possible.

Eeems commented 9 months ago

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.