Add support for rm2fb
This commit is contained in:
18
reStream.sh
18
reStream.sh
@ -98,10 +98,16 @@ case "$rm_version" in
|
||||
pixel_format="rgb565le"
|
||||
;;
|
||||
"reMarkable 2.0")
|
||||
pixel_format="gray8"
|
||||
width=1872
|
||||
height=1404
|
||||
video_filters="$video_filters,transpose=2"
|
||||
if ssh_cmd "[ -f /dev/shm/swtfb.01 ]"; then
|
||||
width=1404
|
||||
height=1872
|
||||
pixel_format="rgb565le"
|
||||
else
|
||||
width=1872
|
||||
height=1404
|
||||
pixel_format="gray8"
|
||||
video_filters="$video_filters,transpose=2"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported reMarkable version: $rm_version."
|
||||
@ -123,7 +129,7 @@ if ! lz4 -V >/dev/null; then
|
||||
fi
|
||||
|
||||
# check if restream binay is present on remarkable
|
||||
if ssh_cmd "[ ! -f ~/restream ]"; then
|
||||
if ssh_cmd "[ ! -f ~/restream ] && [ ! -f /opt/bin/restream ]"; then
|
||||
echo "The restream binary is not installed on your reMarkable."
|
||||
echo "Please install it using the instruction in the README:"
|
||||
echo "https://github.com/rien/reStream/#installation"
|
||||
@ -180,7 +186,7 @@ fi
|
||||
set -e # stop if an error occurs
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
ssh_cmd "./restream" \
|
||||
ssh_cmd 'PATH="$PATH:/opt/bin/:." restream' \
|
||||
| $decompress \
|
||||
| $host_passthrough \
|
||||
| "$output_cmd" \
|
||||
|
Reference in New Issue
Block a user