How can I disable automatic screen dimming when the wireless mouse has low battery?
Solution 1:
Read your current value :
gsettings get org.gnome.settings-daemon.plugins.power idle-dim
gsettings get org.gnome.settings-daemon.plugins.power idle-brightness
Then try :
gsettings set org.gnome.settings-daemon.plugins.power idle-dim false
Or if this do not work, try different values for org.gnome.settings-daemon.plugins.power idle-brightness
org.gnome.desktop.session idle-delay
is just the delay before the screensaver activates !
I guess the system see your mouse battery as a laptop battery. Udev handles peripherals and power supplies, so it is the first suspect. Sorry I cannot give you a clear solution right now, we have to find a clue of what is wrong first. Post these details, I hope it will help :
- What is the content of
/sys/class/power_supply/
when the mouse is plugged and when it is not ? - Run
sudo udevadm monitor -p
. This will monitor events, so you need to plug the mouse after. Check if the output is the same when the battery is high or low. - Run
sudo journalctl --since=-2m
just after plugging the mouse. Likewise, check if the output is the same when the battery is high or low.
Solution 2:
You can try this Q&A: Disable "Mouse battery low" spam notification
For ubuntu 17.10 go to org --> gnome --> settings-daemon --> plugins --> power Alter the "percentage-low" setting to what you want. I changed from 10% to 4%.
Not having the problem you have means I can't test it though...