无法使用 xrandr 旋转屏幕

Jac*_*ack 4 xrandr nvidia

操作系统:Linux Mint

的输出inxi -xG

Graphics:  Card: NVIDIA GF108 [GeForce GT 440] bus-ID: 02:00.0 
          X.Org: 1.13.0 drivers: vesa (unloaded: fbdev) Resolution: 
800x600@0.0hz 
         GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.3, 128 bits) GLX
Version: 2.1 Mesa 9.2.0 Direct Rendering: Yes
Run Code Online (Sandbox Code Playgroud)

打算翻转电脑的屏幕。以上有关当前显卡和操作系统的信息。

$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 400, current 800 x 600, maximum 800 x 600
default connected 800x600+0+0 0mm x 0mm
  800x600         0.0* 
  640x480        60.0  
  640x400         0.0  
  320x400         0.0 
Run Code Online (Sandbox Code Playgroud)

到目前为止,我已经尝试按照互联网上的可用提示进行操作,但没有成功。我主要怀疑的是 Nvidia 驱动程序。谁能阐明这个问题?

该命令:xrandr -o rotate不起作用。

slm*_*slm 5

您需要--rotate在较新版本中使用而xrandr不是-o交换机。

\n\n

例子

\n\n
$ xrandr --output LVDS1 --rotate left\n$ xrandr --output LVDS1 --rotate right\n$ xrandr --output LVDS1 --rotate normal\n
Run Code Online (Sandbox Code Playgroud)\n\n

我的输出是什么?

\n\n

您可以使用以下命令找到您显示器的名称xrandr

\n\n
$ xrandr\nScreen 0: minimum 320 x 200, current 1440 x 900, maximum 8192 x 8192\nLVDS1 connected primary 1440x900+0+0 (normal left inverted right x axis y axis) 303mm x 190mm\n   1440x900       60.0*+   50.0  \n   1024x768       60.0  \n   800x600        60.3     56.2  \n   640x480        59.9  \nVGA1 disconnected (normal left inverted right x axis y axis)\nHDMI1 disconnected (normal left inverted right x axis y axis)\nDP1 disconnected (normal left inverted right x axis y axis)\nHDMI2 disconnected (normal left inverted right x axis y axis)\nHDMI3 disconnected (normal left inverted right x axis y axis)\nDP2 disconnected (normal left inverted right x axis y axis)\nDP3 disconnected (normal left inverted right x axis y axis)\n
Run Code Online (Sandbox Code Playgroud)\n\n

英伟达卡

\n\n

使用此显卡,您可能需要将其添加到您的“设备”部分xorg.conf

\n\n
Option    "RandRRotation" "True"\n
Run Code Online (Sandbox Code Playgroud)\n\n

您必须重新启动 X11 才能使此更改生效。这样做之后xrandr您应该能够旋转显示器。

\n\n

参考

\n\n\n

  • 之前尝试过这个命令不起作用。获取消息>>> xrandr:输出默认不能使用旋转“左”反射“无” (11认同)