Re-connection after PC wakes up from standby mode? #70

Closed
opened 2026-10-05 03:19:16 +02:00 by adam · 8 comments
Owner

Hi, is there a way to make Contact reconnect automatically after the PC wakes from standby mode? At least on Linux Mint (ThinkPad L470), when the system resumes, the Contact app still responds to keyboard input, but the node is no longer connected. I have to press ESC (or even Ctrl + C) to close Contact and then start it again—only then are the node and channel lists updated

Hi, is there a way to make Contact reconnect automatically after the PC wakes from standby mode? At least on Linux Mint (ThinkPad L470), when the system resumes, the Contact app still responds to keyboard input, but the node is no longer connected. I have to press `ESC` (or even `Ctrl + C`) to close Contact and then start it again—only then are the node and channel lists updated <!-- github-sync-id:3462581168 -->
adam closed this issue 2026-10-05 03:19:16 +02:00
Author
Owner

This is great issue, thanks for opening it! I'd sure prefer if the Meshtastic Python Library handled this on it's own but perhaps we can check for a connection in the background and reconnect if needed. This could also help when saving settings changes that cause a node reboot.

I had made an attempt to implement this in https://github.com/pdxlocations/contact/tree/watchdog but was never happy with the results so I moved on.

This is great issue, thanks for opening it! I'd sure prefer if the Meshtastic Python Library handled this on it's own but perhaps we can check for a connection in the background and reconnect if needed. This could also help when saving settings changes that cause a node reboot. I had made an attempt to implement this in https://github.com/pdxlocations/contact/tree/watchdog but was never happy with the results so I moved on. <!-- github-comment-id:3348197972 -->
Author
Owner

Hi. Yep, It will be great if Meshtastic Python library will do the stuff under the hood (also abstracting the OS - Linux, MacOS etc.)

Maybe I could dive deep in to this problem (although I doubt that I can do something) - I really like the app, but I don't like to close it every time I start a PC :)

Hi. Yep, It will be great if Meshtastic Python library will do the stuff under the hood (also abstracting the OS - Linux, MacOS etc.) Maybe I could dive deep in to this problem (although I doubt that I can do something) - I really like the app, but I don't like to close it every time I start a PC :) <!-- github-comment-id:3348866804 -->
Author
Owner

Any news on this?

Any news on this? <!-- github-comment-id:5077865599 -->
Author
Owner

Well, no any news, unfortunately

Well, no any news, unfortunately <!-- github-comment-id:5078226831 -->
Author
Owner

I think it's working in ec35cbd3e7

I think it's working in ec35cbd3e7c9b72e5a099df7c8ed6abea6efbb30 <!-- github-comment-id:5082136076 -->
Author
Owner

Tested the latest meshtastic and contact modules in Linux Mint, after waking the PC up the message part of the Contact app (the bottom line) contained this:
Message: WARNING:[meshtastic.stream](https://meshtastic.stream/)_interface:Meshtastic serial port disconnected, disconnecting... device reports readiness to read but returne Ctrl+K Help vicMessage: ected or multiple access on port?)──

Tested the latest meshtastic and contact modules in Linux Mint, after waking the PC up the message part of the Contact app (the bottom line) contained this: `Message: WARNING:[meshtastic.stream](https://meshtastic.stream/)_interface:Meshtastic serial port disconnected, disconnecting... device reports readiness to read but returne Ctrl+K Help vicMessage: ected or multiple access on port?)──` <!-- github-comment-id:5083575358 -->
Author
Owner

maybe fixed in 0ae644e3fb

maybe fixed in 0ae644e3fb12b1c522200576af354fb442abe8d4 <!-- github-comment-id:5084658925 -->
Author
Owner

Tested with the latest update, it works, thanks!

Tested with the latest update, it works, thanks! <!-- github-comment-id:5087625405 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/contact#70