LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-21-2018, 07:22 AM   #1
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Arrow What do you have in /etc/X11/xorg.conf.d/


I just figured out how to set keyboard maps system wide, both US and Polish keyboard maps. This also can be done in runtime with setxkbmap. But I needed something more complex solution. I found this https://www.x.org/releases/X11R7.7/d...onfig.html#zap. Now I am just curious what other settings people put into /etc/X11/xorg.conf.d/. It can be useful and may actually save my time when again I will trying to find out how to set some other options for X server. Reading all the documentation - can be painful.
 
Old 08-21-2018, 07:39 AM   #2
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Q: What do you have in /etc/X11/xorg.conf.d/

A: Nothing.

The budget Radeon graphics cards which I love to use needs no custom configuration.
 
Old 08-21-2018, 07:50 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,615
Blog Entries: 19

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
I'm not a Slacker but I always put a keyboard config file in there, otherwise I get the American keyboard which I hate.
 
Old 08-21-2018, 07:54 AM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Depends on the machine.
Desktop - No /etc/X11/xorg.conf.d/ entries but a monolithic /etc/X11/xorg.conf to allow for dual monitor usage.
Netbook - /etc/X11/xorg.conf.d/50-synaptics.conf with customised settings for the touchpad.
Laptop - Nothing. Everything just works as I want.
Server - As for Laptop

I have always been dubious of the adoption of the use of the /etc/X11/xorg.conf.d/ directory. Yes, it makes xorg settings more modular, but in practice I find it simply leads to fragmentation of settings across multiple files. YMMV.
 
Old 08-21-2018, 09:14 AM   #5
slalik
Member
 
Registered: Nov 2014
Location: Moscow
Distribution: Slackware
Posts: 233

Rep: Reputation: 203Reputation: 203Reputation: 203
On my main desktop with 2 monitors I have /etc/X11/xorg.conf:
Code:
Section "Device"
  Identifier "intel"
  Driver     "modesetting"
EndSection

Section "Monitor"
  Identifier  "DP-2"
  Option      "Primary" "true"
EndSection

Section "Monitor"
  Identifier  "HDMI-1"
  Option      "RightOf" "DP-2"
EndSection

Section "Serverflags"
  Option "DontZap" "yes"
EndSection
For keyboard layout I use setxkbmap in ~/.xinitrc.
 
1 members found this post helpful.
Old 08-21-2018, 05:16 PM   #6
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 279

Rep: Reputation: 100Reputation: 100
On all my systems, for my dvorak layout keyboard :
Code:
90-keyboard-layout-evdev.conf
 
Old 08-24-2018, 04:19 PM   #7
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,788

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
Nothing here. I still use /etc/X11/xorg.conf which is considerably involved because i alter nvidia performance there.

Last edited by enorbet; 08-24-2018 at 04:21 PM.
 
Old 08-24-2018, 06:02 PM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,242

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
I keep my setup for the NVidia binary drivers there.

Code:
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Option         "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On}"
EndSection
 
Old 08-24-2018, 10:15 PM   #9
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
I have 3 files.

fonts.conf
Code:
Section "Files"
	FontPath "/usr/share/fonts/Droid_Sans/"
	FontPath "/usr/share/fonts/Droid_Sans_Mono/"
	FontPath "/usr/share/fonts/Droid_Serif/"
        FontPath "/usr/share/fonts/Noto_Sans/"
        FontPath "/usr/share/fonts/Noto_Serif/"
        FontPath "/usr/share/fonts/Open_Sans/"
        FontPath "/usr/share/fonts/Speedo/"
        FontPath "/usr/share/fonts/kanjistrokeorders/"
EndSection
rat7.conf
Code:
Section "InputClass"
      Identifier "R.A.T."
      MatchProduct "R.A.T.7|R.A.T.9"
      MatchDevicePath "/dev/input/event*"
      Option "Buttons" "17"
      Option "ButtonMapping" "1 2 3 4 5 0 0 8 9 7 6 12 0 0 0 16 17"
      Option "AutoReleaseButtons" "13 14 15"
      Option "ZAxisMapping" "4 5 6 7"
      Option "YAxisMapping" "10 11"
EndSection
(Hey, it's a nice mouse.)

nvidia.conf (I'm not running noveau at the moment)
Code:
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 640"
    BusID          "PCI:4:0:0"
EndSection
If I run noveau, I just move nvidia.conf to the parent directory. If I decide to run the other driver, I copy or move it back. Easy.
 
1 members found this post helpful.
Old 08-25-2018, 03:08 AM   #10
denydias
Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 297

Rep: Reputation: Disabled
Just this:

Code:
$ cat /etc/X11/xorg.conf.d/20-video-intel.conf
Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"
  Option      "AccelMethod" "SNA"
  Option      "TearFree" "true"
EndSection
SNA is the default acceleration method for Intel Graphics 5500. But I prefer to declare it to avoid some X server crashes and to enable TearFree.
 
Old 08-25-2018, 03:52 AM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,063

Rep: Reputation: Disabled
Code:
didier[~]$ cat /etc/X11/xorg.conf.d/10-keymap.conf 
Section "InputClass"
    Identifier            "Keyboard-all"
    MatchIsKeyboard        "yes"
    MatchDevicePath     "/dev/input/event*"
    Driver                "evdev"
    Option                "XkbLayout" "fr"
    Option                "XkbVariant" ""
    Option                "XkbOptions" ""
EndSection

didier[~]
Written by the Slint installer. The "fr" X keyboard Layout is set by keyboardsetup (extracted from the salixtools package) to match the kernel keymap associated to the language chosen for installation, possibly changed during installation.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
keyboard not work after create /etc/X11/xorg.conf.d/50-synaptics.conf file mshlinux Gentoo 2 07-27-2015 03:13 AM
Missing xorg.conf file in /etc/X11/xorg.conf Altiris Linux - Newbie 2 08-23-2013 11:46 PM
/etc/X11/xorg.conf problem? th1bill Ubuntu 4 11-07-2011 12:37 PM
X11 xorg.conf issue darkstar01 SUSE / openSUSE 4 02-21-2009 01:29 PM
modelines for /etc/X11/xorg.conf TranceDude Linux - Hardware 3 09-30-2005 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:43 AM.

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