You are not logged in.
Ive been having this issue for about a year now and I'm not sure how to fix it. I believe it's a bug, but I don't know how to go about reporting it properly (Im not sure who's responsible)
I have a thinkpad p15 gen 2 laptop with two external monitors. The laptop and both monitors are all capped at 1920x1080 resolutions. I'd like to run one of the external monitors in a vertical layout. Here is what xrandr claims is the current configuration for this monitor:
DP-1-4.2 connected 1080x1920+3840+0 left (normal left inverted right x axis y axis) 477mm x 268mmWhat the monitor is actually doing is this.
https://imgur.com/a/73zRcnX
Here's the log on the other end, showing that nvidia is not setting the ViewPortOut correctly. This was obtained from /var/log/Xorg.0.log
[131211.482] (II) intel(0): resizing framebuffer to 3840x1920
[131212.886] randr: falling back to unsynchronized pixmap sharing
[131212.890] (II) NVIDIA(G0): Setting mode "DP-1-4.1: nvidia-auto-select @1920x1080 +1920+840 {AllowGSYNC=Off, ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}"
[131249.084] (II) intel(0): resizing framebuffer to 4920x1920
[131249.121] randr: falling back to unsynchronized pixmap sharing
[131249.178] (II) NVIDIA(G0): Setting mode "DP-1-4.1: nvidia-auto-select @1920x1080 +1920+840 {AllowGSYNC=Off, ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}, DP-1-4.2: nvidia-auto-select @1080x1920 +3840+0 {AllowGSYNC=Off, ViewPortIn=1080x1920, ViewPortOut=1920x1080+0+0, Rotation=270}"
[131255.627] (--) NVIDIA(GPU-0): DELL P2214H (DFP-5.2): connected
[131255.627] (--) NVIDIA(GPU-0): DELL P2214H (DFP-5.2): Internal DisplayPort
[131255.627] (--) NVIDIA(GPU-0): DELL P2214H (DFP-5.2): 2670.0 MHz maximum pixel clock
[131255.627] (--) NVIDIA(GPU-0):
[131255.627] (--) NVIDIA(GPU-0): HP 27wm (DFP-5.1): connected
[131255.627] (--) NVIDIA(GPU-0): HP 27wm (DFP-5.1): Internal DisplayPort
[131255.627] (--) NVIDIA(GPU-0): HP 27wm (DFP-5.1): 2670.0 MHz maximum pixel clockThese are my GPU and CPU
00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
01:00.0 VGA compatible controller: NVIDIA Corporation GA107GLM [RTX A2000 Mobile] (rev a1)I run integrated graphics (intel) for most things, using the GPU only for CUDA programs.
Here is the software versions I'm running.
> pacman -Qs nvidia
local/cuda 12.5.0-1
NVIDIA's GPU programming toolkit
local/cuda-tools 12.5.0-1
NVIDIA's GPU programming toolkit (extra tools: nvvp, nsight)
local/lib32-libvdpau 1.5-2
Nvidia VDPAU library
local/lib32-nvidia-utils 550.78-2
NVIDIA drivers utilities (32-bit)
local/libvdpau 1.5-2
Nvidia VDPAU library
local/nvidia-open-dkms 550.78-7
NVIDIA open kernel modules
local/nvidia-utils 550.78-1
NVIDIA drivers utilities
local/opencl-nvidia 550.78-1
OpenCL implemention for NVIDIA
> pacman -Qs xf86
local/xf86-video-intel 1:2.99.917+923+gb74b67f0-2 (xorg-drivers)
X.org Intel i810/i830/i915/945G/G965+ video drivers
> pacman -Qs xrandr
local/autorandr 1.15-1
Auto-detect connected display hardware and load appropiate X11 setup using xrandr
local/lib32-libxrandr 1.5.4-1
X11 RandR extension library (32-bit)
local/libxrandr 1.5.4-1
X11 RandR extension library
local/xorg-xrandr 1.5.2-1 (xorg-apps xorg)
Primitive command line interface to RandR extension
> pacman -Qs i3
local/i3-wm 4.23-4 (i3)
Improved dynamic tiling window manager
> uname -a
Linux aether 6.9.3-hardened1-1-hardened #1 SMP PREEMPT_DYNAMIC Sat, 01 Jun 2024 00:25:24 +0000 x86_64 GNU/LinuxAttempting to apply a 1080x1920 custom mode in xrandr does not work.
> xrandr --newmode "1080x1920_50.00" 144.50 1080 1160 1272 1464 1920 1923 1933 1978 -hsync +vsync
> xrandr --addmode DP-1-4.2 1080x1920_50.00
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 80
Current serial number in output stream: 81Attempting to directly manipulate the ViewPortOut fails with errors from both xrandr and nvidia about the parameter not being found. I have a limited nvidia control panel that does not provide any controls over current display configurations.
At one point, I did try switching over to dedicated graphics for everything. This did fix the issue, as I gained display options in the control panel and could configure the desktop as I wanted. However, it also caused the PC to crash every time I put it to sleep, and after a few hours of use without even putting it to sleep there would be kernel panics because of nvidia. I'd like to keep my current integrated setup because of nvidia's instability, but I also need CUDA for work so I cant just switch over to nouveau.
Last edited by pilot51 (2024-09-06 16:40:32)
Offline
Start with getting rid of xf86-video-intel and rebooting. xf86-video-intel is not maintained for GPUs newer than 2012
Offline
Next up: do you run a compositor next to i3?
Your monitor is fine (look at the mouse cursor) - it's merely the rendering and either i3 or some compositor (picom) don't pick up the rotation.
Online
Start with getting rid of xf86-video-intel and rebooting. xf86-video-intel is not maintained for GPUs newer than 2012
no. way.
this fixed it. i cant believe it was really that simple, after all this time and multiple times trying to troubleshoot. thank you, appreciate it a lot
yeah turns out xorg-server has the modesetting driver now that handles 2D acceleration, and 3D is done by mesa, both of which i already had.
Offline
\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Ftr, running an unmodified xf86-video-intel against mesa (not amber) will have gotten you software rendering.
Online