c - 可以用 C 改变屏幕亮度吗?

标签 c linux screen-brightness

在 Linux 中使用 C,是否可以改变观看屏幕的亮度?除了在我安装的 Ubuntu 和 Fedora 上运行外,预计这不会是可移植的。我在问如何与操作系统交互以更改亮度。

最佳答案

我将从以下 ubuntu 软件包列表中选择一个可以让您管理屏幕亮度的工具(提示:这取决于品牌)

nvidia-settings - Tool of configuring the NVIDIA graphics driver
smartdimmer - Change LCD brightness on Geforce cards
armada-backlight - adjust backlight of Compaq Armada laptops (E300, M500, M700)
ddccontrol - a program to control monitor parameters
eeepc-acpi-scripts - Scripts to support suspend and hotkeys on the Asus Eee PC laptop
fnfxd - ACPI and hotkey daemon for Toshiba laptops
gddccontrol - a program to control monitor parameters
spicctrl - Sony Vaio controller program to set LCD backlight brightness
tpb - program to use the IBM ThinkPad(tm) special keys
xfce4-power-manager - power manager for Xfce desktop
xfce4-power-manager-plugins - power manager plugins for Xfce panel
xvattr - Utility to change Xv attributes

一旦你选择了它,

sudo apt-get build-dep <pkgname>
apt-get source --compile <pkgname> 

应该让你走上正轨

关于c - 可以用 C 改变屏幕亮度吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5811279/

相关文章:

c - 对 C 内存地址执行操作作为 char* 进行输出。

python - 无法在 Linux Manjaro 上运行 Spyder

android - 使用 flutter 应用更改设备亮度

java - 调整屏幕亮度时出现 WRITE_SETTINGS 权限的 SecurityException

ubuntu - 更改亮度ubuntu12.04LTS

c - 传递 lex 和 yacc 之间的 union 内容

C:解析输入文件以检查格式

c - C 递归中的魔法?谁能解释一下?

regex - 用于处理目录的 Bash 脚本 (REGEX)

c++ - 拆分 Netfilter 数据包