我想通过 Debian 命令行、shell 脚本或 C 代码在纵向和横向之间更改屏幕方向。窗口系统是X11。我在网上搜索过但没有成功。
xrandr -o left
响应:
X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 140 (RANDR) Minor opcode of failed request: 2 (RRSetScreenConfig) Serial number of failed request: 14 Current serial number in output stream: 14
如果我想对 xrandr 做任何事情,它只会显示“xrandr:无法获取默认输出的 Gamma 大小
”。
LCD 连接在 LVDS 连接器上。我的 xorg.conf 是
Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
Section "Device"
Identifier "fbdev display"
Driver "fbdev"
#Option "Rotate" "CCW"
Option "Rotate" "RandRRotation" "On"
EndSection
是否可以旋转我的显示器?
最佳答案
并非所有 X11 驱动程序都支持 Xrandr API。一些驱动程序根本不支持在运行时更改它,而其他驱动程序有非标准的方法来执行此操作。一个示例是具有自己的实用程序的二进制闭源驱动程序。
关于c - X11 改变屏幕方向 Debian,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36547753/