DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Installation and Upgrading

NetBSD Installation and Upgrading Have trouble getting NetBSD on your toaster?

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2 Weeks Ago
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 239
Default acceleration of my graphics card

hello,
I have a graphics card ATI Radeon 7000 VE, I would like to activate 2D or 3D acceleration, because my desktop is Xfce4 and moving objects is very slow, for example xterm, mousepad etc ...
My proliant HPC has two Xeon E5540 processors, 16 threads, I use NetBSD 7.0.2 for AMD64, with as pkgsrc2071Q3 as a reference.
in which file can I activate the hardware acceleration of my graphics card?

Regards
Philippe
Reply With Quote
  #2   (View Single Post)  
Old 2 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,065
Default

In a terminal
$ glxinfo
and look to see if direct rendering is active.

drm(4)


Quote:
To make use of the driver, the kernel must include agp(4) (for some driv-
ers, using options DRM_NO_AGP instead may be sufficient), X(7) must be
compiled with DRI support, Mesa DRI drivers must be installed, the appro-
priate /dev/dri/card* device must exist, and DRI must be enabled in the X
configuration file. X(7) provided with NetBSD and compiled from
pkgsrc(7) do so automatically where supported.
Quote:
To enable DRI in the X configuration add the following to either
xorg.conf for Xorg(1) or XF86Config for XFree86(1) :

Section "Module"
...
Load "dri"
Load "dri2"
Load "glx"
EndSection
...
Section "DRI"
Group "wheel"
Mode 0660
EndSection

Last edited by shep; 2 Weeks Ago at 03:14 AM. Reason: nman showing NBSD5 page
Reply With Quote
  #3   (View Single Post)  
Old 2 Weeks Ago
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 239
Default

Quote:
Originally Posted by shep View Post
In a terminal
$ glxgears
and look to see if direct rendering is active.

drm(4)
Code:
hpc-apolon# glxgears
Error: couldn't open display (null)
hpc-apolon# glxgears
also i test with regular user '$' == same result

Quote:
X(7) provided with NetBSD and compiled from
pkgsrc(7) do so automatically where supported.
in which directory of pkgsrc I will find 'DRI' ?

this is the X's directory = /etc/pkgsrc/X11
Code:
hpc-apolon# ls
fs        proxymngr twm       xinit     xsm
lbxproxy  rstart    xdm       xserver
hpc-apolon#
Reply With Quote
  #4   (View Single Post)  
Old 2 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,065
Default

I just installed 7.0.2 amd64 and used the monolithic xorg that came with the install media. Without an xorg.conf and intel video, I have direct rendering out of the box.

There are 2 options for xorg: modular vs monolithic. Which one are you using?

My initial post had an error, to see if direct rendering is active the command is
$ glxinfo.
Reply With Quote
  #5   (View Single Post)  
Old 2 Weeks Ago
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 239
Default

Quote:
Originally Posted by shep View Post
I just installed 7.0.2 amd64 and used the monolithic xorg that came with the install media. Without an xorg.conf and intel video, I have direct rendering out of the box.

There are 2 options for xorg: modular vs monolithic. Which one are you using?

My initial post had an error, to see if direct rendering is active the command is
$ glxinfo.
i do glxinfo=
Code:
0 0 Slow
0x0ec  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 24  8  0  0  0  0  0 0 None
0x0ed  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 24  8 16 16 16  0  0 0 Slow
0x0ee  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 24  8  0  0  0  0  0 0 None
0x0ef  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 24  8 16 16 16  0  0 0 Slow
0x0f0  0 dc  0  16  0 r  . .   5  6  5  0 .  .  0 32  0  0  0  0  0  0 0 None
0x0f1  0 dc  0  16  0 r  . .   5  6  5  0 .  .  0 32  0 16 16 16  0  0 0 Slow
0x0f2  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 32  0  0  0  0  0  0 0 None
0x0f3  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 32  0 16 16 16  0  0 0 Slow
0x0f4  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 32  0  0  0  0  0  0 0 None
0x0f5  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 32  0 16 16 16  0  0 0 Slow

[1]   Segmentation fault (core dumped) glxinfo
hpc-apolon#
I think I have to compile a new kernel, this machine I assembled it to make compilation, I made a hibrid machine with intel XEON processor and installed an AMD64 distribution, like that I am in full 64 bits.
I may have made a mistake I recognize it but I will try to compile a kernel with the reference i386 pkgsrc2017Q3, it is thought like a machine hibrid!
I read this link https://www.netbsd.org/docs/guide/en/chap-kernel.html, what I did:
1 / $ cp GENERIC PHIPO001KERNEL
$ nano PHIPO001KERNEL
I disabled all AGP ports, chose the option for my Radeon graphics card
2 / $ cd ../compile/PHIPO001KERNEL
$ make depend
$ make

