4MLinux This forum is for the discussion of 4MLinux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-29-2016, 03:06 PM
|
#1
|
4MLinux Maintainer
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,279
|
3D support in 4MLinux 20.0 and later.
This post describes how to customize advanced X.Org Server settings in 4MLinux 20.0 and later.
Last edited by zk1234; 09-29-2016 at 04:50 PM.
|
|
|
09-29-2016, 03:22 PM
|
#2
|
4MLinux Maintainer
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,279
Original Poster
|
All no settings.
Open Menu->Settings->Desktop->Advanced and set everything to "no"
Code:
# Enable GPU framebuffer during the boot time ?
GPU=no
# Kill other framebuffers (e.g. VESA) ?
KILL=no
# Enable 3D support in X Window System ?
X=no
# Replace EXA with GLAMOR for 3D drivers ?
GLAM=no
# Replace EXA with SNA for 3D drivers ?
SNA=no
# Use MODESETTING for 3D acceleration ?
MODE=no
# Enable compiz-like Desktop effects ?
COMP=no
This configuration tells 4MLinux to use vesa (old xorg 2D driver).
.
Last edited by zk1234; 09-29-2016 at 03:34 PM.
|
|
|
09-29-2016, 03:33 PM
|
#3
|
4MLinux Maintainer
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,279
Original Poster
|
GPU framebuffer.
Lets start with making only one modification:
Code:
# Enable GPU framebuffer during the boot time ?
GPU=yes
# Kill other framebuffers (e.g. VESA) ?
KILL=no
# Enable 3D support in X Window System ?
X=no
# Replace EXA with GLAMOR for 3D drivers ?
GLAM=no
# Replace EXA with SNA for 3D drivers ?
SNA=no
# Use MODESETTING for 3D acceleration ?
MODE=no
# Enable compiz-like Desktop effects ?
COMP=no
4MLinux will now try to enable the GPU framebuffer(*), which will result in loading modesetting (modern xorg 2D driver).
(*) GPU = your Graphics Processing Unit
.
Last edited by zk1234; 09-29-2016 at 04:51 PM.
|
|
|
09-29-2016, 03:45 PM
|
#4
|
4MLinux Maintainer
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,279
Original Poster
|
VESA framebuffer.
Can you see the penguin logo during the boot? If so, the VESA framebuffer is enabled, meaning that fbdev (old 2D xorg driver) will be used. If you want to have 3D, you must tell 4MLinux to "kill" the VESA framebuffer (by replacing it with the GPU framebuffer):
Code:
# Enable GPU framebuffer during the boot time ?
GPU=yes
# Kill other framebuffers (e.g. VESA) ?
KILL=yes
# Enable 3D support in X Window System ?
X=no
# Replace EXA with GLAMOR for 3D drivers ?
GLAM=no
# Replace EXA with SNA for 3D drivers ?
SNA=no
# Use MODESETTING for 3D acceleration ?
MODE=no
# Enable compiz-like Desktop effects ?
COMP=no
.
|
|
|
09-29-2016, 03:53 PM
|
#5
|
4MLinux Maintainer
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,279
Original Poster
|
Dedicated 3D drivers.
Time to tell 4MLinux to enable 3D support.
Code:
# Enable GPU framebuffer during the boot time ?
GPU=yes
# Kill other framebuffers (e.g. VESA) ?
KILL=yes
# Enable 3D support in X Window System ?
X=yes
# Replace EXA with GLAMOR for 3D drivers ?
GLAM=no
# Replace EXA with SNA for 3D drivers ?
SNA=no
# Use MODESETTING for 3D acceleration ?
MODE=no
# Enable compiz-like Desktop effects ?
COMP=no
4MLinux will now try to load one of dedicated 3D org drivers (amdgpu, intel, radeon, or nouveau).
'
|
|
|
09-29-2016, 04:00 PM
|
#6
|
4MLinux Maintainer
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,279
Original Poster
|
Glamor acceleration.
Xorg uses the EXA acceleration method by default. Some modern video cards (especially AMD) may work much better when EXA is replaced with Glamor. Does it work for your video card? Check it yourself by making the following change:
Code:
# Enable GPU framebuffer during the boot time ?
GPU=yes
# Kill other framebuffers (e.g. VESA) ?
KILL=yes
# Enable 3D support in X Window System ?
X=yes
# Replace EXA with GLAMOR for 3D drivers ?
GLAM=yes
# Replace EXA with SNA for 3D drivers ?
SNA=no
# Use MODESETTING for 3D acceleration ?
MODE=no
# Enable compiz-like Desktop effects ?
COMP=no
.
Last edited by zk1234; 09-29-2016 at 04:31 PM.
|
|
|
09-29-2016, 04:08 PM
|
#7
|
4MLinux Maintainer
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,279
Original Poster
|
SNA acceleration.
Xorg uses the EXA acceleration method by default. Some older video cards (especially Intel) work much better when EXA is replaced with SNA. Does it work for your card? Check it yourself by making the following change:
Code:
# Enable GPU framebuffer during the boot time ?
GPU=yes
# Kill other framebuffers (e.g. VESA) ?
KILL=yes
# Enable 3D support in X Window System ?
X=yes
# Replace EXA with GLAMOR for 3D drivers ?
GLAM=no
# Replace EXA with SNA for 3D drivers ?
SNA=yes
# Use MODESETTING for 3D acceleration ?
MODE=no
# Enable compiz-like Desktop effects ?
COMP=no
.
|
|
|
09-29-2016, 04:21 PM
|
#8
|
4MLinux Maintainer
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,279
Original Poster
|
Modesetting for 3D acceleration.
There is a new trend in the development of xorg drivers. Dedicated 3D drivers are not used at all. Xorg server loads the modesetting driver, which "cooperates" with mesa and glamor to produce 3D acceleration. Does it work for your card? Once again: try it yourself by using the following configuration:
Code:
# Enable GPU framebuffer during the boot time ?
GPU=yes
# Kill other framebuffers (e.g. VESA) ?
KILL=yes
# Enable 3D support in X Window System ?
X=yes
# Replace EXA with GLAMOR for 3D drivers ?
GLAM=no
# Replace EXA with SNA for 3D drivers ?
SNA=no
# Use MODESETTING for 3D acceleration ?
MODE=yes
# Enable compiz-like Desktop effects ?
COMP=no
.
Last edited by zk1234; 09-29-2016 at 04:52 PM.
|
|
|
09-29-2016, 04:49 PM
|
#9
|
4MLinux Maintainer
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,279
Original Poster
|
Xcomposite.
The last option tells the xcomposite tool to enable compiz-like special Desktop effects (such as windows fading). This should work for both 2D and 3D drivers.
.
|
|
|
09-29-2016, 05:25 PM
|
#10
|
4MLinux Maintainer
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,279
Original Poster
|
Troubleshooting.
1) You must reboot your machine to apply new framebuffer settings.
2) Restart X to apply all other (than framebuffer-related) changes.
3) If you are unable to start X, use Midnight Commander for editing:
Code:
mcedit /etc/gpu/gpu.config
The /etc/gpu/gpu.config file is the one described in this thread.
.
Last edited by zk1234; 09-29-2016 at 05:34 PM.
|
|
|
All times are GMT -5. The time now is 01:13 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|