xrandr: Failed to get size of gamma for output default
时间: 2024-04-26 14:26:05 浏览: 340
dmenu-xrandr:通过dmenu界面控制xrandr
回答: 这个错误信息"xrandr: Failed to get size of gamma for output default"通常是由于显卡驱动或分辨率设置引起的。一种解决方法是编辑grub文件来修改分辨率设置。您可以打开终端并输入命令"sudo gedit /etc/default/grub",然后搜索并编辑"GRUB_GFXMODE"的值,将其改为您想要的分辨率(例如"GRUB_GFXMODE=1024x768"),保存并关闭文件。接下来,运行命令"sudo update-grub"以更新grub配置。最后,重启系统以使更改生效。如果这个方法不起作用,您还可以尝试参考中提供的链接,其中介绍了如何使用xrandr来配置屏幕分辨率。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [xrandr: Failed to get size of gamma for output default](https://blog.csdn.net/zixiximm/article/details/53781421)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [ubuntu 虚拟机xrandr: Failed to get size of gamma for output default](https://blog.csdn.net/o_alpha/article/details/112901766)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文