Re: OpenBSD hangs in X, but mouse can still move (ThinkPad T470)

2022-09-02 Thread Hashim Mahmoud
On Wed, 31 Aug 2022 17:01:32 +0100
Hashim Mahmoud  wrote:

> (Sorry, I accidentally pressed Send in the middle of typing, ignore
> the previous message...)
> 
> I've been using OpenBSD on a ThinkPad T470 for a couple of days now,
> and the experience is very nice. However, I've noticed an issue that
> occurred twice today: while I'm using cwm and a bunch of apps
> (Firefox, Claws Mail, KeepassXC, xterm, nothing special), OpenBSD
> completely freezes, but the mouse cursor can still move. I can't even
> switch to a different tty with ctrl+alt+F. But it seems that
> function keys still work, as pressing the mute button activates the
> red LED light on it (though pressing the backlight keys does
> nothing). Closing the lid to try to suspend the laptop fails, but the
> green LED power light and red ThinkPad light on the cover blink as
> they do when about to suspend, though they never stop blinking as the
> laptop never suspends. Nothing strange in Xorg.0.log and
> Xorg.0.log.old, and I'm not sure what else I need to check.
> 
> The first time this happened I was just using Firefox, and the second 
> time this happened was immediately after I started picom (I don't 
> usually use it but wanted to see it this time).
> 
> Any idea what's going on?

In case anybody else comes across this problem, I was able to ssh into
the machine and get some logs (though shutting down would only stop the
cursor from moving and nothing else). I would get
`__await_execution: stub` on my console three times, and then
`Asynchronous wait on fence :Xorg[73369]:2e16 timed out 
(hint:0x81724fe0s)`
after about 10 seconds and then the freeze occurs. I looked around the
internet a bit and turns out that using the intel(4) driver on newer
hardware is not recommended, so I just removed my xorg.conf.d, which
reverted me back to the modesetting(4) driver, and everything works
fine now. Though there are some drm errors in the console, they seem to
have no effect on me whatsoever.



OpenBSD hangs in X, but mouse can still move (ThinkPad T470)

2022-08-31 Thread Hashim Mahmoud
(Sorry, I accidentally pressed Send in the middle of typing, ignore the
previous message...)

I've been using OpenBSD on a ThinkPad T470 for a couple of days now,
and the experience is very nice. However, I've noticed an issue that
occurred twice today: while I'm using cwm and a bunch of apps (Firefox,
Claws Mail, KeepassXC, xterm, nothing special), OpenBSD completely
freezes, but the mouse cursor can still move. I can't even switch to a
different tty with ctrl+alt+F. But it seems that function
keys still work, as pressing the mute button activates the red LED
light on it (though pressing the backlight keys does nothing). Closing
the lid to try to suspend the laptop fails, but the green LED power
light and red ThinkPad light on the cover blink as they do when about
to suspend, though they never stop blinking as the laptop never
suspends. Nothing strange in Xorg.0.log and Xorg.0.log.old, and I'm not
sure what else I need to check.

The first time this happened I was just using Firefox, and the second 
time this happened was immediately after I started picom (I don't 
usually use it but wanted to see it this time).

Any idea what's going on?

picom.conf:
#
# Corners   #
#
# requires: https://github.com/sdhand/compton or 
https://github.com/jonaburg/picom
#corner-radius = 12;
#rounded-corners-exclude = [
#  "class_g = 'xlock'",
#  "window_type = 'dnd'",
#  "name = 'lemonbar'"
#];
#round-borders = 15;
#round-borders-exclude = [
  #"class_g = 'TelegramDesktop'",
#];

#
# Shadows   #
#
# Enabled client-side shadows on windows. Note desktop windows 
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow, 
# unless explicitly requested using the wintypes option.
#
# shadow = false
shadow = true;

# The blur radius for shadows, in pixels. (defaults to 12)
# shadow-radius = 12
shadow-radius = 15;

# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
shadow-opacity = .85

# The left offset for shadows, in pixels. (defaults to -15)
# shadow-offset-x = -15
shadow-offset-x = -12;

# The top offset for shadows, in pixels. (defaults to -15)
# shadow-offset-y = -15
shadow-offset-y = -12;

# Red color value of shadow (0.0 - 1.0, defaults to 0).
# shadow-red = 0

# Green color value of shadow (0.0 - 1.0, defaults to 0).
# shadow-green = 0

# Blue color value of shadow (0.0 - 1.0, defaults to 0).
# shadow-blue = 0

# Specify a list of conditions of windows that should have no shadow.
#
# examples:
#   shadow-exclude = "n:e:Notification";
#
# shadow-exclude = []
shadow-exclude = [
  #"name = 'Notification'",
  #"class_g = 'Conky'",
  #"class_g ?= 'Notify-osd'",
  #"class_g = 'Cairo-clock'",
  #"class_g = 'slop'",
  #"class_g = 'Polybar'",
  "_GTK_FRAME_EXTENTS@:c",
  "class_g = 'Firefox' && argb",
];

# Specify a X geometry that describes the region in which shadow should not
# be painted in, such as a dock window region. Use 
#shadow-exclude-reg = "x10+0+0"
# for example, if the 10 pixels on the bottom of the screen should not have 
shadows painted on.
#
# shadow-exclude-reg = "" 

# Crop shadow of a window fully on a particular Xinerama screen to the screen.
# xinerama-shadow-crop = false

#
#   Fading  #
#


# Fade windows in/out when opening/closing and when opacity changes,
#  unless no-fading-openclose is used.
# fading = false
fading = false;

# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
# fade-in-step = 0.028
fade-in-step = 0.025;

# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
# fade-out-step = 0.03
fade-out-step = 0.025;

# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
fade-delta = 8

# Specify a list of conditions of windows that should not be faded.
# don't need this, we disable fading for all normal windows with wintypes: {}
fade-exclude = [
  #"class_g = 'slop'"   # maim
]

# Do not fade on window open/close.
# no-fading-openclose = false

# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in 
Openbox, Fluxbox, etc.
# no-fading-destroyed-argb = false

#
#   Transparency / Opacity  #
#
# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
# inactive-opacity = 1
inactive-opacity = 1

# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
# frame-opacity = 1.0
frame-opacity = 1

# Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 
1.0)
# menu-opacity = 1.0 
# menu-opacity is depreciated use dropdown-menu and popup-menu instead.

#If using these 2 below change their values in line 510 & 511 aswell
popup_menu = { opacity = 1; }
dropdown_menu = { opacity = 1; }


# Let inactive opacity set by -i override the 

OpenBSD hangs in X, but mouse can still move (ThinkPad T470)

2022-08-31 Thread Hashim Mahmoud
I've been using OpenBSD on a ThinkPad T470 for a couple of days now,
and the experience is very nice. However, I've noticed an issue that
occurred twice today: while I'm using cwm and a bunch of apps (Firefox,
Claws Mail, KeepassXC, xterm, nothing special), OpenBSD completely
freezes, but the mouse cursor retains