Skip to content

Check for input devices - #53

Draft
danirabbit wants to merge 17 commits into
mainfrom
danirabbit/watchservice
Draft

Check for input devices#53
danirabbit wants to merge 17 commits into
mainfrom
danirabbit/watchservice

Conversation

@danirabbit

@danirabbit danirabbit commented Aug 18, 2026

Copy link
Copy Markdown
Member

Fixes #36

Screenshot from 2026-08-18 13 20 08

Depends on #37. Without this authentication simply fails

This does not work at all if a logitech dongle is plugged in. As in, we can't even know that we don't have a pointer. The dongle claims to be a pointer. No idea what to do about that tbh

@danirabbit danirabbit added this to OS 9 Aug 18, 2026
@danirabbit danirabbit moved this to In progress in OS 9 Aug 18, 2026
Comment thread src/Services/Manager.vala
}

if (!(POINTER in capabilities) && !(TABLET_STYLUS in capabilities)) {
find_pairing_mice ();

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we fire a notification here to let folks know we're looking for a device? Maybe after a timeout? If there's a device already trying to pair its really fast

Comment thread src/Services/Manager.vala
});
}

private async bool connect_mouse (Device device) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably needs a cancellable?

Comment thread src/Services/Manager.vala
}
}

private async void find_pairing_mice () {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually this probably needs to be cancellable too

Comment thread src/Services/Manager.vala
return false;
}

if (device.icon == "input-mouse") {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if there's a better way to detect device type. We also need to probably pair touchpads?

@danirabbit

Copy link
Copy Markdown
Member Author

Actually wonder if we should add a check and bail out of this if we're not in the installer or initial setup sessions?

@danirabbit

Copy link
Copy Markdown
Member Author

Perhaps we should also bail out if we have any paired keyboards or mice? To make sure we're really only running if we must to make the computer usable

@danirabbit

Copy link
Copy Markdown
Member Author

It seems like on modern macOS plugging in a peripheral with the usbc charging cable also automatically pairs it. Might be a nice approach as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

Prompt to connect Bluetooth input devices when no input devices exist

2 participants