But alas the compilation did not complete, with full of errors AGP, here is my output
Code:
../../../../external/bsd/drm2/dist/drm/radeon/btc_dpm.c: At top level:
../../../../external/bsd/drm2/dist/include/drm/drm_agpsupport.h:14:20: error: 'drm_free_agp' declared 'static' but never defined [-Werror=unused-function]
 static inline void drm_free_agp(struct agp_bridge_data *, struct agp_memory *, int);
                    ^
../../../../external/bsd/drm2/dist/include/drm/drm_agpsupport.h:15:19: error: 'drm_bind_agp' declared 'static' but never defined [-Werror=unused-function]
 static inline int drm_bind_agp(struct agp_bridge_data *, struct agp_memory *, unsigned);
                   ^
../../../../external/bsd/drm2/dist/include/drm/drm_agpsupport.h:16:19: error: 'drm_unbind_agp' declared 'static' but never defined [-Werror=unused-function]
 static inline int drm_unbind_agp(struct agp_bridge_data *, struct agp_memory *);
                   ^
cc1: all warnings being treated as errors
*** Error code 1

Stop.
make: stopped in /usr/src/sys/arch/amd64/compile/PHIPO001KERNEL
hpc-apolon#
I am not successful as specified in the documentation of the link above, I did not find the options of compilations tools, I'm trying to build skills on NetBSD which is for me the best BSD because it works on several processor target notament on ARM or my RASPBERRY are under NetBSD.
Reply With Quote
  #6   (View Single Post)  
Old 2 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,065
Default

Quote:
I use NetBSD 7.0.2 for AMD64
Quote:
I may have made a mistake I recognize it but I will try to compile a kernel with the reference i386 pkgsrc2017Q3, it is thought like a machine hibrid!
I 'm not sure if you are trying to cross-compile i386 binaries on an x86_64 machine?

You are making this more complicated than it needs to be.

I installed this image because it has the latest patches/security fixes. This image includes xorg sets. I have been told that most pkgsrc packagers use the monolithic xorg to compile package binaries.

You may want to avoid a custom kernel until you get your setup working. You're just adding another variable which can go wrong.

Last edited by shep; 2 Weeks Ago at 02:45 PM.
Reply With Quote
  #7   (View Single Post)  
Old 2 Weeks Ago
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 239
Default

thanks you shep i'll try your link tomorrow !
Reply With Quote
  #8   (View Single Post)  
Old 2 Weeks Ago
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 239
Default

hello,
I installed NetBSD 7.0.2 + patch i386 and pkgsrc2017Q3 for i386,
I had problems with the pkgin package manager, to install an Xfce4 desktop.
I went into "mode" compilation and manually compile Xfce4,
with the manager xf86-video-vesa, I have a desktop that appears but it's not very user-friendly,
trying to install xf86-video-ati I meet this error that I can not get around.
here is my output

Code:
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking if RANDR is defined... yes
checking if RENDER is defined... yes
checking if XV is defined... yes
checking if DPMSExtension is defined... yes
checking for LIBDRM... no
configure: error: Package requirements (libdrm >= 2.4.78) were not met:

Package dependency requirement 'libdrm >= 2.4.78' could not be satisfied.
Package 'libdrm' has version '2.4.59', required version is '>= 2.4.78'

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBDRM_CFLAGS
and LIBDRM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/x11/xf86-video-ati
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/xf86-video-ati
hpc-meteo#
I chose to isolate the pkgsrc libdrm, but nothing to do it does not compile separately, I do not know what to do!

Regards
Philippe
Reply With Quote
  #9   (View Single Post)  
Old 2 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,065
Default

Quote:
I installed NetBSD 7.0.2 + patch i386 and pkgsrc2017Q3 for i386,
I had problems with the pkgin package manager, to install an Xfce4 desktop.
I went into "mode" compilation and manually compile Xfce4,
with the manager xf86-video-vesa, I have a desktop that appears but it's not very user-friendly,
trying to install xf86-video-ati I meet this error that I can not get around.
here is my output
The monolithic xorg includes the xf86-video-ati driver - no to to redundantly install the modular driver.

You should be able to startx, with 3D acceleration, after successful installation of the image I pointed to above. And you should not need an xorg.conf.
Reply With Quote
Old 2 Weeks Ago
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 239
Default

