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

No Stylus dected #3

Open
Alecaddd opened this issue Aug 31, 2019 · 4 comments
Open

No Stylus dected #3

Alecaddd opened this issue Aug 31, 2019 · 4 comments

Comments

@Alecaddd
Copy link

Alecaddd commented Aug 31, 2019

Tablet: Wacom Cintiq 13HD
Passive Wacom Stylus

The tablet connects and works properly, with the screen and orientation recognized.
Even if the stylus works, with its pressure and buttons, it doesn't seem to be recognized by the plug as the "Stylus" Tab always shows the "No Stylus Detected" view.

Do you need any more information? How can I help debugging this?

::UPDATE::

After changing the Tablet mapping from absolute to relative, the stylus is now recognized.

@davidmhewitt
Copy link
Member

davidmhewitt commented Aug 31, 2019

Can you see if you have libwacom-bin installed and post the output of libwacom-list-local-devices with the tablet connected and the stylus in proximity of it?

Also, you can make the plug "forget" the stylus again by removing its cache with:
rm -rf ~/.cache/io.elementary.switchboard/wacom/

This is the method that would need some debug lines inserted to try and find out where it was falling over with detecting the pen:

private bool update_current_tool (Gdk.Event event) {
if (event.get_event_type () == Gdk.EventType.MOTION_NOTIFY) {
var tool = event.get_device_tool ();
if (tool == null) {
return Gdk.EVENT_PROPAGATE;
}
var device = device_manager.lookup_gdk_device (event.get_source_device ());
if (device == null) {
return Gdk.EVENT_PROPAGATE;
}
var wacom_device = devices[device];
if (wacom_device == null) {
return Gdk.EVENT_PROPAGATE;
}
var serial = tool.get_serial ();
var stylus = tool_map.lookup_tool (wacom_device, serial);
if (stylus == null) {
var id = tool.get_hardware_id ();
try {
stylus = new Backend.WacomTool (serial, id, wacom_device);
} catch (GLib.Error e) {
return Gdk.EVENT_PROPAGATE;
}
}
tool_map.add_relation (wacom_device, stylus);
if (stylus != last_stylus) {
stylus_view.set_device (stylus);
}
last_stylus = stylus;
}
return Gdk.EVENT_PROPAGATE;
}

@davidmhewitt
Copy link
Member

davidmhewitt commented Aug 31, 2019

Actually, I've just had a thought. The plug relies on cursor motion triggered by pen motion to detect the pen. I guess since your tablet has its own screen, switchboard isn't on the same screen as where the pen is, so maybe it's not detected it because of that?

@Alecaddd
Copy link
Author

Confirmed your intuition.
I move the switchboard window to the tablet screen and tapped the stylus and got recognized.

@davidmhewitt
Copy link
Member

Hm, not sure if there's anything we can technically do about that as I don't think switchboard will be able to pick up cursor events outside of its window. But we could certainly make the instructions clearer 😄

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

No branches or pull requests

2 participants