long delays on powerful desktop

58 views
Skip to first unread message

Simba Lion

unread,
Sep 11, 2016, 7:49:29 PM9/11/16
to xdotoo...@googlegroups.com
I've got a brand new-ish desktop (quad core amd processor, 8gb ram) and
I'm using keepass with xdotool for auto-typing passwords. There is a
really long delay on most passwords, like 50ms or more.

On another system, an ancient Lenovo W500 laptop with a slower CPU and
less RAM, auto-typing flies at a great speed.

Both systems are running up to date Debian Jessie installations, and the
same version of xdotool (3.20141006.1) and the same version of keepass.
Does anyone have any suggestions how I might improve the speed on my
desktop system? It's only a difference of a few seconds, but it's a few
seconds a few hundred times per day which adds up to minutes wasted
waiting for passwords to type.

--
Simba Lion - https://tailpuff.net
https://keybase.io/simbalion

"Why is a raven like a writing desk?"

Jordan Sissel

unread,
Sep 11, 2016, 7:56:32 PM9/11/16
to si...@tailpuff.net, xdotool-users
I have two guesses right now, one of which is unlikely given your report taht you're using the same versions of things on both systems.

Guess 1 (probably not right): Somehow the key delay is not set the same on both systems when typing. (The --delay flag)
Guess 2: Somehow typing on your faster system is requiring xdotool to modify the keymap in order to type certain characters. [1]

[1] xdotool typing may have to map a key if it thinks, for whatever reason, that key is not available in the current keymap. This is commonly observed if your X11 server is using a non-US keymap, or somehow has something weird going on with the keymap in a way that xdotool thinks (due to a bug in xdotool?) that some, or all, keys are not available, so it has to map them in the keyboard mapping on the X server first before it can type.

You might have success resetting the keymap on your faster-cpu machine using `setxkbmap` command (though I don't 'have specific advice on that).

-Jordan

--
You received this message because you are subscribed to the Google Groups "xdotool-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xdotool-users+unsubscribe@googlegroups.com.
To post to this group, send email to xdotoo...@googlegroups.com.
Visit this group at https://groups.google.com/group/xdotool-users.
For more options, visit https://groups.google.com/d/optout.

Simba Lion

unread,
Sep 11, 2016, 8:09:14 PM9/11/16
to Jordan Sissel, xdotool-users
Hi Jordan, Thanks for taking time to address this issue I'm having.

I checked my keyboard layout in xfce and it says generic 105 and English
(US). I tried changing my keyboard to Logitech Generic, since it's a
logitech keyboard, but that did not fix the issue.

The string I've been using to test and compare on both systems contains
only standard alphanumerics, as well.

Simba Lion - https://tailpuff.net
https://keybase.io/simbalion

"Why is a raven like a writing desk?"

On 09/11/2016 07:56 PM, Jordan Sissel wrote:
> I have two guesses right now, one of which is unlikely given your report
> taht you're using the same versions of things on both systems.
>
> Guess 1 (probably not right): Somehow the key delay is not set the same
> on both systems when typing. (The --delay flag)
> Guess 2: Somehow typing on your faster system is requiring xdotool to
> modify the keymap in order to type certain characters. [1]
>
> [1] xdotool typing may have to map a key if it thinks, for whatever
> reason, that key is not available in the current keymap. This is
> commonly observed if your X11 server is using a non-US keymap, or
> somehow has something weird going on with the keymap in a way that
> xdotool thinks (due to a bug in xdotool?) that some, or all, keys are
> not available, so it has to map them in the keyboard mapping on the X
> server first before it can type.
>
> You might have success resetting the keymap on your faster-cpu machine
> using `setxkbmap` command (though I don't 'have specific advice on that).
>
> -Jordan
>
> On Fri, Sep 9, 2016 at 8:34 PM, 'Simba Lion' via xdotool-users
> <xdotoo...@googlegroups.com <mailto:xdotoo...@googlegroups.com>>
> wrote:
>
> I've got a brand new-ish desktop (quad core amd processor, 8gb ram) and
> I'm using keepass with xdotool for auto-typing passwords. There is a
> really long delay on most passwords, like 50ms or more.
>
> On another system, an ancient Lenovo W500 laptop with a slower CPU and
> less RAM, auto-typing flies at a great speed.
>
> Both systems are running up to date Debian Jessie installations, and the
> same version of xdotool (3.20141006.1) and the same version of keepass.
> Does anyone have any suggestions how I might improve the speed on my
> desktop system? It's only a difference of a few seconds, but it's a few
> seconds a few hundred times per day which adds up to minutes wasted
> waiting for passwords to type.
>
> --
> Simba Lion - https://tailpuff.net
> https://keybase.io/simbalion
>
> "Why is a raven like a writing desk?"
>
> --
> You received this message because you are subscribed to the Google
> Groups "xdotool-users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to xdotool-user...@googlegroups.com
> <mailto:xdotool-users%2Bunsu...@googlegroups.com>.
> To post to this group, send email to xdotoo...@googlegroups.com
> <mailto:xdotoo...@googlegroups.com>.
> <https://groups.google.com/group/xdotool-users>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>

Anthony Thyssen

unread,
Sep 11, 2016, 9:00:21 PM9/11/16
to si...@tailpuff.net, Jordan Sissel, xdotool-users
Having been studying keyboard macros (using xdotool, or xte, and others) for some time. A delay at the start of a marco is often added so that any modifier keys you have pressed to initiate the keyboard macros get time to be released.

For example suppose I use Ctrl-F1 to type my email address.   If control key does not get release before the macro is typed the first few character of my email address are typed as control characters... which is typically not very good.

I have tried quite a number of solutions, but the best so far, is the hack of waiting 1/2 a second (50ms) before typing the macro.

For a summery of some of my studies look at


For my current script to type keyboard macros look at...


For example I have keys set up to do things like...
My Email Address
   keyboard_macro "A.Th...@griffith.edu.au"
Paste the clipboard into ANY input window (because Ctrl-V doesn't work)
     sh -c 'xsel -b | keyboard_macro -



> wrote:
>
>     I've got a brand new-ish desktop (quad core amd processor, 8gb ram) and
>     I'm using keepass with xdotool for auto-typing passwords. There is a
>     really long delay on most passwords, like 50ms or more.
>
>     On another system, an ancient Lenovo W500 laptop with a slower CPU and
>     less RAM, auto-typing flies at a great speed.
>
>     Both systems are running up to date Debian Jessie installations, and the
>     same version of xdotool (3.20141006.1) and the same version of keepass.
>     Does anyone have any suggestions how I might improve the speed on my
>     desktop system? It's only a difference of a few seconds, but it's a few
>     seconds a few hundred times per day which adds up to minutes wasted
>     waiting for passwords to type.
>
>     --
>     Simba Lion - https://tailpuff.net
>     https://keybase.io/simbalion
>
>     "Why is a raven like a writing desk?"
>
>     --
>     You received this message because you are subscribed to the Google
>     Groups "xdotool-users" group.
>     To unsubscribe from this group and stop receiving emails from it,
>     send an email to xdotool-users+unsubscribe@googlegroups.com
>     <mailto:xdotool-users%2Bunsu...@googlegroups.com>.
>     To post to this group, send email to xdotoo...@googlegroups.com
>
>

--
You received this message because you are subscribed to the Google Groups "xdotool-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xdotool-users+unsubscribe@googlegroups.com.
To post to this group, send email to xdotoo...@googlegroups.com.
Visit this group at https://groups.google.com/group/xdotool-users.
For more options, visit https://groups.google.com/d/optout.

Jordan Sissel

unread,
Sep 11, 2016, 9:33:23 PM9/11/16
to A.Th...@griffith.edu.au, si...@tailpuff.net, xdotool-users
About using delays to avoid key bindings clashing with xdotool typing, my hope for this was that --clearmodifiers flag would help solve this problem, but maybe it doesn't?

> wrote:
>
>     I've got a brand new-ish desktop (quad core amd processor, 8gb ram) and
>     I'm using keepass with xdotool for auto-typing passwords. There is a
>     really long delay on most passwords, like 50ms or more.
>
>     On another system, an ancient Lenovo W500 laptop with a slower CPU and
>     less RAM, auto-typing flies at a great speed.
>
>     Both systems are running up to date Debian Jessie installations, and the
>     same version of xdotool (3.20141006.1) and the same version of keepass.
>     Does anyone have any suggestions how I might improve the speed on my
>     desktop system? It's only a difference of a few seconds, but it's a few
>     seconds a few hundred times per day which adds up to minutes wasted
>     waiting for passwords to type.
>
>     --
>     Simba Lion - https://tailpuff.net
>     https://keybase.io/simbalion
>
>     "Why is a raven like a writing desk?"
>
>     --
>     You received this message because you are subscribed to the Google
>     Groups "xdotool-users" group.
>     To unsubscribe from this group and stop receiving emails from it,
>     send an email to xdotool-users+unsubscribe@googlegroups.com

Anthony Thyssen

unread,
Sep 11, 2016, 9:47:43 PM9/11/16
to Jordan Sissel, xdotool-users
It does, but the latest xdotools was not installed on all systems at the time I wrote the macros.
I believe I was the one that requested it :-)

It has been some time since I looked at the state of the art :-)

I have checked and clearmodifiers does seem to be working on the main machines i am using (now that distributions have updated). And it even handles special characters line unicode '§'

Though the 'type' didn't seem to work to type into the java game 'minecraft' last time I looked, while "xte" could, though xte has other very serious problems (limited buffer size, no unicode, and no clear modifiers).

I'll try again when I finish work.   I do appreciate you adding clearmodifiers.

Reply all
Reply to author
Forward
0 new messages