LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-01-2024, 02:12 PM   #1
gnojus
LQ Newbie
 
Registered: Mar 2024
Posts: 3

Rep: Reputation: 0
Non-functional system after disconnecting USB-C monitor


Hi,

I'm having trouble with my system after unplugging my USB-C monitor. I think it started after upgrading to Fedora 39 from 38. The graphical session is KDE wayland.

I'm not really sure how to describe, what's going on. Basically, many things are going wrong, for example:
- most of KDE taskbar features doesn't work, firefox does not start
- tty logins are slow: it takes ~10 seconds for shell prompt to show up after correct credentials
- sudo does not work at all: it hangs, and you can't ctrl-C or ctrl-Z it
- `systemctl reboot` fails with "call to reboot failed: ... restart/sleep already in progress"
- you can click shutdown in KDE, but it does not succeed. After some stop jobs it fails to unmount /home, and finally waits on "Powering off"
- after force shutdown via holding the power button, the system seems to work ok

Does it makes sense? Any idea what could be going on?
I can obviously provide logs, but just wasn't sure where to look, etc.

Thanks
 
Old 03-02-2024, 02:48 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Sounds like the kinds of problems that could occur if it were interrupted while doing updates.
Open "Updates" and check if you are up to date.
 
Old 03-02-2024, 03:07 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
In some cases a monitor is needed to continue programs.

Upgrades have always been a sore spot.
 
Old 03-02-2024, 03:20 PM   #4
gnojus
LQ Newbie
 
