LinuxQuestions.org
Help answer threads with 0 replies.
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 06-01-2013, 05:34 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Is there a program called X or X11 or X Window System in my computer?


Hi: I run a linux OS, slackware 14.0 to be specific, and when I run the startx command (which actually is a shell script), some piece of software must be in charge of, for example, telling the video card which resolution to use. Does it make sense to say that a certain program sets the video resolution? I assume that the video card does not remember or store the resolution. In any case, if I have just modified the video resolotion in /etc/X11/xorg.conf.d/, someone has to tell the video controller.
 
Old 06-01-2013, 05:56 PM   #2
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
If you modify the config files, next time you restart X it will take effect. So you can either drop to a terminal and stop/start X, or if you're really lazy, just reboot.
 
Old 06-01-2013, 06:11 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Aha. But I mean: There must be a moment (I'll assume the window manager starts before the desktop environment, don't know if it's true) when the window manager (WM) starts. By this time, has the video chip been informed about things like the desired resolution? Or does this happen after the WM is launched?
 
Old 06-01-2013, 06:59 PM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Before WM/DE starts. Also, modern implementations of xorg can usually determine resolution supported without needing the config files, and so don't always NEED a config file to work (most of my laptops don't have config files anymore).

Horribly worded english, hopefully you understand what I was saying.
 
Old 06-01-2013, 07:16 PM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
<cough> http://www.x.org/archive/X11R6.8.0/doc/Xorg.1.html
 
1 members found this post helpful.
Old 06-01-2013, 07:34 PM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by Timothy Miller View Post
Before WM/DE starts. Also, modern implementations of xorg can usually determine resolution supported without needing the config files, and so don't always NEED a config file to work (most of my laptops don't have config files anymore).

Horribly worded english, hopefully you understand what I was saying.
Perfectly understandable. Yes, for example my /etc/X11/xorg.conf.d/ directory was empty after the OS installation. I put some files there to override the default behavior. For example, the Screen section mainly consisting of the resolutions. Consider there may be, and in my machine there are, several supported resolutions.

OK. If the video chip must know of any changes, then these changes are made before WM/DE starts. By the way, if I do 'ps -C X' while X is running, I do see a process by that name. ps will show it. So perhaps there is even a binary file named X.

But you have given me enough information. for now I can say that, no matter if I run KDE of Xfce4, both WM/DEs, the communication with the video controller has been done BEFORE they were launched. But then why do I observe the following difference between Xfce4 and KDE?: when hitting Ctrl-Alt-+, KDE cycles through three different screen resolutions. Instead, Xfce does so only through two resolutions. This I cannot understand. Any possible explanation?

One explanation could be that KDE changes the resolution settings in spite of the config files, or that it determines the supported resolutions indenpendently of the config files. However, we just said that the WM or DE begins running once these settings have been done. It's a pity because I would like to use Xfce instead of KDE, though one of the reasons I gave it a try was that KDE perhaps could tell me what the current resolution is, because it is more powerful. Well, thank you very much for your posts, Timothy.
 
Old 06-01-2013, 07:34 PM   #7
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by 273 View Post
Yes, this.

To put it in context:

/usr/bin/startx runs /usr/bin/xinit.

/usr/bin/xinit runs /usr/bin/X (unless your .xinitrc says otherwise).

On modern Slackware, /usr/bin/X is a symlink to /usr/bin/Xorg, the documentation for which 273 has linked.

Xorg invokes the video device driver which initializes and manipulates your video display hardware. You can read its log here: /var/log/Xorg.0.log

Something (usually startx) also starts your WM or DE, after Xorg has started.

The WM/DE is just another X application. It uses the same API as every other X application, telling Xorg what it needs, and Xorg manipulates your display via the display device driver.

I'm sure others will tell me what I've gotten wrong, here :-)
 
3 members found this post helpful.
Old 06-01-2013, 07:44 PM   #8
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by 273 View Post
Thank you 273. BTW, my system has X11R7. Any clue as to that document date?
 
Old 06-01-2013, 07:50 PM   #9
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by stf92 View Post
Thank you 273. BTW, my system has X11R7. Any clue as to that document date?
I'll leave it as an exercise for the reader to find something more up to date. My post was more to alert you to the presence of something called X which you have been using for a while.
http://en.wikipedia.org/wiki/X_window_system
 
Old 06-01-2013, 07:53 PM   #10
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
From what I read in ttk's post, then the WM/DE negotiates with Xorg and doesn't care a bit about what I wrote in the Xorg config files. However, it can be no other than Xorg that reads the config files, I dare say. I only see that KDE gives me three screen resolutions and Xfce only two, which does not seem logical.
 
Old 06-01-2013, 08:49 PM   #11
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
Quote:
Originally Posted by stf92 View Post
But then why do I observe the following difference between Xfce4 and KDE?: when hitting Ctrl-Alt-+, KDE cycles through three different screen resolutions. Instead, Xfce does so only through two resolutions. This I cannot understand. Any possible explanation?
Explanation: Your mental model of how things actually work is faulty.

Two different programs written by two different sets of people. You should be astonished that anything is similar between the two.
 
Old 06-01-2013, 09:06 PM   #12
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
It's my mental model of how things actually should work. /usr/bin/Xorg reads the X config file and does not pay attention to my settings when Xfce is (or will be) running but it does when KDE is running? Hard to believe for then, what is the purpose of the xorg.conf man page, which says how things happen? Any way, we can make abstraction of KDE because it is Xfce that I will be running in the future. There _must_ be an explanation, mental models set aside.
 
Old 06-02-2013, 09:32 PM   #13
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Different UIs do things differently. There is no magic to it.

I think it would be fair to say that KDE is generally more "feature complete" than XFCE.

That's not meant to disparage XFCE. It is a great DE and a lot less bloated than KDE... but the problem with going for a DE with less bloat is that you get less features.

Last edited by rkelsen; 06-02-2013 at 09:38 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone familiar with an ancient X11 lib called InterViews? map250r Linux - Software 2 02-20-2009 02:17 PM
Problem with old program in the X Window System yohan2k Linux - Software 4 07-05-2007 01:52 PM
what is an individual program running on a Linux system called? rojo2000r Linux - General 3 05-04-2007 01:28 PM
Can't connect to X11 window server Checking operating system version: must be redha pmarino Linux - General 2 09-20-2004 04:18 PM
xemacs configure unable to detect x11 window system macshark Linux - Software 0 11-22-2003 02:03 AM

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

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