Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
modesetting driver & refresh rate issue with xfce
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
sdauth
Guru
Guru


Joined: 19 Sep 2018
Posts: 575
Location: Ásgarðr

PostPosted: Mon May 06, 2024 4:38 pm    Post subject: modesetting driver & refresh rate issue with xfce Reply with quote

Hello,

I'm having an issue with modesetting driver with one of my laptop.
From time to time, the refresh rate of the display drops so badly that the only way to recover is to reboot it (kill & start X is not enough) or else the system is totally unusable (minimizing / maximizing windows can take more than 2 seconds..)
It seems to be triggered when opening some video files in fullscreen or when playing games most of the time.
In the xfce display menu, the "refresh rate" dropdown menu shows the following :
Code:
60,02 Hz
119,97 Hz
119,94 Hz
59,81 Hz
59,91 Hz
50,05 Hz


Now if I instead use xf86-video-intel (instead of modesetting) with the following conf :

Code:
Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"
  Option      "AccelMethod"     "sna"
  Option      "DRI"             "crocus"
  Option      "Tearfree"        "true"
EndSection


then the xfce display menu only shows the following refresh rate :

Code:
60,02 Hz
50,05 Hz


and I can't reproduce the issue.. All works fine.

Unfortunately I can't remember when the modesetting issue happened the first time, a few months ago I would say.
The modesetting driver worked just fine before that so I don't know what's going on.
Xorg.log doesn't show any error or suspicious messages when the refresh rate drops, same for dmesg... I have not a single clue except the funny refresh rate values (119 Hz..) with modesetting driver.
Any idea ?


Last edited by sdauth on Tue May 07, 2024 6:02 am; edited 2 times in total
Back to top
View user's profile Send private message
sdauth
Guru
Guru


Joined: 19 Sep 2018
Posts: 575
Location: Ásgarðr

PostPosted: Mon May 06, 2024 6:46 pm    Post subject: Reply with quote

Here is the xrandr output (modesetting driver) :

Code:
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 8192 x 8192
LVDS-1 connected primary 1280x800+0+0 (normal left inverted right x axis y axis) 261mm x 163mm
   1280x800      60.02*+  59.99    59.97    59.81    59.91    50.05 
   1280x720      60.00    59.99    59.86    59.74 
   1024x768      60.04    60.00 
   960x720       60.00 
   928x696       60.05 
   896x672       60.01 
   1024x576      59.95    59.96    59.90    59.82 
   960x600       59.93    60.00 
   960x540       59.96    59.99    59.63    59.82 
   800x600       60.00    60.32    56.25 
   840x525       60.01    59.88 
   864x486       59.92    59.57 
   700x525       59.98 
   800x450       59.95    59.82 
   640x512       60.02 
   700x450       59.96    59.88 
   640x480       60.00    59.94 
   720x405       59.51    58.99 
   684x384       59.88    59.85 
   640x400       59.88    59.98 
   640x360       59.86    59.83    59.84    59.32 
   512x384       60.00 
   512x288       60.00    59.92 
   480x270       59.63    59.82 
   400x300       60.32    56.34 
   432x243       59.92    59.57 
   320x240       60.05 
   360x202       59.51    59.13 
   320x180       59.84    59.32 
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)


I don't know where XFCE finds those refresh rate :
Code:
119,97 Hz
119,94 Hz
Back to top
View user's profile Send private message
sdauth
Guru
Guru


Joined: 19 Sep 2018
Posts: 575
Location: Ásgarðr

PostPosted: Tue May 07, 2024 5:54 am    Post subject: Reply with quote

It might be a bug with xfce4-display-settings : https://gitlab.xfce.org/xfce/xfce4-settings/-/issues/529

I'm not sure at all (don't know how / why) but if I use openbox instead of xfce, I'm unable to reproduce the issue with the modesetting driver.
As shown above, xrandr reports correct refresh rates but xfce4-display-settings does not.

EDIT :
Maybe fixed with : https://gitlab.xfce.org/xfce/xfce4-settings/-/commit/bcbbb351cf7c8b32b92d1a8c9fd7d8d85aa69d1b
Will update this thread once 4.18.5 is out and report if it fixed the issue or not. Meanwhile I'm using x11-drivers/xf86-video-intel..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum