DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th November 2023
unicorn unicorn is offline
Port Guard
 
Join Date: Apr 2020
Posts: 33
Default system frozen

Why my system dead after a few minutes? Where to check the log? 10.0 RC1
Reply With Quote
  #2   (View Single Post)  
Old 9th December 2023
unicorn unicorn is offline
Port Guard
 
Join Date: Apr 2020
Posts: 33
Default

my system will die if I watch videos online, any clue?
Reply With Quote
  #3   (View Single Post)  
Old 9th December 2023
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 345
Default

Did you check that you got a good download/check the SHA sum(?).

(I don't get anything like that with my installs.)
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #4   (View Single Post)  
Old 10th December 2023
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,132
Default

Not a NetBSD user yet.... But how do you watch them? In a browser? Which one? Firefox? Chrome?
Pasting a dmesg, or Xorg.*log in a pastebin would allow others to help you faster.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #5   (View Single Post)  
Old 10th December 2023
unicorn unicorn is offline
Port Guard
 
Join Date: Apr 2020
Posts: 33
Default

Quote:
Originally Posted by bsd-keith View Post
Did you check that you got a good download/check the SHA sum(?).

(I don't get anything like that with my installs.)
no
Reply With Quote
  #6   (View Single Post)  
Old 10th December 2023
unicorn unicorn is offline
Port Guard
 
Join Date: Apr 2020
Posts: 33
Default

Quote:
Originally Posted by J65nko View Post
Not a NetBSD user yet.... But how do you watch them? In a browser? Which one? Firefox? Chrome?
Pasting a dmesg, or Xorg.*log in a pastebin would allow others to help you faster.
firefox, my dmesg
Reply With Quote
  #7   (View Single Post)  
Old 10th December 2023
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 467
Default

I think the X.Org log will also be useful but I would be very surprised if 7th generation Ryzen integrated graphics are supported in NetBSD. They've only just made it into the Linux DRM stack. Your posted `dmesg` output doesn't have any DRM devices listed anyway.

That being the case you're probably running the VESA driver, which might cause the crash just because it's old & crap.

I would also be surprised if FF in NetBSD offered hardware acceleration, even if it has a tick box for it.
Reply With Quote
  #8   (View Single Post)  
Old 10th December 2023
jmccue jmccue is offline
Real Name: John McCue
Package Pilot
 
Join Date: Aug 2012
Location: here
Posts: 170
Default

Can you ssh into the system when frozen ? Maybe it is X as opposed to the whole system.

If so, try starting port picom in your ~/.xsession (and/or .xinitrc). That prevents most X issues for me.

Code:
picom -b &
The only issue I have left on the T420 is screen tearing when the system is under a heavy load. I have a pr opened for that.
__________________
[t]csh(1) - "An elegant shell, for a more... civilized age."
- Paraphrasing Star Wars (tvtropes.org)

Last edited by jmccue; 10th December 2023 at 04:05 PM. Reason: typos
Reply With Quote
  #9   (View Single Post)  
Old 10th December 2023
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 467
Default

Quote:
Originally Posted by jmccue View Post
The only issue I have left on the T420 is screen tearing when the system is under a heavy load.
You can use picom to control that:
Code:
picom --vsync -b
Also note that adding an ampersand at the end of the line is not needed if the -b flag is passed and may cause race conditions with other applications. Only add an ampersand if the command does not return the prompt when run in a terminal.

EDIT: and I doubt picom will fix anything, compositors usually just add to the problems under X.
Reply With Quote
Old 10th December 2023
jmccue jmccue is offline
Real Name: John McCue
Package Pilot
 
Join Date: Aug 2012
Location: here
Posts: 170
Default

Quote:
Originally Posted by Head_on_a_Stick View Post
You can use picom to control that:
Code:
picom --vsync -b
Also note that adding an ampersand at the end of the line is not needed if the -b flag is passed and may cause race conditions with other applications. Only add an ampersand if the command does not return the prompt when run in a terminal.

EDIT: and I doubt picom will fix anything, compositors usually just add to the problems under X.
Will give that a try and post here if it helps. I actually have picom in my ~/.xsession, but will remove the '&' to see what happens
__________________
[t]csh(1) - "An elegant shell, for a more... civilized age."
- Paraphrasing Star Wars (tvtropes.org)
Reply With Quote
Old 11th December 2023
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

There are also some X11 configuration options for intel graphics tearing:
intel(4)
Quote:
Option "TearFree" "boolean"
Disable or enable TearFree updates. This option forces X to per-
form all rendering to a backbuffer prior to updating the actual
display. It requires an extra memory allocation the same size as
a framebuffer, the occasional extra copy, and requires Damage
tracking. Thus enabling TearFree requires more memory and is
slower (reduced throughput) and introduces a small amount of
output latency, but it should not impact input latency. However,
the update to the screen is then performed synchronously with
the vertical refresh of the display so that the entire update is
completed before the display starts its refresh. That is only
one frame is ever visible, preventing an unsightly tear between
two visible and differing frames. Note that this replicates what
the compositing manager should be doing, however TearFree will
redirect the compositor updates (and those of fullscreen games)
directly on to the scanout thus incurring no additional overhead
in the composited case. Also note that not all compositing man-
agers prevent tearing, and if the outputs are rotated, there
will still be tearing without TearFree enabled.

Default: TearFree is disabled.
Reply With Quote
Old 11th December 2023
unicorn unicorn is offline
Port Guard
 
Join Date: Apr 2020
Posts: 33
Default

Quote:
Originally Posted by Head_on_a_Stick View Post
I think the X.Org log will also be useful but I would be very surprised if 7th generation Ryzen integrated graphics are supported in NetBSD. They've only just made it into the Linux DRM stack. Your posted `dmesg` output doesn't have any DRM devices listed anyway.

That being the case you're probably running the VESA driver, which might cause the crash just because it's old & crap.

I would also be surprised if FF in NetBSD offered hardware acceleration, even if it has a tick box for it.
you're right, I use wsfb

Last edited by unicorn; 11th December 2023 at 02:16 PM.
Reply With Quote
Old 11th December 2023
unicorn unicorn is offline
Port Guard
 
Join Date: Apr 2020
Posts: 33
Default

Quote:
picom -b &
can't open display
Reply With Quote
Old 11th December 2023
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 467
Default

Quote:
Originally Posted by shep View Post
There are also some X11 configuration options for intel graphics tearing
The amdgpu DDX driver also has that option: https://man.openbsd.org/amdgpu#Option~6

X's builtin modesetting DDX driver will have a TearFree option added soon, it's already in the development branch: https://www.phoronix.com/news/xf86-v...tting-TearFree

Quote:
Originally Posted by unicorn View Post
I use wsfb
Okay, so that's a non-accelerated driver, which will offer very poor performance and may very well be responsible for the crashes.

I think you will have to wait for NetBSD to catch up with Linux DRM support. I think the 7th generation Ryzen iGPU support was added to Linux for kernel 6.0 so look out for that in their release notes.

OpenBSD 7.4 (the latest release) uses the 6.1.28 DRM stack so that might work for you now.

FWIW I have 7th gen Ryzen in my new laptop and it runs Arch Linux beautifully, the experience is better than it was under Windows 11, even for AAA games.

EDIT: and in respect of picom, the suggestion was to add the line to your X session startup script (~/.xsession?) rather than just running it from a console screen.

EDIT2: NetBSD 10.0 RC1 has DRM support from Linux kernel 5.6, which won't work with your hardware.

Last edited by Head_on_a_Stick; 11th December 2023 at 05:27 PM.
Reply With Quote
Old 24th December 2023
unicorn unicorn is offline
Port Guard
 
Join Date: Apr 2020
Posts: 33
Default

Quote:
Originally Posted by Head_on_a_Stick View Post

Okay, so that's a non-accelerated driver, which will offer very poor performance and may very well be responsible for the crashes.
you're absolutely right, RC1 works well with my old laptop, see dmesg. The only problem with RC1 is my keyboard and mouse occasionally lost response which is weird.
Reply With Quote
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is best BSD system for learning how operating system work? HopingStar Off-Topic 10 5th August 2021 01:43 AM
'Frozen' network after resuming from sleep shvehlava OpenBSD General 4 18th July 2021 01:52 PM
Redis 2.6 "is near" and now feature frozen J65nko News 0 29th February 2012 04:09 AM
Hell has frozen over Mr-Biscuit Off-Topic 2 6th November 2010 03:09 PM
Is the source tree frozen until Nov 1st? lionsong OpenBSD General 6 7th October 2009 07:22 PM


All times are GMT. The time now is 01:31 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick