LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux
User Name
Password
4MLinux This forum is for the discussion of 4MLinux.

Notices


Reply
  Search this Thread
Old 09-29-2016, 03:06 PM   #1
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,256

Rep: Reputation: 220Reputation: 220Reputation: 220
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.
 
Old 09-29-2016, 03:22 PM   #2
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,256

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
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.
 
Old 09-29-2016, 03:33 PM   #3
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,256

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
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.
 
Old 09-29-2016, 03:45 PM   #4
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,256

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
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
.
 
Old 09-29-2016, 03:53 PM   #5
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,256

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
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).

'
 
Old 09-29-2016, 04:00 PM   #6
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,256

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
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.
 
Old 09-29-2016, 04:08 PM   #7
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,256

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
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
.
 
Old 09-29-2016, 04:21 PM   #8
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,256

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
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.
 
Old 09-29-2016, 04:49 PM   #9
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,256

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
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.

.
 
Old 09-29-2016, 05:25 PM   #10
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,256

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
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.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Plans for UEFI support in 4MLinux zk1234 4MLinux 1 08-21-2016 07:34 AM
4MLinux zk1234 Linux - News 44 10-01-2015 08:51 AM
LXer: Final 4MLinux and 4MLinux Allinone Edition 12.0 Released with PAE Support LXer Syndicated Linux News 0 05-10-2015 12:56 AM
LXer: 4MLinux 12.0 Beta Arrives with Better Support for Watching and Downloading YouTube Videos LXer Syndicated Linux News 0 03-29-2015 05:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux

All times are GMT -5. The time now is 01:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration