black screen at login after pkg upgrade

I personally had to remove amdgpu from my rc.conf after I upgraded and then manually force upgrades of the installed software. I had it upgrade everything rather than trying to be targeted about it before rebooting and re-adding the entry to load the driver.

If you've got the system to automatically load the server and window manager at boot, I'd disable that until this gets straightened out personally. That's just another layer of things to break.
 
i think it's on X11, I can't login with Wayland
I don't understand, you are either using X11 or Wayland; or have you perhaps forgotten which of the two you have installed?
Is this machine physically at hand, or is it a remote server of sorts?

I might be able to say something useful when running X11; of Wayland I have hardly any knowledge at all.
 
Looking at your dmesg you can see trouble:

Code:
pci0: <old, non-VGA display device> at device 3.2 (no driver attached)
pci0: <old, non-VGA display device> at device 3.3 (no driver attached)
pci0: <old, non-VGA display device> at device 3.4 (no driver attached)
pcib6: <ACPI PCI-PCI bridge> at device 4.1 on pci0
pcib7: <ACPI PCI-PCI bridge> at device 8.1 on pci0
pci5: <ACPI PCI bus> on pcib7
vgapci0: <VGA-compatible display> port 0xe000-0xe0ff mem 0x7c00000000-0x7c0fffffff,0xdc000000-0xdc1fffff,0xdc500000-0xdc57ffff at device 0.0 on pci5
hdac0: <ATI (0x1640) HDA Controller> mem 0xdc5c8000-0xdc5cbfff at device 0.1 on pci5
pci5: <encrypt/decrypt> at device 0.2 (no driver attached)
Looks like you have a legacy video device on pci0 and PCI5 is your video output.

Are you using the VGA connector of your video device? No Driver Attached doesn't bode well.
 
I use a mini pc and a separate monitor
So, it's a local machine to which you have direct access to.

Please do the following:
  1. comment out all entries of kld_list in rc.conf
  2. comment out any automatic start of X11 and of a graphical login manager like x11/sddm
  3. boot directly into a commandline and
  4. post the output of pkg query -x '[%R] %o %n %v' '^drm-(51.-|6..?-)?kmod|(^nvidia-(d|k))' | column -t
  5. load amdgpu manually: kldload amdgpu and post the output of kldstat
 
post the output of pkg query -x '[%R] %o %n %v' '^drm-(51.-|6..?-)?kmod|(^nvidia-(d|k))' | column -t
this command outputs nothing
kldload amdgpu
Code:
can'tload amdgpu:No such file or directory
kldstat
Code:
1  79 0xffffffffxxxxxxxx kernel
2  1  0xffffffffxxxxxxxx vmm.ko
3  1  0xffffffffxxxxxxxx if_iwlwifi.ko
4  1  0xffffffffxxxxxxxx if-iwx.ko
5  1  0xffffffffxxxxxxxx intpm.ko
6  1  0xffffffffxxxxxxxx smbus.ko
7  1  0xffffffffxxxxxxxx cuse.ko
8  1  0xffffffffxxxxxxxx snd_uaudio.ko
9  1  0xffffffffxxxxxxxx hcons.ko
10  3 0xffffffffxxxxxxxx hidmap.ko
11  1  0xffffffffxxxxxxxx hms.ko
12  1  0xffffffffxxxxxxxx hsctrl.ko
13  1  0xffffffffxxxxxxxx ng_ubt.ko
14  7  0xffffffffxxxxxxxx netgraph.ko
15  3  0xffffffffxxxxxxxx ng_hci.ko
16  4  0xffffffffxxxxxxxx ng_bloothtooth.ko
17  1  0xffffffffxxxxxxxx ng_12cap.ko
18  1  0xffffffffxxxxxxxx ng_btsocket.ko
19  1  0xffffffffxxxxxxxx ng_socket.ko
20  1  0xffffffffxxxxxxxx nmdm.ko
21  1  0xffffffffxxxxxxxx if_bridge.ko
22  1  0xffffffffxxxxxxxx bridgestp.ko
23  1  0xffffffffxxxxxxxx pf.ko
 
post the output of pkg query -x '[%R] %o %n %v' '^drm-(51.-|6..?-)?kmod|(^nvidia-(d|k))' | column -t
this command outputs nothing
This indicates that you have no packages containing graphics drivers installed on your system.
Are you sure you haven't made a copy/paste error?

On my 15.1-RELEASE using latest, I have:
Code:
# pkg query -x '[%R] %o %n %v' '^drm-(51.-|6..?-)?kmod|(^nvidia-(d|k))' | column -t
[FreeBSD-ports-kmods]  graphics/drm-66-kmod  drm-66-kmod  6.6.25.1501000_9
[FreeBSD-ports]        graphics/drm-kmod     drm-kmod     20260508
 
load amdgpu manually: kldload amdgpu and post the output of kldstat
how to make kldload amdgpu kldstat those words appear like that?
Yes formatting; type in this way:
load amdgpu manually: [cmd] kldload amdgpu[/cmd] and post the output of [cmd] kldstat[/cmd]

See also: BB codes
[cmd]blah[/cmd] is for commands. For other things that have something to do with the system I use [icode]something else[/icode]
 
This indicates that you have no packages containing graphics drivers installed on your system.
Are you sure you haven't made a copy/paste error?

On my 15.1-RELEASE using latest, I have:
Code:
# pkg query -x '[%R] %o %n %v' '^drm-(51.-|6..?-)?kmod|(^nvidia-(d|k))' | column -t
[FreeBSD-ports-kmods]  graphics/drm-66-kmod  drm-66-kmod  6.6.25.1501000_9
[FreeBSD-ports]        graphics/drm-kmod     drm-kmod     20260508
I run that command successfully, but it outputs nothing. I use amd gpu, something wrong with drm-kmod.
 
I run that command successfully, but it outputs nothing. I use amd gpu, something wrong with drm-kmod.
Yes, it looks there is something wrong. When using kld_list="amdgpu" you are specifying /boot/modules/amdgpu.ko and:
Code:
# pkg which /boot/modules/amdgpu.ko
/boot/modules/amdgpu.ko was installed by package drm-66-kmod-6.6.25.1501000_9
 
Back
Top