Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen stuck on "Connecting to reMarkable..." but red-dot is there, seems to be stuck on authentication #156

Open
wulfdewolf opened this issue Sep 20, 2023 · 7 comments
Labels
duplicate This issue or pull request already exists

Comments

@wulfdewolf
Copy link

wulfdewolf commented Sep 20, 2023

I have a RM2, I've set backend to "screenshare".
When I connect rmview seems to be stuck on the connecting screen, although when I move my pencil across the screen the red-dot updates live.

I tried and succeeded to use rmview at home.
On 'eduroam' at university I can not seem to connect though.

Verbose output:

2023-09-20 17:37:37+0100 [-] Log opened.
[INFO] STARTING: Wed Sep 20 17:37:37 2023
[INFO] Searching configuration in rmview.json, /home/wolf/.config/rmview.json
[DEBUG] Configuration failure in rmview.json: [Errno 2] No such file or directory: 'rmview.json'
[INFO] Fetching configuration from /home/wolf/.config/rmview.json
[WARNING] Config file "/home/wolf/.config/rmview.json" is readable by others (permissions=664). If your config file contains secrets (e.g. password) you are strongly encouraged to make sure it's not readable by other users (chmod 600 /home/wolf/.config/rmview.json)
[DEBUG] Config values: {'ssh': {'address': '10.126.206.5', 'password': '**********', 'timeout': 2}, 'backend': 'screenshare', 'orientation': 'auto', 'pen_size': 15, 'pen_color': 'red', 'pen_trail': 200, 'background_color': 'white', 'hide_pen_on_press': True}
[INFO] Using known hosts file: /home/wolf/.config/rmview_known_hosts
[INFO] Loaded known hosts from /home/wolf/.config/rmview_known_hosts
[INFO] Connecting...
[INFO] Connected to 10.126.206.5
[INFO] Detected reMarkable 2.0
[INFO] Using backend 'screenshare'
[DEBUG] Stopping connection worker
[INFO] Connecting to ScreenShare, make sure you enable it
[WARNING] Authenticating, please wait...
2023-09-20 17:37:45+0100 [-] ChallengeReaderProtocol starting on 5901
2023-09-20 17:37:45+0100 [-] Starting protocol <rmview.screenstream.screenshare.ChallengeReaderProtocol object at 0x7f892a1fb370>
@bordaigorl
Copy link
Owner

Can you check if #146 helps (especially the newer comments)?

@bordaigorl bordaigorl added the duplicate This issue or pull request already exists label Sep 20, 2023
@wulfdewolf
Copy link
Author

I had already implemented that fix when I experienced the same issues as #146 .
The issue must be related to something else.

@bordaigorl
Copy link
Owner

Sorry for getting back so late. Given rmview seems to work on some networks and not others this suggests it is a network configuration problem (see #111). I would not expect eduroam to let you use the necessary ports for authentication. I would suggest connecting to the tablet using a USB cable.

@ninaJay
Copy link

ninaJay commented Jan 15, 2024

Hi, just chiming in with the same issue here using Version 3.9.3.1986. The ports are wide open, and it doesn't quite seem to be the same issue as #146 but seems very similar in that it hangs when it's trying to get the config file from the rm.

@viktordimov
Copy link

I'm on 3.10.2.2063
facing the same issue: can see the red dot while hovering the pen but can't actually see the screen, not on USB, not on Wi-Fi either.

@julienmartin31
Copy link

Same issue as viktordimov on 3.10.2.2063

@cgahr
Copy link

cgahr commented Jul 8, 2024

I get the same error, I'm stuck on the connection screen but my pointer is working.

As far as I can tell, /etc/version contains the correct value.

I'm using rmview from nix, version 3.1.3.

Error message
[INFO] Connecting...
[INFO] Connected to 10.168.1.86
[INFO] Detected SW version: 3.12.4.4
[INFO] Detected device: reMarkable 2.0
[INFO] Using backend 'screenshare'
[INFO] Connecting to ScreenShare, make sure you enable it
[WARNING] Authenticating, please wait...
[INFO] received timestamp challenge 1720445236303
Unhandled Error
Traceback (most recent call last):
  File "/nix/store/mrkir0hi7jm5p7224wc0g1j84mzlv3nr-python3.12-twisted-24.3.0/lib/python3.12/site-packages/twisted/python/log.py", line 80, in callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/nix/store/mrkir0hi7jm5p7224wc0g1j84mzlv3nr-python3.12-twisted-24.3.0/lib/python3.12/site-packages/twisted/python/context.py", line 117, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/nix/store/mrkir0hi7jm5p7224wc0g1j84mzlv3nr-python3.12-twisted-24.3.0/lib/python3.12/site-packages/twisted/python/context.py", line 82, in callWithContext
    return func(*args, **kw)
  File "/nix/store/mrkir0hi7jm5p7224wc0g1j84mzlv3nr-python3.12-twisted-24.3.0/lib/python3.12/site-packages/twisted/internet/posixbase.py", line 482, in _doReadOrWrite
    why = selectable.doRead()
--- <exception caught here> ---
  File "/nix/store/mrkir0hi7jm5p7224wc0g1j84mzlv3nr-python3.12-twisted-24.3.0/lib/python3.12/site-packages/twisted/internet/udp.py", line 254, in doRead
    self.protocol.datagramReceived(data, addr)
  File "/nix/store/ripn778zvbinlc7nn2yvkxi9f96ypjks-rmview-3.1.3/lib/python3.12/site-packages/rmview/screenstream/screenshare.py", line 46, in datagramReceived
    if not self.callback(timestamp):
  File "/nix/store/ripn778zvbinlc7nn2yvkxi9f96ypjks-rmview-3.1.3/lib/python3.12/site-packages/rmview/screenstream/screenshare.py", line 119, in runVnc
    userId = self.get_userid()
  File "/nix/store/ripn778zvbinlc7nn2yvkxi9f96ypjks-rmview-3.1.3/lib/python3.12/site-packages/rmview/screenstream/screenshare.py", line 100, in get_userid
    with sftp.file('/etc/remarkable.conf') as f:
  File "/nix/store/qmb9qxdd45fvp2p8xg9gk6rqaapjn16d-python3.12-paramiko-3.4.0/lib/python3.12/site-packages/paramiko/sftp_client.py", line 372, in open
    t, msg = self._request(CMD_OPEN, filename, imode, attrblock)
  File "/nix/store/qmb9qxdd45fvp2p8xg9gk6rqaapjn16d-python3.12-paramiko-3.4.0/lib/python3.12/site-packages/paramiko/sftp_client.py", line 857, in _request
    return self._read_response(num)
  File "/nix/store/qmb9qxdd45fvp2p8xg9gk6rqaapjn16d-python3.12-paramiko-3.4.0/lib/python3.12/site-packages/paramiko/sftp_client.py", line 909, in _read_response
    self._convert_status(msg)
  File "/nix/store/qmb9qxdd45fvp2p8xg9gk6rqaapjn16d-python3.12-paramiko-3.4.0/lib/python3.12/site-packages/paramiko/sftp_client.py", line 938, in _convert_status
    raise IOError(errno.ENOENT, text)
builtins.FileNotFoundError: [Errno 2] No such file

EDIT: seems to be #161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

6 participants