Giter VIP home page Giter VIP logo

rm2-stuff's People

Contributors

corndog2000 avatar eeems avatar kiwiz avatar timower avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rm2-stuff's Issues

yaft screen rotation?

Hello!

Thanks so much for the port of yaft to RM. I was wondering how much work it would be to also support screen rotation? I see that this is a feature in this branch 1, but I'm unsure if that's ported to the RM.

No worries, if it's a lot of work; I'm just curious. Pointers to how I can implement this myself would be appreciated!

Thanks!

install koreader on remarkable 2 version 3.9

hi everyone
first I'M new here and I'm sorry for my English
my request is that I wanna install koreader in my remarkable 2 which have Version 3.9
I dont konw if this is possible ; i think I can't do it without tolec after version 2.15
note : I'm not a programmer I just know basics things about computer that's why I hope there are some steps which I need just use ssh commend to
install it
thanks in advance

simplify the process of building from source

I had to jump through a variety of unintuitive hoops to get things working, and improving that process would be helpful.

here are some of the issues I encountered [on debian 12]- I am very inexperienced with building software for the remarkable, so I might be using the wrong terminology here. Apologies.

code issues

  • I needed to set CMAKE_BUILD_WITH_INSTALL_RPATH to true in CMakePresets.json to avoid this error:

The install of the [program] target requires changing an RPATH from the build tree, but this is not supported with the Ninja generator unless on an ELF-based or XCOFF-based platform.

  • It would be nice if yaft could detect when it's not being run with a launcher, and set the LD_PRELOAD for you, or explain to you that it needs to be set

documentation issues

  • specify the requirement for cmake >= 3.19, and mention that sourcing the remarkable toolchain changes your cmake version to one that's too old. My workaround was to use which cmake before sourcing the toolchain, and referring to cmake by its path (e.g. /home/me/.local/bin/cmake --preset dev).

Keyboard input

it seems like the keyboard is accepting input only from stylus and not touch. Anyway to fix it?
Sorry it is my first time reporting a bug I may have done it badly.

missing dependency: xochitl

