You are not logged in.

#1 2023-08-17 08:31:41

pepper
Member
Registered: 2017-12-09
Posts: 129

[SOLVED]Every boot the resolution is wrong and monitor not recognized

Hello, I use xfce and xorg. Since two week I have this problem: every reboot the resolution of my monitor is not recognized (I have a Dell U2715H monitor 27" 2560x1440) and the resolution is something like 640p with 4:3 AR, if I open the Monitor settings from xfce4-settings-manager the screen is not recognized (there isn't the name "Dell" but "None-1"). After 2-3 reboots the screen is recognized again. I have only one monitor but in the Screen/Monitor settings of xfce I get two screens, I don't know why.
screen 1: https://i.imgur.com/jNA54wQ.png
screen 2: https://i.imgur.com/jM7viQB.png

I also leave some logs
sudo journalctl -b: http://0x0.st/HLSe.txt
cat /var/log/Xorg.0.log: http://0x0.st/HLS2.txt

Last edited by pepper (2023-09-13 11:53:00)

Offline

#2 2023-08-17 09:08:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,472

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

That's not your xorg log, but see https://bbs.archlinux.org/viewtopic.php?id=288009

Offline

#3 2023-08-17 13:02:33

pepper
Member
Registered: 2017-12-09
Posts: 129

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

I don't have the path ~/.local/share/xorg/Xorg.1.log
cat /var/log/Xorg.1.log: http://0x0.st/HLQw.txt
What is the correct path for xorg logs?

Anyway I'm using Linux 6.4.10-zen2-1-zen and simpledrm_platform_driver_init seems to be not present in logs.
Do I need to manually compile the kernel with initcall_blacklist=simpledrm_platform_driver_init everytime there is kernel upgrade or there is a better way?

Thanks for your patience

Last edited by pepper (2023-08-17 13:04:12)

Offline

#4 2023-08-17 13:18:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,472

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

https://wiki.archlinux.org/title/Xorg#General - you're typically *not* lookign for the .1.log and the one you posted is dated

[ 46271.586] (==) Log file: "/var/log/Xorg.1.log", Time: Wed Jun  7 21:33:14 2023

The links in your OP are actually just swapped lol

[    19.597] (II) Platform probe for /sys/devices/platform/simple-framebuffer.0/drm/card0

You do also NOT want the simpledrm device but it's likely what causes the None-1 output, so add "nvidia-drm.modeset=1" to the kernel parameters.

Offline

#5 2023-08-17 22:01:50

pepper
Member
Registered: 2017-12-09
Posts: 129

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

I added

nvidia-drm.modeset=1

to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub and re-generated grub configuration

grub-mkconfig -o /boot/grub/grub.cfg

Do you know if this parameter can cause problems in the future, maybe for new kernel upgrades?

Last edited by pepper (2023-08-17 22:03:23)

Offline

#6 2023-08-18 06:08:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,472

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

"Prediction is difficult - particularly when it involves the future."
  -- Mark Twain

But it is very unlikely that this is gonna cause you any trouble.
The more important question is what impact it had on the immediate situation (xorg log and everything else)

Offline

#7 2023-08-18 06:49:46

pepper
Member
Registered: 2017-12-09
Posts: 129

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

is it normal that after rebooting with new kernel parameters I can still see the ghost monitor in settings?

https://i.imgur.com/P72nrcF.png


moderator edit -- replaced oversized image with link.
Pasting pictures and code

Last edited by 2ManyDogs (2023-08-19 11:18:19)

Offline

#8 2023-08-18 06:52:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,472

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

Could be the xfce settings cache ("remember when you once had this monitor") - post an updated Xorg log (and "xrandr -q" output)
Does the original problem remain?

Offline

#9 2023-08-18 08:12:08

pepper
Member
Registered: 2017-12-09
Posts: 129

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

in /var/log/ I have only Xorg.0.log, Xorg.1.log, Xorg.0.log.old and Xorg.1.log.old I don't know if there is another path for xorg logs (I don't have this folder ~/.local/share/xorg/)
cat /var/log/Xorg.0.log: http://0x0.st/HL_g.txt (updated 18 ago)

