How does Fedora do it?

Discussion topics, Linux related - not requests for help

Moderators: ChrisThornett, LXF moderators

How does Fedora do it?

Postby Rhakios » Wed Nov 15, 2006 9:40 pm

Well, it isn't a problem, so it's not going in Help, but I don't understand how FC6 gets away with such a sparse xorg.conf file. Here it is full:

Code: Select all
# Xorg configuration created by pyxf86config

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "cymotionlinux"
        Option      "XkbLayout" "gb"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "nvidia"
        Option      "TwinView"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection


No mouse defined, you'll notice, but it works just fine as a three button device. I have modified a couple of entries, for my keyboard and the nvidia driver and added the TwinView line, but the rest is as it was.
Bearing in mind the massive xorg.conf files I am accustomed to from SUSE, Mandriva and the various *buntus I've tried, I don't understand how FC6 can get away with so little.
:?
Bye, Rhakios
User avatar
Rhakios
Moderator
 
Posts: 7634
Joined: Wed Apr 06, 2005 11:18 pm
Location: Midlands, UK

RE: How does Fedora do it?

Postby spottedcat » Wed Nov 15, 2006 10:48 pm

Interesting. My FC6 xorg.conf is longer only because it's on a laptop and has this section:

Code: Select all
Section "InputDevice"
   Identifier  "Synaptics"
   Driver      "synaptics"
   Option       "Device" "/dev/input/mice"
   Option       "Protocol" "auto-dev"
   Option       "Emulate3Buttons" "yes"
   Option       "LeftEdge" "120"
   Option       "RightEdge" "830"
   Option       "TopEdge" "120"
   Option       "BottomEdge" "650"
   Option       "FingerLow" "14"
   Option       "FingerHigh" "15"
   Option       "MaxTapMove" "110"
   Option       "VertScrollDelta" "20"
   Option       "HorizScrollDelta" "20"
   Option       "MinSpeed" "0.3"
   Option       "MaxSpeed" "0.75"
EndSection


Which is somewhat more verbose than in Ubuntu Dapper on another partition, with:

Code: Select all
Section "InputDevice"
   Identifier   "Synaptics Touchpad"
   Driver      "synaptics"
   Option      "SendCoreEvents"   "true"
   Option      "Device"      "/dev/psaux"
   Option      "Protocol"      "auto-dev"
   Option      "HorizScrollDelta"   "0"
EndSection


But despite this, the touchpad seems to work just as well - even vertical and horizontal scrolling. :? But in Ubuntu Edgy (on yet another partition) the Synaptics section is identical to the Dapper one, but scrolling won't work unless I log out and log in again - and then the logout button moves to the left of the clock and won't move back again.

But if you really want a shock, have a look at an Ubuntu Edgy fstab. :(
spottedcat
LXF regular
 
Posts: 971
Joined: Mon Oct 31, 2005 3:14 pm
Location: UK

RE: How does Fedora do it?

Postby towy71 » Wed Nov 15, 2006 11:17 pm

eeek wtf is that? why is it like that :?
still looking for that door into summer
User avatar
towy71
Moderator
 
Posts: 4276
Joined: Wed Apr 06, 2005 2:11 pm
Location: wild West Wales

Re: RE: How does Fedora do it?

Postby Rhakios » Wed Nov 15, 2006 11:17 pm

spottedcat wrote:But if you really want a shock, have a look at an Ubuntu Edgy fstab. :(


If I'd got VMWare running yet, then I might. Not that it's a problem (I hope), I just need the time.
Bye, Rhakios
User avatar
Rhakios
Moderator
 
Posts: 7634
Joined: Wed Apr 06, 2005 11:18 pm
Location: Midlands, UK

Re: RE: How does Fedora do it?

Postby spottedcat » Wed Nov 15, 2006 11:22 pm

towy71 wrote:eeek wtf is that? why is it like that :?


Are you referring to the Edgy fstab? Just change the impenetrable garbage to /dev/hda1 (or whatever) and it works just as well.
spottedcat
LXF regular
 
Posts: 971
Joined: Mon Oct 31, 2005 3:14 pm
Location: UK

RE: Re: RE: How does Fedora do it?

Postby towy71 » Wed Nov 15, 2006 11:28 pm

that really is obfuscation of the highest order
still looking for that door into summer
User avatar
towy71
Moderator
 
Posts: 4276
Joined: Wed Apr 06, 2005 2:11 pm
Location: wild West Wales

Re: RE: Re: RE: How does Fedora do it?

Postby spottedcat » Wed Nov 15, 2006 11:43 pm

towy71 wrote:that really is obfuscation of the highest order


Which? The Edgy fstab or my reply? :lol:

I did see an explanation for it on Ubuntuforums but I didn't keep the link so I can't point you to it. There was some advantage but for the life of me I can't remember what that was. The downside is that if you move the physical location of the partitions on the drive, Edgy throws a major wobbly. And if you detect the voice of bitter experience in that you'd be quite right, :(
spottedcat
LXF regular
 
Posts: 971
Joined: Mon Oct 31, 2005 3:14 pm
Location: UK

RE: Re: RE: Re: RE: How does Fedora do it?

Postby towy71 » Wed Nov 15, 2006 11:47 pm

course it wasn't your reply SC, you are a beacon of sanity in this crazy world ;-)
still looking for that door into summer
User avatar
towy71
Moderator
 
Posts: 4276
Joined: Wed Apr 06, 2005 2:11 pm
Location: wild West Wales

RE: Re: RE: Re: RE: How does Fedora do it?

Postby spottedcat » Wed Nov 15, 2006 11:57 pm

Kind words, Towy, but I sometimes wonder if I wouldn't rather be a beacon of craziness. :twisted:

(Bugger it - every time I try to submit a post, the forum server has gone off for a coffee break. Is that happening to you?)
spottedcat
LXF regular
 
Posts: 971
Joined: Mon Oct 31, 2005 3:14 pm
Location: UK

Postby ryptyde » Sun Nov 19, 2006 12:31 am

Here's my xorg.conf after a fresh install of FC6 and the Compiz and Beryl window managers are fully functional. No manual alterations or fighting to install Nvidia drivers as with FC5.
Code: Select all
# Xorg configuration created by pyxf86config

Section "ServerLayout"
   Identifier     "Default Layout"
   Screen      0  "Screen0" 0 0
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
   ModulePath   "/usr/lib/xorg/modules/extensions/nvidia"
   ModulePath   "/usr/lib/xorg/modules"
EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
   Option       "XkbModel" "pc105"
   Option       "XkbLayout" "us"
EndSection

Section "Device"
   Identifier  "Videocard0"
   Driver      "nvidia"
   Option       "AddARGBGLXVisuals" "True"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Videocard0"
   DefaultDepth     24
   SubSection "Display"
      Viewport   0 0
      Depth     24
   EndSubSection
EndSection


I should add that the Nvidia kernel drv and mods were added just after a complete update after the install.Added and drew from the Livna repo.
ryptyde
 
Posts: 95
Joined: Wed Apr 06, 2005 4:24 pm
Location: Tragic City,Michigan,USA

Postby Rhakios » Sun Nov 19, 2006 2:30 am

Reading the latest edition of the magazine, there is a small section in the Fedora article that suggests that they manage to do so much with so little by letting the X server do the work. Mind you, you can see it doing much of this in the Xorg.log, it's just that it isn't always totally correct.
Mandriva does something odd to get the extra buttons on my mouse to work (which Fedora ignores).

Code: Select all
Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "ExplorerPS/2"
    Option "Device" "/dev/mouse"
EndSection

Section "InputDevice"
    Identifier "Mouse2"
    Driver "evdev"
    Option "product" "0xc50e"
    Option "HWheelRelativeAxisButtons" "7 6"
    Option "vendor" "0x046d"
EndSection


Treats it as two separate mice? :shock:
Bye, Rhakios
User avatar
Rhakios
Moderator
 
Posts: 7634
Joined: Wed Apr 06, 2005 11:18 pm
Location: Midlands, UK

Postby spottedcat » Sun Nov 19, 2006 4:33 pm

Yes, when I read that article in the latest LXF I thought of this thread. I've noticed that some distros leave out the HorizSync and VertRefresh values and I'd wondered how it all still worked. Is it that each newer version of the xserver is able to auto-configure better than the last or is it that the Fedora team have done something special? I don't know whether Ubuntu Edgy uses the same version of X as FC6, but Edgy's xorg.conf is unremarkably long-winded - not as frightening as Edgy's fstab though. :)
spottedcat
LXF regular
 
Posts: 971
Joined: Mon Oct 31, 2005 3:14 pm
Location: UK

Postby Rhakios » Sun Nov 19, 2006 5:11 pm

Well now, having got VMWare up an running again, I've had a look in Kubuntu. Yes, very odd looking compared to your standard fstab, though I'm sure I've seen something like it before. Do UUIDs have something to do with devfs?

Edit: perhaps I mean udev.
Bye, Rhakios
User avatar
Rhakios
Moderator
 
Posts: 7634
Joined: Wed Apr 06, 2005 11:18 pm
Location: Midlands, UK

Postby spottedcat » Sun Nov 19, 2006 5:24 pm

I think this Ubuntuforums thread has a credible explanation.

But to get back to xorg.conf files:

I installed Gentoo 2006.1 this morning from the LXF86 DVD - as one does. Both the live version and the installed version mis-configured my 1280x1024 monitor to 1024x768. Easily rectified, of course, by editing xorg.conf, but I couldn't help thinking of Fedora's automagic. But, of course, that wouldn't be the Gentoo way, would it? :)
spottedcat
LXF regular
 
Posts: 971
Joined: Mon Oct 31, 2005 3:14 pm
Location: UK

Postby Rhakios » Sun Nov 19, 2006 6:04 pm

Mind you, probing monitor settings isn't always a good idea anyway, I have to use the IgnoreEDID option with the nvidia driver for my monitor if I want a readable display.

As for the UUID bit, I'm not in the habit of moving discs around in my machine either. Makes you wonder if it might be a disadvantage for RAID systems, if a dud disk has to be replaced. Although, I suppose the UUID would be specific to the RAID partition, not the hardware... er dunno.
Bye, Rhakios
User avatar
Rhakios
Moderator
 
Posts: 7634
Joined: Wed Apr 06, 2005 11:18 pm
Location: Midlands, UK

Next

Return to Discussion

Who is online

Users browsing this forum: No registered users and 1 guest