You are not logged in.

#1 2021-06-29 17:35:56

fullbyte
Member
Registered: 2021-06-29
Posts: 5

Dwm freezes whenever I press almost any XF86* key

Hi there,

whenever I press for example, the pause key from my keyboard, dwm just freezes and I can only move my mouse.

I can only press the volume up & down keys without dwm just freezing.

Heres my Xorg log: https://gist.github.com/f1bede00c913b27 … 9d6a651559

xinitrc:

xrandr --output HDMI-0 --mode 1920x1080 --output HDMI-1 --mode 1920x1080 --left-of HDMI-0 &


#setxkbmap -option caps:swapescape
setxkbmap gb &

# compositor

picom -f &

#redshift &

slstatus &



exec dbus-launch --exit-with-session  dwm

I have no idea what other info I can provide that would help.

If there is any, please let me know.

Thank you

Last edited by fullbyte (2021-06-29 18:39:46)

Offline

#2 2021-06-29 17:48:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Dwm freezes whenever I press almost any XF86* key


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-06-29 17:53:22

fullbyte
Member
Registered: 2021-06-29
Posts: 5

Re: Dwm freezes whenever I press almost any XF86* key

I replaced the /etc/X11/xinit/xinitrc with the one I showed in the thread without backing it up.

What do I do then?

Offline

#4 2021-06-29 18:02:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Dwm freezes whenever I press almost any XF86* key

Did you actually *read* the article? Why would you replace the template with your broken version?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2021-06-29 18:03:30

fullbyte
Member
Registered: 2021-06-29
Posts: 5

Re: Dwm freezes whenever I press almost any XF86* key

I actually never read it because previously it seemingly worked fine.

But yea, I should've read it before editing my .xinitrc

Offline

#6 2021-06-29 18:12:16

fullbyte
Member
Registered: 2021-06-29
Posts: 5

Re: Dwm freezes whenever I press almost any XF86* key

A friend just sent me the default xinitrc and now it looks like this

#!/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 [ -n "`/etc/X11/chooser.sh`" ]; then
 command="`/etc/X11/chooser.sh`"
else
 failsafe="yes"
fi

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

if [ -n "$failsafe" ]; then
	xrandr --output HDMI-0 --mode 1920x1080 --output HDMI-1 --mode 1920x1080 --left-of HDMI-0 &
	setxkbmap gb &
	xwallpaper --output HDMI-0 --stretch ~/git/wallpapers/0256.jpg --output HDMI-1 --stretch ~/git/wallpapers/0257.jpg &
	picom -f &
	slstatus &
	exec dbus-launch --exit-with-session  dwm

else
 exec $command
fi

Does it look fine now?

Also, that sadly did not resolve my issue though.

Last edited by fullbyte (2021-06-29 18:13:21)

Offline

#7 2021-06-29 18:19:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Dwm freezes whenever I press almost any XF86* key

Well, it is still wrong. What is the point of the chooser block? And why are you still using exec dbus-launch?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2021-06-29 18:23:04

fullbyte
Member
Registered: 2021-06-29
Posts: 5

Re: Dwm freezes whenever I press almost any XF86* key

I use the dbus-launch block because a few months back, playerctl apparently didn't work for me without it so i added it and then it worked and I just forgot to remove it now that it does work.

#!/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

if [ -n "$failsafe" ]; then
	xrandr --output HDMI-0 --mode 1920x1080 --output HDMI-1 --mode 1920x1080 --left-of HDMI-0 &
	setxkbmap gb &
	xwallpaper --output HDMI-0 --stretch ~/git/wallpapers/0256.jpg --output HDMI-1 --stretch ~/git/wallpapers/0257.jpg &
	picom -f &
	slstatus &
	exec  dwm

else
 exec $command
fi

Is it okay now? I feel like im completely messing it up.

Offline

#9 2021-06-29 20:31:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Dwm freezes whenever I press almost any XF86* key

Well, the fialsafe block is still pointless...

Post your dwm config and change your start line to redirect all dwm errors to a file.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2021-06-29 20:37:51

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

Re: Dwm freezes whenever I press almost any XF86* key

Also don't fork the xrandr, xwallpaper and esp. setxkbmap calls.

Offline

Board footer

Powered by FluxBB