You are not logged in.
Pages: 1
Topic closed
Greetings!
I'm looking for a way to stop the mouse from waking up my monitors from their beauty rest. I usually put them asleep with this little lullaby:
xset dpms force offHow do I do this? Via dpms? Xorg setting? I found patches for the mouse drivers, but I first want to see if there's a less annoying way to solve this. So any hints for the right direction?
Some info:
X-Server Xorg 1.9.2-2
Kernel 2.6.36.2-1
nvidia drivers 260.19.29-1
no special input device drivers
-> (suppose evdev does the job)
Mouse: Bus 003 Device 003: ID 1e7d:2ced ROCCAT Kone Mouse
-> (Is recognized as a mouse AND a keyboard. Should not be relevant, I suppose.)
Gnome 2.32.1-1/etc/X11/xorg.conf.d/20-nvidia.conf
Section "Device"
...
Option "DPMS" "True"
...
EndSectionOh and... no, turning the mouse upside down is not an option :-D
Last edited by Awebb (2011-04-26 15:06:41)
Offline
well you could unplug the mouse, you could not use X. you could give ratpoison a try.... ![]()
but seriously, I'm reading through the documentation on xserver/xorg.conf etc and I'm afraid that I can not find an option that will allow this.
one suggestion that would help in the long term is you could try to contact the upstream developers with a feature request, or get the X11 source and hack in an option for "NoWakeOnMouse" or something like that, that disables the mouse upon dpms. It actually does seem like a good feature with a valid use case imo.
<disclaimer>And I'm just saying that I cannot find a way to do this, doesn't mean that it doesn't exist!</disclaimer>
Hofstadter's Law:
It always takes longer than you expect, even when you take into account Hofstadter's Law.
Offline
Thanks Cyrusm. Reading your answer, I remembered that I can turn off the mouse using xinput.
$ xinput list
$ #see what ID your mouse has
$ xinput --list-props your_mouse_ID
$ #see what your mouse can do, xinput wise, if it has the following, do the following...
$ xinput --set-prop your_mouse_ID "Device Enabled" 0 # or 1 to turn it on again
Now I think I could write an udev rule. I never did this before, let's see what happens.
So, do I have to read through the whole documentation? Google won't give me more than "how to turn off your touchpad when a mouse is connected". I'll have to read more. Any hint on how to detect with udev when my monitor wakes up from standby would be appreciated.
EDIT: However it might be implemented, udev... script... it's solved for me.
Last edited by Awebb (2011-04-26 15:07:07)
Offline
Great info, thanks, Awebb! I added to my .zshrc
alias screenoff='xinput --set-prop YOUR_MOUSE_ID "Device Enabled" 0 && xset dpms force off'
alias mouseon='xinput --set-prop YOUR_MOUSE_ID "Device Enabled" 1'
alias mouseoff='xinput --set-prop YOUR_MOUSE_ID "Device Enabled" 0'
Offline
ymukhin, please don't necrobump old threads.
https://wiki.archlinux.org/index.php/Fo … bumping.22
Closing.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1
Topic closed