Registered: Mar 2024
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by smallpond View Post
Sounds like the kinds of problems that could occur if it were interrupted while doing updates.
Open "Updates" and check if you are up to date.
If you are talking about Fedora package updates, I don't think those are related.
I have uninstalled/disabled Fedora auto-updater (don't even seem to have a GUI software app),
I refresh dnf cache and install upgrades manually via dnf cli.

As a side note, this is not a once-time thing -- it happened a few times already.
 
Old 03-03-2024, 12:24 PM   #5
gnojus
LQ Newbie
 
Registered: Mar 2024
Posts: 3

Original Poster
Rep: Reputation: 0
Ok, after a bit more of messing around:

Looks like it's consistent, that is it happens every time I disconnect said USB-C monitor.
After checking journalctl, looks like there is a panic in some kernel module?

Code:
[ 1276.001067] usb 3-1: USB disconnect, device number 2
[ 1276.001080] r8152-cfgselector 3-1.1: USB disconnect, device number 5
[ 1276.022395] usb 3-1.4: USB disconnect, device number 7
[ 1276.101853] iwlwifi 0000:aa:00.0: WRT: Invalid buffer destination
[ 1276.258581] iwlwifi 0000:aa:00.0: WFPM_UMAC_PD_NOTIFICATION: 0x20
[ 1276.258618] iwlwifi 0000:aa:00.0: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[ 1276.258630] iwlwifi 0000:aa:00.0: WFPM_AUTH_KEY_0: 0x90
[ 1276.258641] iwlwifi 0000:aa:00.0: CNVI_SCU_SEQ_DATA_DW9: 0x0
[ 1276.363700] BUG: kernel NULL pointer dereference, address: 000000000000001b
[ 1276.363707] #PF: supervisor read access in kernel mode
[ 1276.363709] #PF: error_code(0x0000) - not-present page
[ 1276.363711] PGD 0 P4D 0 
[ 1276.363715] Oops: 0000 [#1] PREEMPT SMP NOPTI
[ 1276.363719] CPU: 2 PID: 1086 Comm: NetworkManager Not tainted 6.7.6-200.fc39.x86_64 #1
[ 1276.363722] Hardware name: Framework Laptop/FRANBMCP0A, BIOS 03.10 07/19/2022
[ 1276.363724] RIP: 0010:iwl_mvm_vif_dbgfs_add_link+0x7e/0xc0 [iwlmvm]
[ 1276.363768] Code: 03 f3 48 ab 4d 85 ed 74 34 48 89 f3 4c 89 e9 48 c7 c2 b8 1f 8d c1 4c 89 e7 be 64 00 00 00 e8 b9 1d 74 e4 48 8b b5 c8 1c 00 00 <49> 8b 7d 28 4c 89 e2 e8 a6 a1 d2 e3 48 89 83 a8 05 00 00 48 8b 44
[ 1276.363771] RSP: 0018:ffffa6e5830b7568 EFLAGS: 00010246
[ 1276.363775] RAX: 0000000000000018 RBX: ffff94399baf1c38 RCX: 0000000000000007
[ 1276.363778] RDX: 0000000000000000 RSI: ffff94398f092c00 RDI: 00000000830b756c
[ 1276.363780] RBP: ffff9439a6801fc8 R08: ffffffffc18d1fcb R09: 0000000000000000
[ 1276.363782] R10: 0000000000000001 R11: 0000000000000100 R12: ffffa6e5830b756c
[ 1276.363784] R13: fffffffffffffff3 R14: ffff94399baf1c38 R15: 0000000000000000
[ 1276.363786] FS:  00007f3ac98dd540(0000) GS:ffff94410fa80000(0000) knlGS:0000000000000000
[ 1276.363789] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1276.363791] CR2: 000000000000001b CR3: 000000011eaf2003 CR4: 0000000000f70ef0
[ 1276.363794] PKRU: 55555554
[ 1276.363796] Call Trace:
[ 1276.363798]  <TASK>
[ 1276.363802]  ? __die+0x23/0x70
[ 1276.363809]  ? page_fault_oops+0x171/0x4e0
[ 1276.363817]  ? iwl_trans_txq_send_hcmd+0x378/0x450 [iwlwifi]
[ 1276.363857]  ? exc_page_fault+0x7f/0x180
[ 1276.363862]  ? asm_exc_page_fault+0x26/0x30
[ 1276.363868]  ? iwl_mvm_vif_dbgfs_add_link+0x7e/0xc0 [iwlmvm]
[ 1276.363903]  ? iwl_mvm_vif_dbgfs_add_link+0x77/0xc0 [iwlmvm]
[ 1276.363933]  iwl_mvm_mld_mac_add_interface+0x260/0x280 [iwlmvm]
[ 1276.363963]  drv_add_interface+0x4f/0x240 [mac80211]
[ 1276.364031]  ieee80211_do_open+0x499/0x790 [mac80211]
[ 1276.364128]  ieee80211_open+0x66/0x90 [mac80211]
[ 1276.364232]  __dev_open+0xf1/0x1a0
[ 1276.364241]  __dev_change_flags+0x1d6/0x240
[ 1276.364249]  dev_change_flags+0x26/0x70
[ 1276.364255]  do_setlink+0x375/0x12d0
[ 1276.364263]  ? kmem_cache_alloc+0x186/0x310
[ 1276.364269]  ? avc_alloc_node+0x24/0x170
[ 1276.364276]  ? __nla_validate_parse+0x61/0xcf0
[ 1276.364284]  ? avc_alloc_node+0x24/0x170
[ 1276.364290]  __rtnl_newlink+0x651/0xa10
[ 1276.364297]  ? __kmem_cache_alloc_node+0x198/0x2e0
[ 1276.364302]  ? rtnl_newlink+0x2e/0x70
[ 1276.364309]  rtnl_newlink+0x47/0x70
[ 1276.364315]  rtnetlink_rcv_msg+0x14f/0x3c0
[ 1276.364321]  ? avc_alloc_node+0x24/0x170
[ 1276.364326]  ? avc_has_perm_noaudit+0x6b/0xf0
[ 1276.364333]  ? __pfx_rtnetlink_rcv_msg+0x10/0x10
[ 1276.364339]  netlink_rcv_skb+0x58/0x110
[ 1276.364347]  netlink_unicast+0x1a3/0x290
[ 1276.364352]  netlink_sendmsg+0x254/0x4d0
[ 1276.364357]  ____sys_sendmsg+0x396/0x3d0
[ 1276.364364]  ? copy_msghdr_from_user+0x7d/0xc0
[ 1276.364370]  ___sys_sendmsg+0x9a/0xe0
[ 1276.364378]  __sys_sendmsg+0x7a/0xd0
[ 1276.364383]  do_syscall_64+0x61/0xe0
[ 1276.364389]  ? __x64_sys_close+0x3d/0x80
[ 1276.364393]  ? kmem_cache_free+0x16e/0x380
[ 1276.364398]  ? syscall_exit_to_user_mode+0x2b/0x40
[ 1276.364404]  ? do_syscall_64+0x70/0xe0
[ 1276.364408]  ? syscall_exit_to_user_mode+0x2b/0x40
[ 1276.364413]  ? do_syscall_64+0x70/0xe0
[ 1276.364417]  ? syscall_exit_to_user_mode+0x2b/0x40
[ 1276.364422]  ? do_syscall_64+0x70/0xe0
[ 1276.364426]  entry_SYSCALL_64_after_hwframe+0x6e/0x76
[ 1276.364432] RIP: 0033:0x7f3aca356b6b
[ 1276.364469] Code: 48 89 e5 48 83 ec 20 89 55 ec 48 89 75 f0 89 7d f8 e8 b9 2e f7 ff 8b 55 ec 48 8b 75 f0 41 89 c0 8b 7d f8 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 2d 44 89 c7 48 89 45 f8 e8 11 2f f7 ff 48 8b
[ 1276.364472] RSP: 002b:00007ffc970265d0 EFLAGS: 00000293 ORIG_RAX: 000000000000002e
[ 1276.364477] RAX: ffffffffffffffda RBX: 000055fabf2a8330 RCX: 00007f3aca356b6b
[ 1276.364480] RDX: 0000000000000000 RSI: 00007ffc97026610 RDI: 000000000000000d
[ 1276.364482] RBP: 00007ffc970265f0 R08: 0000000000000000 R09: 0000000000000000
[ 1276.364485] R10: 0000000000000000 R11: 0000000000000293 R12: 000000000000002d
[ 1276.364488] R13: 000055fabf2a8330 R14: 0000000000000001 R15: 0000000000000000
[ 1276.364492]  </TASK>
[ 1276.364494] Modules linked in: uinput rfcomm snd_seq_dummy snd_hrtimer snd_usb_audio snd_usbmidi_lib snd_ump snd_rawmidi mc bnep qrtr btusb btrtl btintel btbcm btmtk bluetooth binfmt_misc snd_sof_pci_intel_tgl snd_sof_intel_hda_common soundwire_intel snd_sof_intel_hda_mlink soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_hda_codec_hdmi snd_sof snd_sof_utils iwlmvm snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match snd_hda_codec_idt snd_soc_acpi soundwire_generic_allocation soundwire_bus snd_hda_codec_generic snd_soc_core ledtrig_audio mac80211 snd_compress x86_pkg_temp_thermal intel_powerclamp ac97_bus snd_pcm_dmaengine coretemp snd_hda_intel kvm_intel snd_intel_dspcfg cros_usbpd_charger cros_ec_chardev cros_ec_sysfs cros_usbpd_notify cros_usbpd_logger snd_intel_sdw_acpi iTCO_wdt libarc4 snd_hda_codec cros_ec_dev vfat spi_nor kvm intel_pmc_bxt fat ee1004 mei_hdcp mei_pxp iTCO_vendor_support snd_hda_core mtd pmt_telemetry intel_rapl_msr pmt_class cros_ec_lpcs irqbypass snd_hwdep iwlwifi
[ 1276.364578]  cros_ec snd_seq processor_thermal_device_pci_legacy rapl processor_thermal_device snd_seq_device intel_cstate snd_pcm processor_thermal_wt_hint cfg80211 hid_sensor_als hid_sensor_trigger hid_sensor_iio_common pcspkr industrialio_triggered_buffer processor_thermal_rfim snd_timer kfifo_buf intel_uncore snd mei_me i2c_i801 wmi_bmof industrialio soundcore i2c_smbus processor_thermal_rapl rfkill thunderbolt spi_intel_pci spi_intel mei idma64 intel_rapl_common intel_vsec processor_thermal_wt_req processor_thermal_power_floor igen6_edac processor_thermal_mbox intel_soc_dts_iosf int3403_thermal int340x_thermal_zone int3400_thermal acpi_thermal_rel acpi_pad joydev loop zram r8152 mii hid_sensor_hub intel_ishtp_hid i915 i2c_algo_bit drm_buddy crct10dif_pclmul nvme ttm crc32_pclmul crc32c_intel polyval_clmulni polyval_generic nvme_core drm_display_helper ghash_clmulni_intel intel_ish_ipc sha512_ssse3 ucsi_acpi hid_multitouch typec_ucsi sha256_ssse3 sha1_ssse3 typec intel_ishtp cec nvme_auth i2c_hid_acpi i2c_hid
[ 1276.364663]  video wmi pinctrl_tigerlake serio_raw ip6_tables ip_tables fuse ecryptfs i2c_dev
[ 1276.364678] CR2: 000000000000001b
[ 1276.364682] ---[ end trace 0000000000000000 ]---
[ 1276.364684] RIP: 0010:iwl_mvm_vif_dbgfs_add_link+0x7e/0xc0 [iwlmvm]
[ 1276.364730] Code: 03 f3 48 ab 4d 85 ed 74 34 48 89 f3 4c 89 e9 48 c7 c2 b8 1f 8d c1 4c 89 e7 be 64 00 00 00 e8 b9 1d 74 e4 48 8b b5 c8 1c 00 00 <49> 8b 7d 28 4c 89 e2 e8 a6 a1 d2 e3 48 89 83 a8 05 00 00 48 8b 44
[ 1276.364733] RSP: 0018:ffffa6e5830b7568 EFLAGS: 00010246
[ 1276.364736] RAX: 0000000000000018 RBX: ffff94399baf1c38 RCX: 0000000000000007
[ 1276.364739] RDX: 0000000000000000 RSI: ffff94398f092c00 RDI: 00000000830b756c
[ 1276.364742] RBP: ffff9439a6801fc8 R08: ffffffffc18d1fcb R09: 0000000000000000
[ 1276.364744] R10: 0000000000000001 R11: 0000000000000100 R12: ffffa6e5830b756c
[ 1276.364747] R13: fffffffffffffff3 R14: ffff94399baf1c38 R15: 0000000000000000
[ 1276.364749] FS:  00007f3ac98dd540(0000) GS:ffff94410fa80000(0000) knlGS:0000000000000000
[ 1276.364753] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1276.364756] CR2: 000000000000001b CR3: 000000011eaf2003 CR4: 0000000000f70ef0
[ 1276.364758] PKRU: 55555554
[ 1276.364760] note: NetworkManager[1086] exited with irqs disabled
[ 1276.595390] i915 0000:00:02.0: [drm] Selective fetch area calculation failed in pipe A
Additionally tried strace'ing some of the programs that hang in this weird state:
`ping localhost` hangs, but `ping `127.0.0.1` succeeds. The strace -f -T of `ping localhost` ends with
Code:
995147 14:12:00 openat(AT_FDCWD, "/etc/gai.conf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) <0.000008>
995147 14:12:00 futex(0x7fe4d553a7b4, FUTEX_WAKE_PRIVATE, 2147483647) = 0 <0.000006>
995147 14:12:00 socket(AF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, NETLINK_ROUTE) = 5 <0.000012>
995147 14:12:00 bind(5, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 0 <0.000009>
995147 14:12:00 getsockname(5, {sa_family=AF_NETLINK, nl_pid=995147, nl_groups=00000000}, [12]) = 0 <0.000007>
995147 14:12:00 sendto(5, [{nlmsg_len=20, nlmsg_type=RTM_GETADDR, nlmsg_flags=NLM_F_REQUEST|NLM_F_DUMP, nlmsg_seq=1709467920, nlmsg_pid=0}, {ifa_family=AF_UNSPEC, ...}], 20, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12
Note the weirdly unterminated last line. IIRC `strace sudo ls` ended with similar sendto syscall, albeit different socket number.
 
Old 03-06-2024, 12:20 AM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Does the same thing happen in an X11 session instead of Wayland? Does the same thing happen in an IceWM session instead of Plasma?

SDDM could be playing a part too. I've stopped using it in Fedora. I use either XDM, LightDM, KDM or TDM in Fedora 39 & prior for running Plasma.

Does your normal connectivity require wireless? If not, switch to another method, such as static IP, and/or use something other than NetworkMangler. My Fedoras all use systemd-network, same as all my other installed systemd distros.
 
Old 03-06-2024, 07:49 PM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
It appears that problems with r8152 being non-functional after reconnection are known. Success after using ethtool to disable scatter-gather is reported toward the end of that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Sound non-functional on Lenovo P50 running Mint 18 after failed update wingman358 Linux - Newbie 2 11-09-2016 10:49 PM
Realtek 8191SEvB Non-functional after fresh install Zymus Linux - Laptop and Netbook 4 02-27-2012 01:56 PM
[SOLVED] [13.37] changing to USB speakers with non-functional alsaconf Stephen Morgan Slackware 3 06-02-2011 01:39 AM
madwifi non-functional after kernel rebuild, reinstall, SW 12.1 original_jamingrit Linux - Wireless Networking 6 08-10-2008 08:33 PM
non-functional usb ports pmetzak Linux - Hardware 3 01-10-2008 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration