Specifying DPI for NVIDIA Cards

本文详细介绍了如何使用NVIDIA显卡驱动程序中的DPI选项来调整显示器的每英寸点数,包括如何覆盖EDID设置以及在不同情况下选择合适的配置方法。

The NVIDIA DPI Option

In addition to the standard approach for specifying DPI using DisplaySize, the NVIDIA drivers add another approach that could be used instead of DisplaySize. The NVIDIA display drivers allow you to specify the DPI option in the Monitor section as shown below: (Note: look for the existing Monitor section)

Section "Monitor"
...
Option "DPI" "100 x 100"
...
EndSection

Note, however, that if you specify both DisplaySize and DPI, the DPI settings will take precedence. Also, if your display is using non-square pixels, choosing 100x100 DPI will cause Myth to display video using an incorrect aspect. If this is the case, use the DisplaySize setting and do not specify the DPI option (but see, also, Overriding EDID Settings). The DPI option is a non-standard option that must be supported by your video card drivers, so it is not likely to work with drivers other than NVIDIA drivers.

MythTV 0.21 and above do not require any specific value for DPI. Only the aspect ratio of the DisplaySize is important. And, since the DisplaySize is computed based on DPI, if DPI is specified, you should probably ensure you do not specify DPI (in the Monitor section) and that your X start scripts do not specify the -dpi command-line option, and instead specify DisplaySize (but see, also, Overriding EDID Settings).

Overriding EDID Settings

If you're using NVIDIA display drivers version 8756 or above and your monitor reports an EDID DPI value, you must tell the drivers to ignore this value as it takes precedence over all the above configuration options/arguments. Whereas before 8756, the NVIDIA drivers would use the -dpi command-line argument or the DPI or DisplaySize setting specified in the X configuration file to set or calculate the DPI--/even if/ your display reported a valid DPI in the EDID information--8756 changed handling of EDID so this is no longer the case. At the same time this change was made, NVIDIA deprecated the IgnoreEDID option (and its synonym "NoDDC")--so take them out of there--and instead use the appropriate options from the list below:

  • UseEDID (boolean): disables the use of all EDID information--equivalent to disabling all the following
  • UseEdidFreqs (boolean): determines whether the driver uses the HorizSync and VertRefresh ranges provided by the EDID
  • UseEdidDpi (boolean): determines whether the driver uses the DPI provided by the EDID
  • ModeValidation (string): if set to "NoEdidModes", will ignore the modeline information specified by the EDID (see the documentation for other settings)
  • DPI (string): specifies the DPI to use for the X and Y axes.

So, for the simplest case with NVIDIA display drivers version 8756 or above, you can specify the following two options in the "Monitor" section of your X configuration file.

  Option    "UseEdidDpi"  "FALSE"
Option "DPI" "100 x 100"

Note that specifying a DisplaySize will have no effect (either positive or negative) when these options are used. Also, you may specify the option "UseEdidDpi" (when using the NVIDIA display drivers) even if your monitor does not report an EDID DPI.

Fedora notes

It seems that recent versions of Fedora also try to lock the font DPI in the configuration. Comment out this line in your /etc/X11/Xresources file

! Fix the Xft dpi to 96; this prevents tiny fonts
! or HUGE fonts depending on the screen size.
! Xft.dpi: 96

Then set the DPI in the xorg.conf as normal. Reference

基于径向基函数神经网络RBFNN的自适应滑模控制学习(Matlab代码实现)内容概要:本文介绍了基于径向基函数神经网络(RBFNN)的自适应滑模控制方法,并提供了相应的Matlab代码实现。该方法结合了RBF神经网络的非线性逼近能力和滑模控制的强鲁棒性,用于解决复杂系统的控制问题,尤其适用于存在不确定性和外部干扰的动态系统。文中详细阐述了控制算法的设计思路、RBFNN的结构与权重更新机制、滑模面的构建以及自适应律的推导过程,并通过Matlab仿真验证了所提方法的有效性和稳定性。此外,文档还列举了大量相关的科研方向和技术应用,涵盖智能优化算法、机器学习、电力系统、路径规划等多个领域,展示了该技术的广泛应用前景。; 适合人群:具备一定自动控制理论基础和Matlab编程能力的研究生、科研人员及工程技术人员,特别是从事智能控制、非线性系统控制及相关领域的研究人员; 使用场景及目标:①学习和掌握RBF神经网络与滑模控制相结合的自适应控制策略设计方法;②应用于电机控制、机器人轨迹跟踪、电力电子系统等存在模型不确定性或外界扰动的实际控制系统中,提升控制精度与鲁棒性; 阅读建议:建议读者结合提供的Matlab代码进行仿真实践,深入理解算法实现细节,同时可参考文中提及的相关技术方向拓展研究思路,注重理论分析与仿真验证相结合。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值