xrandr -q

Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   2048x1152     60.00  
   1920x1200     59.88  
   1920x1080     60.00    59.94    50.00    29.97    25.00    23.98  
   1680x1050     59.95  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1280x720      60.00    59.94    50.00  
   1200x960      59.90  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
None-1-1 connected (normal left inverted right x axis y axis)
   1024x768      60.00 +

It seems None-1-1 monitor is still connected

The problem now doesn't occur but I'm using this computer, I can't reboot too many times, maybe the problem is still present

Last edited by pepper (2023-08-18 08:15:23)

Offline

#10 2023-08-18 10:17:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,472

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

Did you reboot after adding the kernel parameter and grub-mkconfig ?
Because it's not in that (recent) log (and the simpledrm device (and thus the None-1-1 output) is.

Offline

#11 2023-08-19 07:28:52

pepper
Member
Registered: 2017-12-09
Posts: 129

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

yes, I rebooted again and the values are the same, same xrandr -q

Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   2048x1152     60.00  
   1920x1200     59.88  
   1920x1080     60.00    59.94    50.00    29.97    25.00    23.98  
   1680x1050     59.95  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1280x720      60.00    59.94    50.00  
   1200x960      59.90  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
None-1-1 connected (normal left inverted right x axis y axis)
   1024x768      60.00 +

And None-1 is still visibile in settings. For the moment I rebooted 2 times and the screen is always 1440p (correct resolution), but the wrong resolution happened randomly.

cat /etc/default/grub

# GRUB boot loader configuration

GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX="cryptdevice=UUID=49bb1478-8b71-49fb-9386-cccc6a65b04c:encrypted_lvm root=/dev/volgroup0/lv_root nvidia-drm.modeset=1"
GRUB_DISABLE_OS_PROBER=false

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y

Last edited by pepper (2023-08-19 07:29:38)

Offline

#12 2023-08-19 11:15:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,472

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

cat /proc/cmdline

Offline

#13 2023-08-20 05:46:48

pepper
Member
Registered: 2017-12-09
Posts: 129

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

cat /proc/cmdline

BOOT_IMAGE=/vmlinuz-linux-zen root=/dev/mapper/volgroup0-lv_root rw cryptdevice=UUID=49bb1478-8b71-49fb-9386-cccc6a65b04c:encrypted_lvm root=/dev/volgroup0/lv_root loglevel=3 quiet

mm, there isn't nvidia-drm.modeset

Last edited by pepper (2023-08-20 05:47:11)

Offline

#14 2023-08-20 06:25:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,472

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

How exactly did you run grub-mkconfig?
Forgot to mount the /boot partition?

Offline

#15 2023-08-21 07:02:45

pepper
Member
Registered: 2017-12-09
Posts: 129

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

my boot partition is always mounted in /boot

➜  ~ ll /boot                  
drwxr-xr-x    - root root 30 nov  2021 EFI
drwxr-xr-x    - root root 18 ago 00:00 grub
.rwxr-xr-x  43M root root 13 ago 23:05 initramfs-linux-fallback.img
.rwxr-xr-x  41M root root 13 ago 23:05 initramfs-linux-lts-fallback.img
.rwxr-xr-x  18M root root 13 ago 23:05 initramfs-linux-lts.img
.rwxr-xr-x  44M root root 13 ago 23:06 initramfs-linux-zen-fallback.img
.rwxr-xr-x  18M root root 13 ago 23:06 initramfs-linux-zen.img
.rwxr-xr-x  18M root root 13 ago 23:05 initramfs-linux.img
.rwxr-xr-x 7,4M root root  8 ago 20:19 intel-ucode.img
.rwxr-xr-x  13M root root 13 ago 23:05 vmlinuz-linux
.rwxr-xr-x  11M root root 13 ago 23:05 vmlinuz-linux-lts
.rwxr-xr-x  14M root root 13 ago 23:05 vmlinuz-linux-zen

I run grub-mkconfig without problems:

➜  ~ sudo grub-mkconfig -o /boot/grub/grub.cfg
[sudo] password di davide: 
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-zen-fallback.img
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done

Last edited by pepper (2023-08-21 07:05:20)

Offline

#16 2023-08-21 07:06:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,472

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

seth wrote:

How exactly did you run grub-mkconfig?

sudo cat /boot/grub/grub.cfg

Offline

#17 2023-08-22 06:49:54

pepper
Member
Registered: 2017-12-09
Posts: 129

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

oh ok, I never edit grub.cfg

➜  sudo cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if loadfont unicode ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f81ba961-49ce-4e80-a7ff-71965ff55d32' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod fat
	search --no-floppy --fs-uuid --set=root 9F89-AFAA
	echo	'Loading Linux linux-zen ...'
	linux	/vmlinuz-linux-zen root=/dev/mapper/volgroup0-lv_root rw cryptdevice=UUID=49bb1478-8b71-49fb-9386-cccc6a65b04c:encrypted_lvm root=/dev/volgroup0/lv_root loglevel=3 quiet
	echo	'Loading initial ramdisk ...'
	initrd	/intel-ucode.img /initramfs-linux-zen.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-f81ba961-49ce-4e80-a7ff-71965ff55d32' {
	menuentry 'Arch Linux, with Linux linux-zen' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-zen-advanced-f81ba961-49ce-4e80-a7ff-71965ff55d32' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		search --no-floppy --fs-uuid --set=root 9F89-AFAA
		echo	'Loading Linux linux-zen ...'
		linux	/vmlinuz-linux-zen root=/dev/mapper/volgroup0-lv_root rw cryptdevice=UUID=49bb1478-8b71-49fb-9386-cccc6a65b04c:encrypted_lvm root=/dev/volgroup0/lv_root loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux-zen.img
	}
	menuentry 'Arch Linux, with Linux linux-zen (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-zen-fallback-f81ba961-49ce-4e80-a7ff-71965ff55d32' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		search --no-floppy --fs-uuid --set=root 9F89-AFAA
		echo	'Loading Linux linux-zen ...'
		linux	/vmlinuz-linux-zen root=/dev/mapper/volgroup0-lv_root rw cryptdevice=UUID=49bb1478-8b71-49fb-9386-cccc6a65b04c:encrypted_lvm root=/dev/volgroup0/lv_root loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux-zen-fallback.img
	}
	menuentry 'Arch Linux, with Linux linux-lts' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-f81ba961-49ce-4e80-a7ff-71965ff55d32' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		search --no-floppy --fs-uuid --set=root 9F89-AFAA
		echo	'Loading Linux linux-lts ...'
		linux	/vmlinuz-linux-lts root=/dev/mapper/volgroup0-lv_root rw cryptdevice=UUID=49bb1478-8b71-49fb-9386-cccc6a65b04c:encrypted_lvm root=/dev/volgroup0/lv_root loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux-lts.img
	}
	menuentry 'Arch Linux, with Linux linux-lts (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-fallback-f81ba961-49ce-4e80-a7ff-71965ff55d32' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		search --no-floppy --fs-uuid --set=root 9F89-AFAA
		echo	'Loading Linux linux-lts ...'
		linux	/vmlinuz-linux-lts root=/dev/mapper/volgroup0-lv_root rw cryptdevice=UUID=49bb1478-8b71-49fb-9386-cccc6a65b04c:encrypted_lvm root=/dev/volgroup0/lv_root loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux-lts-fallback.img
	}
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-f81ba961-49ce-4e80-a7ff-71965ff55d32' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		search --no-floppy --fs-uuid --set=root 9F89-AFAA
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=/dev/mapper/volgroup0-lv_root rw cryptdevice=UUID=49bb1478-8b71-49fb-9386-cccc6a65b04c:encrypted_lvm root=/dev/volgroup0/lv_root loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux.img
	}
	menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-f81ba961-49ce-4e80-a7ff-71965ff55d32' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		search --no-floppy --fs-uuid --set=root 9F89-AFAA
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=/dev/mapper/volgroup0-lv_root rw cryptdevice=UUID=49bb1478-8b71-49fb-9386-cccc6a65b04c:encrypted_lvm root=/dev/volgroup0/lv_root loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux-fallback.img
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
	fwsetup --is-supported
	if [ "$?" = 0 ]; then
		menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
			fwsetup
		}
	fi
