Can't gently restart with REISUB when Nouveau driver locks itself up

I have bought a full-sized USB keyboard for a MacBook Pro 15-inch 2009 due to Nouveau driver locking up and the fact that MacBook keyboard doesn’t have a SysRq key. I have enabled SysRq in the GRUB and journalctl -f prints out sysrq HELP and all key combinations when I press Alt + SysRq + H.

So it works, however when I type REISUB when Nouveau and the screen lock up, even with 10-20 seconds in between key presses, I still get fsck doing its thing on reboot. I can confirm that REISUB is still working during a lockup due to Num/Caps/Scroll locks LED-s working after doing the Alt + SysRq + R, otherwise they don’t work.

So, I was wondering if there is a some other way of safely restarting that I could try.

System information:

    ~  inxi -Fazy                                                                                                                                                       ✔ 
System:
  Kernel: 6.6.25-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: hpet avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.6-x86_64
    root=UUID=3f4ecbd3-6f6f-4b12-851e-a33c129547da rw video=LVDS-2:d
    sysrq_always_enabled=1
  Desktop: KDE Plasma v: 5.27.11 tk: Qt v: 5.15.12 info: frameworks
    v: 5.115.0 wm: kwin_wayland vt: 1 dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Laptop System: Apple product: MacBookPro5,3 v: 1.0
    serial: <superuser required> Chassis: type: 10 v: Mac-F22587C8
    serial: <superuser required>
  Mobo: Apple model: Mac-F22587C8 serial: <superuser required>
    uuid: <superuser required> UEFI: Apple v: MBP53.88Z.00AC.B03.0906151647
    date: 06/15/09
Battery:
  ID-1: BAT0 charge: 69.0 Wh (100.0%) condition: 69.0/74.5 Wh (92.6%)
    volts: 12.4 min: 10.8 model: SMP A1321 type: Li-ion serial: N/A status: full
    cycles: 7
CPU:
  Info: model: Intel Core2 Duo T9600 bits: 64 type: MCP arch: Penryn level: v1
    built: 2008 process: Intel 45nm family: 6 model-id: 0x17 (23)
    stepping: 0xA (10) microcode: 0xA0B
  Topology: cpus: 1x cores: 2 smt: <unsupported> cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 1592 min/max: 1596/2793 scaling: driver: acpi-cpufreq
    governor: powersave cores: 1: 1592 2: 1592 bogomips: 11148
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: EPT disabled
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode;
    SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, STIBP: disabled, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA G96CM [GeForce 9600M GT] vendor: Apple driver: nouveau
    v: kernel non-free: series: 340.xx status: legacy (EOL~2019-12-xx) last:
    release: 340.108 kernel: 5.4 xorg: 1.20 arch: Tesla process: 40-80nm
    built: 2006-2013 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 ports:
    active: LVDS-1 empty: DP-1 bus-ID: 02:00.0 chip-ID: 10de:0647
    class-ID: 0300 temp: 71.0 C
  Device-2: NVIDIA C79 [GeForce 9400M] vendor: Apple driver: nouveau
    v: kernel non-free: series: 340.xx status: legacy (EOL~2019-12-xx) last:
    release: 340.108 kernel: 5.4 xorg: 1.20 arch: Tesla process: 40-80nm
    built: 2006-2013 ports: active: none empty: LVDS-2 bus-ID: 03:00.0
    chip-ID: 10de:0863 class-ID: 0300 temp: 66.0 C
  Display: wayland server: X.org v: 1.21.1.12 with: Xwayland v: 23.2.5
    compositor: kwin_wayland driver: X: loaded: modesetting alternate: fbdev,vesa
    dri: nouveau gpu: nouveau,nouveau display-ID: 0
  Monitor-1: LVDS-1 res: 1440x900 size: N/A modes: N/A
  API: EGL v: 1.5 hw: drv: nvidia nouveau platforms: device: 0 egl: 1.4
    drv: nouveau device: 1 egl: 1.4 drv: nouveau device: 2 drv: swrast gbm:
    egl: 1.4 drv: nouveau surfaceless: egl: 1.4 drv: nouveau wayland: egl: 1.4
    drv: nouveau x11: egl: 1.4 drv: nouveau
  API: OpenGL v: 4.5 compat-v: 3.3 vendor: mesa v: 24.0.2-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: NV96 device-ID: 10de:0647
    memory: 494.1 MiB unified: no display-ID: :1.0
  API: Vulkan Message: No Vulkan data available.
Audio:
  Device-1: NVIDIA MCP79 High Definition Audio driver: snd_hda_intel v: kernel
    bus-ID: 00:08.0 chip-ID: 10de:0ac0 class-ID: 0403
  API: ALSA v: k6.6.25-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.3 status: off with: wireplumber status: active
    tools: pw-cli,wpctl
  Server-3: PulseAudio v: 17.0 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl
Network:
  Device-1: NVIDIA MCP79 Ethernet driver: forcedeth v: kernel port: 31e0
    bus-ID: 00:0a.0 chip-ID: 10de:0ab0 class-ID: 0200
  IF: enp0s10 state: down mac: <filter>
  Device-2: Broadcom BCM4322 802.11a/b/g/n Wireless LAN
    vendor: Apple AirPort Extreme driver: wl v: kernel modules: ssb pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 14e4:432b class-ID: 0280
  IF: wlp4s0 state: up mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: Apple Bluetooth Host Controller driver: btusb v: 0.8 type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 2-1.1:3 chip-ID: 05ac:8213
    class-ID: fe01 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 465.76 GiB used: 350.27 GiB (75.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT500BX500SSD1
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 061 scheme: GPT
Partition:
  ID-1: / raw-size: 465.46 GiB size: 457.09 GiB (98.20%)
    used: 350.27 GiB (76.6%) fs: ext4 dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 292 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 10 (default 60) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: file size: 3 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 66.0 C mobo: N/A
  Fan Speeds (rpm): N/A
  GPU: device: nouveau temp: 66.0 C device: nouveau temp: 70.0 C mV: 900.00
Info:
  Memory: total: 8 GiB note: est. available: 7.51 GiB used: 3.21 GiB (42.8%)
  Processes: 205 Power: uptime: 2h 7m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 2.99 GiB services: org_kde_powerdevil,upowerd
    Init: systemd v: 255 default: graphical tool: systemctl
  Packages: 1917 pm: pacman pkgs: 1847 libs: 535 tools: pamac pm: flatpak
    pkgs: 70 Compilers: clang: 16.0.6 gcc: 13.2.1 Shell: Zsh v: 5.9 default: Bash
    v: 5.2.26 running-in: konsole inxi: 3.3.33

Output of journalctl -rp err -b-1 (it repeats the last couple of lines infinitely)

    ~  journalctl -rp err -b-1                                                                                                                                  ✔  27s  
tra 08 11:10:03 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:03 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:03 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:03 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:02 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:02 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:02 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:02 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:02 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:02 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:02 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:02 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:02 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:02 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:02 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:02 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:01 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:01 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:01 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:01 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:00 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:00 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:00 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:10:00 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:59 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:59 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:59 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:59 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:59 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:59 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:59 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:59 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:59 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:58 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:58 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:58 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:58 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:58 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:58 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:58 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:57 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:57 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:57 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: Renderer[2088]: nv50cal_space: -16
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: fb: trapped read at 0040000000 on channel 8 [1f16c000 plasmashell[1646]] engine 00 [PGRAPH] client 0a [TEXTUR>
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr: 00200000 [] ch 8 [001f16c000 plasmashell[1646]] subc 3 class 8297 mthd 15e0 data 00000000
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr: TRAP_TEXTURE - TP1: 00000003 [ FAULT]
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00409910: 00000000
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         0040990c: 40000430
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00409908: 00400000
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00409904: 20096001
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr: magic set 1:
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr: TRAP_TEXTURE - TP0: 00000003 [ FAULT]
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00408910: 00000000
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         0040890c: 40000430
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00408908: 00400000
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00408904: 20095e01
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr: magic set 0:
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: fb: trapped read at 0040000000 on channel 8 [1f16c000 plasmashell[1646]] engine 00 [PGRAPH] client 0a [TEXTUR>
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr: 00200000 [] ch 8 [001f16c000 plasmashell[1646]] subc 3 class 8297 mthd 15e0 data 00000000
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr: TRAP_TEXTURE - TP1: 00000003 [ FAULT]
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00409910: 00000000
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         0040990c: 40000430
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00409908: 00400000
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00409904: 20092e01
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr: magic set 1:
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr: TRAP_TEXTURE - TP0: 00000003 [ FAULT]
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00408910: 00000000
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         0040890c: 40000430
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00408908: 00400000
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00408904: 20094901
tra 08 11:09:56 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr: magic set 0:
tra 08 11:09:55 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: fb: trapped read at 0040000000 on channel 8 [1f16c000 plasmashell[1646]] engine 00 [PGRAPH] client 0a [TEXTUR>
tra 08 11:09:55 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr: 00200000 [] ch 8 [001f16c000 plasmashell[1646]] subc 3 class 8297 mthd 15e0 data 00000000
tra 08 11:09:55 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr: TRAP_TEXTURE - TP1: 00000003 [ FAULT]
tra 08 11:09:55 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00409910: 00000000
tra 08 11:09:55 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         0040990c: 40000430
tra 08 11:09:55 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00409908: 00400000
tra 08 11:09:55 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00409904: 20093301
tra 08 11:09:55 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr: magic set 1:
tra 08 11:09:55 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr: TRAP_TEXTURE - TP0: 00000003 [ FAULT]
tra 08 11:09:55 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00408910: 00000000
tra 08 11:09:55 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         0040890c: 40000430
tra 08 11:09:55 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00408908: 00400000
tra 08 11:09:55 hs0220-macbookpro53 kernel: nouveau 0000:02:00.0: gr:         00408904: 20093f01

My own personal experience of having to use REISUB is that from time to time it fails to sync the filesystems properly so, as you’ve found here, they have to be FSCKd afterwards. Though on the majority of occasions I’ve used it, everything works as I’d expect.

I’ve never worked out if there’s some particular situation where it doesn’t work, though I can’t help suspecting that perhaps I’ve moved on too quickly after triggering the filesystem sync.

Yeah, I might have not given enough time for the filesystem to sync itself. I might try having 5-10 seconds in between key presses and then wait a minute after the sync combination.

Yup, the issue was that I was typing REISUB too quickly. Nouveau crashed two times recently and both times I have given a minute between every single SysRq command. That was enough and the reboot went smoothly without any errors.

2 Likes

Nice to know for the next time I have a system hang.

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.