24
submitted 9 months ago by dsemy@lemm.ee to c/linux@lemmy.ml

I've been migrating my setup to Wayland the past few days, and I couldn't figure out any way to turn off my displays without affecting the layout of the compositor (river).

As it turns out, there is a wlroots-specific protocol (wlr_output_power_manager_v1) for this purpose, but the only implementation I could find was a tool which doesn't work exactly how I want and is based on Rust, a language I'm unfamiliar with (so I didn't feel like modifying it).

Since I wanted to learn more about how Wayland works, and get more experience with C programming, I decided to build a new (super simple) tool, 'wlr-dpms'.

Note that this tool only turns monitors on or off manually, it doesn't implement any functionality to turn a monitor on when there is activity. You can use a resume command with 'swayidle' to implement this.

you are viewing a single comment's thread
view the rest of the comments
[-] dsemy@lemm.ee 3 points 9 months ago

Damn, I searched for two days and didn't come across this.

[-] lalo@discuss.tchncs.de 5 points 9 months ago

You said you used river, so I've checked their wiki https://github.com/riverwm/river/wiki/Recommended-Software#output-configuration

Maybe you can add your tool there as well.

[-] dsemy@lemm.ee 3 points 9 months ago

Wow, I have no idea how I missed that, I literally read that page today.

this post was submitted on 28 Jan 2024
24 points (96.2% liked)

Linux

48182 readers
2006 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS