请教个XFCE调分辨率的问题
debian吧
全部回复
仅看楼主
level 13
lukygt 楼主
新从gnome换成了xfce
debian12,暂时没打算升级
现在分辨率不知道怎么改,一起动就是2880*1800,分辨率太高,字太小了看不清,通过xfce自带的“显示”设置,点应用确认后,桌面会黑屏,然后过了一会再恢复出来显示就是2880*1800了。后来尝试用命令行改,直接黑屏了。。恢复不了了,怀疑是gnome有什么遗留的配置,不太懂,请专家指点一二。
刚更换的时候,音量调节也有问题,静音后,每次锁屏再进入,就会自动打开,后来经吧友指导,是两个控制器都装了可能互相冲突,删掉一个就可以了。
2025年09月30日 05点09分 1
level 9
看看/etc/X11/xorg.conf,如果有超高分辨率就加#注释掉,最高分辨率留最常用的。xfce也有调整分辨率的图形化工具,也可以保存配置。
2025年09月30日 09点09分 2
[捂脸]系统里面没有这个文件。。我没搞明白现在图形化配置的参数配哪去了
2025年09月30日 09点09分
level 13
lukygt 楼主
log里面是这样的,我执行xrand改分辨率的时候提示的
[ 2217.430] (II) modeset(0): Allocate new frame buffer 1920x1200 stride
[ 2217.436] (EE) modeset(0): failed to set mode: No such file or directory
[ 2217.437] (II) modeset(0): Allocate new frame buffer 2880x1800 stride
[ 2218.322] (II) modeset(0): EDID vendor "AUO", prod id 50065
[ 2218.322] (II) modeset(0): Printing DDC gathered Modelines:
[ 2218.322] (II) modeset(0): Modeline "2880x1800"x0.0 515.50 2880 2928 2960 3040 1800 1803 1808 1884 -hsync -vsync (169.6 kHz eP)
[ 2218.355] (II) modeset(0): EDID vendor "AUO", prod id 50065
[ 2218.355] (II) modeset(0): Printing DDC gathered Modelines:
[ 2218.355] (II) modeset(0): Modeline "2880x1800"x0.0 515.50 2880 2928 2960 3040 1800 1803 1808 1884 -hsync -vsync (169.6 kHz eP)
2025年09月30日 15点09分 3
level 9
执行Xorg -configure命令生成xorg.conf.new配置文件,复制为/etc/X11/xorg.conf文件
mv xorg.conf.new /etc/X11/xorg.conf
再编辑,把不想要的超高分辨率全部注释掉。没有此文件X不读取,有了以这个为准。所以这个配置不能出错。
2025年10月01日 10点10分 4
注意:sudo Xorg -configure
2025年10月01日 10点10分
@长发綰青丝 谢谢您,按您的办法,放进去配置文件后可以直接在图形界面改了。我是init 3后执行命令生成的文件。不过又出来新问题了,屏幕会经常闪一下,我研究了下,只有chrome浏览器的时候,会经常闪一下,而且右键也有问题,只有chrome,edge也是,火狐,和其他比如wps等都没事。麻烦您看看楼下我拍的照
2025年10月01日 14点10分
上面的问题没有了,我把chrome的硬件加速关了,就正常了,楼下哪个照片的问题正常了,几乎正常了,偶尔还会闪一下,您能不能看看我楼下贴的配置文件,帮我看看还有什么问题
2025年10月01日 14点10分
@lukygt chrome的硬件加速在我的飞利浦19寸液晶上能打开。我没有特别关注过刷新率的问题,但是crt显示器以前刷新率不够,在windows95下有屏幕偏移的毛病。刷新率最好保证在硬件允许范围内,查了说明书再配置,不然会搞坏显示器。
2025年10月01日 19点10分
level 13
lukygt 楼主
可以改了,按楼上的办法生成文件放进去就可以改了,不过又出新问题了。。。
2025年10月01日 14点10分 5
这种显示错误一般是刷新率的问题,除非显卡坏掉。
2025年10月01日 19点10分
level 13
lukygt 楼主
我没删配置,就是放了配置就直接可以改了,而且配置中没找到分辨率的地方,一会把生成的文件贴出来
2025年10月01日 14点10分 6
level 13
lukygt 楼主
这是刚才生成的文件,我没找到哪个是分辨率的可以删的。。。远洋复制进去,界面就可以改了,只剩chrome会闪啊闪
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "built-ins"
EndSection
Section "Module"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "AccelMethod" # <str>
#Option "Backlight" # <str>
#Option "CustomEDID" # <str>
#Option "DRI" # <str>
#Option "Present" # [<bool>]
#Option "ColorKey" # <i>
#Option "VideoKey" # <i>
#Option "Tiling" # [<bool>]
#Option "LinearFramebuffer" # [<bool>]
#Option "HWRotation" # [<bool>]
#Option "VSync" # [<bool>]
#Option "PageFlip" # [<bool>]
#Option "SwapbuffersWait" # [<bool>]
#Option "TripleBuffer" # [<bool>]
#Option "XvPreferOverlay" # [<bool>]
#Option "HotPlug" # [<bool>]
#Option "ReprobeOutputs" # [<bool>]
#Option "XvMC" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "VirtualHeads" # <i>
#Option "TearFree" # [<bool>]
#Option "PerCrtcPixmaps" # [<bool>]
#Option "FallbackDebug" # [<bool>]
#Option "DebugFlushBatches" # [<bool>]
#Option "DebugFlushCaches" # [<bool>]
#Option "DebugWait" # [<bool>]
#Option "BufferCache" # [<bool>]
Identifier "Card0"
Driver "intel"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
2025年10月01日 14点10分 7
level 13
lukygt 楼主
还有个问题,我之前crt看的1920这个分辨率下,支持的刷新率只有60的,但是我现在的是90的刷新率。。下la菜单里面有59.88,但是不能选,选了应用后,还是会自动改成90
2025年10月01日 14点10分 8
显示器的刷新率是强制的,如果用了硬件不支持的刷新率,很容易搞坏显示器。把数值限定在正常范围就好,只要屏幕没有偏移就行。
2025年10月01日 19点10分
level 9
plaintext 复制
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0 # 单屏幕配置,多屏幕需增加 Screen1 等
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "libinput" # 现代系统推荐用 libinput,旧系统可选 evdev
Option "Protocol" "auto"
Option "Device" "/dev/input/mice" # 鼠标设备路径,可通过 ls /dev/input/ 查看
Option "ZAxisMapping" "4 5 6 7" # 滚轮支持
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "libinput"
Option "Device" "/dev/input/eventX" # 键盘设备路径,X 需替换为实际数字(如 event3)
Option "XkbLayout" "us" # 键盘布局,中文用 "cn",日文用 "jp" 等
Option "XkbModel" "pc105" # 通用键盘型号,笔记本可按需调整
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "你的显示器型号" # 如 "Dell U2720Q",可通过 xrandr 查看
HorizSync 30.0 - 140.0 # 显示器水平刷新率范围(需参考显示器手册)
VertRefresh 50.0 - 60.0 # 显示器垂直刷新率范围(通常 60Hz 填 50-60)
Option "DPMS" # 启用电源管理(节能)
EndSection
Section "Device"
Identifier "Device0"
VendorName "显卡厂商" # 如 NVIDIA/AMD/Intel
Driver "驱动名" # NVIDIA 用 "nvidia",AMD 用 "amdgpu",Intel 用 "i915"
BusID "PCI:1:0:0" # 显卡 PCI 地址,可通过
lsp
ci | grep VGA 查看
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24 # 颜色深度(24=真彩色,推荐)
SubSection "Display"
Depth 24
Modes "1920x1080_60.00" # 显示器分辨率+刷新率,可通过 xrandr 查看支持的模式
EndSubSection
EndSection
这是豆包生成的一个模板。可以在mode后面加多个分辨率,只加对你有用的,或者常用的。
plaintext 复制
SubSection "Display"
Depth 24
# 优先使用 2560x1440@60Hz,其次 1920x1080@60Hz,最后 1600x900@60Hz
Modes "2560x1440_60.00" "1920x1080_60.00" "1600x900_60.00"
EndSubSection
2025年10月01日 18点10分 9
[汗]大神再救救我,手欠了。你知道xfce的display setting存在哪不。就是我跟网上学,加了些配置项,然后那个刷新率能改了,但是还不对,我改了一个搞不回去了。这就导致一个新情况,这个新生成的conf文件,我就算改回去,回到一开始的原样,也不行了。。弄的我现在吧xorgconf放进去,就黑屏,删了就是原来高分辨率的情况。[汗]有没有办法完全删了一切重来啊
2025年10月02日 15点10分
@lukygt /usr/bin/xfce4-display-sittings 删掉xorg.conf,然后用Xorg -configure 重新生成一个。
2025年10月02日 15点10分
@长发綰青丝 这样跟手动吧那个文件删掉结果不同吗?我已经手工删了
2025年10月02日 15点10分
@长发綰青丝 不对不对,您说这个咋删?命令行里面?能执行?这个事个图形的啊,root执行不了,普通没权限
2025年10月02日 15点10分
level 11
Linux的chrome设置里有硬件加速可选项以关闭吗,我没用过不知道。或者在启动参数里加个--disable-gpu之类的
2025年10月02日 09点10分 10
wayland全卸载干净了没也让人在意
2025年10月02日 09点10分
有,就在设置,系统里面,直接有开关
2025年10月02日 11点10分
@草人风 [小乖]您这个删?是啥,我手欠给搞得彻底不能用了,还有啥子办法么,现在是放配置文件就报错进不了,提示mode错误,不放就是高分辨率的。。我是改了配置后,有界面赔了下,肯定是陪到错了。。现在
2025年10月02日 15点10分
@lukygt 文字有点混乱。mode错误是什么没看懂,如果是桌面之内的错误,ctrl+alt+F3可以进去tty3进行命令操作修复,误删了什么再装回去之类的,比如要恢复X11就apt装回xorg;如果是系统启动出问题,那可能是grub问题,可以用启动U盘rescue模式来修复。
2025年10月03日 12点10分
level 13
lukygt 楼主
这个是最新的,其实就是还是以前那个,复制到目录下就是黑的,也不是全黑,登陆页面能显示出来,输入账号密码后,确认就直接黑屏了。
这个文件和之前的应该没啥区别,刚才干了几件事,改了这个文件,加了个什么什么关闭自动嗯刷新率的,然后就这样了,把那行配置删了也是,之前看log,包的错是1920*1200_60找到。。这个是我之前配置文件加上的,现在内容没有了
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "built-ins"
EndSection
Section "Module"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "AccelMethod" # <str>
#Option "Backlight" # <str>
#Option "CustomEDID" # <str>
#Option "DRI" # <str>
#Option "Present" # [<bool>]
#Option "ColorKey" # <i>
#Option "VideoKey" # <i>
#Option "Tiling" # [<bool>]
#Option "LinearFramebuffer" # [<bool>]
#Option "HWRotation" # [<bool>]
#Option "VSync" # [<bool>]
#Option "PageFlip" # [<bool>]
#Option "SwapbuffersWait" # [<bool>]
#Option "TripleBuffer" # [<bool>]
#Option "XvPreferOverlay" # [<bool>]
#Option "HotPlug" # [<bool>]
#Option "ReprobeOutputs" # [<bool>]
#Option "XvMC" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "VirtualHeads" # <i>
#Option "TearFree" # [<bool>]
#Option "PerCrtcPixmaps" # [<bool>]
#Option "FallbackDebug" # [<bool>]
#Option "DebugFlushBatches" # [<bool>]
#Option "DebugFlushCaches" # [<bool>]
#Option "DebugWait" # [<bool>]
#Option "BufferCache" # [<bool>]
Identifier "Card0"
Driver "intel"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
2025年10月02日 15点10分 11
2025年10月02日 15点10分
@lukygt intel显卡?
2025年10月02日 15点10分
@长发綰青丝 是啊,i5的笔记本,cpu的核显
2025年10月02日 15点10分
1