diff --git a/frontend/device/remarkable/device.lua b/frontend/device/remarkable/device.lua index 896b6f41c..b5bb9a24b 100644 --- a/frontend/device/remarkable/device.lua +++ b/frontend/device/remarkable/device.lua @@ -448,10 +448,7 @@ if isRm2 then return Remarkable2 elseif isRmPaperPro then if not os.getenv("LD_PRELOAD") then - error("reMarkable Paper Pro requires a RM2FB server and client to work (https://github.com/asivery/rmpp-qtfb-shim)") - end - if os.getenv("QTFB_SHIM_INPUT") ~= "false" or os.getenv("QTFB_SHIM_MODEL") ~= "false" then - error("You must set both QTFB_SHIM_INPUT and QTFB_SHIM_MODEL to false") + error("reMarkable Paper Pro requires a RM2FB server and client to work (https://github.com/asivery/rm-appload)") end if os.getenv("QTFB_SHIM_MODE") ~= "RGB565" then error("You must set QTFB_SHIM_MODE to RGB565") diff --git a/make/remarkable.mk b/make/remarkable.mk index 5798cf01c..7eb6eccf8 100644 --- a/make/remarkable.mk +++ b/make/remarkable.mk @@ -11,8 +11,20 @@ update: all # ensure that the binaries were built for ARM file --dereference $(INSTALL_DIR)/koreader/luajit | grep ARM # Remarkable scripts - $(SYMLINK) $(REMARKABLE_DIR)/* $(INSTALL_DIR)/koreader/ $(SYMLINK) $(COMMON_DIR)/spinning_zsync $(INSTALL_DIR)/koreader/ + $(SYMLINK) $(REMARKABLE_DIR)/koreader.sh $(INSTALL_DIR)/koreader/ +ifeq (remarkable,$(TARGET)) + $(SYMLINK) $(REMARKABLE_DIR)/README.md $(INSTALL_DIR)/koreader/README_remarkable.md + $(SYMLINK) $(REMARKABLE_DIR)/button-listen.service $(INSTALL_DIR)/koreader/ + $(SYMLINK) $(REMARKABLE_DIR)/disable-wifi.sh $(INSTALL_DIR)/koreader/ + $(SYMLINK) $(REMARKABLE_DIR)/enable-wifi.sh $(INSTALL_DIR)/koreader/ + $(SYMLINK) $(REMARKABLE_DIR)/external.manifest.json $(INSTALL_DIR)/koreader/ + $(SYMLINK) $(REMARKABLE_DIR)/koreader.service $(INSTALL_DIR)/koreader/ +endif +ifeq (remarkable-aarch64,$(TARGET)) + $(SYMLINK) $(REMARKABLE_DIR)/README_aarch64.md $(INSTALL_DIR)/koreader/README_remarkable.md + $(SYMLINK) $(REMARKABLE_DIR)/external.manifest_aarch64.json $(INSTALL_DIR)/koreader/external.manifest.json +endif # Create packages. $(strip $(call mkupdate,$(REMARKABLE_PACKAGE))) $(strip $(call mkupdate,$(REMARKABLE_PACKAGE_OTA))) diff --git a/platform/remarkable/README_remarkable.txt b/platform/remarkable/README.md similarity index 76% rename from platform/remarkable/README_remarkable.txt rename to platform/remarkable/README.md index b0e202ff8..0bd4194ab 100644 --- a/platform/remarkable/README_remarkable.txt +++ b/platform/remarkable/README.md @@ -8,11 +8,13 @@ with a USB cable. # Install - scp .zip root@: +``` +scp .zip root@: - ssh root@ +ssh root@ - unzip .zip +unzip .zip +``` # Launching using the included launcher @@ -20,8 +22,10 @@ KOReader includes a very simple launcher called `button-listen` which starts KOReader when the middle button is held down for 3 or more seconds in the default UI (xochitl). - cp -v koreader/*.service /etc/systemd/system/ - systemctl enable --now button-listen +``` +cp -v koreader/*.service /etc/systemd/system/ +systemctl enable --now button-listen +``` To return to the default UI just exit KOReader (swipe down from the top of the screen, select icon in the top right, Exit, Exit). @@ -33,13 +37,19 @@ to run the two install steps again when that happens. The command that the launcher needs to run is: - /home/root/koreader/koreader.sh +``` +/home/root/koreader/koreader.sh +``` Alternatively, if you want the default behaviour of KOReader exit starting the default UI you can run (once on installation): - cp -v koreader/koreader.service /etc/systemd/system/ +``` +cp -v koreader/koreader.service /etc/systemd/system/ +``` Then to start KOReader the launcher needs to run: - systemctl start koreader +``` +systemctl start koreader +``` diff --git a/platform/remarkable/README_aarch64.md b/platform/remarkable/README_aarch64.md new file mode 100644 index 000000000..cf763758e --- /dev/null +++ b/platform/remarkable/README_aarch64.md @@ -0,0 +1,11 @@ +# General + +When connected to Wi-Fi you can find the IP address and root password for your +reMarkable in Settings -> About, then scroll down the GPLv3 compliance on the +right (finger drag scroll, not the page forward/back buttons). This should also +work for the USB network you get if you connect the reMarkable to your computer +with a USB cable. + +# Install & Launching + +Kindly refer to the wiki at https://github.com/koreader/koreader/wiki/Installation-on-reMarkable#manual-installation-on-remarkable-paper-pro diff --git a/platform/remarkable/external.manifest.json b/platform/remarkable/external.manifest.json new file mode 100644 index 000000000..d20fe9e60 --- /dev/null +++ b/platform/remarkable/external.manifest.json @@ -0,0 +1,9 @@ +{ + "name": "KOReader", + "application": "koreader.sh", + "environment": { + "LD_PRELOAD": "/home/root/shims/qtfb-shim.so", + "KO_DONT_GRAB_INPUT": "1" + }, + "qtfb": true +} diff --git a/platform/remarkable/external.manifest_aarch64.json b/platform/remarkable/external.manifest_aarch64.json new file mode 100644 index 000000000..dd927bdfb --- /dev/null +++ b/platform/remarkable/external.manifest_aarch64.json @@ -0,0 +1,12 @@ +{ + "name": "KOReader", + "application": "koreader.sh", + "environment": { + "LD_PRELOAD": "/home/root/shims/qtfb-shim.so", + "QTFB_SHIM_MODEL": "false", + "QTFB_SHIM_INPUT_MODE": "RMPP", + "QTFB_SHIM_MODE": "RGB565", + "KO_DONT_GRAB_INPUT": "1" + }, + "qtfb": true +}