fi
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###

Offline

#18 2023-08-22 06:59:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,472

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

That's what grub-mkconfig does but apparently didn't happen on your site.
No idea why. Typo in the -o parameter?

grub-mkconfig | curl -F 'file=@-' 0x0.st

Offline

#19 2023-08-22 21:58:55

pepper
Member
Registered: 2017-12-09
Posts: 129

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

there isn't any typo

http://0x0.st/H9iE.txt

➜  ~ sudo grub-mkconfig | curl -F 'file=@-' 0x0.st
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-zen-fallback.img
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done

Last edited by pepper (2023-08-22 21:59:44)

Offline

#20 2023-08-22 22:10:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,472

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

The uploaded file has "nvidia-drm.modeset=1" though while for some reason, fat-finger related or not, your local grub.cfg doesn't.
Try again, check the impact on /boot/grub/grub.cfg and if "nvidia-drm.modeset=1" shows up there, reboot and see what it does for the original problem.

Offline

#21 2023-08-23 06:49:03

pepper
Member
Registered: 2017-12-09
Posts: 129

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

I tried again, /boot/grub/grub.cfg doesn't have nvidia-drm.modeset=1
http://0x0.st/H9Hl.txt
but after 4-5 reboots these days the problem seems resolved, anyway the ghost screen is still present (disabled) in the xfce monitor settings

Offline

#22 2023-08-23 07:14:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,472

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

And you're not getting any errors??
Do the timestamps on the file change at all?

sudo lsattr /boot/grub/grub.cfg
mount | grep boot

Offline

#23 2023-09-11 07:53:10

pepper
Member
Registered: 2017-12-09
Posts: 129

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

➜  ~ sudo lsattr /boot/grub/grub.cfg
lsattr: Operation not supported during the reading of flags in /boot/grub/grub.cfg

(error message wasn't in english)

➜  ~ mount | grep boot
/dev/nvme0n1p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)

it seems the workaround in grub.cfg is not working anymore https://www.reddit.com/r/Fedora/comment … &context=3

I get the ghost monitor only when I upgrade one or more packages using pacman (after rebooting)

Last edited by pepper (2023-09-11 07:54:51)

Offline

#24 2023-09-11 10:31:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,472

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

vfat doesn't support file attributes, so that's ok, but you cannot immute it.

I'm pretty sure the that't-not-a-workaround (still) works, but not at all why you seem to struggle getting it into the grub.cfg.
Post your /etc/default/grub - but you can also edit /boot/grub/grub.cfg manually and insert the parameter there.

Offline

#25 2023-09-11 12:34:39

pepper
Member
Registered: 2017-12-09
Posts: 129

Re: [SOLVED]Every boot the resolution is wrong and monitor not recognized

➜  ~ cat /etc/default/grub       
# GRUB boot loader configuration

GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX="cryptdevice=UUID=49bb1478-8b71-49fb-9386-cccc6a65b04c:encrypted_lvm root=/dev/volgroup0/lv_root nvidia-drm.modeset=1"
GRUB_DISABLE_OS_PROBER=false

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y

Last edited by pepper (2023-09-11 12:35:00)

Offline

Board footer

Powered by FluxBB