Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

resnap.sh: Adds support for the remarkable 2 #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

emerinohdz
Copy link

Uses the original approach discussed in rien/reStream#28 to dump the frame buffer on the remarkable 2. It's a bit slow though, since I couldn't get it to work reliably while dynamically calculating a better bs, count and skip values for dd.

@emerinohdz emerinohdz changed the title Adds support for the remarkable 2 resnap: Adds support for the remarkable 2 Feb 14, 2021
@emerinohdz emerinohdz changed the title resnap: Adds support for the remarkable 2 resnap.sh: Adds support for the remarkable 2 Feb 14, 2021
@Baccanno
Copy link

In my version of RM2 (last 2.6) there is no "/dev/fb0" in the /proc/$pid/maps but there is a "/dev/shm/swtfb.01"
That looks like rm2 fb shime. That might have change due to the update.
I'll try with this change and report

@Baccanno
Copy link

Baccanno commented Apr 20, 2021

I tried the following

pid=$(pidof xochitl)
offset=$(grep "/dev/shm/swtfb.01" /proc/$pid/maps | awk -F '-' '{print substr($2, 0, 8)}')
dd if=/proc/$pid/mem bs=1 count=2628288 skip=$((0x$offset + 8)) 2>/dev/null > raw
gm convert -depth 8 -size 1872x1404+0 gray:raw out.pdf

Well the output pdf is ugly and nothing close to the fb right now ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants