You are not logged in.
Thx.
Mousekey can be activate by SHIFT+NUMLOCK. But it will auto disable after 2 minuite later. And I have to press SHIFT+NUM again to activate it.
How to do that mousekey will auto activate at xserver start? Or, how to make mousekey not automatically shut down after 2 minutes?
Last edited by 2XEKmkZd4C6PeYdgmuiHL6xaj (2020-04-16 13:43:10)
Offline
A search of the repos and aur for "mousekey" provides no results. A google search also doesn't lead to any clear candidates.
What program/tool/package are you talking about?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Are you refering to using numeric keys to control the mouse as enabled by
setxkbmap -option keypad:pointerkeys
Offline
Does "xkbset mousekeys" stick? (doesn't require the xkbmap option)
Offline
Are you refering to using numeric keys to control the mouse as enabled by
setxkbmap -option keypad:pointerkeys
Yes,but I use confgure file to set.
/etc/X11/xorg.conf.d/20-enable-pointerkeys.conf
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbOptions" "keypad:pointerkeys"
EndSection
Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
Offline
A search of the repos and aur for "mousekey" provides no results. A google search also doesn't lead to any clear candidates.
What program/tool/package are you talking about?
Thank you for your attention. The mousekey is a xkb function.
https://wiki.archlinux.org/index.php/Xo … mouse_keys
https://en.wikipedia.org/wiki/Mouse_keys
Offline
Does "xkbset mousekeys" stick? (doesn't require the xkbmap option)
No, I don’t know where to stick this
Offline
Hummwhat?
If you execute that command it will activate the mousekeys and the question is whether it then auto-deactivates as well or remains active (until you issue "xkbset -mousekeys")
Offline
Hummwhat?
If you execute that command it will activate the mousekeys and the question is whether it then auto-deactivates as well or remains active (until you issue "xkbset -mousekeys")
I don't have the xkbset command, I just pressed shift + num to turn on the mousekeys.
Offline
Offline
Thank you for your help, let me ask again, how to change this value :AccessX Timeout = 120. I hope to make it permanent.
$ xkbset q exp
AccessX Timeout = 120
Offline
Offline
No. I don't know what configuration file to write this parameter into : accessX timeout ,
My linux Xorg knowledge is too scarce
Offline
I found answer again:
https://www.linuxquestions.org/question … ut-724864/
Offline
How do you start X11 / your session?
xinit/startx or some Display Manager? (GDM,SDDM, …)?
xkbset exp 240
will set the expiration to 240 seconds and you can call this in any way shape or form your session allows for autostarting of stuff.
For the future, please don't bump, edit your last post (there's a link in the lower right corner of every post) if nobody has responded so far.
Offline
What about removing the expiry of accessx with
xkbset exp -accessx
Offline
Ah, I probably misinterpreted " hope to make it permanent." as "fix the value on the server"…
You can also "xkbset exp -mousekeys" to leave the other features untouched.
Offline
Ah, I probably misinterpreted " hope to make it permanent." as "fix the value on the server"…
You can also "xkbset exp -mousekeys" to leave the other features untouched.
I used this command but it has no effect. Mousekeys will automatically close after 2 minutes.
And I found a offical doc. But i can't solve too.
Offline
Run it, then post the output of "xkbset q exp"
You can use
xkbset exp -mousekeys; xkbset q exp | curl -F 'f:1=<-' ix.io
Also elaborate on your session (which desktop environment, which display manager.)
In doubt use
loginctl session-status | curl -F 'f:1=<-' ix.io
(Because if you're on gnome on wayland, this is all moot)
Offline
Run it, then post the output of "xkbset q exp"
You can usexkbset exp -mousekeys; xkbset q exp | curl -F 'f:1=<-' ix.io
Also elaborate on your session (which desktop environment, which display manager.)
In doubt useloginctl session-status | curl -F 'f:1=<-' ix.io
(Because if you're on gnome on wayland, this is all moot)
$ xkbset exp -mousekeys; xkbset q exp | curl -F 'f:1=<-' ix.io
http://ix.io/2i9B
My DE is LXDE . NO DM, use startx start X.
$ loginctl session-status | curl -F 'f:1=<-' ix.io
http://ix.io/2i9C
Offline
Upon Expiry Mouse-Keys will be: Off
My bad, "xkbset exp mousekeys" (w/o the dash) sets it to "On".
Offline
Upon Expiry Mouse-Keys will be: Off
My bad, "xkbset exp mousekeys" (w/o the dash) sets it to "On".
Amazing!!! It's work!
You have helped me a lot!Thank you very much! This problem has troubled me for more than two years.
Can I ask the finally question: how to automatically open mousekeys when the keyboard is reinserted,or xserver start ?
Offline
For the server startup, just put "xkbset mousekeys" into your xiitrc.
About keyboard insertion:
If the condition isn't device agnostic you'll probably have to go w/ a udev rule to run the command when you plug a keyboard, https://wiki.archlinux.org/index.php/Udev
I'm not aware of xkb options to default this to "on" that you could put into an xorg.conf.
Offline
For the server startup, just put "xkbset mousekeys" into your xiitrc.
About keyboard insertion:
If the condition isn't device agnostic you'll probably have to go w/ a udev rule to run the command when you plug a keyboard, https://wiki.archlinux.org/index.php/Udev
I'm not aware of xkb options to default this to "on" that you could put into an xorg.conf.
I write a udev file : /etc/udev/rules.d/keyboard.rules
SUBSYSTEM=="leds",ATTRS{idVendor}=="413c",ACTION=="add",RUN+="/usr/bin/xkbset exp mousekeys"
It's not work. I found it must run in X. because:
# xkbset
Unable to open display
How to type the RUN+=" " commond and let it work?
Offline
Offline