It is really awesome that rm2fb has support for 3.3.x and even 3.5.x, but for some reason when I try to install th rm2fb.ipk the opkg (I used Evidlo's Entware) outputs:

`

  • pkg_hash_check_unresolved: cannot find dependency xochitl for rm2fb
  • satisfy_dependency_for: Cannot satisify the following dependencies for rm2fb
    :
  • xochitl
  • opkg_install_cmd: Cannot install package rm2fb.
    `

I can enable xochitl by systemctl enable xochitl.
I can run xochitl by xochitl.

I have tried to opkg install /rm2fb on 2.15, 3.3, 3.5, and 3.8 using fake updates with no avail. I am not sure what to do.

Unable to change font in yaft

Is it possible to use a different font with yaft?
It seems like this should be possible due to font_path in Canvas.cpp.
I tried creating a symlink to a different font but that did not seem to have any affect on yaft, though it did on other applications (such as vnsee).

Change font size in Yaft

It seems that Yaft currently has its glyphs hardcoded in glyph.h, with a pixel size of 16×32 per glyph.

For the sake of legibility and accessibility a larger font size would be great.

Would it be possible to create generate different glyph sets (larger ones) and switch between them with a configuration parameter?

shiftKey, ctrlKey and altKey addresses change

First of all, great work on porting yaft to reMarkable. It's so light and fast, keyboard works with 0 visual delay and I love it so much!

So I tried to add more keys on another row to the list. Unfortunately, a bug consistently happened that Ctrl, shift and alt are always on. It led to invalid key and Segmentation fault all the time whenever I hit something (except ctrl, shift and alt tho).
After a "few" hours investigating, the bug is due to you using addresses of elements in vector<Key> keys for shiftKey, ctrlKey and altKey. These addresses are potentially changed after emplacing more elements to the vector.

Unless vector are reserved enough memory space prior any emplacing operation, vector would reallocate all elements to new space. To prevent bugs in the future, you can either:

keys.reserve(num_rows * row_size);

Or use std::vector<Key>::iterator instead of address.

hide keyboard completely

right now long press esc on the virtual keyboard hides the keyboard except the last row.
when using an external keyboard it would be better to hide it altogether.

what about swipe up/down gestures at the bottom to show/hide the whole keyboard?

how to install on rm2

can somebody give instructions on how to set this up on a rm2? or point to somewhere where it is explained?
would be super thankful

Yaft: framebuffer initialize failed

version: 3.3.2

rm2fb seems to not be recognized or used after installation.

desperately, I tried both installing rm2stuff.ipk and installing each packages seperately (running toltecctl uninstall beforehand)

process:

toltecctl uninstall

wget http://toltec-dev.org/bootstrap
echo "04a28483286f88c5c7f39e352afb62adc57f6162a29fd7e124d832205bb0980e bootstrap" | sha256sum -c && bash bootstrap

reboot

opkg install rm2stuff.ipk

reboot

running yaft I got:
">>FATAL<< framebuffer initialize failed"

I suspect the system couldn't recognize rm2fb or some files are missing, as when I ran opkg install remux && remux, I got:
"remux: error while loading shared libraries: librm2fb_client.so.1: cannot open shared object file: No such file or directory"

Sorry for asking hand-holdings, is there a set of bash commands that is methodologically correct for installing yaft and rocket/remux on a fresh machine running 3.3.2 or 3.5.x?

Handle SYN_DROPPED

Your current handling of input events doesn't currently handle dropping an event if SYN_DROPPED is encountered. This could be useful to make the event flood slightly less noisy if every application supported it properly.

rm2fb for version 3.6

It seems that there is a new version of Remarkable (3.6)

Would it be possible to update rm2fb to work with this version?

Thanks in advance!

extraFds build issue

using gcc-9.3.0

$ make
[  6%] Built target swtcon
Scanning dependencies of target rMlib
[  7%] Building CXX object libs/rMlib/CMakeFiles/rMlib.dir/Input.cpp.o
In file included from /nix/store/kj0fqg18lp9mghjl01g56naa6yl1yyq2-armv7l-unknown-linux-gnueabihf-stage-final-gcc-debug-9.3.0/armv7l-unknown-linux-gnueabihf/sys-include/sys/select.h:123,
                 from /nix/store/kj0fqg18lp9mghjl01g56naa6yl1yyq2-armv7l-unknown-linux-gnueabihf-stage-final-gcc-debug-9.3.0/armv7l-unknown-linux-gnueabihf/sys-include/sys/types.h:179,
                 from /nix/store/kj0fqg18lp9mghjl01g56naa6yl1yyq2-armv7l-unknown-linux-gnueabihf-stage-final-gcc-debug-9.3.0/armv7l-unknown-linux-gnueabihf/sys-include/stdlib.h:394,
                 from /nix/store/kj0fqg18lp9mghjl01g56naa6yl1yyq2-armv7l-unknown-linux-gnueabihf-stage-final-gcc-debug-9.3.0/armv7l-unknown-linux-gnueabihf/include/c++/9.3.0/cstdlib:75,
                 from /nix/store/kj0fqg18lp9mghjl01g56naa6yl1yyq2-armv7l-unknown-linux-gnueabihf-stage-final-gcc-debug-9.3.0/armv7l-unknown-linux-gnueabihf/include/c++/9.3.0/ext/string_conversions.h:41,
                 from /nix/store/kj0fqg18lp9mghjl01g56naa6yl1yyq2-armv7l-unknown-linux-gnueabihf-stage-final-gcc-debug-9.3.0/armv7l-unknown-linux-gnueabihf/include/c++/9.3.0/bits/basic_string.h:6493,
                 from /nix/store/kj0fqg18lp9mghjl01g56naa6yl1yyq2-armv7l-unknown-linux-gnueabihf-stage-final-gcc-debug-9.3.0/armv7l-unknown-linux-gnueabihf/include/c++/9.3.0/string:55,
                 from /home/dev/src/remarkable/rM2-stuff/libs/rMlib/include/Error.h:4,
                 from /home/dev/src/remarkable/rM2-stuff/libs/rMlib/include/Input.h:3,
                 from /home/dev/src/remarkable/rM2-stuff/libs/rMlib/Input.cpp:1:
/home/dev/src/remarkable/rM2-stuff/libs/rMlib/include/Input.h: In member function ‘std::optional<typename std::conditional<(sizeof... (ExtraFds) == 0), std::vector<std::variant<rmlib::input::TouchEvent, rmlib::input::PenEvent, rmlib::input::KeyEvent> >, std::pair<std::vector<std::variant<rmlib::input::TouchEvent, rmlib::input::PenEvent, rmlib::input::KeyEvent> >, std::array<bool, sizeof... (ExtraFds)> > >::type> rmlib::input::InputManager::waitForInput(std::optional<std::chrono::duration<long long int, std::ratio<1, 1000000> > >, ExtraFds ...)’:
/home/dev/src/remarkable/rM2-stuff/libs/rMlib/include/Input.h:114:13: error: parameter packs not expanded with ‘...’:
  114 |     (FD_SET(extraFds, &fds), ...);
      |             ^
/home/dev/src/remarkable/rM2-stuff/libs/rMlib/include/Input.h:114:13: note:         ‘extraFds’
/home/dev/src/remarkable/rM2-stuff/libs/rMlib/include/Input.h:129:37: error: parameter packs not expanded with ‘...’:
  129 |       ((extraResult[i++] = FD_ISSET(extraFds, &fds)), ...);
      |                                     ^
/home/dev/src/remarkable/rM2-stuff/libs/rMlib/include/Input.h:129:37: note:         ‘extraFds’
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-gnu-statement-expression’
make[2]: *** [libs/rMlib/CMakeFiles/rMlib.dir/build.make:82: libs/rMlib/CMakeFiles/rMlib.dir/Input.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:361: libs/rMlib/CMakeFiles/rMlib.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

problem using yaft from rm2 to access ssh server

Inside yaft on a rm2, i ssh to a server, this works fine, and i get a remote shell nicely.

then I try to start for example emacs, and it complains "there is no such terminal definition yaft-256color" or similar error.

I compile and install yaft on the remote server, just so I can get the terminfo file, and it does install in /usr/share/terminfo/yaft-256color. So far so good.

Still, I get the same missing terminal definition problem.

If I use some other terminal definition, like "export TERM=xterm-256color" it works, and looks nice, but I do get some visual glitches probably because the termdef does not match.

Have I missed some step in installing the terminfo file or something?

[yaft] nano won't start, and vi starts very weird.

I just installed yaft from the current toltec. I tried to run nano and it won't start, complaining cannot open yaft-256color. If I try to run 'vi', it first complains about some "cm" capability missing, and then I get the welcome screen quite weird... when trying to type commands, I get like Ctrl (^) characters... really weird.

OTOH, if I go to the screenshot you have in your docs folder, I see you have 'vi' running very nicely, even with two terminal views, one showing 'top' or similar, and you even have function keys in the keyboard (which I don't, see my screenshot). Can you tell me the steps and keys you pressed for getting that screenshot? (I mean this: https://github.com/timower/rM2-stuff/blob/master/doc/yaft.png)

These are my screenshots showing the issues I mention:
IMG_1163
IMG_1164
IMG_1162

[yaft] missing characters in font

Hey, Im new to tmux, but encountered it very useful in combination with yaft and the type folio.
Ive been trying around a bit with the colour configuration and how the colours are displayed in yaft.

The problem I have is: I cant figure out which colour I could set for the border which can be seen fort instance in splitview, like the grey one between vim and htop in this screenshot: Yaft with tmux

Whatever I do - it stays white on white for me in yaft...
So could you maybe share your tmux.conf? I think that would be a great help :)

Advice on how to build your application from source

Hi.

First of all, thanks for you super-cool work! I have installed yaft with opkg install yaft and it works great. But I would like to build the latest changes on the dev branch to get more control over the keymapping from the type folio. I have downloaded the docker image with the toltec toolchain and I am able to build:

  1. A yaft2 executable
  2. a rm2stuff.ipk package.

However when I copy this over to my remarkable I am running into some issues.

The rm2stuff.ipk package has a conflict with my already installed rm2fb-client:

root@reMarkable:~# opkg install rm2stuff.ipk 
Installing rm2-stuff (0.0.1) to root...
Collected errors:
 * check_conflicts_for: The following packages conflict with rm2-stuff:
 * check_conflicts_for: 	display * check_conflicts_fo

When I copy over the yaft2 executable directly and try executing it I get the following error:

root@reMarkable:~# ./yaft2 
yaft2: /home/erling/tools/remarkable/rM2-stuff/libs/rMlib/FrameBuffer.cpp:49: static ErrorOr<rmlib::fb::FrameBuffer::Type> rmlib::fb::FrameBuffer::detectType(): Assertion `false' failed.
Aborted

I realize that these are probably issues arising from my limited understanding of what is going on here. I am posting an issue here hoping someone could help me out.

  1. What is in the rm2-stuff.ipk package? Is it only the yaft2 app that I built?
  2. What is this conflict between rm2-stuff rm2fb-client? and the one I have installed? That one was installed by opkg when doing opkg install yaft. Should I uninstall it and let opkg find a new version of rm2fb-client?
  3. How does the firmware version of my remarkable come into play here? I did not enter that anywhere when building from sources. I am at 3.2.3.1595 which I believe is the latest version with rm2fb support

Again, thanks for your really cool work. I hope someone could help me out with some info or some pointers to where I can read up on cross-compiling for rm2 with toltec, opkg, ipk etc etc

White screen for rm2fb 3.8.2

Hi,

When installing the rm2fb ipk I am getting a white screen on boot. Is there a way to fix this?
Sincerely,
C

rM1 support for yaft

running yaft on rM1:

reMarkable: /etc/terminfo/y/ ~/apps/yaft
rM1 currently untested, please open a github issue if you encounter any issues
Max FD: 6
Max FD: 6
Max FD: 6
Max FD: 6
...
Max FD: 6
^C

and displays:

fb

it is possible the width is incorrect (1404 vs 1408) somewhere which often causes tearing like that

rm2fb not working

Copied the .ipk files in the Releases to the remarkable2 on V3.8.2 and installed them using opkg but if I try to start anyone of them i get the following:

FATAL: Unsupported device, please install rm2fb
Aborted

Here are the logs from the opkg:

reMarkable: ~/ opkg install rm2fb.ipk
Multiple replacers for rm2fb, using first one (rm2fb).
Multiple replacers for rm2fb, using first one (rm2fb).
Installing rm2fb (0.1.1) to root...
Removing package display from root...
make sure to disable / uninstall any launchers like draft, oxide or remux before
rebooting your tablet to complete the uninstallation
Removing package rm2fb-client from root...
Configuring rm2fb.
reMarkable: ~/

rm2fb issues when switching apps in remux or oxide

As part of investigating integrating your version of rm2fb into toltec for 3.5.2 and 3.8.2 support, I've discovered what I would consider a blocking bug.

When the launchers switch between running applications they will often fail to fully render the saved screen for the application. This behaviour does not happen with the upstream rm2fb on older OS versions.

You can find some screenshots of the issue in the following comments:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.