LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-07-2017, 07:54 AM   #1
coldbeer
Member
 
Registered: May 2006
Location: Orion–Cygnus Arm, MWG
Distribution: Slackware, Ubuntu
Posts: 249

Rep: Reputation: 130Reputation: 130
How to hardcode xorg.conf


In the good old days of Slackware 12 and prior, we use to set up the xorg.conf file to get our video monitors tweeked in. So that part I'm familar with.

How do I use xorg.conf to hardcode my video settings in 14.1, 14.2?

The situation is that I have a dedicated computer for my TV. Even though the TV is 1920x1080, I set the resolution up in KDE Display for 1280x720 (or lower) so I can easily see the text when sitting 10 feet away from the TV.

So currently I have this setup in KDE but I'd like to use Fluxbox.

With Fluxbox and the current KDE configured Display setup, IF the TV is on AND the tv source is set to the computer while booting, the resolution in Fluxbox comes up with the lower resolution -- good.

But in most cases, the TV is off OR its source is the antenna when the computer boots so then the 1280x720 is not used and the default of 1920x1080 is used for Fluxbox -- not what I want.

So I would like to just hardcode the resolution in xorg.conf but when I have tried this, Slackware doesn't like it at all and I get no video at all. Is there something I have to disable in order to use xorg.conf?
 
Old 03-07-2017, 08:12 AM   #2
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

A configuration file in /etc/X11/xorg.conf.d (ex: 10-My-Screen.conf), with contents as shown below should do the trick :
Code:
Section "Screen"
        Identifier "Screen0"
        Device "Device0"
        Monitor "Monitor0"
        DefaultDepth 24 # or 16
        SubSection "Display"
                Depth 24 # or 16
                Modes "1280x720" "1920x1080"
        EndSubSection
EndSection
--
SeB
 
1 members found this post helpful.
Old 03-07-2017, 09:17 AM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by coldbeer View Post
The situation is that I have a dedicated computer for my TV. Even though the TV is 1920x1080, I set the resolution up in KDE Display for 1280x720 (or lower) so I can easily see the text when sitting 10 feet away from the TV.
If that's the issue, why aren't you just setting the font dpi to something higher, like 160 or 192? You can set that by starting X with "-dpi 160".

For actually setting the resolution, I'd just run xrandr (or an NVidia equivalent) when X starts.

Last edited by dugan; 03-07-2017 at 09:20 AM.
 
1 members found this post helpful.
Old 03-07-2017, 09:35 AM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I would also recommend dugan's suggestion. Setting the DPI to a higher setting would increase your font sizes at the benefit of keeping your tv at its native resolution (which tends to make the images sharper, not to mention the gains in picture quality from 720p to 1080p).

You can easily try it out using:

Code:
startx -- -dpi 160

Last edited by bassmadrigal; 03-07-2017 at 09:39 AM.
 
Old 03-07-2017, 09:37 AM   #5
coldbeer
Member
 
Registered: May 2006
Location: Orion–Cygnus Arm, MWG
Distribution: Slackware, Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 130Reputation: 130
Quote:
Originally Posted by dugan View Post
If that's the issue, why aren't you just setting the font dpi to something higher, like 160 or 192? You can set that by starting X with "-dpi 160".

For actually setting the resolution, I'd just run xrandr (or an NVidia equivalent) when X starts.
Yeah, I've tried increasing the font. But then Firefox font sizes don't follow and its never very satisfactory tweaking firefox fonts. Plus, with the lower screen resolution, Youtube reduces its max video resolution automatically (without having to login) to 360 dpi - which is what I want, so watching videos doesn't stall out all the other computers in the house or degrade our Ooma phone. Plus at 10 feet away and being 50+ yo, I can't see a difference between 360dpi and anything higher.

Last edited by coldbeer; 03-07-2017 at 09:43 AM.
 
Old 03-07-2017, 10:14 AM   #6
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by coldbeer View Post
Yeah, I've tried increasing the font. But then Firefox font sizes don't follow and its never very satisfactory tweaking firefox fonts.
Firefox does not respect the system dpi, but, you can play with layout.css.devPixelsPerPx (in about:config).

For instance, if you start X with dpi at 160 (~1.6 times the default 96 dpi), set layout.css.devPixelsPerPx to 1.6.



--
SeB

Last edited by phenixia2003; 03-07-2017 at 11:05 AM.
 
1 members found this post helpful.
  


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
xorg.conf-fbdev or xorg.conf-vesa? stf92 Slackware 1 05-14-2014 02:08 AM
Missing xorg.conf file in /etc/X11/xorg.conf Altiris Linux - Newbie 2 08-23-2013 11:46 PM
X starts without xorg.conf, however with aticonfig, resultant xorg.conf hangs linuxbird Linux - Desktop 3 08-23-2012 05:28 AM
My xorg.conf is replaced with a default xorg.conf after reboot rrrssssss Linux - Hardware 9 04-11-2010 04:45 PM
nvidia xorg.conf OR X windows xorg.conf? machines Slackware 3 04-06-2008 02:10 PM

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

All times are GMT -5. The time now is 06:54 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