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

mousemove positions have the half resolution #158

Closed
SuperTux88 opened this issue Jun 8, 2022 · 5 comments
Closed

mousemove positions have the half resolution #158

SuperTux88 opened this issue Jun 8, 2022 · 5 comments

Comments

@SuperTux88
Copy link

When I execute ydotool mousemove --absolute -- 10 10, it moves the mouse to 20/20 instead of to 10/10, so it looks like the resolution for the mouse is exactly half of my real resolution. It works, if I just call the commands with all values I used for xdotool divided by 2, but I didn't expect I need to do this.

I'm using sway and I have multiple monitors, but I don't have any scaling configured, so a scaling factor shouldn't be the reason for this behavior. 🤷‍♂️

@ghost
Copy link

ghost commented Jun 23, 2022

For me I fixed it by setting "Acceleration Profile" for "ydotool virtual device" from "Adaptive" to "Flat".

@SuperTux88
Copy link
Author

Thanks, that worked, but I still think that's unexpected behavior. Can "flat" be made the default for ydotool somehow? 🤔

@johngebbie
Copy link
Contributor

For anyone else on X11, try: xinput --set-prop 'pointer:ydotoold virtual device' 'libinput Accel Profile Enabled' 0, 1, which needs run each reboot.
I couldn't get a xorg.conf working.

@ReimuNotMoe
Copy link
Owner

Implemented in de4d908

@SuperTux88
Copy link
Author

On sway/wayland this problem still exists (tested with 1.0.4) and I still need to manually set the accel_profile to flat in my sway config:

input "9011:26214:ydotoold_virtual_device" {
    accel_profile flat
}

You can also do this with a command as one-time config: swaymsg input "9011:26214:ydotoold_virtual_device" accel_profile flat, but then it gets lost again every time you reload your sway config, so just running this command once when launching ydotoold isn't a solution, as then it doesn't get executed again when you reload sway.

So it would still be cool if flat could just be the default, without needing to set it anywhere (no commands and no config), but I don't know if that's possible. If it isn't possible, it should at least be documented somewhere to have a hint for people to know what to do when it doesn't work as expected.

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

3 participants