yes shep,
it works after a new installation.
I compile xfce4-desktop and xfce4-session, I get an empty desktop with a menu with some items but nothing of interest!
pkgin install xfce4 does not work, however, I have introduced the correct reference!
I think this distribution is not very good for use.
with a classic distribution I have a good result.
Should you compile other pkgsrc to have a correct desktop!
Reply With Quote
Old 2 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,065
Default

Quote:
think this distribution is not very good for use.
That is my take on it too. At the end ot pkgsrc_2017Q2, the builds were broken by several core packages and it has yet to be fixed. There is an lxde meta-pkg that installs cleanly but needs a special ~/.xinitrc or ~/.xsession file to reassign the xdg directories.

I also wonder about the pkgsrc developer environment. In my opinion, there should be a freeze on the Quarterly packages and a period of bug fixing. Users could then use packages that would not be more than 3 to 4 months out of date.
Reply With Quote
Old 2 Weeks Ago
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 239
Default

I understand that there are programming errors in the makefile of pkgsrc2017Q3, but then what is the pkgsrc to use in production
Reply With Quote
Old 2 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,065
Default

Quote:
I understand that there are programming errors in the makefile of pkgsrc2017Q3, but then what is the pkgsrc to use in production
IMHO NetBSD is NOT for production but rather for hobbyists.
Reply With Quote
Old 2 Weeks Ago
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 239
Default

you mean that FreeBSD owns 80% of the global WEB hosting park and the rest is OpenBSD .
I thought that some engineering schools still have VAX under NetBSD, so I was wrong!
You can confirm it!
Reply With Quote
Old 2 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,065
Default

One way to get a sense of NetBSD priorities is to look at the pkgsrc builds. The last pkgsrc vax build was 7.0_2016Q1/ 4/13/16, 5:00:00 PM
NetBSD pkgsrc/vax
Reply With Quote
Old 2 Weeks Ago
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 239
Default

hello,
I installed the distribution again that shep advised me.
I finally chose to use the NetBSD-702-patch,
but this time I use the opensource referential 2017Q2
as well as pkgsrc2017Q2 with some bugs to work around.
the desktop works well but the objects are moving slowly on the desktop,
moreover the X server does not support the xorg.conf file!
Switching between my two video cards is automatic!
I would like to activate the acceleration 2 or 3 D by automatic switching, to have a faster effect of objects on the desktop.
I read a little documentation on the internet: I know that there is a dynamic file configuration with end to "conf.d"
Reply With Quote
Old 2 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,065
Default

I would recommend that you do this in a step wise fashion. The install image I pointed you to has a basic window manager: twm. After the initial install, configuration of networking and adding a user test the following:
1) login in as user
2) cp /etc/X11/xinit/xinitrc ~/.xinitrc
3) startx
4) Test mouse/keyboard
5) run glxinto in one of the xterms and see if you have direct rendering
6) less /var/log/Xorg.0.log and look at the configuration. If things did not go well, copy the log and post here.

Once you have a working X windows with 3D graphics, then install your desktop.

Also, the pkgsrc breakage occurred the last couple of weeks for 2017Q2, That is broken. I think 2017Q1 should work.
Reply With Quote
Old 2 Weeks Ago
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 239
Default

Hi shep,
I can not find pkgsrc2017Q1 on the internet, you know a link to download it with term "tar.gz".

Thank you for your help

greetings
Philippe
Reply With Quote
Old 2 Weeks Ago
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 239
Default

Hi,
I found and deployed pkgsrc2017Q1, install XFCE4, the Desktop is a little faster but it could be better: faster, more I'm not the desired screen resolution 1280 * 1024, it would be 1440 * 900.
Reply With Quote
Old 2 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,065
Default

x86_64 pkgsrc 7.0_2017Q1 are archived here

The wrong resolution is commonly seen with the vesa video driver. If you are sure your are running the radeon video driver, resolutions can be changed on the fly with xrandr(1)

Running xrandr, with no options, displays the current screen size and the sizes that are available.
Reply With Quote
Reply

Thread Tools
Display Modes

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
2D Graphics acceleration in X virtuvoos OpenBSD General 10 18th October 2013 02:40 PM
Hardware AMD claims 'fastest graphics card in the world' J65nko News 17 10th March 2011 12:15 PM
HOWTO: Working Intel Graphics Card Setup vermaden FreeBSD Installation and Upgrading 2 3rd July 2009 07:59 PM
Good graphics card for FreeBSD? Sunnz FreeBSD General 12 4th May 2009 01:44 PM
Is 3d acceleration available with Intel GMA 3100 (AM64)? ghost77 FreeBSD General 5 12th January 2009 11:18 AM


All times are GMT. The time now is 10:20 AM.


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