Difference between revisions of "Template:DebianBusterDesktop-WithHDMI/zh"
From FriendlyELEC WiKi
(updated by API) |
(updated by API) |
||
Line 1: | Line 1: | ||
+ | ===设置WiFi无线链接=== | ||
+ | ====图形界面操作==== | ||
+ | 点击右上角的网络图标,选择你要连接的WiFi热点,按界面提示操作即可。 | ||
+ | ====命令行操作==== | ||
+ | 请参考 [[Use NetworkManager to configure network settings/zh]] | ||
+ | ===测试OpenGL ES性能=== | ||
+ | 在系统菜单 System Tools 中点击 Terminator 打开命令行终端,输入以下命令即可测试: | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | glmark2-es2 | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | ===设置HDMI/DP屏幕分辨率=== | ||
+ | 进入系统菜单 Perferences -> Monitor Settings界面进行设置即可。<br /> | ||
+ | 推荐分辨率:1920x1080@60Hz | ||
+ | |||
+ | ===调节HDMI边界=== | ||
+ | 打开命令行终端,输入命令进行操作,有几个注意事项:<br /> | ||
+ | 1) 需要登录桌面才能操作,如果Desktop停留在Login是无法设置的;<br /> | ||
+ | 2) 如果你是在 ssh 登录的终端,请使用与桌面登录相同的用户名,默认是 pi,不能使用root用户,同时,你需要赋值 DISPLAY 变量:<br /> | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | export DISPLAY=:0.0 | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | ====查询显示器支持哪些分辨率==== | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | xrandr -q | ||
+ | </syntaxhighlight> | ||
+ | 输出示例: | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192 | ||
+ | eDP-1 disconnected primary (normal left inverted right x axis y axis) | ||
+ | HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm | ||
+ | 1920x1080 60.00*+ 50.00 | ||
+ | 1280x720 60.00 50.00 | ||
+ | 720x576 50.00 | ||
+ | 720x480 59.94 | ||
+ | </syntaxhighlight> | ||
+ | ====设置分辨率==== | ||
+ | 例如设置为 1920X1080@60Hz: | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | xrandr --output HDMI-1 --mode 1920x1080 --refresh 60 | ||
+ | </syntaxhighlight> | ||
+ | ====设节HDMI输出边界==== | ||
+ | For example, the transformation scaling horizontal coordinates by 0.8, vertical coordinates by 1.04 and moving the screen by 35 pixels right and 19 pixels down: | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | xrandr --output HDMI-1 --transform 0.80,0,-35,0,1.04,-19,0,0,1 | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | ====开机自动调整==== | ||
+ | 编辑~/.config/autostart/lxrandr-autostart.desktop,将完整的xrandr命令写入到Exec=开头的键中,如下所示: | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | [Desktop Entry] | ||
+ | Type=Application | ||
+ | Name=LXRandR autostart | ||
+ | Comment=Start xrandr with settings done in LXRandR | ||
+ | Exec=sh -c 'xrandr --output HDMI-1 --mode 1920x1080 --refresh 50 --transform 1.04,0,-35,0,1.05,-30,0,0,1' | ||
+ | OnlyShowIn=LXDE | ||
+ | </syntaxhighlight> |
Revision as of 06:37, 7 September 2022
Contents
1 设置WiFi无线链接
1.1 图形界面操作
点击右上角的网络图标,选择你要连接的WiFi热点,按界面提示操作即可。
1.2 命令行操作
请参考 Use NetworkManager to configure network settings/zh
2 测试OpenGL ES性能
在系统菜单 System Tools 中点击 Terminator 打开命令行终端,输入以下命令即可测试:
glmark2-es2
3 设置HDMI/DP屏幕分辨率
进入系统菜单 Perferences -> Monitor Settings界面进行设置即可。
推荐分辨率:1920x1080@60Hz
4 调节HDMI边界
打开命令行终端,输入命令进行操作,有几个注意事项:
1) 需要登录桌面才能操作,如果Desktop停留在Login是无法设置的;
2) 如果你是在 ssh 登录的终端,请使用与桌面登录相同的用户名,默认是 pi,不能使用root用户,同时,你需要赋值 DISPLAY 变量:
export DISPLAY=:0.0
4.1 查询显示器支持哪些分辨率
xrandr -q
输出示例:
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192 eDP-1 disconnected primary (normal left inverted right x axis y axis) HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1920x1080 60.00*+ 50.00 1280x720 60.00 50.00 720x576 50.00 720x480 59.94
4.2 设置分辨率
例如设置为 1920X1080@60Hz:
xrandr --output HDMI-1 --mode 1920x1080 --refresh 60
4.3 设节HDMI输出边界
For example, the transformation scaling horizontal coordinates by 0.8, vertical coordinates by 1.04 and moving the screen by 35 pixels right and 19 pixels down:
xrandr --output HDMI-1 --transform 0.80,0,-35,0,1.04,-19,0,0,1
4.4 开机自动调整
编辑~/.config/autostart/lxrandr-autostart.desktop,将完整的xrandr命令写入到Exec=开头的键中,如下所示:
[Desktop Entry] Type=Application Name=LXRandR autostart Comment=Start xrandr with settings done in LXRandR Exec=sh -c 'xrandr --output HDMI-1 --mode 1920x1080 --refresh 50 --transform 1.04,0,-35,0,1.05,-30,0,0,1' OnlyShowIn=LXDE