enable 4k resolution external monitor

Good day everyone, I have some issues with manjaro using an external monitor.

when I plug-in the monitor via HDMI port, the default resolution of the monitor is 1920x1080 using intel or Nvidia graphic card.

But when I use a laptop with windows and plug in the monitor, the default resolution is 4k.

I couldn't enable HiDPI in KDE, and actually I'm using Optimus manager with bumblebee driver disabled.

Can everybody help me?

Thanks in advance

But is it possible to use higher resolution?
Is it the annoyance to change resolution or you can't get proper setting?

I cant get te proper set

and yes the external monitor have a 4k resolution by default

Provide info (well formatted), please:

inxi -SMGxxaz 
pacman -Qs optimus
mhwd -li
xrandr 
for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done
for Xconf in $(ls /etc/X11/xorg.conf.d/*.conf); do echo -e "\n" $Xconf ; cat $Xconf ; done
for Xconf in $(ls /etc/modules-load.d/*.conf); do echo -e "\n" $Xconf ; cat $Xconf ; done
for Xconf in $(ls /etc/modprobe.d/*.conf); do echo -e "\n" $Xconf ; cat $Xconf ; done
journalctl -b -p3 --no-pager --no-hostname
grep -A1 -B1 -i "modes \|modeline\|output\|Time" Xorg.0.log

Also, describe the cable connections, which GPU output to which monitor.

Command Output:

System:
  Host: andres-pc Kernel: 5.3.8-3-MANJARO x86_64 bits: 64 compiler: gcc 
  v: 9.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.3-x86_64 
  root=UUID=ae0cade8-a43a-4c80-b1ee-f74e298cc2f4 rw quiet apparmor=1 
  security=apparmor resume=UUID=f9737236-0c16-40b9-bf97-11715684b954 
  udev.log_priority=3 
  Desktop: KDE Plasma 5.17.2 tk: Qt 5.13.1 wm: kwin_x11 dm: SDDM 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Micro-Star product: GF75 Thin 9RCX v: REV:1.0 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: Micro-Star model: MS-17F2 v: REV:1.0 serial: <filter> 
  UEFI: American Megatrends v: E17F2IMS.306 date: 09/19/2019 
Graphics:
  Device-1: Intel UHD Graphics 630 vendor: Micro-Star MSI driver: i915 
  v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b 
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Max-Q] vendor: Micro-Star MSI 
  driver: nvidia v: 430.40 bus ID: 01:00.0 chip ID: 10de:1c8f 
  Display: x11 server: X.Org 1.20.5 driver: intel unloaded: nvidia 
  compositor: kwin_x11 resolution: 1920x1080~60Hz, 1920x1080~60Hz 
  OpenGL: renderer: N/A v: N/A direct render: N/A 
local/linux316-bbswitch 0.8-55 (linux316-extramodules)
    kernel module allowing to switch dedicated graphics card on Optimus laptops
local/optimus-manager 1.2.2-1
    Management utility to handle GPU switching for Optimus laptops
local/optimus-manager-qt 1.4.0-1
    A Qt interface for Optimus Manager that allows to configure and switch GPUs
    on Optimus laptops using the tray menu
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
    video-nvidia-430xx            2019.10.25               false            PCI


Warning: No installed USB configs!
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 380mm x 220mm
   1920x1080     60.05*+  48.02    59.93  
   1680x1050     59.88  
   1400x1050     59.98  
   1600x900      60.00    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1368x768      60.00    59.88    59.85  
   1280x800      59.81    59.91  
   1280x720      59.86    60.00    59.74  
   1024x768      60.00  
   1024x576      60.00    59.90    59.82  
   960x540       60.00    59.63    59.82  
   800x600       60.32    56.25  
   864x486       60.00    59.92    59.57  
   640x480       59.94  
   720x405       59.51    60.00    58.99  
   640x360       59.84    59.32    60.00  
HDMI1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 610mm x 350mm
   1920x1080     60.00*   50.00    59.94    30.00    24.00    29.97    23.98  
   1680x1050     59.88  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
eDP-1: connected
HDMI-A-1: connected

 /etc/X11/xorg.conf.d/00-keyboard.conf
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "latam"
        Option "XkbModel" "pc105"
        Option "XkbVariant" "nodeadkeys"
EndSection

 /etc/X11/xorg.conf.d/10-optimus-manager.conf
Section "ServerLayout"
        Identifier "layout"
        Screen 0 "intel"
        Inactive "nvidia"
        Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
        Identifier "intel"
        Driver "intel"
        BusID "PCI:0:2:0"
        Option "DRI" "3"
EndSection

Section "Screen"
        Identifier "intel"
        Device "intel"
EndSection

Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
        BusID "PCI:1:0:0"
        Option "Coolbits" "28"
EndSection

Section "Screen"
        Identifier "nvidia"
        Device "nvidia"
EndSection


 /etc/modules-load.d/mhwd-gpu.conf
##
## Generated by mhwd - Manjaro Hardware Detection
##
 
nvidia
nvidia-drm

 /etc/modules-load.d/modules.conf
# List of modules to load at boot

 /etc/modprobe.d/mhwd-gpu.conf
##
## Generated by mhwd - Manjaro Hardware Detection
##
 
blacklist nouveau
blacklist ttm
blacklist drm_kms_helper
blacklist drm
-- Logs begin at Sun 2019-11-03 13:15:13 -05, end at Thu 2019-11-07 18:58:50 -05. --
nov 07 18:57:01 kernel: iTCO_wdt iTCO_wdt: can't request region for resource [mem 0x00c5fffc-0x00c5ffff]
nov 07 18:57:03 kernel: iwlwifi 0000:00:14.3: BIOS contains WGDS but no WRDS
nov 07 18:57:03 kernel: iwlwifi 0000:00:14.3: BIOS contains WGDS but no WRDS
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)
nov 07 18:57:39 bluetoothd[751]: bt_uhid_send: Invalid argument (22)

its a high speed HDMI cable conected without adapters.

In this mode, you have only Intel working. In case the HDMI output is connected to nvidia GPU (most probably), it may explain why it's not recognized.
What happens in Nvidia mode? Maybe after a reboot to Nvidia mode?

The last command report is essential, in both modes.
Actually, check these in both Intel and Nvidia mode:

grep -A1 -B1 -i "modes \|modeline\|output\|Time" Xorg.0.log
xrandr | awk ' /connected/ { print $1, $2 }'
for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done

I have optimus-manager so i can change easily from intel to nvidia.
I tried that and the same happens: 4k monitor with 1920x1080 resolution :frowning:

What exactly have you tried?


I suspect we may have a language difficulty. Maybe there is some forum member speaking your language?

I Tried change from intel to nvidia GPU

Can you post logs as advised?
In my previous post, there are some "commands section". Copy one by one in terminal and run it. Then copy output and post them here.


If you don't understand, it would be better to find someone that can translate better. There might be a risk of messing your system, if you do something not proper, as an admin/root.

Sure!! I'm understanding you.

I'm going to put the logs as you advised, the problem is that right now I haven't my laptop, thank you so much

1 Like

Hi AgentS
this is the output for grep -A1 -B1 -i "modes |modeline|output|Time" Xorg.0.log

grep: Xorg.0.log: No such file or directory

Output for xrandr | awk ' /connected/ { print $1, $2 }'

eDP1 connected
HDMI1 connected
VIRTUAL1 disconnected

Output for
for p in /sys/class/drm//status; do con=${p%/status}; echo -n "${con#/card?-}: "; cat $p; done

eDP-1: connected
HDMI-A-1: connected

i ran these commands in using Intel

Hello,
may you post the output of this two commands
systemctl status bumblebeed
systemctl status optimus-manager

this could help a lot. once i went in trouble because both of them were active. this gives an overview.

it is serious that your type of laptop is able that the internal cpu graphics-card can also drive the external. BUT the intel graphics can not drive 4K. That simple it is and unless the right nvidia driver is installed it will not work. period. so the only way is to install the nvidia-driver that is able to run your external screen at 4k. the intel UHD means UHD not 4K.

As you can see:

Display: x11 server: X.Org 1.20.5 driver: intel unloaded: nvidia

your nvidia-driver is unloaded, not valid and the system tries to run the external screen with the intel driver.

Hi thank you by your help

This is the output of systemctl status optimus-manager

● optimus-manager.service - Optimus Manager Commands Daemon
   Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; >
   Active: active (running) since Sat 2019-11-16 11:31:18 -05; 48min ago
  Process: 770 ExecStartPre=/usr/bin/prime-switch-boot (code=exited, status=0>
 Main PID: 1129 (python3)
    Tasks: 1 (limit: 4915)
   Memory: 44.4M
   CGroup: /system.slice/optimus-manager.service
           └─1129 /usr/bin/python3 -u /usr/bin/optimus-manager-daemon

nov 16 11:31:16 andres-pc prime-switch-boot[770]: Loading module nvidia
nov 16 11:31:16 andres-pc prime-switch-boot[770]: Loading module nvidia_drm
nov 16 11:31:18 andres-pc prime-switch-boot[770]: Loaded extra Intel Xorg opt>
nov 16 11:31:18 andres-pc prime-switch-boot[770]: Loaded extra Nvidia Xorg op>
nov 16 11:31:18 andres-pc prime-switch-boot[770]: Writing to /etc/X11/xorg.co>
nov 16 11:31:18 andres-pc systemd[1]: Started Optimus Manager Commands Daemon.
nov 16 11:31:18 andres-pc python3[1129]: Optimus Manager (Daemon) version 1.2>
nov 16 11:31:18 andres-pc python3[1129]: Automatic log cropping
nov 16 11:31:18 andres-pc python3[1129]: Opening UNIX socket
nov 16 11:31:18 andres-pc python3[1129]: Awaiting commands


but what is with the bumblebeed service ? please post the systemctl status bumblebeed . As i told you before that i had trouble because both services were activated and actually is your nvidia-driver not active. that is the problem. your intel-driver is doing what he is able and that's simple UHD and you are lucky that your internal cpu-graphic can drive the external screen.

P.S.: I'm off for the next hour. but post it and the next thing please post the messege of 'optimus-manager --status'

Hi Olli, i have disabled the bumblebee service because im using optimus-manager. With optimus-manager i changed my GPU to nvidia and this is the output:

Graphics:
  Device-1: Intel UHD Graphics 630 vendor: Micro-Star MSI driver: i915 
  v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b 
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Max-Q] 
  vendor: Micro-Star MSI driver: nvidia v: 430.64 bus ID: 01:00.0 
  chip ID: 10de:1c8f 
  Display: x11 server: X.Org 1.20.5 driver: modesetting,nvidia 
  compositor: kwin_x11 resolution: 1920x1080~60Hz 
  OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 430.64 
  direct render: Yes 

so it seems that the nvidia driver was loaded successfully

please give me an hour, i have to fix some other things, but keep in mind that this driver configuration is broken and we will fix it.

1 Like

Sorry, my mistake. The log is at /var/log/Xorg.0.log


Anyway, you have to understand that optimus-manager changes settings in conf files and results to different output in the logs, and obviously system behavior.
I don't know how exactly optimus-manager works today, as it is in continuous development.
I can review ONE mode at a time (Intel-Nvidia) to understand a possible problem to my knowledge.
So when you post info, you have to explain what video mode was from :point_down:

Use Nvidia mode and post these:

inxi -SMCGxxxaz 
xrandr 
for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done
for Xconf in $(ls /etc/X11/xorg.conf.d/*.conf); do echo -e "\n" $Xconf ; cat $Xconf ; done
cat /var/log/Xorg.0.log

Also, this module is not required and should be uninstalled, since you don't use bumblebee

Forum kindly sponsored by