enigma9o7
Crew Member
![*](//storage.proboards.com/forum/images/stars/star_yellowgreen.png) ![*](//storage.proboards.com/forum/images/stars/star_yellowgreen.png)
Posts: 1,485
Likes: 1,370
|
Post by enigma9o7 on May 6, 2024 16:40:06 GMT
I want a command or keyboard shortcut to enable screen blanking *now* without waiting for the timeout.
I looked thru all the available things for key bindings and didn't see anything obvious, nothing called "Blank", and "Lock" shows the lockscreen, and "Dim" doesn't seem to do anything at all.
Is there a command I can issue (which I would bind to a key myself)? Or a key binding option I'm overlooking?
The reason I want this now is because I started using a second monitor most of the time, and the "display off" button on my laptop only turns off the laptop screen, not the monitor, and I don't want to have to turn two things off, plus monitor doesnt turn back on automatically when I use keyboard like laptop display does. If I wait for the blank timeout tho, both go out, and both come back on when I hit keyboard, so I just wanna initiate that.
|
|
|
Post by thewaiter on May 6, 2024 17:04:43 GMT
I am not aware of Moksha way to do this. But of course I can add it to the code with a shortcut.
I think it is not hard to search for some xrandr solutions over Internet.
Stefan
|
|
enigma9o7
Crew Member
![*](//storage.proboards.com/forum/images/stars/star_yellowgreen.png) ![*](//storage.proboards.com/forum/images/stars/star_yellowgreen.png)
Posts: 1,485
Likes: 1,370
|
Post by enigma9o7 on May 6, 2024 22:49:16 GMT
Hmmm yeah, maybe what I want is more power saving shutdown than blank too, although in moksha settings what I use is called blanking. I'll check out xrandr tho.
|
|
enigma9o7
Crew Member
![*](//storage.proboards.com/forum/images/stars/star_yellowgreen.png) ![*](//storage.proboards.com/forum/images/stars/star_yellowgreen.png)
Posts: 1,485
Likes: 1,370
|
Post by enigma9o7 on May 6, 2024 23:31:22 GMT
xset dpms force off
This works from command line, but when I make it into a keybinding command, it blanks then comes right back on a half second later....
|
|
enigma9o7
Crew Member
![*](//storage.proboards.com/forum/images/stars/star_yellowgreen.png) ![*](//storage.proboards.com/forum/images/stars/star_yellowgreen.png)
Posts: 1,485
Likes: 1,370
|
Post by enigma9o7 on May 9, 2024 16:55:17 GMT
I'm still trying to find a way to make this work reliably. I believe it has something to do with how I release the keys, as sometimes I can make it work.
I guess what would be ideal tho would be not to issue the command until I release the keys, and it seems it issues the command when I press them. I don't suppose anything I can do about that from user side?
|
|
|
Post by thewaiter on May 9, 2024 20:48:00 GMT
OK, I have a working solution for you. Not a CLI method but a native Moksha one. Let me do some tests and commit if works fine. ![](http://www.enlightenment.org/ss/e-663d362bbfa166.26243765.png) Stefan
|
|
|
Post by thewaiter on May 13, 2024 18:40:20 GMT
|
|
|
Post by ylee on May 20, 2024 10:42:11 GMT
Moksha has now been updated in the BL7 and BL7debbie repos.
|
|
|
Post by thewaiter on May 20, 2024 11:02:57 GMT
CTRL ALT B as default
|
|
|
Post by thewaiter on May 20, 2024 16:18:19 GMT
enigma9o7, this feature was your idea. Try to test if works well. Stefan
|
|