Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-19-2022, 01:25 PM
|
#1
|
Member
Registered: May 2009
Distribution: Manjaro
Posts: 156
Rep:
|
How do you force the amdgpu driver to allow 144 Hz on HDMI cable?
This is a separate question related to a problem I'm facing with my monitor when using DisplayPort cable. For those interested in the full discussion on that you can find it here:
https://www.bleepingcomputer.com/for...ng-displayport
The gist of the situation and my question now: My monitor won't work properly when connected to a DisplayPort cable. HDMI works without any issue but has a major limitation that's been forcing me back to DP: It only runs at 120 Hz instead of the 144 Hz supported by the monitor. When I looked at this I remember reading it's a hardware limitation, due to my model using an older HDMI version which doesn't allow the bandwidth needed to do 144 Hz @ 1080p resolution. My monitor is a Viewsonic VX2458-C-MHD, here's its official page and the product page of the store I ordered it from:
https://www.viewsonic.com/us/vx2458-...m-monitor.html
https://www.emag.ro/monitor-gaming-l...d/pd/DG678QBBM
I'm now questioning this statement after someone who has the same monitor told me you can in fact do 144 Hz on HDMI not just DP. I was told the 120 Hz cap would be a mere limitation in the AMD driver instead. This would help me greatly as I no longer need to keep trying to use DisplayPort and risk damaging my hardware if that's the case.
But how do I lift this limit? Specifically how do I do it on Linux? I haven't used Windows for a decade and don't plan on touching it again, my OS is Manjaro. The KDE display settings offer me 144 Hz on the problematic DisplayPort but only 120 Hz on HDMI. Is there a command I can use on either the X11 or Wayland session to force the system to let me try the full refresh rate and see if it works? I know xrandr lets you do weird things on X but no idea if I can use it to force the full resolution. Could someone please post the steps required to try this? Thank you.
Last edited by MirceaKitsune; 05-19-2022 at 01:26 PM.
|
|
|
05-19-2022, 03:25 PM
|
#2
|
Member
Registered: May 2009
Distribution: Manjaro
Posts: 156
Original Poster
Rep:
|
An update: I tried fixing it with xrandr following an Arch guide but sadly no success.
https://wiki.archlinux.org/title/Xra...ed_resolutions
cvt 1920 1080 144
xrandr --newmode "1920x1080_144.00" 452.50 1920 2088 2296 2672 1080 1083 1088 1177 -hsync +vsync
xrandr --addmode HDMI-A-0 1920x1080_144.00
xrandr --output HDMI-A-0 --mode 1920x1080_144.00
Following the final command the monitor fell in an endless loop of going to sleep, waking up, saying there's no signal, going to sleep again. The 144 Hz option appeared in the system settings as well but had the same result. What do you think is causing that?
https://www.viewsonicglobal.com/publ...mhd_UG_ENG.pdf
As this guide shows my monitor is in fact meant to support 144 Hz even on HDMI. My HDMI cable is 2.0 compatible so it shouldn't be a version limitation either.
|
|
|
05-19-2022, 05:39 PM
|
#3
|
Member
Registered: May 2009
Distribution: Manjaro
Posts: 156
Original Poster
Rep:
|
Solution found and it is working! Cheers to MichaelDeets on Reddit for his help. The issue with the xrandr command is that cvt and gtf produce excessive clocks by default. In their place I used this calculator and came up with a safe minimum that actually works:
Code:
xrandr --newmode "1920x1080_144" 333.216 1920 1928 1960 2000 1080 1143 1151 1157 +HSync +VSync
The messy workaround should be simple: Just add this and the other xrandr commands to ~/.profile and the whole thing will be automatically applied on login. But why is this even needed, why can't the system automatically detect the proper settings for 144 Hz as it does for 120 Hz and below... is this a bug worth reporting with the Linux kernel or AMD developers?
Another important question: Eventually there may come that faithful day when KDE users can use the Plasma Wayland session bug free. What's the equivalent to xrandr for Wayland? What commands do I use in its case to set and use a custom mode in the same way?
|
|
|
05-20-2022, 02:34 AM
|
#4
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,565
|
Do you believe manual mode calculators should be able to better calculate than X itself. With many wacko displays over more than 30 years I've never needed to resort to manual modeline calculation. I give X the data it needs, then let it perform its own automagic calculating. That data, which goes in /etc/X11/xorg.conf.d/*.conf or /etc/X11/xorg.conf, is: - HorizSync
- VertRefresh
- PreferredMode
Did you ever try the method? I haven't had the opportunity for your situation, as I've never had access to any display supporting 144Hz, nor a GPU supporting more than 60Hz connected to any display supporting more than 60Hz. My eyes aren't good enough to pursue more than 2k.
|
|
|
05-20-2022, 07:56 AM
|
#5
|
Member
Registered: May 2009
Distribution: Manjaro
Posts: 156
Original Poster
Rep:
|
Quote:
Originally Posted by mrmazda
Do you believe manual mode calculators should be able to better calculate than X itself. With many wacko displays over more than 30 years I've never needed to resort to manual modeline calculation. I give X the data it needs, then let it perform its own automagic calculating. That data, which goes in /etc/X11/xorg.conf.d/*.conf or /etc/X11/xorg.conf, is: - HorizSync
- VertRefresh
- PreferredMode
Did you ever try the method? I haven't had the opportunity for your situation, as I've never had access to any display supporting 144Hz, nor a GPU supporting more than 60Hz connected to any display supporting more than 60Hz. My eyes aren't good enough to pursue more than 2k.
|
Can you better explain how the rule in xorg.conf.d is supposed to look please? I'd appreciate the full file as parameters there are often times fiddly. This definitely sounds better if possible!
|
|
|
05-20-2022, 06:03 PM
|
#6
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,565
|
It should be pretty simple. Make sure display configuration settings anywhere else are purged, particularly those your DE may save in your homedir anywhere, then create /etc/X11/xorg.conf.d/50-monitor.conf containing:
Code:
Section "Monitor"
Identifier "DefaultMonitor"
Identifier "DefaultMonitor"
VendorName "Viewsonic"
ModelName "VX2458-C-MHD"
HorizSync 15-180
VertRefresh 143-145
Option "PreferredMode" "1920x1080"
EndSection
man xorg.conf
Do you have the latest motherboard BIOS installed? Is there a firmware upgrade available for the Viewsonic? Have you complained to Viewsonic?
Have you tried using the modesetting DIX display driver instead of amdgpu DDX display driver?
If Taoki is you on that bleepingcomputer page, this smells like an interplay issue between display and PC and/or GPU BIOS. Some motherboard BIOS just don't play nice with some display firmware. I have one NEC display with DVI, HDMI, DP & VGA inputs that simply doesn't like to light up reliably at POST with some motherboards' IGPs using the DP output connection, some using the HDMI, and some using either DP or HDMI, but never a problem with DVI or VGA. I have an Acer that sometimes works fine the first time I log into X, then on logout return to DM greeter it claims unsupported mode, with only some OS/GPU combinations. Getting X output back sometimes requires a reboot, even after Ctrl-Alt-Fn produces a perfectly working vtty. IOW, modern displays just don't get enough testing before being unleashed for sale to the public. If yours is under warranty, I'd get seriously interactive with Viewsonic, and whoever manufactured your AMD GPU card.
|
|
|
05-20-2022, 06:11 PM
|
#7
|
Member
Registered: May 2009
Distribution: Manjaro
Posts: 156
Original Poster
Rep:
|
Quote:
Originally Posted by mrmazda
It should be pretty simple. Make sure display configuration settings anywhere else are purged, particularly those your DE may save in your homedir anywhere, then create /etc/X11/xorg.conf.d/50-monitor.conf containing:
Code:
Section "Monitor"
Identifier "DefaultMonitor"
Identifier "DefaultMonitor"
VendorName "Viewsonic"
ModelName "VX2458-C-MHD"
HorizSync 15-180
VertRefresh 143-145
Option "PreferredMode" "1920x1080"
EndSection
man xorg.conf
Do you have the latest motherboard BIOS installed? Is there a firmware upgrade available for the Viewsonic? Have you complained to Viewsonic?
Have you tried using the modesetting DIX display driver instead of amdgpu DDX display driver?
If Taoki is you on that bleepingcomputer page, this smells like an interplay issue between display and PC and/or GPU BIOS. Some motherboard BIOS just don't play nice with some display firmware. I have one NEC display with DVI, HDMI, DP & VGA inputs that simply doesn't like to light up reliably at POST with some motherboards' IGPs using the DP output connection, some using the HDMI, and some using either DP or HDMI, but never a problem with DVI or VGA. I have an Acer that sometimes works fine the first time I log into X, then on logout return to DM greeter it claims unsupported mode, with only some OS/GPU combinations. Getting X output back sometimes requires a reboot, even after Ctrl-Alt-Fn produces a perfectly working vtty. IOW, modern displays just don't get enough testing before being unleashed for sale to the public. If yours is under warranty, I'd get seriously interactive with Viewsonic, and whoever manufactured your AMD GPU card.
|
Thanks, I shall give that a try! Could be: Mine doesn't play nice with DisplayPort and only HDMI is stable, but HDMI comes with this pesky 120 Hz limit by default.
I'm waiting for the next BIOS to come out of beta already, just upgraded it two weeks ago when they decided to launch a new wave for older boards. I looked and those monitors can't be firmware upgraded, no USB connection and it would probably require Windows too which I no longer have or want to touch. Someone taught me how to use the modesetting driver and override the AMD one, I gave that a try and could confirm it works but it still doesn't make 144 Hz on HDMI show up OOTB.
|
|
|
05-20-2022, 06:25 PM
|
#8
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,565
|
With amdgpu DDX, using xrandr --output HDMI-A-0 --mode 1920x1080 --rate 144 or just xrandr --output HDMI-A-0 --rate 144 gets ignored, or turns the screen black?
|
|
|
05-20-2022, 06:59 PM
|
#9
|
Member
Registered: May 2009
Distribution: Manjaro
Posts: 156
Original Poster
Rep:
|
Quote:
Originally Posted by mrmazda
With amdgpu DDX, using xrandr --output HDMI-A-0 --mode 1920x1080 --rate 144 or just xrandr --output HDMI-A-0 --rate 144 gets ignored, or turns the screen black?
|
I tried that as well yesterday. Unless I use "xrandr --newmode" then switch to that mode, using just "xrandr --output HDMI-A-0 --rate 144" does nothing: I believe the screen went black for a second then came back on but at 60 Hz.
|
|
|
All times are GMT -5. The time now is 08:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|