rockowitz / ddcutil

Control monitor settings using DDC/CI and USB
http://www.ddcutil.com
GNU General Public License v2.0
946 stars 38 forks source link

Build without X11 #34

Closed macpijan closed 6 years ago

macpijan commented 6 years ago

On many embedded platforms X11 is not present anymore. It could be nice to allow disabling X11 support via configuration switch. What do you think about that? Do you think X11 is necessary to run this app? For a quick test I removed all X11 and xrand from code and configuration checks, and it seems to be working fine.

rockowitz commented 6 years ago

Interesting idea.   IIRC, the X11 related code exists only in the environment and interrogate commands, to assist in remote diagnosis of user problems.   So it should be possible to build ddcutil without it.  Can you describe in more detail the platforms you're interested in?   Hardware, processor (e.g. ARM, MIPS), use cases?  How are the monitors connected?

Sanford

On 10/18/2017 08:56 AM, Maciej Pijanowski wrote:

On many embedded platforms X11 is not present anymore. It could be nice to allow disabling X11 support via configuration switch. What do you think about that? Do you think X11 is necessary to run this app? For a quick test I removed all X11 and xrand from code and configuration checks, and it seems to be working fine.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rockowitz/ddcutil/issues/34, or mute the thread https://github.com/notifications/unsubscribe-auth/ANhsboehQx-TQb6aAH9R9tDxZTAp5yKvks5stfVpgaJpZM4P9qoV.

macpijan commented 6 years ago

Yes, I could compile and run it without x11 libs. I have ARM board (i.MX) and exploring ways of controlling various display for digital signage. Ddc works great with standard computer monitors. Ddc seems to be present in some digital signage LCD displays as well. It doesn't seem to be present in standard TVs, though.

rockowitz commented 6 years ago

Which Linux distribution are you running?

Interesting that DDC/CI works for some digital signage.   I've yet to see a standard TV for which it works.

Please try running command "ddcutil interrogate" and send the output.   Given that "ddcutil interrogate" is a convenience wrapper around "ddcutil environment" and other commands, and that the code you've (presumably) disabled is in the environment command, I wouldn't be surprised if it just blows up, but even that would be interesting.   Please send the output as an attachment.

Sanford

On 10/18/2017 11:18 AM, Maciej Pijanowski wrote:

Yes, I could compile and run it without x11 libs. I have ARM board (i.MX) and exploring ways of controlling various display for digital signage. Ddc works great with standard computer monitors. Ddc seems to be present in some digital signage LCD displays as well. It doesn't seem to be present in standard TVs, though.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rockowitz/ddcutil/issues/34#issuecomment-337626736, or mute the thread https://github.com/notifications/unsubscribe-auth/ANhsbmZYFw6sqTYBtjkwXNgBVVZEYenFks5sthbJgaJpZM4P9qoV.

rockowitz commented 6 years ago

configure option --disable-x11 was added in release 0.8.5