-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an --off
flag
#13
Comments
Is there a way to use this to turn off a display without specifying an |
You can try to set the brightness to 0 using the experimental branch at https://github.com/maxwellainatchi/gnome-randr-rust/tree/adjust-brightness. IMPORTANT: it has some (potentially major) downsides, read this issue comment (#16 (comment)) for more information. I can also work on implementing the |
Looks like this should be pretty easy - unfortunately I don't have access to a computer running Linux right now, my desktop is suffering from fatal issues and my laptop is ARM based. I can try implementing it blindly and putting it up in a branch, if you want to test it! |
Actually, looks like it's even already supported - you should be able to just pass in |
Do I need to build off the experimental branch for this to be supported?
|
|
You shouldn't need the experimental branch, the command should just be
As you did. I'm not sure why this isn't working, I'll have to dig in once I have a working computer to test on. My only guess right now is that you might need quotes around the
|
I'll wait until you have a working computer... But something about these steps did make the monitor freeze, but not turn off, so maybe something is happening. |
(This is on an arm64/Ubuntu raspberry pi 4 machine.) |
Ahhh, Ubuntu shouldn't actually need this utility. On Ubuntu xrandr is (fully?) bridged to Wayland, so you can just use xrandr to manipulate the displays instead. |
I don't think xrandr exposes the power functionality...
|
To fix the wrong parsing from structopt when a minus-starting argument is given, the workaround is to do But even this won't work:
Same here, on Ubuntu 22.04. Can't use xrandr for setting a screen to off. The off mode isn't well documented, and it's quite sad since it's one of the most useful options. |
For my two monitor setup on my desktop (a 4K screen on the left and a 1440p on the left), I always use my right monitor connected to my work laptop during the day and then re-enable it for my desktop afterwards. Not sure if this will help anyone, but these are the invocations I've been using to do this:
|
This feature would still be nice.
I can reproduce the extact same results with |
I get the same result with Arch: $ gnome-randr modify DP-7 --mode=-1
setting mode to -1
D-Bus error: Invalid mode '-1' specified (org.freedesktop.DBus.Error.InvalidArgs)
Invalid mode '-1' specified |
No description provided.
The text was updated successfully, but these errors were encountered: