Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Update broke dwm [Urgent] (Read 724 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

Update broke dwm [Urgent]

I haven't updated in around 3 months. I did pacman -Syu and while it showed some weird errors

it kept working, and my entire session was normal, without me thinking anything is wrong, and so I later shut down my computer and went to sleep. However, after I rebooted?...

I enter from tty1, and on entering, I cannot do anything. I see desktop background, which lacks all the top-right "widgets" (e.g. date/hour)
Mouse moves normally but clicking it doesnt do anything.

As for tabs 1~9, pressing Super+number, does absolutely nothing.
Same for Super+ any hotkey, to pop up a program or do some functionality. Its like the keyboard is lifeless.
However, I can press CTRL+ALT+Fnumber, to go to other tty and enter user/pass there, so the keyboard is certainly not disabled.

Tell me what to type (debug log), and I will do my best to provide it.
Output Logs below of the 4 commands from helpFAQ
dmesg: read kernel buffer failed. Operation not permitted.
lsusb: command not found.
lsmod:
Code: [Select]
Module                  Size  Used by
mousedev               24576  0
intel_rapl_msr         20480  0
snd_usb_audio         385024  0
snd_usbmidi_lib        45056  1 snd_usb_audio
uas                    32768  0
usb_storage            81920  1 uas
ppdev                  24576  0
wmi_bmof               16384  0
snd_rawmidi            53248  1 snd_usbmidi_lib
snd_seq_device         16384  1 snd_rawmidi
usbhid                 73728  0
mc                     69632  1 snd_usb_audio
r8169                 102400  0
intel_rapl_common      32768  1 intel_rapl_msr
realtek                36864  1
mdio_devres            16384  1 r8169
snd_hda_codec_realtek   167936  1
edac_mce_amd           57344  0
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
libphy                172032  3 r8169,mdio_devres,realtek
ledtrig_audio          16384  1 snd_hda_codec_generic
snd_hda_codec_hdmi     86016  1
rfkill                 32768  0
snd_hda_intel          61440  0
snd_intel_dspcfg       36864  1 snd_hda_intel
snd_intel_sdw_acpi     20480  1 snd_intel_dspcfg
nouveau              2768896  1
kvm                  1118208  0
snd_hda_codec         188416  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
nls_iso8859_1          16384  1
snd_hda_core          118784  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
irqbypass              16384  1 kvm
vfat                   24576  1
fat                    90112  1 vfat
mxm_wmi                16384  1 nouveau
crct10dif_pclmul       16384  1
snd_pcm               172032  5 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
crc32_pclmul           16384  0
video                  57344  1 nouveau
ghash_clmulni_intel    16384  0
snd_timer              49152  1 snd_pcm
aesni_intel           380928  0
drm_ttm_helper         16384  1 nouveau
ttm                    86016  2 drm_ttm_helper,nouveau
snd                   126976  12 snd_hda_codec_generic,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
crypto_simd            16384  1 aesni_intel
cryptd                 24576  2 crypto_simd,ghash_clmulni_intel
ccp                   135168  0
drm_dp_helper         163840  1 nouveau
soundcore              16384  1 snd
sp5100_tco             20480  0
rapl                   16384  0
rng_core               20480  1 ccp
i2c_piix4              36864  0
k10temp                16384  0
parport_pc             69632  0
parport                77824  2 parport_pc,ppdev
gpio_amdpt             20480  0
wmi                    45056  3 wmi_bmof,mxm_wmi,nouveau
pinctrl_amd            32768  0
gpio_generic           20480  1 gpio_amdpt
acpi_cpufreq           32768  0
joydev                 28672  0
mac_hid                16384  0
xpad                   45056  0
ff_memless             20480  1 xpad
ext4                 1011712  2
crc32c_generic         16384  0
crc16                  16384  1 ext4
mbcache                16384  1 ext4
jbd2                  188416  1 ext4
crc32c_intel           24576  4
xhci_pci               20480  0
xhci_pci_renesas       24576  1 xhci_pci
lspci -v:
Code: [Select]
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Root Complex
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7a38
Flags: fast devsel

00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) I/O Memory Management Unit
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7a38
Flags: fast devsel, IRQ 25
Capabilities: <access denied>

00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
Flags: fast devsel, IOMMU group 0

00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge (prog-if 00 [Normal decode])
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7a38
Flags: bus master, fast devsel, latency 0, IRQ 26, IOMMU group 1
Bus: primary=00, secondary=03, subordinate=28, sec-latency=0
I/O behind bridge: f000-ffff [size=4K] [16-bit]
Memory behind bridge: f7500000-f76fffff [size=2M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
Flags: fast devsel, IOMMU group 2

00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
Flags: fast devsel, IOMMU group 3

00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge (prog-if 00 [Normal decode])
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7a38
Flags: bus master, fast devsel, latency 0, IRQ 27, IOMMU group 4
Bus: primary=00, secondary=29, subordinate=29, sec-latency=0
I/O behind bridge: e000-efff [size=4K] [16-bit]
Memory behind bridge: f6000000-f70fffff [size=17M] [32-bit]
Prefetchable memory behind bridge: e0000000-f1ffffff [size=288M] [32-bit]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
Flags: fast devsel, IOMMU group 5

00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
Flags: fast devsel, IOMMU group 6

00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B (prog-if 00 [Normal decode])
Subsystem: Device 7a38:1462
Flags: bus master, fast devsel, latency 0, IRQ 28, IOMMU group 7
Bus: primary=00, secondary=2a, subordinate=2a, sec-latency=0
I/O behind bridge: [disabled] [32-bit]
Memory behind bridge: f7200000-f74fffff [size=3M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
Flags: fast devsel, IOMMU group 8

00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B (prog-if 00 [Normal decode])
Subsystem: Device 7a38:1462
Flags: bus master, fast devsel, latency 0, IRQ 30, IOMMU group 9
Bus: primary=00, secondary=2b, subordinate=2b, sec-latency=0
I/O behind bridge: [disabled] [32-bit]
Memory behind bridge: f7700000-f77fffff [size=1M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 59)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7a38
Flags: 66MHz, medium devsel, IOMMU group 10
Kernel driver in use: piix4_smbus
Kernel modules: i2c_piix4, sp5100_tco

00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7a38
Flags: bus master, 66MHz, medium devsel, latency 0, IOMMU group 10

00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0
Flags: fast devsel, IOMMU group 11

00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1
Flags: fast devsel, IOMMU group 11

00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2
Flags: fast devsel, IOMMU group 11

00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3
Flags: fast devsel, IOMMU group 11
Kernel driver in use: k10temp
Kernel modules: k10temp

00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4
Flags: fast devsel, IOMMU group 11

00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 5
Flags: fast devsel, IOMMU group 11

00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 6
Flags: fast devsel, IOMMU group 11

00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 7
Flags: fast devsel, IOMMU group 11

03:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset USB 3.1 XHCI Controller (rev 01) (prog-if 30 [XHCI])
Subsystem: ASMedia Technology Inc. Device 1142
Flags: bus master, fast devsel, latency 0, IRQ 29, IOMMU group 12
Memory at f76a0000 (64-bit, non-prefetchable) [size=32K]
Capabilities: <access denied>
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci

03:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset SATA Controller (rev 01) (prog-if 01 [AHCI 1.0])
Subsystem: ASMedia Technology Inc. Device 1062
Flags: bus master, fast devsel, latency 0, IRQ 39, IOMMU group 12
Memory at f7680000 (32-bit, non-prefetchable) [size=128K]
Expansion ROM at f7600000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: ahci

03:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Bridge (rev 01) (prog-if 00 [Normal decode])
Subsystem: ASMedia Technology Inc. Device 0201
Flags: bus master, fast devsel, latency 0, IRQ 32, IOMMU group 12
Bus: primary=03, secondary=20, subordinate=28, sec-latency=0
I/O behind bridge: f000-ffff [size=4K] [16-bit]
Memory behind bridge: f7500000-f75fffff [size=1M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: <access denied>
Kernel driver in use: pcieport

20:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01) (prog-if 00 [Normal decode])
Subsystem: ASMedia Technology Inc. Device 3306
Flags: bus master, fast devsel, latency 0, IRQ 33, IOMMU group 12
Bus: primary=20, secondary=25, subordinate=25, sec-latency=0
I/O behind bridge: f000-ffff [size=4K] [16-bit]
Memory behind bridge: f7500000-f75fffff [size=1M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: <access denied>
Kernel driver in use: pcieport

20:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01) (prog-if 00 [Normal decode])
Subsystem: ASMedia Technology Inc. Device 3306
Flags: bus master, fast devsel, latency 0, IRQ 35, IOMMU group 12
Bus: primary=20, secondary=26, subordinate=26, sec-latency=0
I/O behind bridge: [disabled] [32-bit]
Memory behind bridge: [disabled] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: <access denied>
Kernel driver in use: pcieport

20:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01) (prog-if 00 [Normal decode])
Subsystem: ASMedia Technology Inc. Device 3306
Flags: bus master, fast devsel, latency 0, IRQ 36, IOMMU group 12
Bus: primary=20, secondary=27, subordinate=27, sec-latency=0
I/O behind bridge: [disabled] [32-bit]
Memory behind bridge: [disabled] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: <access denied>
Kernel driver in use: pcieport

20:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01) (prog-if 00 [Normal decode])
Subsystem: ASMedia Technology Inc. Device 3306
Flags: bus master, fast devsel, latency 0, IRQ 38, IOMMU group 12
Bus: primary=20, secondary=28, subordinate=28, sec-latency=0
I/O behind bridge: [disabled] [32-bit]
Memory behind bridge: [disabled] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: <access denied>
Kernel driver in use: pcieport

25:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7a38
Flags: bus master, fast devsel, latency 0, IRQ 29, IOMMU group 12
I/O ports at f000 [size=256]
Memory at f7504000 (64-bit, non-prefetchable) [size=4K]
Memory at f7500000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: r8169
Kernel modules: r8169

29:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Gigabyte Technology Co., Ltd GV-N105TOC-4GD
Flags: bus master, fast devsel, latency 0, IRQ 63, IOMMU group 13
Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: nouveau
Kernel modules: nouveau

29:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
Subsystem: Gigabyte Technology Co., Ltd Device 3763
Flags: bus master, fast devsel, latency 0, IRQ 64, IOMMU group 13
Memory at f7080000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

2a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7a38
Flags: fast devsel, IOMMU group 14
Capabilities: <access denied>

2a:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Platform Security Processor
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7a38
Flags: bus master, fast devsel, latency 0, IRQ 59, IOMMU group 15
Memory at f7300000 (32-bit, non-prefetchable) [size=1M]
Memory at f7400000 (32-bit, non-prefetchable) [size=8K]
Capabilities: <access denied>
Kernel driver in use: ccp
Kernel modules: ccp

2a:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Zeppelin USB 3.0 Host controller (prog-if 30 [XHCI])
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7a38
Flags: bus master, fast devsel, latency 0, IRQ 50, IOMMU group 16
Memory at f7200000 (64-bit, non-prefetchable) [size=1M]
Capabilities: <access denied>
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci

2b:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Renoir PCIe Dummy Function
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7a38
Flags: fast devsel, IOMMU group 17
Capabilities: <access denied>

2b:00.2 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51) (prog-if 01 [AHCI 1.0])
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7a38
Flags: bus master, fast devsel, latency 0, IRQ 41, IOMMU group 18
Memory at f7708000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: ahci

2b:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) HD Audio Controller
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 9a38
Flags: bus master, fast devsel, latency 0, IRQ 66, IOMMU group 19
Memory at f7700000 (32-bit, non-prefetchable) [size=32K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

Re: Update broke dwm

Reply #1
Try recompiling and then reinstalling dwm, since this was a library update, building it against the newer library version might fix it.

Also I have just updated my system and dwm is working fine, although I'm running vanilla dwm with no patches.

>dmesg: read kernel buffer failed. Operation not permitted.

Do sudo dmesg

Re: Update broke dwm

Reply #2
Quote
>dmesg: read kernel buffer failed. Operation not permitted.

Do sudo dmesg
More...LikeQuote
Silly me, I dont know how I forgot that, as its the first thing I do when a command fails lol
The output is on the attached file below

Quote
Try recompiling and then reinstalling dwm
I entered tty2, went to .local/src/dwm and wrote
Code: [Select]
sudo make clean install
and then rebooted computer.
Then I entered tty1, it still doesnt work :(

I then rebooted (tty1 no input means manual button irl reboot) and entered tty2, and wrote:
Code: [Select]
sudo pacman -Syu dwm
Code: [Select]
error: target not found: dwm

I cannot even install dwm? I have to admit I am not good at sysadmin stuff, I didn't even install dwm myself, but it came pre-set with my setup, surely there is some other way to install dwm? Or go to its previous version? I didn't touch it and it was working finely for a full year, damn forced updates (can't download anything with sudo pacman -S without -Syu, and then it breaks your pc even though it was stable)

Re: Update broke dwm

Reply #3
Quote
I cannot even install dwm? I have to admit I am not good at sysadmin stuff, I didn't even install dwm myself, but it came pre-set with my setup, surely there is some other way to install dwm? Or go to its previous version? I didn't touch it and it was working finely for a full year, damn forced updates (can't download anything with sudo pacman -S without -Syu, and then it breaks your pc even though it was stable)
I am used to installing with
Code: [Select]
sudo pacman -S
to have everything tidy, started using yay a month ago.

Anyway, I followed the instructions from https://wiki.archlinux.org/title/dwm
tl;dr:
Code: [Select]
git clone git://git.suckless.org/dwm
cd dwm
sudo make install

I rebooted the pc. I see 6.3 top-right instead of 6.2, the bar is definitely different (black-gray-sleek), and top-left has 1~9 by default (previous config.h had tabs showing only when they existed, so by default 1)

Mouse clicking any of these tabs doesnt take me into them, and keyboard is as unresponsive as before. Super+number for example doesn't get me to them, Super+anything doesnt do anything, really.

I even tried installing the "update" version of the patch https://github.com/lukesmithxyz/dwm#installation-for-newbs and it shows 6.2 top-right, and is as unresponsive, so the newest update doesnt have anything to do by itself.

Anyway, if anyone has an idea on what's wrong (or how to revert system pre-update), do post freely and I will give it a try. Because the alternative is nuking the entire OS, wiping the drive, and starting from scratch. Boring and would take a few days to migrate some neat system scripts I have gotten used to. Going afk until then

Spoiler (click to show/hide)

Re: Update broke dwm

Reply #4
Can you give us your xinitrc file?

Re: Update broke dwm

Reply #5
Quote
Can you give us your xinitrc file?
Sure, I did some search engine magic and found its location(s)

~/.xinitrc
Code: [Select]
#!/bin/sh

# xinitrc runs automatically when you run startx.

# There are some small but important commands that need to be run when we start
# the graphical environment. There is a link to this file in ~/.xprofile
# because that file is run automatically if someone uses a display manager
# (login screen) and so they are needed there. To prevent doubling up commands,
# I source them here with the line below.

if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then
. "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile"
else
. "$HOME/.xprofile"
fi

#xbindkeys &

ssh-agent dwm

/etc/X11/xinit/xinitrc
Code: [Select]
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

Found some search results which say some xinitrc also exists in /usr/lib/X11/xinit but there is no /usr/lib/X11 path

2 Notes:
1. I tried playing mpv through tty2. It worked, and briefly showed the background of tty1 (desktop background and toolbar at the top), ofc no mouse allowed lol. When I entered tty1 after the mpv finished, it was pure gray screen and had to press power button.

2. On dmesg above, maybe the keyboard configs have something to do with it? See line 907
Code: [Select]
[    3.594720] snd_hda_intel 0000:29:00.1: bound 0000:29:00.0 (ops nv50_audio_component_bind_ops [nouveau])
[    3.620116] hid-generic 0003:0C45:8603.0004: input,hidraw3: USB HID v1.11 Keyboard [SONiX SI Gaming Keyboard] on usb-0000:2a:00.3-4/input0
[    3.629707] input: SONiX SI Gaming Keyboard Consumer Control as /devices/pci0000:00/0000:00:07.1/0000:2a:00.3/usb3/3-4/3-4:1.1/0003:0C45:8603.0005/input/input21
[    3.632284] usb 3-1: Warning! Unlikely big volume range (=496), cval->res is probably wrong.

I did install aspell-en package (was trying to install claws mail, or rainloop, both via pacman/yay, hence forced to -Syu), maybe thats something to blame? Is there some way to mass-remove packages installed at a certain time (e.g. yesterday?) so as I uninstall claws mail and that package and mozilla thunderbird? In order to see if those are somehow problematic (the packages behind them at least)

Re: Update broke dwm

Reply #6
Seeing those .xinitrc comments was interesting. Here is .xprofile:
Code: [Select]
#!/bin/sh

# This file runs when a DM logs you into a graphical session.
# If you use startx/xinit like a Chad, this file will also be sourced.

cmus & # music player daemon-you might prefer it as a service though # couldn't get it working so got cmus instead!
#xbindkeys &             # includes custom shortcut filebrowser
remaps & # run the remaps script, switching caps/esc and more; check it for more info
setbg & # set the background with the `setbg` script
#xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & # Uncomment to use Xresources colors/settings on startup
xcompmgr & # xcompmgr for transparency
dunst & # dunst for notifications
xset r rate 300 50 & # Speed xrate up
unclutter & # Remove mouse when idle

# This line autostarts an instance of Pulseaudio that does not exit on idle.
# This is "necessary" on Artix due to a current bug between PA and
# Chromium-based browsers where they fail to start PA and use dummy output.
pidof -s runit &&
pidof -s ! pidof -s pulseaudio >/dev/null 2>&1 &&
setsid -f pulseaudio --start --exit-idle-time=-1 >/dev/null 2>&1

Aside of the 2 notes above, I can add one final: I had changed the language of the keyboard (default still english ofc) around a year ago and it worked finely. Perhaps the update somehow ruined my keyboard settings, hence somehow "crashing" dwm? In tty2, no shortcut allows me to write in my alternative language. All text I type is english/latin.

 

Re: Update broke dwm [Urgent]

Reply #7
Quote
I did install aspell-en package (was trying to install claws mail, or rainloop, both via pacman/yay, hence forced to -Syu), maybe thats something to blame? Is there some way to mass-remove packages installed at a certain time (e.g. yesterday?) so as I uninstall claws mail and that package and mozilla thunderbird? In order to see if those are somehow problematic (the packages behind them at least)
I went and
Code: [Select]
sudo pacman -R
those packages, and then got greedy and also did
Code: [Select]
yay -Yc
without testing if removing those 3~4 packages works before that command.

On reboot on entering tty1, I had absolutely no GUI. Typing `dwm` says cannot open display.
So, time to take the good files, and wipe the entire drive. Thank you for those you helped me, the replies were swift. Though its a good reminder as to why rolling release is bad. Software updating from like 8 months ago breaks so easily when it interacts with old. Is there a way to disable pacman from requiring me to
Code: [Select]
sudo pacman -Syu
when I want to install a new package? (because otherwise it errors)

Re: Update broke dwm [Urgent]

Reply #8
Ok, let's start with a clean slate, so listen carefully and do what I tell you:

1- make a backup of ~/.xinitrc and ~/.xprofile or whatever file you put your X resources in, and then remove them

2- get dwm from suckless, no middleman like AUR or repos

3- remove your current dwm installation

4- compile and install the dwm you got from step 2 with no modifications whatsoever, throw any notion of patching out the window

5- execute this command: echo 'exec dwm' > ~/.xinitrc

6- and finnally: startx

See if it works and report here.

Re: Update broke dwm [Urgent]

Reply #9
I went and
Code: [Select]
sudo pacman -R
those packages, and then got greedy and also did
Code: [Select]
yay -Yc
without testing if removing those 3~4 packages works before that command.

On reboot on entering tty1, I had absolutely no GUI. Typing `dwm` says cannot open display.
So, time to take the good files, and wipe the entire drive. Thank you for those you helped me, the replies were swift. Though its a good reminder as to why rolling release is bad. Software updating from like 8 months ago breaks so easily when it interacts with old. Is there a way to disable pacman from requiring me to
Code: [Select]
sudo pacman -Syu
when I want to install a new package? (because otherwise it errors)
>Though its a good reminder as to why rolling release is bad.

In your case not really, you're running dwm, one of the simplest window managers out there, you're not running KDE.

I'm running dwm, and I updated just now so why does it still work?

The update either screwed up one of the graphics drivers, or you patched dwm into oblivion, or one of the dozen or so processes you start are causing problems.