在 Linux/Xorg 上设置颜色亮度
Is there any command (or API) to set X.Org/Linux color brightness?
In other words, I need something as handy as the xgamma command but for changing RGB brightness real-time.
Is this possibile?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
使用 XF86VidMode* 系列函数。
这会将伽玛从 0.25 带到 4.0 并返回,然后恢复原始伽玛。
或者您可以重复调用 system("xgamma -gamma %f") ,得到几乎相同的结果。
Use the XF86VidMode* family of functions.
This brings the gamma from 0.25 to 4.0 and back, and then restores the original gamma.
Or you could just repeatedly call
system("xgamma -gamma %f")
, with pretty much the same results.您必须从存储库安装此软件。在大多数笔记本电脑上运行良好,至少在 ThinkPad 上:-)
You have to install this software from your repository. Works well on most laptops, at least on ThinkPads :-)
控制 LCD 亮度:
范围为 1 至 8。
To control LCD brightness:
The range is 1 to 8.
也许您需要 XRandr?
May Be You need XRandr?